2022-05-10 00:23:42 +00:00
|
|
|
.citizen-drawer__button {
|
2022-05-10 17:37:38 +00:00
|
|
|
position: relative; // To make background hover state visible
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&Icon {
|
|
|
|
display: grid;
|
|
|
|
place-content: center;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
display: block;
|
|
|
|
width: 1.125rem;
|
|
|
|
height: 0.125rem;
|
2022-09-28 21:02:56 +00:00
|
|
|
border-radius: var( --border-radius--large );
|
2022-05-10 00:23:42 +00:00
|
|
|
margin: 0.09375rem 0;
|
2022-05-10 15:56:50 +00:00
|
|
|
background-color: #000;
|
2022-05-10 00:23:42 +00:00
|
|
|
transform-origin: 0.25rem 0;
|
|
|
|
transition: inherit;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
transform-origin: 0 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> .citizen-drawer__buttonIcon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
transform: translate3d( -50%, 0, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// RTL
|
|
|
|
.rtl {
|
|
|
|
.citizen-drawer__button:hover {
|
|
|
|
&Icon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
transform: translate3d( 50%, 0, 0 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Checkbox hack
|
|
|
|
#citizen-drawer__checkbox:checked {
|
|
|
|
// Transform all the slices of the button into a crossmark
|
2022-05-10 15:15:34 +00:00
|
|
|
~ .citizen-drawer__button {
|
2022-12-03 03:17:14 +00:00
|
|
|
background-color: var( --background-color-primary--active );
|
|
|
|
|
2022-05-10 15:15:34 +00:00
|
|
|
> .citizen-drawer__buttonIcon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
opacity: 0;
|
|
|
|
/* @noflip */
|
|
|
|
transform: rotate( 0deg ) scale( 0.2, 0.2 );
|
|
|
|
}
|
|
|
|
// Reflect line
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
/* @noflip */
|
|
|
|
transform: rotate( -45deg ) translate3d( -0.125rem, 0.375rem, 0 );
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2022-05-10 15:15:34 +00:00
|
|
|
// Hide line
|
|
|
|
&:last-child {
|
|
|
|
/* @noflip */
|
|
|
|
transform: rotate( 45deg ) translate3d( -0.3125rem, -0.4375rem, 0 );
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-10 15:15:34 +00:00
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2022-05-10 15:15:34 +00:00
|
|
|
&:hover {
|
|
|
|
> .citizen-drawer__buttonIcon {
|
|
|
|
transform: scale( 0.85 );
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|