User:Marlamin/citizen.css: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
Tag: Reverted
(Blanked the page)
Tag: Blanking
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS to get sidebar back by lachlanshanks of Coasterpedia */
/* https://coasterpedia.net/wiki/MediaWiki:Citizen.css */


.wowdev-sectionbox {
    color: var(--color-base) !important;
    background-color: var(--color-surface-2) !important;
}
.mw-logo-icon {
/* Temp fix to icon aspect ratio until it is fixed upstream */
height: auto;
}
.citizen-header {
    /* Change header color */
    background-color: var( --color-primary );
}
/* Tweak header icon to work better with primary color header */
.citizen-header__buttonIcon,
.citizen-header__button .citizen-ui-icon:before,
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
    /* Make icon always solid */
    --opacity-icon-base: 1;
    /* Make icon always white */
    filter: invert( 1 ) hue-rotate( 180deg ) !important;
}
/* Remove filter from logo in footer*/
#footer-sitetitle img.mw-logo-wordmark {
filter: none;
}
/* Make drawer always visible > 1300px */
@media screen and ( min-width: 1300px ) {
    :root {
        --fixed-menu-width: 240px;
    }
   
    .citizen-page-container {
        /* Reserve space for drawer */
        margin-left: calc( var( --header-size ) + var( --fixed-menu-width ) );
    }
   
    .citizen-drawer__button {
        /* Hide drawer button */
        display: none;
    }
   
    .citizen-drawer__card {
        bottom: 0;
        /* Put drawer behind other header cards */
        z-index: -1;
        margin: 0;
        /* Compensate header border */
        margin-left: 1px;
        padding: 0;
        min-width: auto;
        width: var( --fixed-menu-width );
        max-height: none;
        border-right: 1px solid var( --border-color-base );
        border-radius: 0;
        background-color: var( --color-surface-0 );
        box-shadow: none;
        /* Force drawer to show */
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important;
        left:60px;
    }
   
    .citizen-drawer__card > * {
        /* Force drawer content to show */
        opacity: 1 !important;
    }
    .citizen-drawer__header {
        padding-left: var( --space-xl );
        padding-right: var( --space-xl );
    }
    .citizen-drawer__logo {
        /* Hide drawer header logo */
        display: none;
    }
    .citizen-drawer__siteinfo  .mw-logo-wordmark {
        font-size: 1.25rem;
    }
    .citizen-siteStats {
        font-size: 0.8125rem;
    }
    #citizen-siteStats__item--images,
    #citizen-siteStats__item--users {
        /* Hide image and user stats to make space */
        display: none;
    }
   
    .citizen-drawer__menu {
        padding-left: var( --space-xs );
        padding-right: var( --space-xs );
        grid-template-columns: 1fr;
    }
}
/* Template styles */
.navbox-subheader {
    background-color: var( --color-surface-3 );
}
.infobox-new {
border: 1px solid var( --border-color-base ) !important;
}
.infobox-new td {
border-bottom: 1px solid var( --border-color-base );
}
.skin-citizen-dark .external-link-rcdb {
filter: invert( 1 );
}
.skin-citizen-dark .box-blue,
.skin-citizen-dark .box-purple,
.skin-citizen-dark .box-red,
.skin-citizen-dark .box-yellow,
.skin-citizen-dark .box-green,
.skin-citizen-dark .box-grey,
.skin-citizen-dark .main-page-box {
    background: none !important;
}
.table-unknown,
.table-na,
#elementbox,
.infobox-new,
.cp-navbox,
.double-image {
background-color: var( --color-surface-2 ) !important;
}
/* Hotcat styles */
.catlinks li {
    position: relative;
}
.hotcatlink {
    position: absolute;
    right: calc( var( --space-xs ) * -1 );
    top: calc( var( --space-xs ) * -1 );
    left: calc( var( --space-xs ) * -1 );
    text-align: center;
}
.oo-ui-windowManager-modal > .oo-ui-dialog {
z-index:500;
}
@media screen and (max-width: 720px){
.citizen-scroll--down .citizen-header {
transform: none;
}
.hide-on-mobile {
display:none;
}
}
@media screen and ( min-width: 1000px ) {
.citizen-toc-enabled .citizen-body-container {
grid-template-areas:
'header header'
'content content'
'footer footer' !important;
}
.citizen-toc {
display: none;
}
}
.permissions-errors {
list-style: none;
margin: 0;
}
.permissions-errors li {
margin-bottom: 1em;
}
/* Show TOC button on desktop */
@media screen and (min-width:1000px) {
.citizen-toc {
position: fixed;
right: 0;
bottom: 0;
z-index: 11;
pointer-events: none;
display: block !important;
}
#citizen-toc__buttonCheckbox {
position: absolute;
right: 0;
bottom: 0;
display: grid !important;
place-content: center;
width: 2.5rem;
height: 2.5rem;
margin: var(--space-xs);
pointer-events: auto;
background-color: var(--color-surface-1);
border-radius: var(--border-radius--medium);
box-shadow: var(--box-shadow-dialog);
transition: var(--transition-menu);
transition-property: transform;
transform: none;
transform-origin: bottom right;
}
#citizen-toc__buttonCheckbox .citizen-ui-icon {
width: 1rem;
height: 1rem;
}
.citizen-toc__card {
max-height: calc(var(--header-card-maxheight) - 8rem);
padding: var(--space-md);
margin: var(--space-xs);
overflow: auto;
overscroll-behavior: contain;
-webkit-user-select: none;
user-select: none;
background-color: var(--color-surface-1);
border: 1px solid var(--border-color-base);
box-shadow: var(--box-shadow-dialog);
border-radius: var(--border-radius--medium);
pointer-events: none;
visibility: hidden;
opacity: 0;
transform: scale(0);
transform-origin: bottom right;
transition: var(--transition-menu);
transition-property: transform,opacity;
will-change: transform,opacity;
}
#citizen-toc__checkbox:checked ~ .citizen-toc__card {
z-index: 101;
pointer-events: auto;
visibility: visible;
opacity: 1;
transition-delay: 0ms;
transform: none;
}
}

Latest revision as of 16:35, 16 March 2024