2024-05-30 06:19:53 +00:00
|
|
|
/* TODO: Use SVG animtation to replace CSS icons */
|
|
|
|
.citizen-drawer {
|
2024-07-03 20:07:08 +00:00
|
|
|
.citizen-dropdown-summary {
|
|
|
|
> .citizen-ui-icon {
|
2024-05-30 06:19:53 +00:00
|
|
|
display: grid;
|
|
|
|
place-content: center;
|
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: transform;
|
2022-05-10 17:37:38 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
> span {
|
|
|
|
display: block;
|
|
|
|
width: 1.125rem;
|
|
|
|
height: 0.125rem;
|
|
|
|
margin: 0.09375rem 0;
|
|
|
|
background-color: #000;
|
|
|
|
filter: var( --filter-invert );
|
|
|
|
border-radius: var( --border-radius--large );
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
transition: inherit;
|
|
|
|
transform-origin: 0.25rem 0;
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
&:first-child {
|
|
|
|
transform-origin: 0 0;
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
&:nth-child( 2 ) {
|
|
|
|
transform-origin: 0 100%;
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
// Since this is a CSS icon, we don't need this
|
|
|
|
&::before {
|
|
|
|
content: none;
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
&:hover {
|
2024-07-03 20:07:08 +00:00
|
|
|
> .citizen-ui-icon {
|
2024-05-30 06:19:53 +00:00
|
|
|
> span {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
transform: translate3d( -50%, 0, 0 );
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
&:active {
|
2024-07-03 20:07:08 +00:00
|
|
|
> .citizen-ui-icon {
|
2024-05-30 06:19:53 +00:00
|
|
|
> span {
|
2024-06-30 05:04:30 +00:00
|
|
|
opacity: var( --opacity-icon-base--selected );
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-03 20:07:08 +00:00
|
|
|
> .citizen-dropdown-details[ open ] {
|
|
|
|
> .citizen-dropdown-summary {
|
|
|
|
> .citizen-ui-icon {
|
2024-05-30 06:19:53 +00:00
|
|
|
> span {
|
|
|
|
&: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-12-03 03:17:14 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
// Hide line
|
|
|
|
&:last-child {
|
|
|
|
/* @noflip */
|
|
|
|
transform: rotate( 45deg ) translate3d( -0.3125rem, -0.4375rem, 0 );
|
|
|
|
}
|
2022-05-10 15:15:34 +00:00
|
|
|
}
|
2024-05-30 06:19:53 +00:00
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
&:hover {
|
2024-07-03 20:07:08 +00:00
|
|
|
> .citizen-ui-icon {
|
2024-05-30 06:19:53 +00:00
|
|
|
transform: scale( 0.85 );
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-10 15:15:34 +00:00
|
|
|
}
|
2024-05-30 06:19:53 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
|
2024-05-30 06:19:53 +00:00
|
|
|
// RTL
|
|
|
|
.rtl {
|
2024-07-03 20:07:08 +00:00
|
|
|
.citizen-drawer .citizen-dropdown-summary:hover {
|
|
|
|
> .citizen-ui-icon > span:first-child {
|
2024-05-30 06:19:53 +00:00
|
|
|
transform: translate3d( 50%, 0, 0 );
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|