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
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Oldenburg:wght@400;700&display=swap');
body {
 
    background: url("/images/wiki_background.png") no-repeat center center fixed;
/* ─────────────────────────────────────────────────────────
    background-size: cover;
  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;
}
}


/* Wrap the sidebar (all portlets) in a white box */
#mw-head {
#mw-panel {
     background-color: #c4b7dc;
     background-color: #ffffff;  /* White background */
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);  /* Optional soft shadow */
    border: 1px solid #ccc;
}
}


/* Higher-contrast footer text */
#mw-head-base {
#footer, #footer a, #footer li {
     background-color: #c4b7dc;
     color: #eee !important;  /* Medium gray – readable on light/gray backgrounds */
    font-size: 0.9em;
    text-decoration: none;
}
}


/* Subtle light-gray hover */
/* Style each portlet in the header (namespaces/tabs, search, personal) */
#footer a:hover {
 
    color: #ccc !important;
#p-namespaces .body,
    text-decoration: underline;
#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;
}
}


/* Generic content box with optional title */
/* Link colors in those header boxes */
.box {
#p-namespaces a,
    background-color: #ffffff;
#p-cactions a {
    border: 1px solid #ccc;
  color: #229C88 !important;
    border-radius: 8px;
}
    padding: 15px 20px;
#p-namespaces .selected a,
    margin-bottom: 20px;
#p-cactions .selected a {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  background: #E0D6F9 !important;
  color: #4B0082 !important;
}
#p-search input,
#p-search button,
#p-personal a {
  color: #202122 !important;
}
}


/* Optional heading inside the box */
 
.box .box-title {
 
    font-size: 1.2em;
/* ─────────────────────────────────────────────────────────
    font-weight: bold;
  Sidebar & Content Skinning Only
    margin-bottom: 10px;
───────────────────────────────────────────────────────── */
    border-bottom: 1px solid #ddd;
#mw-panel {
    padding-bottom: 4px;
  background: #c4b7dc !important;
  border-radius: 8px !important;
}
#content {
  background: #c4b7dc !important;
  border-radius: 8px !important;
}
}


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


.box-grid .box {
 
    flex: 1 1 calc(50% - 20px); /* 2-column layout */
/* ─────────────────────────────────────────────────────────
  Headings & Links
───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  color: #C0392B !important;
}
a {
  color: #202122 !important;
}
a:hover {
  color: #D645B1 !important;
}
}


/* Section title above the grid */
 
.section-title {
.vector-search-box-input {
    font-size: 1.6em;
  background-color: #fff;
    font-weight: bold;
    margin: 30px 0 15px;
    text-align: center;
    color: #333;
}
}


/* Grid container for 4-column layout */
/* ─────────────────────────────────────────────────────────
.box-grid-4 {
  Tables
    display: flex;
───────────────────────────────────────────────────────── */
    flex-wrap: wrap;
table.wikitable caption {
    gap: 20px;
  background: #4B0082 !important;
    justify-content: space-between;
  color: #fff !important;
    margin-bottom: 40px;
}
table.wikitable th {
  background: #E0D6F9 !important;
}
}


/* Each individual box */
/* ─────────────────────────────────────────────────────────
.box-grid-4 .box {
  Footer Bar
    flex: 1 1 calc(25% - 20px); /* 4 columns */
───────────────────────────────────────────────────────── */
    background-color: #fff;
#footer {
    border: 1px solid #ccc;
  border-top: 2px solid #D645B1 !important;
    border-radius: 8px;
  color: #eee !important;
    padding: 15px 20px;
  border-radius: 0 0 8px 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
    box-sizing: border-box;
#footer a {
    min-width: 200px;
  color: #ddd !important;
    text-align: left;
}
#footer a:hover {
  color: #fff !important;
}
}


/* Optional heading inside each box */
.mw-footer li {
.box-grid-4 .box .box-title {
color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
}

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