MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
OSRS native DOM architecture styling |
OSRS Typography & parchment styling |
||
| Line 1: | Line 1: | ||
/* ========================================================================== | /* ========================================================================== | ||
OSRS | OSRS EXACT REPLICA DESIGN SYSTEM | ||
========================================================================== */ | ========================================================================== */ | ||
/* Custom Fonts */ | |||
@font-face { | |||
/* | font-family: 'Kingthings Petrock'; | ||
src: url('/resources/assets/fonts/Kingthings_Petrock.woff2') format('woff2'); | |||
} | } | ||
@font-face { | |||
font-family: 'League Spartan'; | |||
src: url('/resources/assets/fonts/LeagueSpartan-Bold.woff2') format('woff2'); | |||
} | } | ||
@font-face { | |||
font-family: 'Museo Sans'; | |||
src: url('/resources/assets/fonts/MuseoSans-500.woff2') format('woff2'); | |||
} | } | ||
@font-face { | |||
font-family: 'RuneScape Chat'; | |||
src: url('/resources/assets/fonts/RuneScape-Chat.woff2') format('woff2'); | |||
} | } | ||
/* Base Body Override */ | |||
body { | |||
background: url('/resources/assets/background_stone.png') repeat !important; | |||
background-color: #2b2b2b !important; | |||
font-family: 'Museo Sans', Arial, sans-serif; | |||
} | } | ||
/* | /* Content Parchment Container */ | ||
#content { | |||
background: url('/resources/assets/background_parchment.png') repeat #f1e7d3 !important; | |||
border: 3px solid #3d2b1f !important; | |||
border-radius: 4px; | |||
margin-top: 15px; | |||
} | } | ||
#mw-content-text { | |||
background-color: transparent !important; | |||
} | } | ||
/* | /* Header Styling */ | ||
h1, h2, h3, h4, h5, h6 { | |||
font-family: 'Kingthings Petrock', serif; | |||
font- | |||
color: #4a3c28; | color: #4a3c28; | ||
border-bottom: 1px solid #b3a07d; /* Gold trim */ | |||
} | } | ||
/* Margin Collapse Fix for Nested Lists/Tables in columns */ | |||
.mw-parser-output .column-grid > * { | |||
margin-top: 0; | |||
. | |||
. | |||
margin- | |||
} | } | ||
. | .mw-parser-output .column-grid > *:last-child { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | } | ||
/* | /* Responsive Scaling */ | ||
@media screen and (max-width: 980px) { | |||
#content { margin: 10px; border-width: 2px; } | |||
} | } | ||
/* --- | /* Reader Mode */ | ||
body.reader-mode-active #mw-panel, | |||
display: | body.reader-mode-active #mw-head { | ||
display: none; | |||
} | } | ||
. | body.reader-mode-active #content { | ||
margin-left: auto; | |||
margin-right: auto; | |||
max-width: 960px; | |||
padding: 40px; | |||
margin- | |||
margin-right: | |||
} | } | ||
Revision as of 01:39, 11 July 2026
/* ==========================================================================
OSRS EXACT REPLICA DESIGN SYSTEM
========================================================================== */
/* Custom Fonts */
@font-face {
font-family: 'Kingthings Petrock';
src: url('/resources/assets/fonts/Kingthings_Petrock.woff2') format('woff2');
}
@font-face {
font-family: 'League Spartan';
src: url('/resources/assets/fonts/LeagueSpartan-Bold.woff2') format('woff2');
}
@font-face {
font-family: 'Museo Sans';
src: url('/resources/assets/fonts/MuseoSans-500.woff2') format('woff2');
}
@font-face {
font-family: 'RuneScape Chat';
src: url('/resources/assets/fonts/RuneScape-Chat.woff2') format('woff2');
}
/* Base Body Override */
body {
background: url('/resources/assets/background_stone.png') repeat !important;
background-color: #2b2b2b !important;
font-family: 'Museo Sans', Arial, sans-serif;
}
/* Content Parchment Container */
#content {
background: url('/resources/assets/background_parchment.png') repeat #f1e7d3 !important;
border: 3px solid #3d2b1f !important;
border-radius: 4px;
margin-top: 15px;
}
#mw-content-text {
background-color: transparent !important;
}
/* Header Styling */
h1, h2, h3, h4, h5, h6 {
font-family: 'Kingthings Petrock', serif;
color: #4a3c28;
border-bottom: 1px solid #b3a07d; /* Gold trim */
}
/* Margin Collapse Fix for Nested Lists/Tables in columns */
.mw-parser-output .column-grid > * {
margin-top: 0;
}
.mw-parser-output .column-grid > *:last-child {
margin-bottom: 0;
}
/* Responsive Scaling */
@media screen and (max-width: 980px) {
#content { margin: 10px; border-width: 2px; }
}
/* Reader Mode */
body.reader-mode-active #mw-panel,
body.reader-mode-active #mw-head {
display: none;
}
body.reader-mode-active #content {
margin-left: auto;
margin-right: auto;
max-width: 960px;
padding: 40px;
}