MediaWiki:Common.css: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
(moving change plus others to MediaWiki:Vector.css to keep from interfering with monobook)
imported>An Adventurer
(slight width adjustment for home panel)
Line 1: Line 1:
/** CSS placed here will be applied to all skins */
/** CSS placed here will be applied to all skins except the default Wikia skin */
 
/* keep the side padding, but enforce no gap between content area and tabs */
.yui-content {
margin-top: 0;
padding-top: 0.25em;
padding-left: 0.5em;
padding-right: 0.5em;
}
 
 
.shadow {
    -moz-box-shadow: 3px 3px 4px #666;
    -webkit-box-shadow: 3px 3px 4px #666;
    box-shadow: 3px 3px 4px #666;
    /* For IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#666666')";
    /* For IE 5.5 - 7 */
    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#666666');
}
 
 


/* For template documentation */
/* For template documentation */
Line 57: Line 36:
/* Highlight clicked reference in blue to help navigation */
/* Highlight clicked reference in blue to help navigation */
ol.references > li:target {
ol.references > li:target {
     background-color: #DEF;
     background-color: #333366;
}
}


sup.reference:target {  
sup.reference:target {  
     background-color: #DEF;
     background-color: #333366;
}
}


Line 72: Line 51:
/* If there is an inline link to a full citation, the full citation will turn blue when the inline link is clicked */
/* If there is an inline link to a full citation, the full citation will turn blue when the inline link is clicked */
cite:target {  
cite:target {  
     background-color: #DEF;
     background-color: #333366;
}
}


Line 83: Line 62:
}
}


/* Wikitable (Prettytable) class for skinning normal tables */
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
table.wikitable,
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
table.prettytable {
.collapseButton {
  margin: 1em 1em 1em 0;
    float:right;
  background: #f9f9f9;
    font-weight:normal;
  border: 1px #aaaaaa solid;
    margin-left:0.5em;
  border-collapse: collapse;
    text-align:right;
  empty-cells: show;
    width:auto;
}
}
table.wikitable th, table.wikitable td,
 
table.prettytable th, table.prettytable td {
/* 'collapse'/'expand' buttons created by the mw-collapsible javascript */
  border: 1px #aaaaaa solid;
.collapse span.mw-collapsible-toggle {float: left;}
  padding: 0.2em 0.4em;
 
/* Table alignment */
.columnscenter tr {text-align:center;}
.columnsright tr {text-align:right;}
.columntworight td:nth-child(2) {text-align:right;}
.columnstop td {vertical-align: top;}
 
/* Homepage styling */
#mainpage_container {
    width:100%;
    margin:1em 0 0;
    padding:2px;
}
}
table.wikitable th, table.wikitable td.hl3, table.wikitable th.hl3,
 
table.prettytable th, table.prettytable td.hl3, table.wikitable th.hl3 {
.mainpage_box {
  background: #d6e0f5;
    width:33%;
  text-align: center;
    padding:5 0em;
    vertical-align:top;
}
}
table.wikitable td.hl1, table.wikitable th.hl1,
 
table.prettytable td.hl1, table.wikitable th.hl1 {
.mainpage_boxheader {
  background: #c5d8fc;
    border:1px solid #996633;
  text-align: center;
    padding:5px;
    margin:3px;
    text-align: center;
}
}
table.wikitable td.hl2, table.wikitable th.hl2,
 
table.prettytable td.hl2, table.wikitable th.hl2 {
.mainpage_boxheader div {
  background: #a7c1f2;
    float:right;
  text-align: center;
}
}
table.wikitable caption,
 
table.prettytable caption {
.mainpage_boxcontents {
  margin-left: inherit;
    padding:0 2em;
  margin-right: inherit;
  font-weight: bold;
}
}


/* TabView extension */
/* Item and Equipment Templates */
.item {
  float:left;
  width:300px;
  border:1px solid #907854;
  background-color: #1a1a1a;
  color: #FFFFFF;
  padding: 0.2em;
  font-size: 0.90em;
  font-family: Verdana, Arial, sans-serif;
}
 
.item span {color:GreenYellow}
.item a:visited {color:SkyBlue}
.item a:link, a:hover, a:active {color:RoyalBlue}
 
.item_textbox {
  background-color:#e6dd80;
  border:1px solid #cc9900;
  color:#000000;
  padding:30px;
  width:500px;
  margin:10px auto 0;
  text-align:justify;
}
 
.item_textbox #author {
  border-top:1px solid #cc9900;
  margin:10px 0;
}
 
.item ul, .item_textbox ul {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  list-style-image: none;
}
 
.item li.topbottomspace {margin:10px 0px;}
.item li.topspace {margin-top:10px;}
.item li.bottomspace {margin-bottom:10px;}
.item li.dmgbonus {padding-left:6px;}
.item li.inscription {border-top:1px solid #907854;}
 
#item_header {
  display:table;
  padding:2px;
  text-align:center;
  width:100%;
  font-weight:bold;
}
 
#item_header div {
  display:table-cell;
  vertical-align: middle;
}


/*set the base backcolor of the 'off' tabs */
#item_header div + div {
.yui-navset .yui-nav li
  display:table-cell;
{
  vertical-align: middle;
  background-color: #D4DEE8;
  width:40px;
  padding-left: 10px;
  padding-right: 10px;
}
}


/*set the background color of the content and the 'on' tab the same*/
/* Dyed Variations Template */
.yui-content, .yui-navset .yui-nav li.selected
.dyedvariations {
{
    border: 1px solid white;
  background-color: #E7F2FF;
    border-collapse: collapse;
    background:#404040;
    color:white;
    margin-left: auto;
    margin-right: auto;
}
}


.dyedvariations td {
    border: 1px solid white;
    padding:5px;
}


/** style the 'on' tab **/
.dyedvariations th {
.yui-navset .yui-nav .selected {
    font-size:large;
border-style: solid;
    font-weight: bold;
border-width: 2px 0 0 0;
    padding:5px;
border-top-color: #2F5DBA;
}
}


/* Creature and NPC Templates */
.character-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}


.character-infobox th {
    padding:0.5em;
    font-size:120%;
}


/* Dungeon Summary Template */
.location-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}


.location-infobox th {
    padding:0.5em;
    font-size:120%;
}


/* Quest Summary Template */
.quest-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}


.quest-infobox th {
    padding:0.5em;
    text-align:center;
    font-size:120%;
}


/*
/* Quest Rewards Template */
* MenuSidebar
table.questrewards {
*/
    width:375px;
/* this has to be overridden for every menu */
    background:#000033;
#p-Menu,
    border:2px solid #996633;
#p-Menu2,
    margin-bottom:3px;
#p-Menu3 {
overflow: visible;  
}
}
   
   
/* this has to be overridden for every menu */
table.questrewards th {
#p-Menu div,
  background:#996633;
#p-Menu2 div,
  font: normal 105% Verdana;
#p-Menu3 div {
margin: 0;
padding: 0;
}
}
   
   
/* this is an example to make the list of the second entry bigger e.g. when there is a longer text in a list item
table.questrewards td:first-child {
#p-Menu ul li.item2 ul {
  text-align:center;
width: 16em;
  width:100px;
  font: normal 95% Verdana;
  color:#ffffff;
}
 
table.questrewards td:last-child {
  font: normal 100% Arial;
}
 
table.questrewards tr {
  vertical-align:top;
}
 
/* Item list templates */
.itemtable {
    display:table;
    margin-left:6px;
    margin-bottom:10px;
}
 
.itemtable_row {
    display:table-row;
}
 
.itemtable_cell {
    display:table-cell;
    padding:5px;
}
 
.itemtable_caption {
    font-weight: bold;
}
 
.itemlist ul {
  list-style: none;
  list-style-type: none;
  list-style-image: none;
}
 
.creatureitems {
    display:inline-block;
    padding:3px;
    margin-bottom:1px;
}
 
.creatureitems > span {
    position: absolute;
}
 
.creatureitems > span > span {
    font-size:29px;
    z-index:1;
    position: absolute;
    right: -32px;
    bottom: -26px;
}
 
/* Horizontal ToC bar (dungeon and quest templates) */
.contentsbar {
    background:#000033;
    padding:5px;
    width:100%;
    text-align:center;
}
 
/* Map point template */
.mappoint {
    position:relative;
    top:0px;
    left:0px;
    width:260px;
}
.mappoint span:first-child {
    position:absolute;
    top:2px;
    left:2px;
    z-index:1;
}
 
.mappoint span + span, .mappointloc {
    z-index:2;
}
 
/* Tooltips */
.htt .tooltip-content .tooltip-hide, .hidden { display:none; }
 
.tooltip-error {
  background-color: black;
  color: white;
  max-width: 18em;
}
 
.tooltip-ready {
  visibility:hidden;
  display:block;
  z-index:999;
}
 
.creaturetooltip {
  background-color: #f9f9f9;
}
 
/* Top navigation links */
.top-nav-links {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    color:#ffffff;
}
 
/* Return to section link */
.linkbar {
  width:25%;
  padding: 5px;
  margin: 3px;
  font-size:85%;
}
 
.linkbar span {
  font-weight:bold;
}
 
.linkbar div {
  float: right;
}
 
/* Section background colors */
.accwikibgc {background: #996633}
.characterbgc {background: #996633}
.gameplaybgc {background: #996633}
.newsbgc {background: #996633}
.questsbgc {background: #996633}
.itemsbgc {background: #996633}
.craftingbgc {background: #996633}
.worldbgc {background: #996633}
.lorebgc {background: #996633}
.gettingstartedbgc {background: #996633}
.mediabgc {background: #996633}
.turbinebgc {background: #996633}
 
/* Hide main page title */
body.page-Home h1.firstHeading {display:none;}
 
/* START OF NEW CSS AS OF 2021 */
/* CSS above may still be in use but will be phased out */
 
/*Home Panel Template */
.home-panel {
    background:#000033;
    border:2px solid #996633;
    margin:0.3em;
    padding:0.3em;
    width:97%;
    color:#ffffff;
}
 
.home-panel-header {
    background:#996633;
}
 
/* Styles for Template:Turbine Games Q&A */
.wiki-template-turbinegamesqa {
    background-color:#000000;
    border:2px solid #000000;
    width:80%;
    padding:30px;
    margin-bottom:20px;
    margin-left:5%;
    margin-right:10%
}
}
*/
 
.wiki-template-turbinegamesqa [href]:link {
/* this an example to change the background color of every second list item
    color: #FFFFCC;
li.even {
    text-decoration: underline
background-color: #eeeeee;
}
}
*/
   
.wiki-template-turbinegamesqa [href]:visited {
.menuSidebar ul { /* remove bullets and list indents */
    color: #FFFFCC;
list-style: none;
    text-decoration: underline
margin: 0;
padding: 0;
}
}
   
/* this div is only for better handling and navigation  ... could also be done in inner ul*/
.wiki-template-turbinegamesqa [href]:hover {
.menuSidebar ul div {
    color: #FFFF66;
position: absolute;
    text-decoration: underline
top: -6px;
left: 100%; /* to position them to the right of their containing block */
width: 100%; /* width is based on the containing block */
z-index: 100; /* show ul on top */
}
}
   
.menuSidebar ul ul {  
.wiki-template-turbinegamesqa [href]:active {
background-color: white;
    color: #FFFFCC;
border: 1px solid #aaaaaa;
    text-decoration: underline
margin-top: 5px; /* make navigation easier*/
margin-bottom: 5px; /* make navigation easier*/
z-index: 101; /* show on top; Needed for IE 7 */
width: 12em; /* width of inner menu, Needed for IE 7 */
}
}
 
.menuSidebar li {
/* Chat colors */
position: relative; /* make li a container for inner elements */
span.say {
margin: 1px;
color:black;
z-index: 102; /* show on top; Needed for IE 7 */
}
}
 
/* style, color and size links and headings to suit */
span.emote {
.menuSidebar a {
color:grey;
font-weight: normal;
display: block;
border-width: 0px 0px 0px 0px;
border-style: solid;
border-color: #aaaaaa;
margin: 0px;
padding: 1px;
padding-left: 5px;
color: #0000ff;
text-decoration: none;
}
}
 
/* move the > to the right */
span.tell {
.menuSidebar a em {
color:darkgoldenrod;
position: absolute;
right: 4px;
}
}
 
.menuSidebar li:hover, /* Needed for IE 7 */
span.event {
.menuSidebar a:hover {
color:green;
background: #ccccff;
}
}
 
.menuSidebar li.separator a:hover {
span.magic {
background: white;
color:cornflowerblue;
}
}
 
/* Needed for IE 7 */
/* Buffed/debuffed stat color */
.menuSidebar li.separator a,
span.buffed {
.menuSidebar li.separator {
color:greenyellow;
line-height: 0px;
height: 0px;
font-size: 0px;
}
}
 
.menuSidebar ul li:last-Child a {  
span.debuffed {
border-width: 0px 0px 0px 0px; // remove the last bottom line
color:red;
padding-bottom: 0px;
}
}
/* hides the first level */
.menuSidebar ul li div { display: none; }
/* shows the first level and hide the second */
.menuSidebar ul li:hover div,
.menuSidebar ul li div:hover { display: block; } /* div is again used for easier navigation*/
.menuSidebar ul li:hover ul li div { display: none; } /* hide the next level */
/* second level*/
.menuSidebar ul li ul li:hover div,
.menuSidebar ul li ul li div:hover  { display: block; } /* div is again used for easier navigation*/
.menuSidebar ul li ul li:hover ul li div { display: none; }  /* hide the next level */
/* third level */
.menuSidebar ul li ul li ul li:hover div,
.menuSidebar ul li ul li ul li div:hover  { display: block; } /* div is again used for easier navigation*/
.menuSidebar ul li ul li ul li:hover ul li div { display: none; }  /* hide the next level */

Revision as of 16:27, 31 March 2021

/** CSS placed here will be applied to all skins except the default Wikia skin */

/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa; 
    background-color: #ecfcf4; 
    padding: 5px;
}

/* Auto-number rows in tables */

table.numbered { counter-reset: row; }
table.numbered td:first-child:before { counter-increment: row; content: counter(row) ". "; }

/* Make the list of references smaller */
ol.references {
    font-size: 100%;
}
.references-small { 
    font-size: 90%;
}

/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */
/* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */
/* column-count is from the CSS3 module "CSS Multi-column Layout" */
/* Please ignore any validator errors caused by these two lines */
.references-2column {
    font-size: 90%;
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
}

/* Highlight clicked reference in blue to help navigation */
ol.references > li:target {
    background-color: #333366;
}

sup.reference:target { 
    background-color: #333366;
}

/* Styling for citations */
cite {
    font-style: normal;
    word-wrap: break-word;
}

/* If there is an inline link to a full citation, the full citation will turn blue when the inline link is clicked */
cite:target { 
    background-color: #333366;
}

/* For linked citation numbers and document IDs, where the number need not be shown on a screen or a handheld, but should be included in the printed version */

@media screen, handheld, projection {
    cite *.printonly {
        display: none;
    }
}

/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
   in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {
    float:right;
    font-weight:normal;
    margin-left:0.5em;
    text-align:right;
    width:auto;
}

/* 'collapse'/'expand' buttons created by the mw-collapsible javascript */
.collapse span.mw-collapsible-toggle {float: left;}

/* Table alignment */
.columnscenter tr {text-align:center;}
.columnsright tr {text-align:right;}
.columntworight td:nth-child(2) {text-align:right;}
.columnstop td {vertical-align: top;}

/* Homepage styling */
#mainpage_container {
    width:100%;
    margin:1em 0 0;
    padding:2px;
}

.mainpage_box {
    width:33%;
    padding:5 0em;
    vertical-align:top;
}

.mainpage_boxheader {
    border:1px solid #996633;
    padding:5px;
    margin:3px;
    text-align: center;
}

.mainpage_boxheader div {
    float:right;
}

.mainpage_boxcontents {
    padding:0 2em;
}

/* Item and Equipment Templates */
.item {
   float:left;
   width:300px;
   border:1px solid #907854;
   background-color: #1a1a1a;
   color: #FFFFFF;
   padding: 0.2em;
   font-size: 0.90em;
   font-family: Verdana, Arial, sans-serif;
}

.item span {color:GreenYellow}
.item a:visited {color:SkyBlue}
.item a:link, a:hover, a:active {color:RoyalBlue}

.item_textbox {
   background-color:#e6dd80;
   border:1px solid #cc9900;
   color:#000000;
   padding:30px;
   width:500px;
   margin:10px auto 0;
   text-align:justify;
}

.item_textbox #author {
   border-top:1px solid #cc9900;
   margin:10px 0;
}

.item ul, .item_textbox ul {
   margin: 0;
   padding: 0;
   list-style: none;
   list-style-type: none;
   list-style-image: none;
}

.item li.topbottomspace {margin:10px 0px;}
.item li.topspace {margin-top:10px;}
.item li.bottomspace {margin-bottom:10px;}
.item li.dmgbonus {padding-left:6px;}
.item li.inscription {border-top:1px solid #907854;}

#item_header {
   display:table;
   padding:2px;
   text-align:center;
   width:100%;
   font-weight:bold;
}

#item_header div {
   display:table-cell;
   vertical-align: middle;
}

#item_header div + div {
   display:table-cell;
   vertical-align: middle;
   width:40px;
}

/* Dyed Variations Template */
.dyedvariations {
    border: 1px solid white;
    border-collapse: collapse;
    background:#404040;
    color:white;
    margin-left: auto;
    margin-right: auto;
}

.dyedvariations td {
    border: 1px solid white;
    padding:5px;
}

.dyedvariations th {
    font-size:large;
    font-weight: bold;
    padding:5px;
}

/* Creature and NPC Templates */
.character-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}

.character-infobox th {
    padding:0.5em;
    font-size:120%;
}

/* Dungeon Summary Template */
.location-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}

.location-infobox th {
    padding:0.5em;
    font-size:120%;
}

/* Quest Summary Template */
.quest-infobox {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    width:22em;
    float:right;
    font-size:95%;
    color:#ffffff;
}

.quest-infobox th {
    padding:0.5em;
    text-align:center;
    font-size:120%;
}

/* Quest Rewards Template */
table.questrewards {
    width:375px;
    background:#000033;
    border:2px solid #996633;
    margin-bottom:3px;
}
 
table.questrewards th {
   background:#996633;
   font: normal 105% Verdana;
}
 
table.questrewards td:first-child {
   text-align:center;
   width:100px;
   font: normal 95% Verdana;
   color:#ffffff;
}

table.questrewards td:last-child {
   font: normal 100% Arial;
}

table.questrewards tr {
   vertical-align:top;
}

/* Item list templates */
.itemtable {
    display:table;
    margin-left:6px;
    margin-bottom:10px;
}

.itemtable_row {
    display:table-row;
}

.itemtable_cell {
    display:table-cell;
    padding:5px;
}

.itemtable_caption {
    font-weight: bold;
}

.itemlist ul {
   list-style: none;
   list-style-type: none;
   list-style-image: none;
}

.creatureitems {
    display:inline-block;
    padding:3px;
    margin-bottom:1px;
}

.creatureitems > span {
    position: absolute;
}

.creatureitems > span > span {
    font-size:29px;
    z-index:1;
    position: absolute;
    right: -32px;
    bottom: -26px;
}

/* Horizontal ToC bar (dungeon and quest templates) */
.contentsbar {
    background:#000033;
    padding:5px;
    width:100%;
    text-align:center;
}

/* Map point template */
.mappoint {
    position:relative;
    top:0px;
    left:0px;
    width:260px;
}
.mappoint span:first-child {
    position:absolute;
    top:2px;
    left:2px;
    z-index:1;
}

.mappoint span + span, .mappointloc {
    z-index:2;
}

/* Tooltips */
.htt .tooltip-content .tooltip-hide, .hidden { display:none; }

.tooltip-error {
   background-color: black;
   color: white;
   max-width: 18em;
}

.tooltip-ready {
  visibility:hidden;
  display:block;
  z-index:999;
}

.creaturetooltip {
   background-color: #f9f9f9;
}

/* Top navigation links */
.top-nav-links {
    background:#000033;
    border:2px solid #996633;
    padding:0.3em;
    color:#ffffff;
}

/* Return to section link */
.linkbar {
  width:25%;
  padding: 5px;
  margin: 3px;
  font-size:85%;
}

.linkbar span {
  font-weight:bold;
}

.linkbar div {
  float: right;
}

/* Section background colors */
.accwikibgc {background: #996633}
.characterbgc {background: #996633}
.gameplaybgc {background: #996633}
.newsbgc {background: #996633}
.questsbgc {background: #996633}
.itemsbgc {background: #996633}
.craftingbgc {background: #996633}
.worldbgc {background: #996633}
.lorebgc {background: #996633}
.gettingstartedbgc {background: #996633}
.mediabgc {background: #996633}
.turbinebgc {background: #996633}

/* Hide main page title */
body.page-Home h1.firstHeading {display:none;}

/* START OF NEW CSS AS OF 2021 */
/* CSS above may still be in use but will be phased out */

/*Home Panel Template */
.home-panel {
    background:#000033;
    border:2px solid #996633;
    margin:0.3em;
    padding:0.3em;
    width:97%;
    color:#ffffff;
}

.home-panel-header {
    background:#996633;
}

/* Styles for Template:Turbine Games Q&A */
.wiki-template-turbinegamesqa {
    background-color:#000000;
    border:2px solid #000000;
    width:80%;
    padding:30px;
    margin-bottom:20px;
    margin-left:5%;
    margin-right:10%
}

.wiki-template-turbinegamesqa [href]:link {
    color: #FFFFCC;
    text-decoration: underline
}
    
.wiki-template-turbinegamesqa [href]:visited {
    color: #FFFFCC;
    text-decoration: underline
}
    
.wiki-template-turbinegamesqa [href]:hover {
    color: #FFFF66;
    text-decoration: underline
}
    
.wiki-template-turbinegamesqa [href]:active {
    color: #FFFFCC;
    text-decoration: underline
}

/* Chat colors */
span.say {
color:black;
}

span.emote {
color:grey;
}

span.tell {
color:darkgoldenrod;
}

span.event {
color:green;
}

span.magic {
color:cornflowerblue;
}

/* Buffed/debuffed stat color */
span.buffed {
color:greenyellow;
}

span.debuffed {
color:red;
}