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:
/* ---------------------------------------------
/* ---------------------------------------------
   OSRS Wiki-Inspired Common CSS
   OSRS Wiki-Inspired Global Styles & Variables
--------------------------------------------- */
--------------------------------------------- */


/* Consistent font and base layout */
:root {
    --body-background-image: url("/resources/assets/bg.png");
    --body-background-color: #c0a886;
    --content-background-color: #fdf9f3;
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --body-light: #fdfaf4;
    --body-dark: #b89e74;
    --body-mid: #e0d5c3;
    --background-link-color: #4c4c4c;
}
 
/* Font + base style */
body,
body,
table,
table,
th,
td,
td,
th,
input,
input,
select,
select,
Line 13: Line 26:
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
     font-size: 0.95em;
     font-size: 0.95em;
     color: #2e2e2e;
     color: var(--text-color);
    line-height: 1.6em;
     background: none;
     background: none;
}
}


/* Center categories under articles */
/* Category links */
#catlinks {
#catlinks {
     background: none;
     background: none;
     border-top: 1px solid #d4c4a3;
     border-top: 1px solid var(--body-border);
     margin-top: 2em;
     margin-top: 2em;
     padding-top: 0.5em;
     padding-top: 0.5em;
Line 27: Line 39:
}
}


/* Infobox styling */
/* Inputs and forms */
.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,
input,
textarea,
textarea,
Line 128: Line 48:
}
}


/* Remove annoying focus blue glow */
input:focus,
input:focus,
textarea:focus,
textarea:focus,
Line 136: Line 55:
}
}


/* Improve clarity of user-generated preformatted blocks */
/* Pre/code */
pre {
    background-color: #f5f2e7;
    border: 1px solid #d4c4a3;
    padding: 0.6em;
    overflow: auto;
}
 
/* Fix monospace font inside code/pre */
pre,
pre,
code {
code {
     font-family: Consolas, Monaco, monospace;
     font-family: Consolas, Monaco, monospace;
    background: #f5f2e7;
    border: 1px solid var(--body-border);
    padding: 0.6em;
     font-size: 0.9em;
     font-size: 0.9em;
    overflow: auto;
}
}

Revision as of 22:00, 1 May 2025

/* ---------------------------------------------
   OSRS Wiki-Inspired Global Styles & Variables
--------------------------------------------- */

:root {
    --body-background-image: url("/resources/assets/bg.png");
    --body-background-color: #c0a886;
    --content-background-color: #fdf9f3;
    --text-color: #2e2e2e;
    --link-color: #3366cc;
    --body-border: #d4c4a3;
    --body-light: #fdfaf4;
    --body-dark: #b89e74;
    --body-mid: #e0d5c3;
    --background-link-color: #4c4c4c;
}

/* Font + base style */
body,
table,
th,
td,
input,
select,
textarea {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95em;
    color: var(--text-color);
    background: none;
}

/* Category links */
#catlinks {
    background: none;
    border-top: 1px solid var(--body-border);
    margin-top: 2em;
    padding-top: 0.5em;
    text-align: center;
}

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

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #a48f6f;
}

/* Pre/code */
pre,
code {
    font-family: Consolas, Monaco, monospace;
    background: #f5f2e7;
    border: 1px solid var(--body-border);
    padding: 0.6em;
    font-size: 0.9em;
    overflow: auto;
}