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 2: Line 2:


:root.skin-theme-clientpref-night {
:root.skin-theme-clientpref-night {
     --color-primary__h: 0;  /* Hue (0 = Red, not relevant for white) */
     --color-primary__h: 0;  /* Primary hue (not relevant for white) */
     --color-primary__s: 0%;  /* Saturation (0% makes it grayscale) */
     --color-primary__s: 0%;  /* No saturation for grayscale */
     --color-primary__l: 100%; /* Lightness (100% makes it white) */
     --color-primary__l: 100%; /* Full lightness for white */


     /* Ensure text is white */
     /* Ensure text is white */
     --color-base: #ffffff; /* Main text color */
     --color-base: #ffffff; /* Main text color */
     --color-emphasized: #f5f5f5; /* Emphasized text */
     --color-emphasized: #f5f5f5; /* Emphasized text (headers) */
     --color-subtle: #cccccc; /* Less important text */
     --color-subtle: #cccccc; /* Less important text */


/* Green links */
    /* Dark background */
     --color-primary: #66ff66; /* Default link color */
     --color-surface-0: #121212; /* Page background */
     --color-primary--hover: #44cc44; /* Hovered link */
    --color-surface-1: #1a1a1a; /* Panels, dropdowns */
     --color-primary--active: #33aa33; /* Clicked link */
     --color-surface-2: #222222; /* Secondary elements */
    --color-surface-3: #2a2a2a; /* Deep layers */
     --color-surface-4: #333333; /* Borders and deepest layers */


     /* Change UI button colors */
     /* Buttons */
    --color-primary: #333333; /* Dark gray background for buttons */
    --color-primary--hover: #444444; /* Slightly lighter hover color */
    --color-primary--active: #555555; /* Clicked button color */
    --color-primary-text: #ffffff; /* Ensure button text is white */
 
    /* UI buttons and accents */
     --color-syntax-red: #ff6666; /* Error text */
     --color-syntax-red: #ff6666; /* Error text */
     --color-syntax-blue: #6699ff; /* Links */
     --color-syntax-blue: #6699ff; /* Other blue UI elements */
     --color-syntax-green: #66ff66; /* Success messages */
     --color-syntax-green: #66ff66; /* Success messages */
}
/* Force links to be green without affecting buttons */
.mw-parser-output a {
    color: #66ff66 !important; /* Default link color */
    text-decoration: none;
}
.mw-parser-output a:hover {
    color: #44cc44 !important; /* Hovered link color */
    text-decoration: underline;
}
.mw-parser-output a:active {
    color: #33aa33 !important; /* Clicked link color */
}
/* Fix buttons */
.mw-ui-button {
    background-color: #333333 !important; /* Dark button background */
    color: #ffffff !important; /* White text */
    border: 1px solid #555555 !important; /* Subtle border */
}
.mw-ui-button:hover {
    background-color: #444444 !important; /* Slightly lighter on hover */
}
.mw-ui-button:active {
    background-color: #555555 !important; /* Even lighter when clicked */
}
}

Revision as of 20:36, 4 February 2025

/* All CSS here will be loaded for users of the Citizen skin */

:root.skin-theme-clientpref-night {
    --color-primary__h: 0;   /* Primary hue (not relevant for white) */
    --color-primary__s: 0%;  /* No saturation for grayscale */
    --color-primary__l: 100%; /* Full lightness for white */

    /* Ensure text is white */
    --color-base: #ffffff; /* Main text color */
    --color-emphasized: #f5f5f5; /* Emphasized text (headers) */
    --color-subtle: #cccccc; /* Less important text */

    /* Dark background */
    --color-surface-0: #121212; /* Page background */
    --color-surface-1: #1a1a1a; /* Panels, dropdowns */
    --color-surface-2: #222222; /* Secondary elements */
    --color-surface-3: #2a2a2a; /* Deep layers */
    --color-surface-4: #333333; /* Borders and deepest layers */

    /* Buttons */
    --color-primary: #333333; /* Dark gray background for buttons */
    --color-primary--hover: #444444; /* Slightly lighter hover color */
    --color-primary--active: #555555; /* Clicked button color */
    --color-primary-text: #ffffff; /* Ensure button text is white */

    /* UI buttons and accents */
    --color-syntax-red: #ff6666; /* Error text */
    --color-syntax-blue: #6699ff; /* Other blue UI elements */
    --color-syntax-green: #66ff66; /* Success messages */
}

/* Force links to be green without affecting buttons */
.mw-parser-output a {
    color: #66ff66 !important; /* Default link color */
    text-decoration: none;
}

.mw-parser-output a:hover {
    color: #44cc44 !important; /* Hovered link color */
    text-decoration: underline;
}

.mw-parser-output a:active {
    color: #33aa33 !important; /* Clicked link color */
}

/* Fix buttons */
.mw-ui-button {
    background-color: #333333 !important; /* Dark button background */
    color: #ffffff !important; /* White text */
    border: 1px solid #555555 !important; /* Subtle border */
}

.mw-ui-button:hover {
    background-color: #444444 !important; /* Slightly lighter on hover */
}

.mw-ui-button:active {
    background-color: #555555 !important; /* Even lighter when clicked */
}