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:
/* ===== BACKGROUND & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
body {
 
    background: url("/images/wiki_background.png") no-repeat center center fixed;
/* ——————————————————————————————————————————
    background-size: cover;
  Base & Background
    font-family: 'Lora', Georgia, serif;
  —————————————————————————————————————————— */
    color: #ddd;
html, body {
  font-family: 'Cinzel', Georgia, serif;
  background: url('/images/wiki_background.png') center center fixed no-repeat;
  background-size: cover;
  color: #eee;
}
}


/* ===== HEADER ===== */
/* ——————————————————————————————————————————
#mw-head, #mw-head-base {
  Header (top bar)
    background-color: #4B0082;
  —————————————————————————————————————————— */
    border-bottom: 2px solid #C0392B;
#mw-head {
    color: white;
  background: #4B0082;
  border-bottom: 3px solid #F28C28;
  padding: 0.5em 2em;
}
#p-personal, #p-search { /* user links & search */
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 0.4em 0.8em;
  margin: 0.5em;
}
#p-personal a, #p-search a {
  color: #4B0082 !important;
  text-decoration: none;
}
#p-personal a:hover, #p-search a:hover {
  color: #E67E22 !important;
}
}


/* ===== SIDEBAR ===== */
/* ——————————————————————————————————————————
  Sidebar
  —————————————————————————————————————————— */
#mw-panel {
#mw-panel {
    background-color: #f0f0f0;
  background: rgba(255,255,255,0.9);
    border: 1px solid #ccc;
  border-radius: 10px;
    padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin: 1em;
  padding: 1em;
}
}
 
/* add spacing between sidebar and content */
#mw-panel a {
#mw-body {
    color: #4B0082 !important;
  display: flex;
    font-weight: bold;
}
}
 
#mw-content-text {
#mw-panel a:hover {
  margin-left: 1em;
    color: #C0392B !important;
}
}


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


/* ===== FOOTER ===== */
/* ——————————————————————————————————————————
#footer, #footer a, #footer li {
  Headings & Links
    color: #bbb !important;
  —————————————————————————————————————————— */
    font-size: 0.85em;
h1, h2, h3 {
  color: #C0392B;
}
}
#footer a:hover {
    color: #eee !important;
}
/* ===== HEADINGS & LINKS ===== */
h1, h2, h3, h4 {
    color: #C0392B;
    font-family: 'Lora', Georgia, serif;
}
a {
a {
    color: #4B0082;
  color: #229C88;
    text-decoration: none;
}
}
a:hover {
a:hover {
    color: #E67E22;
  color: #D645B1;
    text-decoration: underline;
}
}


/* ===== BOXES ===== */
/* ——————————————————————————————————————————
.box {
  Tables
    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 {
table.wikitable {
    background-color: transparent;
  width: 100%;
    border-collapse: collapse;
  border-collapse: collapse;
    width: 100%;
  background: transparent;
    margin-bottom: 20px;
  margin-bottom: 2em;
}
}
table.wikitable caption {
table.wikitable caption {
    background-color: #4B0082;
  background: #4B0082;
    color: white;
  color: #fff;
    font-weight: bold;
  padding: 0.5em;
    padding: 8px;
  font-weight: bold;
    caption-side: top;
}
}
table.wikitable th {
table.wikitable th {
    background-color: #E0D6F9;
  background: #E0D6F9;
    color: #222;
  color: #222;
    font-weight: bold;
  border: 1px solid #ccc;
    border: 1px solid #ccc;
  padding: 0.6em;
    padding: 6px;
    text-align: center;
}
}
table.wikitable td {
table.wikitable td {
    background-color: transparent;
  background: transparent;
    border: 1px solid #ccc;
  border: 1px solid #ccc;
    padding: 6px;
  padding: 0.6em;
    text-align: left;
}
}


/* ===== GRID BOXES (RPG Portal Style) ===== */
/* ——————————————————————————————————————————
.grid4, .grid2 {
  Footer
    display: grid;
  —————————————————————————————————————————— */
    gap: 1px;
#footer {
    background-color: #ccc;
  background: #4B0082;
  color: #ccc;
  padding: 1em;
  text-align: center;
  border-top: 2px solid #D645B1;
}
}
 
#footer a {
.grid4 {
  color: #eee !important;
    grid-template-columns: repeat(4, 1fr);
}
}
 
#footer a:hover {
.grid2 {
  color: #fff !important;
    grid-template-columns: repeat(2, 1fr);
  text-decoration: underline;
}
 
.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 14:50, 19 April 2025

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* ——————————————————————————————————————————
   Base & Background
   —————————————————————————————————————————— */
html, body {
  font-family: 'Cinzel', Georgia, serif;
  background: url('/images/wiki_background.png') center center fixed no-repeat;
  background-size: cover;
  color: #eee;
}

/* ——————————————————————————————————————————
   Header (top bar)
   —————————————————————————————————————————— */
#mw-head {
  background: #4B0082;
  border-bottom: 3px solid #F28C28;
  padding: 0.5em 2em;
}
#p-personal, #p-search { /* user links & search */
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 0.4em 0.8em;
  margin: 0.5em;
}
#p-personal a, #p-search a {
  color: #4B0082 !important;
  text-decoration: none;
}
#p-personal a:hover, #p-search a:hover {
  color: #E67E22 !important;
}

/* ——————————————————————————————————————————
   Sidebar
   —————————————————————————————————————————— */
#mw-panel {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 1em;
  padding: 1em;
}
/* add spacing between sidebar and content */
#mw-body {
  display: flex;
}
#mw-content-text {
  margin-left: 1em;
}

/* ——————————————————————————————————————————
   Content box
   —————————————————————————————————————————— */
#content {
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin-bottom: 2em;
}

/* ——————————————————————————————————————————
   Headings & Links
   —————————————————————————————————————————— */
h1, h2, h3 {
  color: #C0392B;
}
a {
  color: #229C88;
}
a:hover {
  color: #D645B1;
}

/* ——————————————————————————————————————————
   Tables
   —————————————————————————————————————————— */
table.wikitable {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  margin-bottom: 2em;
}
table.wikitable caption {
  background: #4B0082;
  color: #fff;
  padding: 0.5em;
  font-weight: bold;
}
table.wikitable th {
  background: #E0D6F9;
  color: #222;
  border: 1px solid #ccc;
  padding: 0.6em;
}
table.wikitable td {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.6em;
}

/* ——————————————————————————————————————————
   Footer
   —————————————————————————————————————————— */
#footer {
  background: #4B0082;
  color: #ccc;
  padding: 1em;
  text-align: center;
  border-top: 2px solid #D645B1;
}
#footer a {
  color: #eee !important;
}
#footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}