Add +/- icon to menu button and bold label
This commit is contained in:
parent
db8bbfcfab
commit
52ef6badd7
|
@ -326,8 +326,9 @@
|
||||||
label {
|
label {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.5em 1em;
|
padding: 0.5em 2.5em 0.5em 1em;
|
||||||
font-size: $type-size-6;
|
font-size: $type-size-6;
|
||||||
|
font-weight: bold;
|
||||||
border: 1px solid $light-gray;
|
border: 1px solid $light-gray;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
|
@ -335,10 +336,32 @@
|
||||||
transition: 0.2s ease-out;
|
transition: 0.2s ease-out;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: 1em;
|
||||||
|
top: 1.25em;
|
||||||
|
width: 0.75em;
|
||||||
|
height: 0.125em;
|
||||||
|
line-height: 1;
|
||||||
|
background-color: #333;
|
||||||
|
transition: 0.2s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-color: $gray;
|
border-color: $gray;
|
||||||
background-color: mix(white, #000, 20%);
|
background-color: mix(white, #000, 20%);
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -346,6 +369,20 @@
|
||||||
input:checked + label {
|
input:checked + label {
|
||||||
color: white;
|
color: white;
|
||||||
background-color: mix(white, #000, 20%);
|
background-color: mix(white, #000, 20%);
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// on hover show expand
|
||||||
|
label:hover:after {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + label:hover:after {
|
||||||
|
transform: rotate(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
|
Loading…
Reference in a new issue