mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 07:41:07 +00:00
80 lines
1.4 KiB
Plaintext
80 lines
1.4 KiB
Plaintext
.citizen-drawer {
|
|
&__card {
|
|
padding: var( --space-xs ) 0;
|
|
.citizen-header-card( left );
|
|
}
|
|
|
|
&__header {
|
|
display: flex;
|
|
gap: var( --space-md );
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var( --space-sm ) var( --space-md ) var( --space-md );
|
|
border-bottom: 1px solid var( --border-color-base );
|
|
}
|
|
|
|
// Keep aspect ratio
|
|
&__logo img {
|
|
width: auto;
|
|
height: 3rem;
|
|
}
|
|
|
|
&__siteinfo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var( --space-xxs );
|
|
|
|
.mw-logo-wordmark {
|
|
font-size: 1.5rem;
|
|
color: var( --color-base--emphasized );
|
|
}
|
|
}
|
|
|
|
&__menu {
|
|
--size-icon: 1rem;
|
|
display: grid;
|
|
grid-template-columns: repeat( auto-fit, 15rem );
|
|
gap: var( --space-sm );
|
|
justify-content: center;
|
|
max-width: 92vw;
|
|
padding: var( --space-xs );
|
|
font-size: var( --font-size-small ); // TODO: Make this a variable
|
|
|
|
.mw-list-item a {
|
|
border-radius: var( --border-radius--small );
|
|
}
|
|
}
|
|
}
|
|
|
|
// Checkbox hack
|
|
#citizen-drawer__checkbox:checked {
|
|
~ .citizen-drawer__card {
|
|
.citizen-card-show;
|
|
}
|
|
}
|
|
|
|
@media ( min-width: @min-width-breakpoint-tablet ) {
|
|
.citizen-drawer {
|
|
&__logo img {
|
|
// Bigger logo
|
|
height: 5rem;
|
|
}
|
|
|
|
&__siteinfo {
|
|
.mw-logo-wordmark {
|
|
font-size: 2rem;
|
|
// Sometimes long wiki name will wrap when the menu is too small
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
|
.citizen-drawer {
|
|
&__header {
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
}
|