2022-05-10 00:23:42 +00:00
|
|
|
.citizen-header {
|
|
|
|
--size-button--header: ~'calc( var( --height-header ) - 1rem )';
|
|
|
|
--size-icon--header: 1.25rem;
|
|
|
|
--margin-header: 0.5rem;
|
|
|
|
--padding-header: ~'calc( var( --padding-page ) / 2 )';
|
2022-05-10 16:55:20 +00:00
|
|
|
--size-dialog-min--header: 16rem;
|
2020-06-07 05:30:54 +00:00
|
|
|
position: fixed;
|
2022-05-23 19:11:41 +00:00
|
|
|
z-index: @z-index-site-header;
|
2020-06-07 05:30:54 +00:00
|
|
|
top: 0;
|
2021-01-16 00:56:59 +00:00
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2021-01-11 16:45:52 +00:00
|
|
|
display: flex;
|
2021-01-16 00:56:59 +00:00
|
|
|
height: var( --height-header );
|
2020-06-07 05:30:54 +00:00
|
|
|
justify-content: space-between;
|
2022-05-10 00:23:42 +00:00
|
|
|
padding: 0 var( --padding-header );
|
2020-06-07 05:30:54 +00:00
|
|
|
|
2021-01-16 00:56:59 +00:00
|
|
|
&:before {
|
2020-06-07 05:30:54 +00:00
|
|
|
position: absolute;
|
2022-05-10 14:50:01 +00:00
|
|
|
z-index: -1;
|
2021-08-26 03:56:53 +00:00
|
|
|
top: 0;
|
2020-06-07 05:31:34 +00:00
|
|
|
right: 0;
|
2021-08-26 03:56:53 +00:00
|
|
|
bottom: ~'calc( var( --height-header ) / -2 )';
|
2021-01-11 16:45:52 +00:00
|
|
|
left: 0;
|
2021-08-26 03:56:53 +00:00
|
|
|
background: var( --color-surface-0 );
|
2021-01-16 00:56:59 +00:00
|
|
|
content: '';
|
2021-08-26 03:56:53 +00:00
|
|
|
-webkit-mask-image: linear-gradient( 180deg, #000, transparent );
|
2021-08-26 03:58:36 +00:00
|
|
|
mask-image: linear-gradient( 180deg, #000, transparent );
|
2022-05-10 00:23:42 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
|
|
|
display: grid;
|
|
|
|
width: var( --size-button--header );
|
|
|
|
height: var( --size-button--header );
|
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
place-items: center;
|
|
|
|
|
|
|
|
// Used in checkbox hack
|
|
|
|
&Checkbox {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
|
|
|
}
|
|
|
|
|
2022-05-10 15:56:50 +00:00
|
|
|
// Pure CSS icons
|
2022-05-10 00:23:42 +00:00
|
|
|
&Icon {
|
|
|
|
overflow: hidden; // Sometimes CSS animation can clip
|
|
|
|
width: var( --size-icon--header );
|
|
|
|
height: var( --size-icon--header );
|
|
|
|
}
|
|
|
|
|
2022-05-10 15:56:50 +00:00
|
|
|
// Background image icons
|
|
|
|
&--icon:after {
|
|
|
|
width: var( --size-icon--header );
|
|
|
|
height: var( --size-icon--header );
|
2022-05-10 17:37:38 +00:00
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
2022-05-10 18:00:28 +00:00
|
|
|
background-size: contain;
|
2022-05-10 16:55:20 +00:00
|
|
|
content: '';
|
2022-05-10 15:56:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&Icon,
|
|
|
|
&--icon:after {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
transition: @transition-transform, @transition-opacity;
|
|
|
|
}
|
|
|
|
|
2022-05-10 00:23:42 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
2022-05-10 15:56:50 +00:00
|
|
|
|
|
|
|
.citizen-header__buttonIcon,
|
|
|
|
&.citizen-header__button--icon:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
2022-05-10 15:56:50 +00:00
|
|
|
|
|
|
|
.citizen-header__buttonIcon,
|
|
|
|
&.citizen-header__button--icon:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-10 14:50:01 +00:00
|
|
|
|
|
|
|
&__inner {
|
2022-05-25 20:00:45 +00:00
|
|
|
z-index: -1; // Inner element should be behind menu and search
|
2022-05-10 14:50:01 +00:00
|
|
|
display: flex;
|
|
|
|
min-width: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
justify-content: space-between;
|
2022-05-10 16:55:20 +00:00
|
|
|
|
|
|
|
.mw-checkbox-hack-checkbox:checked {
|
|
|
|
~ .citizen-header__button {
|
|
|
|
background-color: var( --background-color-primary--active );
|
|
|
|
}
|
|
|
|
}
|
2022-05-10 14:50:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__start,
|
|
|
|
&__end {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__start {
|
|
|
|
min-width: 0;
|
2022-05-10 16:55:20 +00:00
|
|
|
align-items: center;
|
2022-05-10 14:50:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
display: flex;
|
|
|
|
min-width: 0;
|
|
|
|
height: var( --size-button--header );
|
|
|
|
align-items: center;
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
border-radius: var( --border-radius--small );
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
font-weight: 500;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
}
|
|
|
|
|
|
|
|
&--page {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2022-05-10 16:55:20 +00:00
|
|
|
|
|
|
|
// Reset
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2022-05-10 14:50:01 +00:00
|
|
|
}
|
|
|
|
|
2022-05-13 04:30:46 +00:00
|
|
|
.citizen-title--hidden {
|
2022-05-10 14:50:01 +00:00
|
|
|
.citizen-header {
|
|
|
|
&__title {
|
|
|
|
&--site {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--page {
|
|
|
|
display: grid;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-10 00:23:42 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 15:56:50 +00:00
|
|
|
.skin-citizen-dark {
|
|
|
|
.citizen-header__button {
|
|
|
|
&Icon,
|
|
|
|
&--icon:after {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-17 02:52:04 +00:00
|
|
|
// Notifications
|
|
|
|
#p-notifications {
|
2020-06-07 05:30:54 +00:00
|
|
|
ul {
|
|
|
|
display: flex;
|
2021-01-16 00:56:59 +00:00
|
|
|
height: var( --height-header );
|
2020-06-07 05:30:54 +00:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 17:27:47 +00:00
|
|
|
|
2022-05-10 17:37:38 +00:00
|
|
|
// Reset hover styles if it is a touch device
|
|
|
|
// This is dumb but hover:hover overrides active states
|
|
|
|
@media ( hover: none ) {
|
|
|
|
.citizen-header {
|
|
|
|
&__button {
|
|
|
|
&:hover {
|
|
|
|
background-color: none;
|
|
|
|
|
|
|
|
.citizen-header__buttonIcon,
|
|
|
|
&.citizen-header__button--icon:after {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
&:hover {
|
|
|
|
background-color: none;
|
|
|
|
color: var( --color-base );
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 17:27:47 +00:00
|
|
|
}
|
|
|
|
}
|