MediaWiki:Common.css: Difference between revisions
Updated via ClaudeBot |
Updated via ClaudeBot |
||
| Line 5: | Line 5: | ||
========================================== */ | ========================================== */ | ||
/* Brand Colors */ | /* Brand Colors - Matching the logo */ | ||
:root { | :root { | ||
--cc- | --cc-green: #2E7D4F; /* Forest green from chest/leaves */ | ||
--cc- | --cc-green-dark: #1B5E3A; /* Darker green for hover */ | ||
--cc- | --cc-teal: #3BA99C; /* Teal for visited links */ | ||
--cc-teal-dark: #2D8A7E; /* Darker teal */ | |||
--cc-gold: #D4A84B; /* Gold accent from sun */ | |||
} | } | ||
/* Links - | /* Links - Green to match logo */ | ||
#content a:not(.new):not(.mw-selflink), | #content a:not(.new):not(.mw-selflink), | ||
.mw-parser-output a:not(.new):not(.external), | .mw-parser-output a:not(.new):not(.external), | ||
#mw-content-text a:not(.new) { | #mw-content-text a:not(.new) { | ||
color: var(--cc- | color: var(--cc-green); | ||
} | } | ||
| Line 22: | Line 24: | ||
.mw-parser-output a:not(.new):hover, | .mw-parser-output a:not(.new):hover, | ||
#mw-content-text a:not(.new):hover { | #mw-content-text a:not(.new):hover { | ||
color: var(--cc- | color: var(--cc-green-dark); | ||
} | |||
/* Visited links - Teal */ | |||
#content a:visited:not(.new), | |||
.mw-parser-output a:visited:not(.new), | |||
#mw-content-text a:visited:not(.new) { | |||
color: var(--cc-teal); | |||
} | |||
#content a:visited:hover:not(.new), | |||
.mw-parser-output a:visited:hover:not(.new) { | |||
color: var(--cc-teal-dark); | |||
} | } | ||
/* External links */ | /* External links */ | ||
.mw-parser-output a.external { | .mw-parser-output a.external { | ||
color: var(--cc- | color: var(--cc-green); | ||
} | |||
.mw-parser-output a.external:visited { | |||
color: var(--cc-teal); | |||
} | } | ||
.mw-parser-output a.external:hover { | .mw-parser-output a.external:hover { | ||
color: var(--cc- | color: var(--cc-green-dark); | ||
} | } | ||
| Line 37: | Line 55: | ||
.vector-menu-portal a, | .vector-menu-portal a, | ||
.vector-menu a { | .vector-menu a { | ||
color: var(--cc- | color: var(--cc-green) !important; | ||
} | } | ||
.vector-menu-portal a:hover, | .vector-menu-portal a:hover, | ||
.vector-menu a:hover { | .vector-menu a:hover { | ||
color: var(--cc- | color: var(--cc-green-dark) !important; | ||
} | } | ||
/* Table of contents */ | /* Table of contents */ | ||
.vector-toc a { | .vector-toc a { | ||
color: var(--cc- | color: var(--cc-green); | ||
} | } | ||
.vector-toc a:hover { | .vector-toc a:hover { | ||
color: var(--cc- | color: var(--cc-green-dark); | ||
} | } | ||
/* Category links */ | /* Category links */ | ||
#catlinks a { | #catlinks a { | ||
color: var(--cc- | color: var(--cc-green); | ||
} | |||
#catlinks a:visited { | |||
color: var(--cc-teal); | |||
} | } | ||
/* Section edit links */ | /* Section edit links */ | ||
.mw-editsection a { | .mw-editsection a { | ||
color: var(--cc- | color: var(--cc-green); | ||
} | } | ||
| Line 67: | Line 89: | ||
.vector-menu-tabs .selected a, | .vector-menu-tabs .selected a, | ||
.vector-menu-tabs .selected a:visited { | .vector-menu-tabs .selected a:visited { | ||
color: var(--cc- | color: var(--cc-green-dark) !important; | ||
} | } | ||
| Line 73: | Line 95: | ||
.cdx-button--action-progressive, | .cdx-button--action-progressive, | ||
.mw-ui-progressive { | .mw-ui-progressive { | ||
background-color: var(--cc- | background-color: var(--cc-green) !important; | ||
border-color: var(--cc- | border-color: var(--cc-green) !important; | ||
} | } | ||
.cdx-button--action-progressive:hover, | .cdx-button--action-progressive:hover, | ||
.mw-ui-progressive:hover { | .mw-ui-progressive:hover { | ||
background-color: var(--cc- | background-color: var(--cc-green-dark) !important; | ||
border-color: var(--cc- | border-color: var(--cc-green-dark) !important; | ||
} | } | ||
Latest revision as of 01:55, 1 February 2026
/* CSS placed here will be applied to all skins */
/* ==========================================
CARD CONSERVATION BRAND CUSTOMIZATION
========================================== */
/* Brand Colors - Matching the logo */
:root {
--cc-green: #2E7D4F; /* Forest green from chest/leaves */
--cc-green-dark: #1B5E3A; /* Darker green for hover */
--cc-teal: #3BA99C; /* Teal for visited links */
--cc-teal-dark: #2D8A7E; /* Darker teal */
--cc-gold: #D4A84B; /* Gold accent from sun */
}
/* Links - Green to match logo */
#content a:not(.new):not(.mw-selflink),
.mw-parser-output a:not(.new):not(.external),
#mw-content-text a:not(.new) {
color: var(--cc-green);
}
#content a:not(.new):hover,
.mw-parser-output a:not(.new):hover,
#mw-content-text a:not(.new):hover {
color: var(--cc-green-dark);
}
/* Visited links - Teal */
#content a:visited:not(.new),
.mw-parser-output a:visited:not(.new),
#mw-content-text a:visited:not(.new) {
color: var(--cc-teal);
}
#content a:visited:hover:not(.new),
.mw-parser-output a:visited:hover:not(.new) {
color: var(--cc-teal-dark);
}
/* External links */
.mw-parser-output a.external {
color: var(--cc-green);
}
.mw-parser-output a.external:visited {
color: var(--cc-teal);
}
.mw-parser-output a.external:hover {
color: var(--cc-green-dark);
}
/* Sidebar/menu links */
.vector-menu-portal a,
.vector-menu a {
color: var(--cc-green) !important;
}
.vector-menu-portal a:hover,
.vector-menu a:hover {
color: var(--cc-green-dark) !important;
}
/* Table of contents */
.vector-toc a {
color: var(--cc-green);
}
.vector-toc a:hover {
color: var(--cc-green-dark);
}
/* Category links */
#catlinks a {
color: var(--cc-green);
}
#catlinks a:visited {
color: var(--cc-teal);
}
/* Section edit links */
.mw-editsection a {
color: var(--cc-green);
}
/* Active/selected states */
.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
color: var(--cc-green-dark) !important;
}
/* Buttons and interactive elements */
.cdx-button--action-progressive,
.mw-ui-progressive {
background-color: var(--cc-green) !important;
border-color: var(--cc-green) !important;
}
.cdx-button--action-progressive:hover,
.mw-ui-progressive:hover {
background-color: var(--cc-green-dark) !important;
border-color: var(--cc-green-dark) !important;
}
/* ==========================================
HIDE PATREON CTA FOR LOGGED-IN USERS
========================================== */
/* Vector 2022 - check for logged-in user menu */
body:has(.vector-user-menu-logged-in) .patreon-cta,
body:has(#pt-logout) .patreon-cta,
body:has(#pt-userpage) .patreon-cta {
display: none !important;
}
/* Fallback for older skins */
body.mw-user-loggedin .patreon-cta,
body.logged-in .patreon-cta {
display: none !important;
}