MediaWiki:Common.css: Difference between revisions

From Questlandia Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ===== BACKGROUND & BASE ===== */
body {
body {
     background: url("/images/wiki_background.png") no-repeat center center fixed;
     background: url("/images/wiki_background.png") no-repeat center center fixed;
     background-size: cover;
     background-size: cover;
    font-family: 'Lora', Georgia, serif;
    color: #ddd;
}
}


/* Wrap the sidebar (all portlets) in a white box */
/* ===== HEADER ===== */
#mw-head, #mw-head-base {
    background-color: #4B0082;
    border-bottom: 2px solid #C0392B;
    color: white;
}
 
/* ===== SIDEBAR ===== */
#mw-panel {
#mw-panel {
     background-color: #ffffff;   /* White background */
     background-color: #f0f0f0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);  /* Optional soft shadow */
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#mw-panel a {
    color: #4B0082 !important;
    font-weight: bold;
}
#mw-panel a:hover {
    color: #C0392B !important;
}
}


/* Higher-contrast footer text */
/* ===== CONTENT AREA ===== */
#content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    color: #222;
}
 
/* ===== FOOTER ===== */
#footer, #footer a, #footer li {
#footer, #footer a, #footer li {
     color: #eee !important; /* Medium gray – readable on light/gray backgrounds */
    color: #bbb !important;
     font-size: 0.9em;
    font-size: 0.85em;
}
 
#footer a:hover {
     color: #eee !important;
}
 
/* ===== HEADINGS & LINKS ===== */
h1, h2, h3, h4 {
    color: #C0392B;
     font-family: 'Lora', Georgia, serif;
}
 
a {
    color: #4B0082;
     text-decoration: none;
     text-decoration: none;
}
}


/* Subtle light-gray hover */
a:hover {
#footer a:hover {
     color: #E67E22;
     color: #ccc !important;
     text-decoration: underline;
     text-decoration: underline;
}
}


/* Generic content box with optional title */
/* ===== BOXES ===== */
.box {
.box {
     background-color: #ffffff;
     background-color: #ffffff;
     border: 1px solid #ccc;
     border: 1px solid #aaa;
     border-radius: 8px;
     border-radius: 0px;
     padding: 15px 20px;
     padding: 15px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.05);
     box-shadow: inset 0 0 0 1px #ccc;
    color: #222;
}
}


/* Optional heading inside the box */
.box .box-title {
.box .box-title {
     font-size: 1.2em;
     font-size: 1.2em;
     font-weight: bold;
     font-weight: bold;
     margin-bottom: 10px;
     margin-bottom: 10px;
     border-bottom: 1px solid #ddd;
    color: #C0392B;
     border-bottom: 2px solid #E67E22;
     padding-bottom: 4px;
     padding-bottom: 4px;
}
/* ===== TABLES ===== */
table.wikitable {
    background-color: transparent;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}
table.wikitable caption {
    background-color: #4B0082;
    color: white;
    font-weight: bold;
    padding: 8px;
    caption-side: top;
}
table.wikitable th {
    background-color: #E0D6F9;
    color: #222;
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}
table.wikitable td {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 6px;
    text-align: left;
}
/* ===== GRID BOXES (RPG Portal Style) ===== */
.grid4, .grid2 {
    display: grid;
    gap: 1px;
    background-color: #ccc;
}
.grid4 {
    grid-template-columns: repeat(4, 1fr);
}
.grid2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid4 .box, .grid2 .box {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #aaa;
    background-color: rgba(255,255,255,0.95);
}
}

Revision as of 13:28, 19 April 2025

/* ===== BACKGROUND & BASE ===== */
body {
    background: url("/images/wiki_background.png") no-repeat center center fixed;
    background-size: cover;
    font-family: 'Lora', Georgia, serif;
    color: #ddd;
}

/* ===== HEADER ===== */
#mw-head, #mw-head-base {
    background-color: #4B0082;
    border-bottom: 2px solid #C0392B;
    color: white;
}

/* ===== SIDEBAR ===== */
#mw-panel {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#mw-panel a {
    color: #4B0082 !important;
    font-weight: bold;
}

#mw-panel a:hover {
    color: #C0392B !important;
}

/* ===== CONTENT AREA ===== */
#content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    color: #222;
}

/* ===== FOOTER ===== */
#footer, #footer a, #footer li {
    color: #bbb !important;
    font-size: 0.85em;
}

#footer a:hover {
    color: #eee !important;
}

/* ===== HEADINGS & LINKS ===== */
h1, h2, h3, h4 {
    color: #C0392B;
    font-family: 'Lora', Georgia, serif;
}

a {
    color: #4B0082;
    text-decoration: none;
}

a:hover {
    color: #E67E22;
    text-decoration: underline;
}

/* ===== BOXES ===== */
.box {
    background-color: #ffffff;
    border: 1px solid #aaa;
    border-radius: 0px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px #ccc;
    color: #222;
}

.box .box-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #C0392B;
    border-bottom: 2px solid #E67E22;
    padding-bottom: 4px;
}

/* ===== TABLES ===== */
table.wikitable {
    background-color: transparent;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

table.wikitable caption {
    background-color: #4B0082;
    color: white;
    font-weight: bold;
    padding: 8px;
    caption-side: top;
}

table.wikitable th {
    background-color: #E0D6F9;
    color: #222;
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}

table.wikitable td {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 6px;
    text-align: left;
}

/* ===== GRID BOXES (RPG Portal Style) ===== */
.grid4, .grid2 {
    display: grid;
    gap: 1px;
    background-color: #ccc;
}

.grid4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid4 .box, .grid2 .box {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #aaa;
    background-color: rgba(255,255,255,0.95);
}