Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 1: Line 1:
/* Inject higher root authority to completely force variable changes */
/* 1. Import Decorative and Monospace Fonts from Google Fonts */
@import url('https://googleapis.com');
 
:root,
:root,
.skin-theme-clientpref-night,
.skin-theme-clientpref-night,
html.skin-citizen-dark {
html.skin-citizen-dark {
     /* 1. Main Background: A lively linear gradient instead of a dark solid color */
     /* Background & Container Tones */
     background: linear-gradient(135deg, #1b351e 0%, #345c3a 50%, #4a7c4e 100%) !important;
     background: linear-gradient(145deg, #1f2e22 0%, #2a3d2e 60%, #364f3b 100%) !important;
     background-attachment: fixed !important;
     background-attachment: fixed !important;
    --color-surface-0: transparent !important;
    --color-surface-1: #231c18 !important;
    --color-surface-2: #2d241f !important;
    --color-surface-3: #382d27 !important;


     /* 2. Text Boxes & Containers: Translucent, warm earthy mud brown */
     /* Accents & Typography */
     --color-surface-1: rgba(77, 59, 45, 0.55) !important;  
     --color-primary: #76a035 !important;
      
     --color-primary-variant: #8cb943 !important;
     /* 3. Dropdowns & Hover states: Opaque sand/clay brown */
     --color-base: #f4f0e6 !important;
     --color-surface-2: rgba(105, 83, 65, 0.75) !important;  
     --color-base-variant: #c2bbae !important;
     --color-surface-3: rgba(128, 102, 80, 0.85) !important;
     --border-radius-base: 12px !important;


     /* 4. Layout Accents: A sunlit, lively moss green */
     /* 2. Map Fonts into Citizen's Native Font Variables */
     --color-primary: #8eba59 !important;
    --font-family-serif: 'Grenze Gotisch', serif !important;
     --color-primary-variant: #a3d16b !important;
     --font-family-sans-serif: 'Grenze Gotisch', serif !important;
     --font-family-monospace: 'Space Mono', monospace !important;
}


    /* 5. Typography: Off-white linen color to keep text ultra-readable */
/* Apply the decorative font to all UI layout elements, buttons, and headings */
     --color-base: #f7f4eb !important;
body,
     --color-base-variant: #d6cfbe !important;
.mw-body,
#mw-header,
.skin-citizen-sidebar,
.mw-portlet,
.oo-ui-widget {
     font-family: var(--font-family-serif) !important;
     letter-spacing: 0.03em; /* Slightly increases readability for decorative text */
}


    /* 6. Rounded Corners: Smooth out all native Citizen panels globally */
/* Apply Space Mono explicitly to all technical code blocks and preformatted tags */
     --border-radius-base: 14px !important;
code,
     --border-radius-large: 18px !important;
pre,
.mw-code,
kbd,
samp,
.syntaxhighlight {
     font-family: var(--font-family-monospace) !important;
    font-size: 0.9em !important; /* Balances Space Mono's natural height */
     background-color: var(--color-surface-2) !important;
    padding: 0.2em 0.4em !important;
    border-radius: 6px !important;
}
}


/* Force transparency, glass blur, and rounded corners onto the main body containers */
/* Container Polish */
.mw-page-container,
.mw-body,
.mw-page-container,  
.skin-citizen-sidebar,
.skin-citizen-sidebar,
.ext-visualEditor-theme-citizen,
.mw-portlet {
.mw-portlet,
.oo-ui-panelLayout,
.mw-body {
     background-color: var(--color-surface-1) !important;
     background-color: var(--color-surface-1) !important;
    backdrop-filter: blur(14px) webkit-backdrop-filter(14px) !important;
   
    /* Smooth, rounded box edges to remove sharp corners */
     border-radius: var(--border-radius-base) !important;
     border-radius: var(--border-radius-base) !important;
   
     border: 1px solid #332923 !important;
    /* Subtly separate the brown boxes from the green background gradient */
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
     border: 1px solid rgba(255, 255, 255, 0.1) !important;
     box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}
 
/* Make sure the main content block inherits the rounded corners properly */
.mw-body {
    padding: 1.5em !important;
}
}


/* Brighten the header layout bar with glassmorphism */
.mw-body { padding: 2em !important; }
#mw-header {
#mw-header { background-color: #1a1512 !important; border-bottom: 1px solid #231c18 !important; }
    background-color: rgba(27, 53, 30, 0.6) !important;
    backdrop-filter: blur(10px) webkit-backdrop-filter(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

Revision as of 06:03, 7 August 2026

/* 1. Import Decorative and Monospace Fonts from Google Fonts */
@import url('https://googleapis.com');

:root,
.skin-theme-clientpref-night,
html.skin-citizen-dark {
    /* Background & Container Tones */
    background: linear-gradient(145deg, #1f2e22 0%, #2a3d2e 60%, #364f3b 100%) !important;
    background-attachment: fixed !important;
    --color-surface-0: transparent !important;
    --color-surface-1: #231c18 !important;
    --color-surface-2: #2d241f !important;
    --color-surface-3: #382d27 !important;

    /* Accents & Typography */
    --color-primary: #76a035 !important;
    --color-primary-variant: #8cb943 !important;
    --color-base: #f4f0e6 !important;
    --color-base-variant: #c2bbae !important;
    --border-radius-base: 12px !important;

    /* 2. Map Fonts into Citizen's Native Font Variables */
    --font-family-serif: 'Grenze Gotisch', serif !important;
    --font-family-sans-serif: 'Grenze Gotisch', serif !important;
    --font-family-monospace: 'Space Mono', monospace !important;
}

/* Apply the decorative font to all UI layout elements, buttons, and headings */
body, 
.mw-body, 
#mw-header, 
.skin-citizen-sidebar, 
.mw-portlet, 
.oo-ui-widget {
    font-family: var(--font-family-serif) !important;
    letter-spacing: 0.03em; /* Slightly increases readability for decorative text */
}

/* Apply Space Mono explicitly to all technical code blocks and preformatted tags */
code, 
pre, 
.mw-code, 
kbd, 
samp, 
.syntaxhighlight {
    font-family: var(--font-family-monospace) !important;
    font-size: 0.9em !important; /* Balances Space Mono's natural height */
    background-color: var(--color-surface-2) !important;
    padding: 0.2em 0.4em !important;
    border-radius: 6px !important;
}

/* Container Polish */
.mw-body, 
.mw-page-container, 
.skin-citizen-sidebar,
.mw-portlet {
    background-color: var(--color-surface-1) !important;
    border-radius: var(--border-radius-base) !important;
    border: 1px solid #332923 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.mw-body { padding: 2em !important; }
#mw-header { background-color: #1a1512 !important; border-bottom: 1px solid #231c18 !important; }