MediaWiki:Common.css: Difference between revisions

From Questlandia Wiki
Jump to navigation Jump to search
No edit summary
Undo revision 82 by Gridcaster (talk)
Tag: Undo
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oldenburg:wght@400;700&display=swap');


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


/* ——————————————————————————————————————————
/* ─────────────────────────────────────────────────────────
   Header (top bar)
   Header Bar Colors
  —————————————————————————————————————————— */
───────────────────────────────────────────────────────── */
#mw-head {
#mw-head {
  background: #4B0082;
   border-bottom: 3px solid #F28C28 !important;
   border-bottom: 3px solid #F28C28;
  padding: 0.5em 2em;
}
}
#p-personal, #p-search { /* user links & search */
 
   background: rgba(255,255,255,0.9);
#mw-list-item {
   border-radius: 6px;
color: #202122;
   padding: 0.4em 0.8em;
}
   margin: 0.5em;
 
#left-navigation {
  background-color: #c4b7dc;
}
 
#mw-page-base {
    background-color: #c4b7dc;
}
 
#mw-head {
    background-color: #c4b7dc;
}
 
#mw-head-base {
    background-color: #c4b7dc;
}
 
/* Style each portlet in the header (namespaces/tabs, search, personal) */
 
#p-namespaces .body,
#p-cactions .body,
#p-search .body,
#p-personal .body {
   background: rgba(255,255,255,0.9) !important;
   border-radius: 4px !important;
   padding: 0.2em 0.6em !important;
   margin: 0.5em !important;
}
 
/* Link colors in those header boxes */
#p-namespaces a,
#p-cactions a {
  color: #229C88 !important;
}
}
#p-personal a, #p-search a {
#p-namespaces .selected a,
#p-cactions .selected a {
  background: #E0D6F9 !important;
   color: #4B0082 !important;
   color: #4B0082 !important;
  text-decoration: none;
}
}
#p-personal a:hover, #p-search a:hover {
#p-search input,
   color: #E67E22 !important;
#p-search button,
#p-personal a {
   color: #202122 !important;
}
}


/* ——————————————————————————————————————————
 
   Sidebar
 
  —————————————————————————————————————————— */
/* ─────────────────────────────────────────────────────────
   Sidebar & Content Skinning Only
───────────────────────────────────────────────────────── */
#mw-panel {
#mw-panel {
   background: rgba(255,255,255,0.9);
   background: #c4b7dc !important;
   border-radius: 10px;
   border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin: 1em;
  padding: 1em;
}
}
/* add spacing between sidebar and content */
#content {
#mw-body {
  background: #c4b7dc !important;
   display: flex;
   border-radius: 8px !important;
}
}
#mw-content-text {
 
   margin-left: 1em;
.box {
   padding: 1em;          /* or 15px, 1.5em, whatever you like */
  background-clip: padding-box; /* keeps the background within the rounded corners */
}
}


/* ——————————————————————————————————————————
  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
   Headings & Links
  —————————————————————————————————————————— */
───────────────────────────────────────────────────────── */
h1, h2, h3 {
h1, h2, h3, h4 {
   color: #C0392B;
   color: #C0392B !important;
}
}
a {
a {
   color: #229C88;
   color: #202122 !important;
}
}
a:hover {
a:hover {
   color: #D645B1;
   color: #D645B1 !important;
}
 
 
.vector-search-box-input {
  background-color: #fff;
}
}


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


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


/* ——————————————————————————————————————————
.mw-footer li {
  Body Wrapper: side‑by‑side layout with gap
color: white;
  —————————————————————————————————————————— */
#mw-body-wrapper {
  display: flex;
  flex-wrap: wrap;        /* allow stacking on narrow viewports */
  gap: 20px;              /* space between sidebar and content */
  align-items: flex-start;
  margin: 0 20px;        /* overall horizontal padding */
}
 
/* ——————————————————————————————————————————
  Sidebar
  —————————————————————————————————————————— */
#mw-panel {
  flex: 0 0 250px;        /* fixed width */
  background: rgba(255,255,255,0.95);
  border-radius: 8px;    /* rounded corners */
  padding: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
 
/* ——————————————————————————————————————————
  Main Content Area
  —————————————————————————————————————————— */
#content {
  flex: 1 1 auto;        /* fill remaining space */
  background: rgba(255,255,255,0.95);
  border-radius: 8px;    /* rounded corners */
  padding: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: visible;      /* prevent inner overlap */
}
 
/* ——————————————————————————————————————————
  Header & Footer Panels
  —————————————————————————————————————————— */
#mw-head, #footer {
  border-radius: 8px;    /* soften all major containers */
}
 
/* ——————————————————————————————————————————
  Ensure No Overlap on Smaller Screens
  —————————————————————————————————————————— */
@media (max-width: 800px) {
  #mw-body-wrapper {
    flex-direction: column;
    gap: 10px;
    margin: 0 10px;
  }
  #mw-panel {
    width: 100% !important;
  }
  #content {
    width: 100% !important;
  }
}
 
/* 1. Make the Vector body wrapper flex instead of floats */
#mw-body {
  display: flex;
  flex-wrap: wrap;        /* allow stacking on narrow viewports */
  gap: 20px;              /* space between sidebar and content */
  align-items: flex-start;
  margin: 0 20px;
}
 
/* 2. Disable the old float on the sidebar portlet */
#mw-panel {
  float: none !important;
  flex: 0 0 250px;        /* fixed sidebar width */
}
 
/* 3. Let content fill remaining space */
#content, #mw-content-text {
  flex: 1 1 auto;
  width: auto !important; /* override any inline widths */
}
 
/* 4. Ensure inner elements don’t collapse */
#mw-body > * {
  min-width: 0;          /* allow flex children to shrink */
}
 
/* 5. Rounded corners everywhere */
#mw-panel,
#content,
#mw-head,
#footer {
  border-radius: 8px;
}
}

Latest revision as of 17:13, 19 April 2025

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

/* ─────────────────────────────────────────────────────────
   Base & Background
───────────────────────────────────────────────────────── */
html, body {
  margin: 0; padding: 0;
  font-family: 'Oldenburg', Georgia, serif;
  background: url('/images/wiki_background.png') center center fixed no-repeat;
  background-size: cover;
  color: #333;
}

/* ─────────────────────────────────────────────────────────
   Header Bar Colors
───────────────────────────────────────────────────────── */
#mw-head {
  border-bottom: 3px solid #F28C28 !important;
}

#mw-list-item {
	color: #202122;
}

#left-navigation {
  background-color: #c4b7dc;
}

#mw-page-base {
    background-color: #c4b7dc;
}

#mw-head {
    background-color: #c4b7dc;
}

#mw-head-base {
    background-color: #c4b7dc;
}

/* Style each portlet in the header (namespaces/tabs, search, personal) */

#p-namespaces .body,
#p-cactions .body,
#p-search .body,
#p-personal .body {
  background: rgba(255,255,255,0.9) !important;
  border-radius: 4px !important;
  padding: 0.2em 0.6em !important;
  margin: 0.5em !important;
}

/* Link colors in those header boxes */
#p-namespaces a,
#p-cactions a {
  color: #229C88 !important;
}
#p-namespaces .selected a,
#p-cactions .selected a {
  background: #E0D6F9 !important;
  color: #4B0082 !important;
}
#p-search input,
#p-search button,
#p-personal a {
  color: #202122 !important;
}



/* ─────────────────────────────────────────────────────────
   Sidebar & Content Skinning Only
───────────────────────────────────────────────────────── */
#mw-panel {
  background: #c4b7dc !important;
  border-radius: 8px !important;
}
#content {
  background: #c4b7dc !important;
  border-radius: 8px !important;
}

.box {
  padding: 1em;          /* or 15px, 1.5em, whatever you like */
  background-clip: padding-box; /* keeps the background within the rounded corners */
}


/* ─────────────────────────────────────────────────────────
   Headings & Links
───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: #C0392B !important;
}
a {
  color: #202122 !important;
}
a:hover {
  color: #D645B1 !important;
}


.vector-search-box-input {
  background-color: #fff;	
}

/* ─────────────────────────────────────────────────────────
   Tables
───────────────────────────────────────────────────────── */
table.wikitable caption {
  background: #4B0082 !important;
  color: #fff !important;
}
table.wikitable th {
  background: #E0D6F9 !important;
}

/* ─────────────────────────────────────────────────────────
   Footer Bar
───────────────────────────────────────────────────────── */
#footer {
  border-top: 2px solid #D645B1 !important;
  color: #eee !important;
  border-radius: 0 0 8px 8px !important;
}
#footer a {
  color: #ddd !important;
}
#footer a:hover {
  color: #fff !important;
}

.mw-footer li {
	color: white;
}