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


/* Wrap the sidebar (all portlets) in a white box */
#mw-list-item {
#mw-panel {
color: #202122;
    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 */
#left-navigation {
#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 */
#mw-page-base {
#footer a:hover {
     background-color: #c4b7dc;
     color: #ccc !important;
    text-decoration: underline;
}
}


/* Generic content box with optional title */
#mw-head {
.box {
     background-color: #c4b7dc;
     background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
}


/* Optional heading inside the box */
#mw-head-base {
.box .box-title {
     background-color: #c4b7dc;
     font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}
}


/* Shared: Grid structure for 2 or 4 columns */
/* Style each portlet in the header (namespaces/tabs, search, personal) */
.box-grid-2, .box-grid-4 {
 
    display: grid;
#p-namespaces .body,
    gap: 12px;
#p-cactions .body,
    margin-bottom: 40px;
#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;
}
}


/* Specific column count */
/* Link colors in those header boxes */
.box-grid-2 {
#p-namespaces a,
    grid-template-columns: repeat(2, 1fr);
#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;
}
}


.box-grid-4 {
 
    grid-template-columns: repeat(4, 1fr);
 
/* ─────────────────────────────────────────────────────────
  Sidebar & Content Skinning Only
───────────────────────────────────────────────────────── */
#mw-panel {
  background: #c4b7dc !important;
  border-radius: 8px !important;
}
#content {
  background: #c4b7dc !important;
  border-radius: 8px !important;
}
}


/* Shared box style */
.box {
.box {
    background-color: #fff;
  padding: 1em;         /* or 15px, 1.5em, whatever you like */
    border: 1px solid #ccc;
  background-clip: padding-box; /* keeps the background within the rounded corners */
    padding: 16px;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
}


.box {
 
    border: 1px solid #ccc;
/* ─────────────────────────────────────────────────────────
    box-shadow: none;
  Headings & Links
    text-align: center;
───────────────────────────────────────────────────────── */
    padding: 12px;
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;
}
}
/* Optional title inside a box */
#footer a:hover {
.box .box-title {
  color: #fff !important;
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
}


/* Optional: make box text smaller and uniform */
.mw-footer li {
.box p {
color: white;
    font-size: 0.95em;
    line-height: 1.4em;
    margin: 0;
}
}

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