35 lines
831 B
SCSS
35 lines
831 B
SCSS
@use "../colors" as *;
|
|
@use "../vars" as *;
|
|
|
|
// Collapsible sections in the form, like "Advanced"
|
|
@mixin collapsible {
|
|
padding-bottom: 3px;
|
|
// Style when the section is expanded
|
|
&[open] {
|
|
summary {
|
|
color: $details-open-summary-color;
|
|
}
|
|
background-color: #dadada;
|
|
border-radius: 6px;
|
|
}
|
|
// Regular
|
|
summary {
|
|
display: block;
|
|
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 2px;
|
|
border-radius: 6px 6px 0 0;
|
|
|
|
&:hover {
|
|
color: $details-summary-hover-color;
|
|
background-color: #d4d4d4;
|
|
}
|
|
}
|
|
|
|
}
|