Difference between revisions of "MediaWiki:Common.css"

From Wildermyth Wiki
m (Made wikitable header bg transparent)
(Added fallback colors for browsers that don't support transparency, fixed border on infoboxes not showing up)
Line 79: Line 79:
div.vectorTabs li.selected {
div.vectorTabs li.selected {
     background-image: none;
     background-image: none;
    background-color: #937a60; /* Fallback for browsers that don't support transparency */
     background-color: #faebd726;
     background-color: #faebd726;
}
}
Line 123: Line 124:
/* Adjust quote, category link, thumbnail, table of contents, and wikitable backgrounds to be slightly-transparent off-white */
/* Adjust quote, category link, thumbnail, table of contents, and wikitable backgrounds to be slightly-transparent off-white */
pre, .catlinks, div.thumbinner, #toc, .toc, table.wikitable {
pre, .catlinks, div.thumbinner, #toc, .toc, table.wikitable {
    background-color: #eae6db; /* Fallback for browsers that don't support transparency */
     background-color: #f9f9f999;
     background-color: #f9f9f999;
}
}
Line 128: Line 130:
/* Wikitable header */
/* Wikitable header */
table.wikitable tr th {
table.wikitable tr th {
    background-color: #edece7; /* Fallback for browsers that don't support transparency */
     background-color: #f2f2f299;
     background-color: #f2f2f299;
}
}
Line 133: Line 136:


/* Infobox styling */
/* Infobox styling */
.infoboxEvent, .infoboxEquipment {
.infoboxEvent, .infoboxEquipment, .infoboxEvent table.floatright, .infoboxEquipment table.floatright {
     width:200px;  
     width:200px;  
     border-spacing: 2px;  
     border-spacing: 2px;  
     border:1px solid #BBB;  
     border:1px solid #BBB;  
    background-color: #eae6db; /* Fallback for browsers that don't support transparency */
     background-color: #f9f9f999;
     background-color: #f9f9f999;
     text-align:center;
     text-align:center;

Revision as of 18:35, 23 November 2019

/* CSS placed here will be applied to all skins */

@import url('https://fonts.googleapis.com/css?family=Alegreya:400,700&display=swap');

/* Background image */
body {
    background-image: url(images/5/58/CreditsBG.jpg);
    background-attachment: fixed;
    background-size: cover;
}

h1 {
   color: #252525; 
}

/* Top navigation header BG */
#mw-page-base {
    background-image: none;
    background-color: transparent;
}

/* Main content body */
.mw-body {
    background-image: url(images/b/bc/PaperTextureTile.png);
    margin-right: 1em;
    border: 1px solid #9a7d5d;
}

/* Side navigation panel*/
#mw-panel {
    background-image: url(images/f/fd/TextboxSpeech.png);
    background-size: cover;
    background-position: right;
    padding-bottom: 1em;
}

/* Footer */
div#footer {
    margin-right: 1em;
    margin-top: 1em;
    background-image: url(images/c/cb/TextboxThought.png);
    background-size: cover;
}

/* Headers */
.mw-body h1 {
    font-family: "Alegreya","Linux Libertine",Georgia,Times,serif;
}

/* Make the first header bold */
.mw-body .firstHeading {
    font-weight: bold;
}

/* User account actions (in top right corner) */
#p-personal {
    background-image: url(images/c/cb/TextboxThought.png);
    background-size: cover;
    background-position: bottom;
    margin: -0.5em;
    padding: 0.5em;
}

/* Top bar navigation tabs (remove backgrounds, colors, etc.) */
div.vectorTabs {
    background-image: none;
    background-color: transparent;
}

div.vectorTabs ul {
    background-image: none;
}

div.vectorTabs ul li {
    background-image: none;
    background-color: transparent;
}

div.vectorTabs li.selected {
    background-image: none;
    background-color: #937a60; /* Fallback for browsers that don't support transparency */
    background-color: #faebd726;
}

/* Links (selected) on the top navigation bar */
div.vectorTabs li.selected a, div.vectorTabs li.selected a:visited {
    color: #eaeaea;
}

/* Links (unvisited) on the top navigation bar */
div.vectorTabs li a {
    color: #84b2ff;
}

/* Links (visited) on the top navigation bar */
div.vectorTabs li a:visited {
    color: #e48888;
}

/* "More" button text on the top navigation bar */
div.vectorMenu h3 span {
    color: #e4e4e4;
}

/* Remove link button side bars on the top navigation bar */
div.vectorTabs span {
    background-image: none;
}

div#mw-head div.vectorMenu h3 {
    background-image: none;
}




/* Images generally should resize to be smaller if they're wider than the screen */
img {
    max-width:100%;
    height: auto;
}


/* Adjust quote, category link, thumbnail, table of contents, and wikitable backgrounds to be slightly-transparent off-white */
pre, .catlinks, div.thumbinner, #toc, .toc, table.wikitable {
    background-color: #eae6db; /* Fallback for browsers that don't support transparency */
    background-color: #f9f9f999;
}

/* Wikitable header */
table.wikitable tr th {
    background-color: #edece7; /* Fallback for browsers that don't support transparency */
    background-color: #f2f2f299;
}


/* Infobox styling */
.infoboxEvent, .infoboxEquipment, .infoboxEvent table.floatright, .infoboxEquipment table.floatright {
    width:200px; 
    border-spacing: 2px; 
    border:1px solid #BBB; 
    background-color: #eae6db; /* Fallback for browsers that don't support transparency */
    background-color: #f9f9f999;
    text-align:center;
}

.infoboxEvent th {
    background: SkyBlue;
}

.infoboxEquipment th {
    background: Coral;
}