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
 
(34 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');


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
Line 6: Line 6:
html, body {
html, body {
   margin: 0; padding: 0;
   margin: 0; padding: 0;
   font-family: 'Cinzel', Georgia, serif;
   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;
Line 13: Line 13:


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
   Header (top bar)
   Header Bar Colors
───────────────────────────────────────────────────────── */
───────────────────────────────────────────────────────── */
#mw-head {
#mw-head {
  clear: both;
   border-bottom: 3px solid #F28C28 !important;
  background: #4B0082;
   border-bottom: 3px solid #F28C28;
  padding: 0.75em 2em;
  position: relative; z-index: 20;
}
}
/* Personal tools (login/watchlist/etc) */
 
#p-personal ul {
#mw-list-item {
  display: flex; list-style: none;
color: #202122;
  margin: 0; padding: 0.5em;
}
}
#p-personal li + li { margin-left: 1em; }
 
#p-personal a {
#left-navigation {
   color: #4B0082 !important;
   background-color: #c4b7dc;
  text-decoration: none;
}
}
#p-personal a:hover {
 
  color: #E67E22 !important;
#mw-page-base {
    background-color: #c4b7dc;
}
}


/* Search */
#mw-head {
#p-search {
    background-color: #c4b7dc;
  float: right;
  padding: 0.5em;
}
}
#p-search form {
 
  display: flex;
#mw-head-base {
    background-color: #c4b7dc;
}
}
#p-search input[type="search"] {
 
  padding: 0.3em 0.5em;
/* Style each portlet in the header (namespaces/tabs, search, personal) */
  border: 1px solid #ccc;
 
  border-radius: 4px 0 0 4px;
#p-namespaces .body,
}
#p-cactions .body,
#p-search button {
#p-search .body,
   padding: 0.3em 0.6em;
#p-personal .body {
  border: 1px solid #ccc;
   background: rgba(255,255,255,0.9) !important;
   border-left: none;
   border-radius: 4px !important;
   border-radius: 0 4px 4px 0;
   padding: 0.2em 0.6em !important;
   background: #4B0082;
   margin: 0.5em !important;
  color: #fff;
  cursor: pointer;
}
}


/* ─────────────────────────────────────────────────────────
/* Link colors in those header boxes */
  Page action tabs (View/Edit/History)
#p-namespaces a,
───────────────────────────────────────────────────────── */
#p-cactions a {
#p-cactions ul {
   color: #229C88 !important;
   display: flex; list-style: none;
  margin: 1em 2em; padding: 0;
}
}
#p-cactions li + li { margin-left: 0.5em; }
#p-namespaces .selected a,
#p-cactions a {
#p-cactions .selected a {
  display: block;
   background: #E0D6F9 !important;
  padding: 0.3em 0.6em;
   color: #4B0082 !important;
   background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
   color: #229C88;
  text-decoration: none;
}
}
#p-cactions li.selected a {
#p-search input,
  background: #E0D6F9;
#p-search button,
  border-color: #4B0082;
#p-personal a {
   color: #4B0082;
   color: #202122 !important;
}
}


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
   Sidebar (float layout)
   Sidebar & Content Skinning Only
───────────────────────────────────────────────────────── */
───────────────────────────────────────────────────────── */
#mw-panel {
#mw-panel {
  float: left;
   background: #c4b7dc !important;
  width: 260px;
   border-radius: 8px !important;
  margin: 1.5em;
   background: rgba(255,255,255,0.95);
  padding: 1em;
   border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 10;
}
}
.mw-portlet {
#content {
   margin-bottom: 1.5em;
   background: #c4b7dc !important;
  border-radius: 8px !important;
}
}
.mw-portlet .mw-portlet-heading {
 
   font-weight: bold;
.box {
  margin-bottom: 0.5em;
   padding: 1em;         /* or 15px, 1.5em, whatever you like */
}
   background-clip: padding-box; /* keeps the background within the rounded corners */
.mw-portlet ul {
   list-style: none;
  margin: 0; padding: 0;
}
.mw-portlet li {
  margin: 0.3em 0;
}
.mw-portlet a {
  color: #4B0082;
  text-decoration: none;
}
.mw-portlet a:hover {
  color: #E67E22;
}
}


/* ─────────────────────────────────────────────────────────
  Main Content (cleared float)
───────────────────────────────────────────────────────── */
#content {
  margin: 1.5em 2em 2em calc(260px + 1.5em);
  background: rgba(255,255,255,0.95);
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  clear: right;
  overflow: visible;
}
#mw-content-text {
  margin: 0; padding: 0;
}


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
Line 137: Line 91:
───────────────────────────────────────────────────────── */
───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
   color: #C0392B !important;
   color: #C0392B;
  margin: 1em 0 0.5em;
}
}
a {
a {
   color: #229C88;
   color: #202122 !important;
  text-decoration: none;
}
}
a:hover {
a:hover {
   color: #D645B1;
   color: #D645B1 !important;
   text-decoration: underline;
}
 
 
.vector-search-box-input {
   background-color: #fff;
}
}


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
   Tables (RPG style)
   Tables
───────────────────────────────────────────────────────── */
───────────────────────────────────────────────────────── */
table.wikitable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: transparent;
}
table.wikitable caption {
table.wikitable caption {
   background: #4B0082;
   background: #4B0082 !important;
   color: #fff;
   color: #fff !important;
  padding: 0.5em;
  font-weight: bold;
  text-align: center;
}
}
table.wikitable th {
table.wikitable th {
   background: #E0D6F9;
   background: #E0D6F9 !important;
  color: #222;
  border: 1px solid #ccc;
  padding: 0.75em;
  text-align: center;
}
table.wikitable td {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.75em;
  vertical-align: top;
}
}


/* ─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
   Footer (full width)
   Footer Bar
───────────────────────────────────────────────────────── */
───────────────────────────────────────────────────────── */
#footer {
#footer {
   clear: both;
   border-top: 2px solid #D645B1 !important;
  background: #4B0082;
   color: #eee !important;
   color: #eee;
   border-radius: 0 0 8px 8px !important;
  padding: 1em 2em;
  text-align: center;
   border-top: 2px solid #D645B1;
  position: relative; z-index: 20;
}
}
#footer a {
#footer a {
   color: #ddd !important;
   color: #ddd !important;
  margin: 0 0.5em;
  font-size: 0.9em;
}
}
#footer a:hover {
#footer a:hover {
   color: #fff !important;
   color: #fff !important;
  text-decoration: underline;
}
}


/* ─────────────────────────────────────────────────────────
.mw-footer li {
  Responsive: stack sidebar + content
color: white;
───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #p-personal, #p-search, #p-cactions {
    float: none; display: block; margin: 0.5em 1em; text-align: center;
  }
  #mw-panel, #content {
    float: none; width: auto; margin: 1em !important;
  }
  #content { clear: none; }
}
}

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;
}