MediaWiki:Common.css: Difference between revisions
Full OSRS-style design system v1 |
Refined OSRS Global Layout & Colors |
||
| Line 1: | Line 1: | ||
/* ============================================================ | /* ============================================================ | ||
WINDS OF VALEN WIKI — | WINDS OF VALEN WIKI — Global CSS Overrides | ||
============================================================ */ | ============================================================ */ | ||
/* ---- Google Fonts ----------------------------------------- */ | /* ---- Google Fonts ----------------------------------------- */ | ||
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@700&family=Inter:wght@400;600&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@700&family=Inter:wght@400;600&display=swap'); | ||
:root { | |||
--header-bg-image: url('/images/header-bg-placeholder.jpg'); /* Placeholder tiled bg */ | |||
} | |||
/* ============================================================ | /* ============================================================ | ||
GLOBAL | GLOBAL BACKGROUND & BORDERS | ||
============================================================ */ | ============================================================ */ | ||
body { | body, body.skin-vector-2022 { | ||
background-color: #e1d5be !important; | |||
color-scheme: light; | color-scheme: light; | ||
font-family: 'PT Serif', Georgia, | font-family: 'PT Serif', Georgia, serif; | ||
} | |||
#content, .mw-body { | |||
background-color: #f1e7d3 !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | |||
#mw-content-text { | |||
background-color: transparent !important; | |||
} | |||
/* Hide appearance / text / width / color tools and right rail globally */ | |||
#vector-appearance, | |||
#vector-page-tools-pinned-container, | |||
.vector-column-end { | |||
display: none !important; | |||
} | } | ||
/* ---- | /* ============================================================ | ||
HEADER & TOP NAVIGATION | |||
============================================================ */ | |||
.vector-header-container, | |||
.mw-header { | |||
background-image: var(--header-bg-image); | |||
background-repeat: repeat-x; | |||
background-position: top left; | |||
background-color: #4a3c28; /* Fallback */ | |||
} | |||
/* Precise Logo Positioning */ | |||
#p-logo, .mw-logo { | |||
position: absolute !important; | |||
top: 10px !important; | |||
left: 10px !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
z-index: 999; | |||
} | |||
#p-logo img, .mw-logo img, .mw-logo-icon { | |||
width: 140px !important; | |||
height: auto !important; | |||
} | } | ||
/* | /* Navigation Top Bar */ | ||
.vector-page-toolbar { | |||
background: # | background-color: #4a3c28 !important; | ||
border: 1px solid # | border-bottom: 1px solid #2a2214 !important; | ||
} | } | ||
.vector-page-tabs .mw-list-item a { | |||
color: #eedfad !important; | |||
color: # | |||
} | } | ||
.vector-page-tabs .mw-list-item.selected a, | |||
.vector-page-tabs .mw-list-item a:hover { | |||
border: | color: #ffffff !important; | ||
border-bottom: 2px solid #eedfad !important; | |||
} | } | ||
/* ============================================================ | /* ============================================================ | ||
MAIN PAGE HIDE H1 | |||
============================================================ */ | ============================================================ */ | ||
.page-Main_Page #firstHeading, | .page-Main_Page #firstHeading, | ||
.page-Main_Page .mw-first-heading { | .page-Main_Page .mw-first-heading { | ||
display: none !important; | display: none !important; | ||
} | |||
.page-Main_Page .mw-body-content { | |||
padding-top: 0 !important; | |||
} | } | ||
/* | /* ============================================================ | ||
. | WIKITABLES | ||
============================================================ */ | |||
table.wikitable { | |||
background: #fcf6e8; | |||
border: 1px solid #a19277; | |||
color: #4a3c28; | |||
} | } | ||
. | table.wikitable > * > tr > th { | ||
background: #b3a07d; | |||
border: 1px solid #a19277; | |||
color: #4a3c28; | |||
} | |||
table.wikitable > * > tr > td { | |||
background: #fcf6e8; | |||
border: 1px solid #a19277; | |||
} | } | ||
/* ============================================================ | /* ============================================================ | ||
MAIN PAGE | MAIN PAGE COMPONENTS | ||
============================================================ */ | ============================================================ */ | ||
.wov-main-page { | .wov-main-page { | ||
| Line 68: | Line 114: | ||
} | } | ||
/* | /* Welcome Box */ | ||
.wov-welcome-box { | .wov-welcome-box { | ||
background: #fcf6e8; | background: #fcf6e8; | ||
| Line 86: | Line 130: | ||
line-height: 1.2; | line-height: 1.2; | ||
} | } | ||
/* | /* Layout Grid */ | ||
.wov-layout-grid { | .wov-layout-grid { | ||
display: flex; | display: flex; | ||
| Line 107: | Line 142: | ||
} | } | ||
.wov-side-col { | .wov-side-col { | ||
width: | width: 300px; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
/* | /* Parchment Box */ | ||
.wov-parchment-box { | .wov-parchment-box { | ||
background: # | background: #fcf6e8; /* Inside content area block */ | ||
border: 1px solid #a19277; | border: 1px solid #a19277; | ||
margin-bottom: 14px; | margin-bottom: 14px; | ||
| Line 122: | Line 154: | ||
} | } | ||
/* | /* Section Header */ | ||
.wov-section-header { | .wov-section-header { | ||
font-family: 'PT Serif', Georgia, serif; | font-family: 'PT Serif', Georgia, serif; | ||
| Line 131: | Line 161: | ||
color: #4a3c28; | color: #4a3c28; | ||
padding: 7px 14px 6px; | padding: 7px 14px 6px; | ||
border-bottom: | border-bottom: 1px solid #a19277; | ||
background: # | background: #f1e7d3; | ||
letter-spacing: 0.015em; | letter-spacing: 0.015em; | ||
} | } | ||
.wov-section-header-dark { | .wov-section-header-dark { | ||
| Line 142: | Line 169: | ||
font-size: 0.97em; | font-size: 0.97em; | ||
font-weight: bold; | font-weight: bold; | ||
color: # | color: #ffffff; | ||
padding: 8px 14px 7px; | padding: 8px 14px 7px; | ||
border-bottom: 1px solid rgba(255,255,255,0. | border-bottom: 1px solid rgba(255,255,255,0.2); | ||
background: #1e3a6e; | |||
} | } | ||
/* | /* Updates Row */ | ||
.wov-updates-row { | .wov-updates-row { | ||
display: flex; | display: flex; | ||
| Line 159: | Line 184: | ||
padding: 10px 14px 12px; | padding: 10px 14px 12px; | ||
border-right: 1px solid #a19277; | border-right: 1px solid #a19277; | ||
background: # | background: #fcf6e8; | ||
} | } | ||
.wov-update-card:last-child { | .wov-update-card:last-child { | ||
| Line 189: | Line 214: | ||
.wov-update-snippet { | .wov-update-snippet { | ||
font-size: 0.84em; | font-size: 0.84em; | ||
color: # | color: #4a3c28; | ||
margin: 0; | margin: 0; | ||
line-height: 1.55; | line-height: 1.55; | ||
} | } | ||
/* | /* Categories Grid */ | ||
.wov-categories-grid { | .wov-categories-grid { | ||
display: grid; | display: grid; | ||
| Line 207: | Line 230: | ||
border: 1px solid #a19277; | border: 1px solid #a19277; | ||
overflow: hidden; | overflow: hidden; | ||
background: # | background: #ffffff; | ||
display: flex; | |||
flex-direction: column; | |||
} | } | ||
.wov-cat-img-box { | .wov-cat-img-box { | ||
| Line 215: | Line 239: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
height: 90px; | |||
padding: | padding: 0; | ||
border-bottom: 1px solid #a19277; | |||
} | } | ||
.wov-cat-img-box img { | |||
max-width: 100%; | |||
.wov-cat-img-box | max-height: 100%; | ||
max-width: | |||
max-height: | |||
object-fit: contain; | object-fit: contain; | ||
display: block; | display: block; | ||
} | } | ||
.wov-cat-label { | .wov-cat-label { | ||
background: # | background: #fcf6e8; | ||
padding: 6px; | |||
padding: | |||
text-align: center; | text-align: center; | ||
font-size: 0.84em; | font-size: 0.84em; | ||
} | } | ||
.wov-cat-label a { | .wov-cat-label a { | ||
color: # | color: #611313 !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.wov-cat-label a:hover { | .wov-cat-label a:hover { | ||
text-decoration: underline !important; | |||
} | } | ||
/* | /* Popular Pages */ | ||
.wov-popular-inner { | .wov-popular-inner { | ||
padding: 10px; | padding: 10px; | ||
background: # | background: #f1e7d3; | ||
} | } | ||
.wov-popular-grid { | .wov-popular-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(3, 1fr); | grid-template-columns: repeat(3, 1fr); | ||
gap: | gap: 8px; | ||
} | } | ||
.wov-popular-btn { | .wov-popular-btn { | ||
display: block; | display: block; | ||
background: #5c4e38; | background: #5c4e38; | ||
border: 1px solid # | border: 1px solid #4a3c28; | ||
color: #ffffff !important; | |||
color: # | font-family: 'Inter', sans-serif; | ||
font-family: 'Inter | font-size: 0.85em; | ||
font-size: 0. | |||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 12px 10px; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
line-height: 1.3; | line-height: 1.3; | ||
} | } | ||
.wov-popular-btn:hover { | .wov-popular-btn:hover { | ||
background: #4a3c28 | background: #4a3c28; | ||
} | } | ||
/* | /* Skills Grid */ | ||
.wov-skills-inner { | .wov-skills-inner { | ||
padding: 8px 10px 10px; | padding: 8px 10px 10px; | ||
| Line 294: | Line 302: | ||
} | } | ||
.wov-skill-item { | .wov-skill-item { | ||
padding: | padding: 6px 10px; | ||
font-size: 0.85em; | font-size: 0.85em; | ||
border-bottom: 1px solid # | border-bottom: 1px solid #a19277; | ||
border-right: 1px solid # | border-right: 1px solid #a19277; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: | gap: 6px; | ||
} | } | ||
.wov-skill-item:nth-child(3n) { | .wov-skill-item:nth-child(3n) { | ||
| Line 307: | Line 314: | ||
} | } | ||
.wov-skill-item img { | .wov-skill-item img { | ||
width: | width: 18px !important; | ||
height: | height: 18px !important; | ||
object-fit: contain; | object-fit: contain; | ||
} | } | ||
.wov-skill-item a { | .wov-skill-item a { | ||
color: # | color: #4a3c28 !important; | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: bold; | |||
} | } | ||
.wov-skill-item a:hover { | .wov-skill-item a:hover { | ||
color: #a61c1c !important; | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* | /* Sidebar Widgets */ | ||
.wov-widget { | |||
background: #fcf6e8; | |||
.wov-widget | |||
background: # | |||
border: 1px solid #a19277; | border: 1px solid #a19277; | ||
margin-bottom: | margin-bottom: 14px; | ||
} | } | ||
.wov- | .wov-widget-body { | ||
padding: 10px 14px; | padding: 10px 14px; | ||
font-size: 0. | font-size: 0.85em; | ||
color: #4a3c28; | color: #4a3c28; | ||
line-height: | line-height: 1.6; | ||
} | } | ||
.wov- | .wov-widget-body dl { | ||
display: grid; | display: grid; | ||
grid-template-columns: auto 1fr; | grid-template-columns: auto 1fr; | ||
gap: 0 | gap: 4px 8px; | ||
margin: 0; | |||
} | } | ||
.wov- | .wov-widget-body dt { | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.wov- | .wov-widget-body dd { | ||
margin: 0; | margin: 0; | ||
text-align: right; | text-align: right; | ||
} | } | ||
/* | /* Discord Community Box */ | ||
.wov-discord-widget { | .wov-discord-widget { | ||
background: | background: #1e3a6e; | ||
border: 1px solid # | border: 1px solid #14284f; | ||
margin-bottom: | margin-bottom: 14px; | ||
} | } | ||
.wov-discord-body { | .wov-discord-body { | ||
padding: | padding: 12px 14px; | ||
} | } | ||
.wov-discord-desc { | .wov-discord-desc { | ||
font-size: 0. | font-size: 0.85em; | ||
color: # | color: #e2e8f0; | ||
line-height: 1. | line-height: 1.5; | ||
margin | margin: 0 0 12px; | ||
} | } | ||
.wov-discord-link { | |||
display: | /* Simple solid HTML button for Discord */ | ||
.wov-discord-btn-link { | |||
display: block; | |||
background: #5865F2; | background: #5865F2; | ||
color: #ffffff !important; | |||
text-align: center; | |||
font-family: 'Inter', sans-serif; | font-family: 'Inter', sans-serif; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 0. | font-size: 0.9em; | ||
padding: | padding: 10px; | ||
border-radius: 4px; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
border: 1px solid #4752c4; | |||
} | } | ||
.wov-discord-link:hover { | .wov-discord-btn-link:hover { | ||
background: #4752c4 | background: #4752c4; | ||
} | } | ||
/* | /* Help Improve */ | ||
.wov- | .wov-help-list { | ||
margin: 6px 0 0; | |||
padding-left: 16px; | |||
} | } | ||
.wov-help- | .wov-help-list a { | ||
color: #a61c1c !important; | |||
color: # | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.wov-help- | .wov-help-list a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
@media screen and (max-width: 800px) { | @media screen and (max-width: 800px) { | ||
.wov-layout-grid { | .wov-layout-grid { flex-direction: column; } | ||
.wov-side-col { width: 100%; } | |||
.wov-categories-grid, .wov-popular-grid, .wov-skills-grid { | |||
.wov-side-col { | |||
.wov-categories-grid | |||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
} | } | ||
} | } | ||