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


/*─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
  1) Reset & Base
  Base & Background
─────────────────────────────────────────────────────────*/
───────────────────────────────────────────────────────── */
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 12: Line 12:
}
}


/*─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
  2) Header Bar & Menus
  Header Bar Colors
─────────────────────────────────────────────────────────*/
───────────────────────────────────────────────────────── */
/* Purple background */
#mw-head {
#mw-head {
  clear: both;
   border-bottom: 3px solid #F28C28 !important;
  background: #4B0082;
   border-bottom: 3px solid #F28C28;
  padding: 0.5em 1em;
  position: relative; z-index: 100;
  box-sizing: border-box;
}
}


/* Float tabs (Read/Edit, etc.) */
#mw-list-item {
#p-namespaces, #p-cactions {
color: #202122;
  float: left !important;
  margin: 0.4em 0.8em !important;
}
}
#p-namespaces .body, #p-cactions .body {
 
   background: #fff !important;
#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;
   border-radius: 4px !important;
   padding: 0 !important;
   padding: 0.2em 0.6em !important;
  margin: 0.5em !important;
}
}
#p-namespaces li, #p-cactions li {
 
  display: inline-block;
/* Link colors in those header boxes */
  margin: 0 !important;
#p-namespaces a,
}
#p-cactions a {
#p-namespaces a, #p-cactions a {
  display: inline-block;
  padding: 5px 10px;
   color: #229C88 !important;
   color: #229C88 !important;
  text-decoration: none!important;
}
}
#p-namespaces .selected a,
#p-namespaces .selected a,
Line 49: Line 60:
   background: #E0D6F9 !important;
   background: #E0D6F9 !important;
   color: #4B0082 !important;
   color: #4B0082 !important;
}
#p-search input,
#p-search button,
#p-personal a {
  color: #202122 !important;
}
}


/* Float search */
 
#p-search {
 
   float: right !important;
/* ─────────────────────────────────────────────────────────
   margin: 0.4em 0.8em !important;
  Sidebar & Content Skinning Only
───────────────────────────────────────────────────────── */
#mw-panel {
   background: #c4b7dc !important;
   border-radius: 8px !important;
}
}
#p-search .body {
#content {
   background: rgba(255,255,255,0.9) !important;
   background: #c4b7dc !important;
   border-radius: 4px !important;
   border-radius: 8px !important;
  padding: 4px !important;
}
}
#p-search input[type="search"] {
 
   border: 1px solid #ccc;
.box {
   border-radius: 4px 0 0 4px;
   padding: 1em;         /* or 15px, 1.5em, whatever you like */
  padding: 4px 8px;
   background-clip: padding-box; /* keeps the background within the rounded corners */
}
#p-search button {
  border: 1px solid #ccc;
  border-left: none;
  background: #4B0082;
  color: #fff;
  border-radius: 0 4px 4px 0;
  padding: 4px 8px;
  cursor: pointer;
}
}


/* Float personal tools */
 
#p-personal {
/* ─────────────────────────────────────────────────────────
   float: right !important;
  Headings & Links
  margin: 0.4em 0.8em !important;
───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
   color: #C0392B !important;
}
}
#p-personal .body {
a {
   background: rgba(255,255,255,0.9) !important;
   color: #202122 !important;
  border-radius: 4px !important;
  padding: 5px 8px !important;
}
}
#p-personal li {
a:hover {
  display: inline-block;
   color: #D645B1 !important;
  margin-left: 0.8em!important;
}
#p-personal a {
  color: #4B0082 !important;
  text-decoration: none!important;
}
#p-personal a:hover {
   color: #E67E22 !important;
}
}


/* Force header to wrap floats */
 
#mw-head:after {
.vector-search-box-input {
   content: '';
   background-color: #fff;
  display: table;
  clear: both;
}
}


/*─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
  3) Sidebar & Content
  Tables
─────────────────────────────────────────────────────────*/
───────────────────────────────────────────────────────── */
/* Sidebar */
table.wikitable caption {
#mw-panel {
   background: #4B0082 !important;
  float: left;
   color: #fff !important;
  width: 260px;
  margin: 1.5em 1em 1.5em 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;
}
}
 
table.wikitable th {
/* Main content offset to clear sidebar */
   background: #E0D6F9 !important;
#content {
  margin: 1.5em 1.5em 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;
  position: relative; z-index: 5;
}
}


/*─────────────────────────────────────────────────────────
/* ─────────────────────────────────────────────────────────
  4) Footer
  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 1.5em;
  text-align: center;
  border-top: 2px solid #D645B1;
   border-radius: 0 0 8px 8px;
  position: relative; z-index: 100;
}
}
#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 {
  5) Responsive
color: white;
─────────────────────────────────────────────────────────*/
@media (max-width: 900px) {
  /* Stack everything */
  #p-namespaces, #p-cactions, #p-search, #p-personal {
    float: none!important;
    margin: 0.5em !important;
    text-align: center;
  }
  #mw-panel, #content {
    float: none!important;
    width: auto!important;
    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;
}