ldapmanager/test/scss/entry-form-fields/_collapsible-section.scss

42 lines
1002 B
SCSS
Raw Normal View History

2024-10-29 11:14:12 +00:00
@use "../colors" as *;
@use "../vars" as *;
// Collapsible sections in the form, like "Advanced"
@mixin collapsible {
2024-10-29 18:02:45 +00:00
.collapsible-section-title {
2024-10-30 11:14:23 +00:00
display: flex;
2024-10-29 11:14:12 +00:00
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;
2024-10-30 11:14:23 +00:00
padding: 10px 7px 10px 5px;
transition: background-color 0.3s;
2024-10-29 11:14:12 +00:00
&:hover {
color: $details-summary-hover-color;
background-color: #d4d4d4;
}
2024-10-30 11:14:23 +00:00
&::after {
flex: 1 1 50%;
content: "x";
text-align: end;
transition: display 0.3s;
}
2024-10-29 11:14:12 +00:00
}
2024-10-30 11:14:23 +00:00
#collapsible-section-title-1:checked {
~ .collapsible-section {
display: none;
}
~ .collapsible-section-title {
&::after {
content: "+";
}
}
}
2024-10-29 11:14:12 +00:00
}