mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 06:47:16 +00:00
122 lines
2.2 KiB
Plaintext
122 lines
2.2 KiB
Plaintext
.citizen-menu {
|
|
&__heading {
|
|
display: block;
|
|
padding: var( --space-xs ) var( --space-md );
|
|
margin: 0;
|
|
font-size: var( --font-size-x-small );
|
|
font-weight: var( --font-weight-normal );
|
|
color: var( --color-base--subtle );
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.mw-list-item {
|
|
line-height: var( --line-height-xs );
|
|
|
|
a {
|
|
display: flex;
|
|
gap: var( --space-sm );
|
|
align-items: center;
|
|
padding: var( --space-xs ) var( --space-md );
|
|
font-weight: var( --font-weight-medium );
|
|
color: var( --color-base );
|
|
transition: var( --transition-hover );
|
|
transition-property: opacity;
|
|
|
|
&:hover {
|
|
color: var( --color-base--emphasized );
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
.citizen-ui-icon::before {
|
|
opacity: var( --opacity-icon-base--hover );
|
|
}
|
|
}
|
|
|
|
&:active {
|
|
color: var( --color-base--subtle );
|
|
background-color: var( --background-color-quiet--active );
|
|
|
|
.citizen-ui-icon::before {
|
|
opacity: var( --opacity-icon-base--active );
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// FIXME: This should not be here
|
|
.citizen-ui-icon {
|
|
display: block;
|
|
width: var( --size-icon );
|
|
height: var( --size-icon );
|
|
contain: strict;
|
|
|
|
&::before {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
content: '';
|
|
filter: var( --filter-invert );
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: contain;
|
|
opacity: var( --opacity-icon-base );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Invisible checkbox covering the menu button.
|
|
*/
|
|
.citizen-menu-checkbox {
|
|
// Has to be visible to be focusable
|
|
&-checkbox {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
width: 0;
|
|
height: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
opacity: 0;
|
|
|
|
// HACK: Fake focus styles
|
|
&:focus {
|
|
& + .citizen-header__button,
|
|
& + .citizen-menu-checkbox-button {
|
|
outline: 2px solid var( --color-primary );
|
|
outline-offset: 1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-button {
|
|
cursor: pointer;
|
|
|
|
// Icons have to use span inside label elements
|
|
> span:not( .citizen-ui-icon ) {
|
|
.mixin-screen-reader-text;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mw-portlet {
|
|
// Hide selected item
|
|
.selected {
|
|
.mixin-screen-reader-text;
|
|
}
|
|
|
|
// Hide empty menu
|
|
&-empty {
|
|
display: none !important;
|
|
}
|
|
|
|
a::after {
|
|
filter: var( --filter-invert );
|
|
}
|
|
}
|