MediaWiki:Common.css: Difference between revisions

From Erudite Tales
Jump to navigation Jump to search
No edit summary
Tag: Reverted
mNo edit summary
 
(9 intermediate revisions by the same user not shown)
Line 42: Line 42:
   text-shadow: 1px 1px 2px #222;
   text-shadow: 1px 1px 2px #222;
   width: 30ex
   width: 30ex
}
/* -- Setting Nav (WIP) - Derived from CSS on https://zelda.gamepedia.org -- */
.setting {
  display: inline-block;
  position: relative;
  font-size: 0;
  margin: 2px;
}
/* "Stretches" the setting link over the tile image.
* Relying on pixel sizes is not ideal and makes the design very delicate.
* It will have to do until a more elegant solution arises.
*/
.setting a {
  width: 100%;
  height: 101%;
  clip: rect(0px, 230px, 125px, 0px);
  /* Overdoing the height by 1% and clipping it off prevents the bug on
    certain browsers/OSes/screen-zoom-ins where the shadow falls short by a
    few pixels and doesn't cover the whole image. */
  display: inline-block;
  font-style: normal;
  color: black;
  position: absolute;
  line-height: 29px;
  font-size: 25px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.6);
  /* Vertically centres game title text. Flex boxes are not compatible with IE. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.setting a:hover{
  background-color: rgba(0, 0, 0, 0.3);
}
.setting-container {
  margin: 0 auto 3em; /* Mainly to add space below the settings, above the Categories */
}
}


Line 61: Line 105:
}
}


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


/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
    font-weight: normal;
    /* @noflip */
    text-align: right;
}


/* Infobox template style */
/* Infobox template style */
Line 98: Line 124:
}
}
.infobox caption {
.infobox caption {
     font-size: 125%;
     font-size: 300%;
     font-weight: bold;
     font-weight: bold;
     padding: 0.2em;
     padding: 0.2em;
    background-color: #000000;
}
}
.infobox td,
.infobox td,

Latest revision as of 03:51, 7 February 2025

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

/* Hiding titles on MP and Setting Portals */

body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }

/* ---Edits the top header--- */

div#mw-page-base {
background: none
}

/* -Background Border- */
html, body {
    background: #e5f299;
  }

/* -Body Content- */
div.mw-body
{
background-color: RGB(249, 236, 195);
color: #000000;
}

div.mw-body-content
{
background-color: RGB(249, 236, 195);
}
table.mp-topbanner
{
background-color: RGB(249, 236, 195);
}

/* Front Page Fanciness */
.headerbarcenter {
  align: center;
  margin: 5px; 
  padding: 5px; 
  color: white; 
  font-size: 200%; 
  font-weight: bold;
  text-shadow: 1px 1px 2px #222;
  width: 30ex
}

/* -- Setting Nav (WIP) - Derived from CSS on https://zelda.gamepedia.org -- */

.setting {
  display: inline-block;
  position: relative;
  font-size: 0;
  margin: 2px;
}

/* "Stretches" the setting link over the tile image.
 * Relying on pixel sizes is not ideal and makes the design very delicate.
 * It will have to do until a more elegant solution arises.
 */
.setting a {
  width: 100%;
  height: 101%;
  clip: rect(0px, 230px, 125px, 0px);
  /* Overdoing the height by 1% and clipping it off prevents the bug on
     certain browsers/OSes/screen-zoom-ins where the shadow falls short by a
     few pixels and doesn't cover the whole image. */

  display: inline-block;
  font-style: normal;
  color: black;
  position: absolute;
  line-height: 29px;
  font-size: 25px;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.6);

  /* Vertically centres game title text. Flex boxes are not compatible with IE. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setting a:hover{
  background-color: rgba(0, 0, 0, 0.3);
}

.setting-container {
  margin: 0 auto 3em; /* Mainly to add space below the settings, above the Categories */
}

/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
    font-size: 100%;
}
.navbox .navbar {
    display: block;
    font-size: 100%;
}
.navbox-title .navbar {
    /* @noflip */
    float: left;
    /* @noflip */
    text-align: left;
    /* @noflip */
    margin-right: 0.5em;
}



/* Infobox template style */
.infobox {
    border: 1px solid #000000;
    border-spacing: 3px;
    background-color: #ffffcc;
    color: #000000;
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}
.infobox caption {
    font-size: 300%;
    font-weight: bold;
    padding: 0.2em;
}
.infobox td,
.infobox th {
    vertical-align: top;
    /* @noflip */
    text-align: left;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}

.infobox.standard-talk {
    border: 1px solid #c0c090;
    background-color: #000000;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
    border: 1px solid #c0c090;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #a2a9b1;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    /* @noflip */
    border-right: 1px solid #a2a9b1;
}

/* Styles for geography infoboxes, eg countries,
   country subdivisions, cities, etc.            */
.infobox.geography {
    border-collapse: collapse;
    line-height: 1.2em;
    font-size: 90%;
}

.infobox.geography  td,
.infobox.geography  th {
    border-top: 1px solid #a2a9b1;
    padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
    border-top: 1px solid #a2a9b1;
    padding: 0.4em 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
    border: 0;
    padding: 0 0.6em 0.2em 0.6em;
}

.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
    border-top: 0;
    border-bottom: 1px solid #a2a9b1;
    padding: 0 0.6em 0.4em 0.6em;
}

.infobox.geography .maptable td,
.infobox.geography .maptable th {
    border: 0;
    padding: 0;
}