MediaWiki:Common.css

From Libregamewiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
 .wikitable,
 .prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #AAA solid;
  border-collapse: collapse;
  empty-cells:show;
 }
 
 .wikitable th, .wikitable td,
 .prettytable th, .prettytable td {
  border: 1px #AAA solid;
  padding: 0.3em;
 }
 
 .wikitable caption,
 .prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
  font-weight: bold;
 }

.stubbox {
  border: 1px solid #CCCCCC;
  padding: 0.8em 0 1em 5em;
  margin: 2em 0 0 0;
  background: url("/images/c/c5/Tools.png") no-repeat scroll 0.4em 0.2em transparent;
}

#mouseoverpopupwindow {display:none}

.halfpagecolumn {
 width: 50%
}
.heading {
 margin: 0em 0em 1em 0em;
 background:#ffc; font-size:120%; font-weight:bold; border:1px solid #fa8; text-align:left; color:#000; padding:0.2em 0.4em;
 clear:both
}
.featuredarticle {
 margin: 0.5em 0.5em 1em 0.5em
}

.gamelist .gameinfobox {display:none}



/* based on http://css-tricks.com/2282-simple-jquery-dropdowns/ */
div.dropdownmenu {}
div.dropdownmenu a  { text-decoration: none; }
div.dropdownmenu ul { margin: 0; padding: 0; list-style: none; position: relative; text-wrap: avoid}
div.dropdownmenu ul li       { float: left; zoom: 1; background: #F5FAFF}
div.dropdownmenu>ul>li       { border-top: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; margin-bottom:1em}
div.dropdownmenu ul a:hover  { color: #000; }
div.dropdownmenu ul a:active { color: #ffa500; }
div.dropdownmenu ul li span     { display: block; padding: 4px 8px; border-right: 1px solid #AAAAAA; color: #222; }
div.dropdownmenu span.selectedmenu {display: block; background-color:#eee; font-weight: bold}
div.dropdownmenu ul li:last-child span { border-right: none; } /* Doesn't work in IE */
/*div.dropdownmenu ul ul li { display: inline; width: 100%; } */
div.dropdownmenu ul li.hover,
div.dropdownmenu ul li:hover   { background: #F3D673; color: black; position: relative; }
div.dropdownmenu ul li.hover a { color: black; }
div.dropdownmenu ul ul 	       { width: 220px; visibility: hidden; position: absolute; top: 100%; left: 0; border: 1px solid #AAAAAA; padding: 0.2em; background-color: #ccc}
div.dropdownmenu ul ul li      { font-weight: normal; background: #f6f6f6; color: #000; border-bottom: 1px solid #ccc; float: none; }
div.dropdownmenu ul ul li a    { width:180px; display: inline-block; } 
div.dropdownmenu ul li.hover li a { color: #0645AD; }
div.dropdownmenu ul li.hover li:hover a { color: black; }
div.dropdownmenu ul ul li a:first-child { display: inline; } 
div.dropdownmenu ul ul ul      { left: 100%; top: 0; }
div.dropdownmenu ul li:hover > ul { visibility: visible; }

/* display the game menu at the top, but have the html code at the bottom internally */
#firstHeading {margin-top: 2em}
.genredropdownmenu {position: absolute; top: -8em}

kbd {
border:1px solid #ccc;
border-radius:3px;
box-shadow:0 1px 0 rgba(0,0,0,0.2),0 0 0 2px #fff inset;
margin:0 .1em;
padding:.1em .6em;
}


/* hide title on Main Page*/

.page-Main_Page h1.firstHeading span,
.page-Main_Page #contentSub,
.page-Main_Page #catlinks { display: none; }
.page-Main_Page .genredropdownmenu {position: absolute; top: -2em}