MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* <pre><nowiki> */ | /* <pre><nowiki> */ | ||
/* | /* Hogwarts Gateway theme */ | ||
/* Import fonts from Google Fonts: | /* Import fonts from Google Fonts: Cinzel (elegant, magical headings) and Crimson Text (readable body text with old-world charm) */ | ||
@import url('https://fonts.googleapis.com/css2?family= | @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap'); | ||
/* | /* | ||
Line 11: | Line 11: | ||
*/ | */ | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'Cinzel-fallback'; | ||
size-adjust: | size-adjust: 98%; | ||
ascent-override: | ascent-override: 105%; | ||
descent-override: | descent-override: 28%; | ||
src: local('Times New Roman'); | src: local('Times New Roman'); | ||
} | } | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'Crimson Text-fallback'; | ||
size-adjust: | size-adjust: 102%; | ||
ascent-override: | ascent-override: 95%; | ||
descent-override: | descent-override: 30%; | ||
src: local('Georgia'); | src: local('Georgia'); | ||
} | } | ||
Line 30: | Line 30: | ||
/* Border */ | /* Border */ | ||
/* Border color */ | /* Border color */ | ||
-- | --hg-border-color-base: rgba(139, 69, 19, 0.15); | ||
-- | --hg-border-color-subtle: rgba(139, 69, 19, 0.08); | ||
-- | --hg-border-color-interactive: rgba(178, 34, 34, 0.25); | ||
/* Border radius */ | /* Border radius */ | ||
-- | --hg-border-radius-sharp: 0; | ||
-- | --hg-border-radius-small: 4px; | ||
-- | --hg-border-radius-medium: 8px; | ||
-- | --hg-border-radius-large: 12px; | ||
-- | --hg-border-radius-pill: 9999px; | ||
-- | --hg-border-radius-circle: 50%; | ||
/* Shorthand */ | /* Shorthand */ | ||
-- | --hg-border-base: 1px solid var(--hg-border-color-base); | ||
/* Color */ | /* Color */ | ||
/* Text color */ | /* Text color */ | ||
-- | --hg-color-emphasized: #1a0f0a; | ||
-- | --hg-color-base: #2c1810; | ||
-- | --hg-color-subtle: #5d4037; | ||
-- | --hg-color-inverted-progressive: #fff8dc; | ||
-- | --hg-color-link: #8b1538; | ||
/* Background color */ | /* Background color - Parchment and warm tones */ | ||
-- | --hg-color-surface-0: #fff8dc; | ||
-- | --hg-color-surface-1: #faf0e6; | ||
-- | --hg-color-surface-2: #f5deb3; | ||
-- | --hg-color-surface-3: #f0e68c; | ||
-- | --hg-color-surface-4: #eee8aa; | ||
-- | --hg-color-surface-5: #daa520; | ||
/* Progressive color */ | /* Progressive color - Gryffindor crimson */ | ||
-- | --hg-color-progressive: #b22222; | ||
-- | --hg-color-progressive--hover: #dc143c; | ||
-- | --hg-color-progressive--active: #8b1538; | ||
/* Font */ | /* Font */ | ||
/* Font family */ | /* Font family */ | ||
-- | --hg-font-family-heading: 'Cinzel', 'Cinzel-fallback', serif; | ||
-- | --hg-font-family-body: 'Crimson Text', 'Crimson Text-fallback', serif; | ||
/* Font size */ | /* Font size */ | ||
-- | --hg-font-size-x-small: 0.8125rem; | ||
-- | --hg-font-size-small: 0.875rem; | ||
-- | --hg-font-size-medium: 1rem; | ||
-- | --hg-font-size-large: 1.125rem; | ||
-- | --hg-font-size-x-large: 1.25rem; | ||
-- | --hg-font-size-xx-large: 1.5rem; | ||
-- | --hg-font-size-xxx-large: 2rem; | ||
/* Font weight */ | /* Font weight */ | ||
-- | --hg-font-weight-regular: 400; | ||
-- | --hg-font-weight-medium: 500; | ||
-- | --hg-font-weight-semibold: 600; | ||
/* Line height */ | /* Line height */ | ||
-- | --hg-line-height-xxx-small: 1.25; | ||
-- | --hg-line-height-xx-small: 1.375; | ||
-- | --hg-line-height: 1.6; | ||
/* Opacity */ | /* Opacity */ | ||
-- | --hg-opacity-pattern: 0.06; | ||
/* Codex token backport */ | /* Codex token backport */ | ||
/* Quiet color */ | /* Quiet color */ | ||
--background-color-button-quiet--hover: rgba(0, 0, 0, 0. | --background-color-button-quiet--hover: rgba(139, 69, 19, 0.1); | ||
--background-color-button-quiet--active: rgba(0, 0, 0, 0. | --background-color-button-quiet--active: rgba(139, 69, 19, 0.15); | ||
} | |||
/* Dark theme variables (Great Hall atmosphere) */ | |||
:root.skin-theme-clientpref-night { | |||
/* Border */ | |||
--hg-border-color-base: rgba(218, 165, 32, 0.25); | |||
--hg-border-color-subtle: rgba(218, 165, 32, 0.12); | |||
--hg-border-color-interactive: rgba(218, 165, 32, 0.35); | |||
/* Color */ | |||
/* Text color */ | |||
--hg-color-emphasized: #f4e4bc; | |||
--hg-color-base: #e6daa6; | |||
--hg-color-subtle: #d4af8c; | |||
--hg-color-inverted-progressive: #2c1810; | |||
--hg-color-link: #daa520; | |||
/* Background color - Castle stone and warm wood */ | |||
--hg-color-surface-0: #1a0f0a; | |||
--hg-color-surface-1: #2c1810; | |||
--hg-color-surface-2: #3d2317; | |||
--hg-color-surface-3: #4a2c1a; | |||
--hg-color-surface-4: #5c3317; | |||
--hg-color-surface-5: #6b3d1f; | |||
/* Progressive color - Golden candlelight */ | |||
--hg-color-progressive: #daa520; | |||
--hg-color-progressive--hover: #ffd700; | |||
--hg-color-progressive--active: #b8860b; | |||
/* Opacity */ | |||
--hg-opacity-pattern: 0.08; | |||
/* Codex token backport */ | |||
--background-color-button-quiet--hover: rgba(218, 165, 32, 0.12); | |||
--background-color-button-quiet--active: rgba(218, 165, 32, 0.18); | |||
} | |||
/* Auto theme (follows system preference) */ | |||
@media screen and (prefers-color-scheme: dark) { | |||
:root.skin-theme-clientpref-os { | |||
/* Border */ | |||
--hg-border-color-base: rgba(218, 165, 32, 0.25); | |||
--hg-border-color-subtle: rgba(218, 165, 32, 0.12); | |||
--hg-border-color-interactive: rgba(218, 165, 32, 0.35); | |||
/* Color */ | |||
/* Text color */ | |||
--hg-color-emphasized: #f4e4bc; | |||
--hg-color-base: #e6daa6; | |||
--hg-color-subtle: #d4af8c; | |||
--hg-color-inverted-progressive: #2c1810; | |||
--hg-color-link: #daa520; | |||
/* Background color */ | |||
--hg-color-surface-0: #1a0f0a; | |||
--hg-color-surface-1: #2c1810; | |||
--hg-color-surface-2: #3d2317; | |||
--hg-color-surface-3: #4a2c1a; | |||
--hg-color-surface-4: #5c3317; | |||
--hg-color-surface-5: #6b3d1f; | |||
/* Progressive color */ | |||
--hg-color-progressive: #daa520; | |||
--hg-color-progressive--hover: #ffd700; | |||
--hg-color-progressive--active: #b8860b; | |||
/* Opacity */ | |||
--hg-opacity-pattern: 0.08; | |||
/* Codex token backport */ | |||
--background-color-button-quiet--hover: rgba(218, 165, 32, 0.12); | |||
--background-color-button-quiet--active: rgba(218, 165, 32, 0.18); | |||
} | |||
} | } | ||
Line 100: | Line 170: | ||
blockquote { | blockquote { | ||
padding-left: 1rem; | padding-left: 1rem; | ||
border-left: 2px solid var(-- | border-left: 2px solid var(--hg-border-color-base); | ||
font-style: italic; | font-style: italic; | ||
/* Fallback for non-Chromium browsers */ | /* Fallback for non-Chromium browsers */ | ||
Line 109: | Line 179: | ||
blockquote cite { | blockquote cite { | ||
color: var(-- | color: var(--hg-color-subtle); | ||
font-size: var(-- | font-size: var(--hg-font-size-x-small); | ||
font-style: normal; | font-style: normal; | ||
} | } | ||
Line 131: | Line 201: | ||
/* LINKS */ | /* LINKS */ | ||
a { | a { | ||
/*color: var(-- | /*color: var(--hg-color-link);*/ | ||
} | } | ||
Line 144: | Line 214: | ||
} | } | ||
/* SEQUENCE TEMPLATE */ | /* SEQUENCE TEMPLATE - Adjusted for Hogwarts house colors */ | ||
td.seqwhite a { | td.seqwhite a { | ||
Line 153: | Line 223: | ||
} | } | ||
td.seqcream a { | td.seqcream a { | ||
color: # | color: #fff8dc !important; | ||
} | } | ||
td.seqcream div span a { | td.seqcream div span a { | ||
color: # | color: #fff8dc !important; | ||
} | } | ||
td.seqgrey a { | td.seqgrey a { | ||
color: # | color: #2c1810 !important; | ||
} | } | ||
td.seqgrey div span a { | td.seqgrey div span a { | ||
color: # | color: #2c1810 !important; | ||
} | } | ||
/* REFERENCES TEMPLATE */ | /* REFERENCES TEMPLATE */ | ||
ol.references { | ol.references { | ||
font-size: var(-- | font-size: var(--hg-font-size-x-small); | ||
margin-top: 0px; | margin-top: 0px; | ||
padding-top: 0px; | padding-top: 0px; | ||
Line 175: | Line 245: | ||
} | } | ||
ol.references > li:target { | ol.references > li:target { | ||
background-color: | background-color: rgba(218, 165, 32, 0.2); | ||
} | } | ||
sup.reference:target { | sup.reference:target { | ||
background-color: | background-color: rgba(218, 165, 32, 0.2); | ||
} | } | ||
Line 202: | Line 272: | ||
} | } | ||
/* Updated infobox gradients with Hogwarts-inspired colors */ | |||
.pi-type-film .pi-secondary-background { | .pi-type-film .pi-secondary-background { | ||
background: rgb( | background: rgb(255, 248, 220); | ||
background: linear-gradient( | background: linear-gradient( | ||
90deg, | 90deg, | ||
rgba( | rgba(255, 248, 220, 1) 0%, | ||
rgba( | rgba(218, 165, 32, 0.3) 35%, | ||
rgba( | rgba(139, 69, 19, 0.5) 100% | ||
); | ); | ||
} | } | ||
Line 235: | Line 306: | ||
/* Border */ | /* Border */ | ||
/* Border color */ | /* Border color */ | ||
-- | --hg-border-color-base: #8b4513 !important; | ||
-- | --hg-border-color-subtle: #ddd !important; | ||
-- | --hg-border-color-interactive: #000 !important; | ||
/* Color */ | /* Color */ | ||
/* Text color */ | /* Text color */ | ||
-- | --hg-color-emphasized: #000 !important; | ||
-- | --hg-color-base: #2c1810 !important; | ||
-- | --hg-color-subtle: #5d4037 !important; | ||
/* Background color */ | /* Background color */ | ||
-- | --hg-color-surface-0: #fff !important; | ||
-- | --hg-color-surface-1: #fff !important; | ||
-- | --hg-color-surface-2: #fff !important; | ||
-- | --hg-color-surface-3: #fff !important; | ||
-- | --hg-color-surface-4: #fff !important; | ||
-- | --hg-color-surface-5: #fff !important; | ||
/* Progressive color */ | /* Progressive color */ | ||
-- | --hg-color-progressive: #000 !important; | ||
} | } | ||
} | } | ||
Line 259: | Line 330: | ||
max-width: 50ch; | max-width: 50ch; | ||
padding: 12px; | padding: 12px; | ||
background-color: var(--hg-color-surface-1); | |||
border: 1px solid var(--hg-border-color-base); | |||
border-radius: var(--hg-border-radius-medium); | |||
color: var(--hg-color-base); | |||
} | } | ||
/* </nowiki></pre> */ | /* </nowiki></pre> */ |
Latest revision as of 23:41, 29 August 2025
/* <pre><nowiki> */ /* Hogwarts Gateway theme */ /* Import fonts from Google Fonts: Cinzel (elegant, magical headings) and Crimson Text (readable body text with old-world charm) */ @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap'); /* * Use customized system fonts as fallback for font stack * Needed to avoid layout shift */ @font-face { font-family: 'Cinzel-fallback'; size-adjust: 98%; ascent-override: 105%; descent-override: 28%; src: local('Times New Roman'); } @font-face { font-family: 'Crimson Text-fallback'; size-adjust: 102%; ascent-override: 95%; descent-override: 30%; src: local('Georgia'); } /* CSS variables */ :root { /* Border */ /* Border color */ --hg-border-color-base: rgba(139, 69, 19, 0.15); --hg-border-color-subtle: rgba(139, 69, 19, 0.08); --hg-border-color-interactive: rgba(178, 34, 34, 0.25); /* Border radius */ --hg-border-radius-sharp: 0; --hg-border-radius-small: 4px; --hg-border-radius-medium: 8px; --hg-border-radius-large: 12px; --hg-border-radius-pill: 9999px; --hg-border-radius-circle: 50%; /* Shorthand */ --hg-border-base: 1px solid var(--hg-border-color-base); /* Color */ /* Text color */ --hg-color-emphasized: #1a0f0a; --hg-color-base: #2c1810; --hg-color-subtle: #5d4037; --hg-color-inverted-progressive: #fff8dc; --hg-color-link: #8b1538; /* Background color - Parchment and warm tones */ --hg-color-surface-0: #fff8dc; --hg-color-surface-1: #faf0e6; --hg-color-surface-2: #f5deb3; --hg-color-surface-3: #f0e68c; --hg-color-surface-4: #eee8aa; --hg-color-surface-5: #daa520; /* Progressive color - Gryffindor crimson */ --hg-color-progressive: #b22222; --hg-color-progressive--hover: #dc143c; --hg-color-progressive--active: #8b1538; /* Font */ /* Font family */ --hg-font-family-heading: 'Cinzel', 'Cinzel-fallback', serif; --hg-font-family-body: 'Crimson Text', 'Crimson Text-fallback', serif; /* Font size */ --hg-font-size-x-small: 0.8125rem; --hg-font-size-small: 0.875rem; --hg-font-size-medium: 1rem; --hg-font-size-large: 1.125rem; --hg-font-size-x-large: 1.25rem; --hg-font-size-xx-large: 1.5rem; --hg-font-size-xxx-large: 2rem; /* Font weight */ --hg-font-weight-regular: 400; --hg-font-weight-medium: 500; --hg-font-weight-semibold: 600; /* Line height */ --hg-line-height-xxx-small: 1.25; --hg-line-height-xx-small: 1.375; --hg-line-height: 1.6; /* Opacity */ --hg-opacity-pattern: 0.06; /* Codex token backport */ /* Quiet color */ --background-color-button-quiet--hover: rgba(139, 69, 19, 0.1); --background-color-button-quiet--active: rgba(139, 69, 19, 0.15); } /* Dark theme variables (Great Hall atmosphere) */ :root.skin-theme-clientpref-night { /* Border */ --hg-border-color-base: rgba(218, 165, 32, 0.25); --hg-border-color-subtle: rgba(218, 165, 32, 0.12); --hg-border-color-interactive: rgba(218, 165, 32, 0.35); /* Color */ /* Text color */ --hg-color-emphasized: #f4e4bc; --hg-color-base: #e6daa6; --hg-color-subtle: #d4af8c; --hg-color-inverted-progressive: #2c1810; --hg-color-link: #daa520; /* Background color - Castle stone and warm wood */ --hg-color-surface-0: #1a0f0a; --hg-color-surface-1: #2c1810; --hg-color-surface-2: #3d2317; --hg-color-surface-3: #4a2c1a; --hg-color-surface-4: #5c3317; --hg-color-surface-5: #6b3d1f; /* Progressive color - Golden candlelight */ --hg-color-progressive: #daa520; --hg-color-progressive--hover: #ffd700; --hg-color-progressive--active: #b8860b; /* Opacity */ --hg-opacity-pattern: 0.08; /* Codex token backport */ --background-color-button-quiet--hover: rgba(218, 165, 32, 0.12); --background-color-button-quiet--active: rgba(218, 165, 32, 0.18); } /* Auto theme (follows system preference) */ @media screen and (prefers-color-scheme: dark) { :root.skin-theme-clientpref-os { /* Border */ --hg-border-color-base: rgba(218, 165, 32, 0.25); --hg-border-color-subtle: rgba(218, 165, 32, 0.12); --hg-border-color-interactive: rgba(218, 165, 32, 0.35); /* Color */ /* Text color */ --hg-color-emphasized: #f4e4bc; --hg-color-base: #e6daa6; --hg-color-subtle: #d4af8c; --hg-color-inverted-progressive: #2c1810; --hg-color-link: #daa520; /* Background color */ --hg-color-surface-0: #1a0f0a; --hg-color-surface-1: #2c1810; --hg-color-surface-2: #3d2317; --hg-color-surface-3: #4a2c1a; --hg-color-surface-4: #5c3317; --hg-color-surface-5: #6b3d1f; /* Progressive color */ --hg-color-progressive: #daa520; --hg-color-progressive--hover: #ffd700; --hg-color-progressive--active: #b8860b; /* Opacity */ --hg-opacity-pattern: 0.08; /* Codex token backport */ --background-color-button-quiet--hover: rgba(218, 165, 32, 0.12); --background-color-button-quiet--active: rgba(218, 165, 32, 0.18); } } html { /* Force serif fonts to format number on the same line */ font-variant-numeric: lining-nums; } /* Blockquote */ blockquote { padding-left: 1rem; border-left: 2px solid var(--hg-border-color-base); font-style: italic; /* Fallback for non-Chromium browsers */ text-wrap: balance; /* Only works on Chromium browsers */ text-wrap: pretty; } blockquote cite { color: var(--hg-color-subtle); font-size: var(--hg-font-size-x-small); font-style: normal; } blockquote cite::before { content: '―'; margin-right: 0.5em; } blockquote > p:first-child::before { content: open-quote; } /* <cite> is wrapped in the last <p> */ blockquote:has(cite) > p:nth-last-child(2)::after, blockquote:not(:has(cite)) > p:last-child::after { content: close-quote; } /* LINKS */ a { /*color: var(--hg-color-link);*/ } .underlinelink a { text-decoration: underline !important; } .nounderlinelink a { text-decoration: none !important; } .nounderlinelink a:hover { text-decoration: underline !important; } /* SEQUENCE TEMPLATE - Adjusted for Hogwarts house colors */ td.seqwhite a { color: #ffffff !important; } td.seqwhite div span a { color: #ffffff !important; } td.seqcream a { color: #fff8dc !important; } td.seqcream div span a { color: #fff8dc !important; } td.seqgrey a { color: #2c1810 !important; } td.seqgrey div span a { color: #2c1810 !important; } /* REFERENCES TEMPLATE */ ol.references { font-size: var(--hg-font-size-x-small); margin-top: 0px; padding-top: 0px; } .references-small { font-size: 0.75rem; } ol.references > li:target { background-color: rgba(218, 165, 32, 0.2); } sup.reference:target { background-color: rgba(218, 165, 32, 0.2); } /* Infobox customizations so they scale for desktop and mobile appropriately */ @media only screen and (max-width: 600px) { .tginfobox { min-width: 100%; } } @media only screen and (min-width: 601px) { .tginfobox { width: 275px; } } @media screen and (max-width: 600px) { .spotify, .template-month { float: center; margin-left: 10px; } } /* Updated infobox gradients with Hogwarts-inspired colors */ .pi-type-film .pi-secondary-background { background: rgb(255, 248, 220); background: linear-gradient( 90deg, rgba(255, 248, 220, 1) 0%, rgba(218, 165, 32, 0.3) 35%, rgba(139, 69, 19, 0.5) 100% ); } .pi-data { display: flex; align-items: center; } .spotify { float: right; width: 300px; height: 100px; } @media screen and (max-width: 850px) { #p-logo-text { /* Tighten the logo a bit more to the left on mobile devices to prevent overlapping */ left: 3em; } } /* Print styles */ @media print { :root { /* Border */ /* Border color */ --hg-border-color-base: #8b4513 !important; --hg-border-color-subtle: #ddd !important; --hg-border-color-interactive: #000 !important; /* Color */ /* Text color */ --hg-color-emphasized: #000 !important; --hg-color-base: #2c1810 !important; --hg-color-subtle: #5d4037 !important; /* Background color */ --hg-color-surface-0: #fff !important; --hg-color-surface-1: #fff !important; --hg-color-surface-2: #fff !important; --hg-color-surface-3: #fff !important; --hg-color-surface-4: #fff !important; --hg-color-surface-5: #fff !important; /* Progressive color */ --hg-color-progressive: #000 !important; } } /* Limit FloatingUI content width */ .ext-floatingui-floating-content { max-width: 50ch; padding: 12px; background-color: var(--hg-color-surface-1); border: 1px solid var(--hg-border-color-base); border-radius: var(--hg-border-radius-medium); color: var(--hg-color-base); } /* </nowiki></pre> */