MediaWiki:Common.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
:root {
/* ---------------------------------------------
    --body-background-image: url('https://wiki.heavenlyps.net/resources/assets/bg.png'); /* small decorative image */
  OSRS Wiki-Inspired Common CSS
    --body-background-color: #c0a886; /* solid gold-beige base color */
--------------------------------------------- */
    --content-background-color: #fdf9f3; /* article background */
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --body-light: #fdfaf4;
    --body-dark: #b89e74;
    --body-mid: #e0d5c3;
    --background-link-color: #4c4c4c;
}


/* Set small image in top-left with background color fill */
/* Consistent font and base layout */
body {
body,
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
table,
td,
th,
input,
select,
textarea {
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     color: var(--text-color);
    font-size: 0.95em;
     margin: 0;
     color: #2e2e2e;
    line-height: 1.6em;
     background: none;
}
}


/* Optional: subtle fade from transparent to solid */
/* Center categories under articles */
body::before {
#catlinks {
     content: "";
     background: none;
     position: fixed;
     border-top: 1px solid #d4c4a3;
     inset: 0;
     margin-top: 2em;
     background: linear-gradient(to bottom, rgba(192,168,134,0.2), rgba(192,168,134,1) 200px);
     padding-top: 0.5em;
    z-index: -1;
     text-align: center;
     pointer-events: none;
}
}


/* Main content area styling */
/* Infobox styling */
#content,
.infobox {
.mw-body,
    background: #fdf9f3;
.vector-body {
    border: 1px solid #d4c4a3;
     background-color: var(--content-background-color);
    font-size: 0.85em;
     padding: 1em;
     width: 300px;
     box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
     margin: 0.5em 0 1em 1em;
     border: 1px solid var(--body-border);
    border-collapse: collapse;
     box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
     float: right;
    table-layout: fixed;
    word-break: break-word;
     border-radius: 4px;
     border-radius: 4px;
}
}


/* Headings */
.infobox th,
.firstHeading {
.infobox td {
    border: 1px solid #e8ddc9;
    padding: 0.4em 0.5em;
}
 
.infobox .infobox-header {
    background: #d4c4a3;
    color: #222;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 0.5em;
}
 
.infobox .infobox-subheader {
    background: #e8ddc9;
     font-weight: bold;
     font-weight: bold;
     color: var(--text-color);
     text-align: center;
    padding: 0.4em;
}
}


/* Tabs & navigation bar */
/* Table styling */
.vector-menu-tabs-legacy {
table.wikitable {
     background-color: var(--content-background-color);
     background: #fffdf9;
    border: 1px solid #d4c4a3;
    border-collapse: collapse;
}
}


.vector-menu-tabs-legacy li {
.wikitable th,
     background: var(--content-background-color);
.wikitable td {
     box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
     border: 1px solid #d4c4a3;
     padding: 0.4em 0.6em;
}
}


.vector-menu-tabs-legacy li a {
.wikitable th {
     color: var(--background-link-color);
     background-color: #eee1c9;
    padding: 1em 0.75em;
     font-weight: bold;
     font-weight: bold;
    text-align: center;
}
}


.vector-menu-tabs-legacy .selected {
/* Collapsible elements */
     background: var(--body-light);
.mw-collapsible-toggle {
    float: right;
    font-size: 0.9em;
     color: #3366cc;
}
}


.vector-menu-tabs-legacy .selected a {
.mw-collapsible-toggle:hover {
     color: var(--text-color);
     text-decoration: underline;
    cursor: pointer;
}
}


/* Sidebar headings */
/* Headings */
.vector-menu-portal .vector-menu-heading {
h1, h2, h3, h4, h5 {
     color: var(--text-color);
     color: #2e2e2e;
     font-weight: bold;
     font-weight: bold;
    background: none;
}
}


/* Sidebar links */
/* Paragraph spacing */
.vector-menu-portal .vector-menu-content li a,
p {
.vector-menu-portal .vector-menu-content li a:visited {
     margin: 1em 0;
     color: var(--background-link-color);
}
}


/* Logo spacing */
/* Force gallery and image boxes to blend in */
#p-logo {
.gallerybox, .thumb {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
     background: #fdfaf4;
    margin-top: -1.5em;
     border-color: #d4c4a3;
}
 
/* Code blocks */
pre,
code,
.mw-code {
     background-color: #f5f2e7;
     border: 1px solid var(--body-border);
    padding: 0.5em;
    font-family: monospace;
}
}


/* Links */
/* Improve list spacing */
a {
ul, ol {
     color: var(--link-color);
     margin-top: 0.4em;
     text-decoration: none;
    margin-bottom: 0.6em;
     padding-left: 1.4em;
}
}


a:hover {
/* Smooth border and padding for inputs */
     text-decoration: underline;
input,
textarea,
select {
    border: 1px solid #c6b28f;
    padding: 4px;
     border-radius: 2px;
}
}


/* Table of contents */
/* Remove annoying focus blue glow */
.toc {
input:focus,
    background-color: var(--body-light);
textarea:focus,
    border: 1px solid var(--body-border);
select:focus {
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     outline: none;
     padding: 0.5em 1em;
     border-color: #a48f6f;
}
}


/* Remove redlink bullets */
/* Improve clarity of user-generated preformatted blocks */
ul {
pre {
     list-style-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E");
     background-color: #f5f2e7;
    border: 1px solid #d4c4a3;
    padding: 0.6em;
    overflow: auto;
}
}


/* Hide edit section brackets */
/* Fix monospace font inside code/pre */
.client-js .mw-editsection-bracket,
pre,
.mw-editsection-divider {
code {
     display: none;
    font-family: Consolas, Monaco, monospace;
     font-size: 0.9em;
}
}

Revision as of 21:57, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Common CSS
--------------------------------------------- */

/* Consistent font and base layout */
body,
table,
td,
th,
input,
select,
textarea {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95em;
    color: #2e2e2e;
    line-height: 1.6em;
    background: none;
}

/* Center categories under articles */
#catlinks {
    background: none;
    border-top: 1px solid #d4c4a3;
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}

/* Infobox styling */
.infobox {
    background: #fdf9f3;
    border: 1px solid #d4c4a3;
    font-size: 0.85em;
    width: 300px;
    margin: 0.5em 0 1em 1em;
    border-collapse: collapse;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    float: right;
    table-layout: fixed;
    word-break: break-word;
    border-radius: 4px;
}

.infobox th,
.infobox td {
    border: 1px solid #e8ddc9;
    padding: 0.4em 0.5em;
}

.infobox .infobox-header {
    background: #d4c4a3;
    color: #222;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 0.5em;
}

.infobox .infobox-subheader {
    background: #e8ddc9;
    font-weight: bold;
    text-align: center;
    padding: 0.4em;
}

/* Table styling */
table.wikitable {
    background: #fffdf9;
    border: 1px solid #d4c4a3;
    border-collapse: collapse;
}

.wikitable th,
.wikitable td {
    border: 1px solid #d4c4a3;
    padding: 0.4em 0.6em;
}

.wikitable th {
    background-color: #eee1c9;
    font-weight: bold;
    text-align: center;
}

/* Collapsible elements */
.mw-collapsible-toggle {
    float: right;
    font-size: 0.9em;
    color: #3366cc;
}

.mw-collapsible-toggle:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Headings */
h1, h2, h3, h4, h5 {
    color: #2e2e2e;
    font-weight: bold;
}

/* Paragraph spacing */
p {
    margin: 1em 0;
}

/* Force gallery and image boxes to blend in */
.gallerybox, .thumb {
    background: #fdfaf4;
    border-color: #d4c4a3;
}

/* Improve list spacing */
ul, ol {
    margin-top: 0.4em;
    margin-bottom: 0.6em;
    padding-left: 1.4em;
}

/* Smooth border and padding for inputs */
input,
textarea,
select {
    border: 1px solid #c6b28f;
    padding: 4px;
    border-radius: 2px;
}

/* Remove annoying focus blue glow */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a48f6f;
}

/* Improve clarity of user-generated preformatted blocks */
pre {
    background-color: #f5f2e7;
    border: 1px solid #d4c4a3;
    padding: 0.6em;
    overflow: auto;
}

/* Fix monospace font inside code/pre */
pre,
code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
}