ldapmanager/test/scss/entry-form-fields/_collapsible-section.scss
2024-10-30 16:44:23 +05:30

42 lines
1002 B
SCSS

@use "../colors" as *;
@use "../vars" as *;
// Collapsible sections in the form, like "Advanced"
@mixin collapsible {
.collapsible-section-title {
display: flex;
width: 100%;
color: $details-closed-summary-color;
font-weight: bold;
font-size: 18px;
cursor: pointer;
margin-bottom: 10px;
border-bottom: 2px solid $details-summary-border-color;
padding: 10px 7px 10px 5px;
transition: background-color 0.3s;
&:hover {
color: $details-summary-hover-color;
background-color: #d4d4d4;
}
&::after {
flex: 1 1 50%;
content: "x";
text-align: end;
transition: display 0.3s;
}
}
#collapsible-section-title-1:checked {
~ .collapsible-section {
display: none;
}
~ .collapsible-section-title {
&::after {
content: "+";
}
}
}
}