2022-05-10 03:54:00 +00:00
|
|
|
.citizen-search__button {
|
2022-05-10 17:37:38 +00:00
|
|
|
position: relative; // To make background hover state visible
|
|
|
|
|
2022-05-10 03:54:00 +00:00
|
|
|
&Icon {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
position: relative;
|
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
transition: inherit;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
top: 0.3125rem;
|
|
|
|
/* @noflip */
|
|
|
|
left: 0.75rem;
|
|
|
|
height: 0.5rem;
|
|
|
|
transform: rotate( -45deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
width: 0.625rem;
|
|
|
|
height: 0.625rem;
|
|
|
|
border: 0.125rem solid #000;
|
2022-09-28 21:02:56 +00:00
|
|
|
border-radius: 100%;
|
2022-05-10 03:54:00 +00:00
|
|
|
margin-top: -0.3125rem;
|
|
|
|
/* @noflip */
|
|
|
|
margin-left: -0.125rem;
|
|
|
|
transform: rotate( -45deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
left: -0.4375rem;
|
|
|
|
height: 1rem;
|
|
|
|
opacity: 0;
|
|
|
|
transform: rotate( -135deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
width: 0.125rem;
|
|
|
|
background-color: #000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> .citizen-search__buttonIcon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
height: 0.375rem;
|
|
|
|
transform: translate3d( 0.125rem, 0.125rem, 0 ) rotate( -45deg );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @noflip */
|
|
|
|
.rtl {
|
|
|
|
.citizen-search__buttonIcon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
left: 0.125rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
margin-left: -0.25rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Checkbox hack
|
|
|
|
#citizen-search__checkbox:checked {
|
|
|
|
// Transform the magnifying glass button into a crossmark
|
2022-05-10 15:15:34 +00:00
|
|
|
~ .citizen-search__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-search__buttonIcon {
|
|
|
|
> div {
|
|
|
|
&:first-child {
|
|
|
|
height: 1rem;
|
|
|
|
transform: translate3d( -0.3125rem, -0.3125rem, 0 ) rotate( 135deg );
|
2022-05-10 03:54:00 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 15:15:34 +00:00
|
|
|
&:nth-child( 2 ) {
|
|
|
|
border-color: transparent;
|
2022-05-10 03:54:00 +00:00
|
|
|
}
|
2022-05-10 15:15:34 +00:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> .citizen-search__buttonIcon {
|
2022-09-29 23:12:56 +00:00
|
|
|
transform: scale( 0.85 );
|
2022-05-10 03:54:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|