MediaWiki:Common.css

From Hitchwiki
Revision as of 19:32, 30 October 2014 by Kundrt (talk | contribs)
Jump to navigation Jump to search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/** CSS placed here will be applied to all skins */

/** --------- Infobox location/country styling ---------
 * http://hitchwiki.org/en/Template:Infobox_Location
 * http://hitchwiki.org/en/Template:Infobox_Country */
.infobox {
  width: 25em;
  text-align: left;
  font-size: 85%;
  border: 1px solid #aaa;
  border-radius: 4px;
  border-collapse: separate; 
  clear: right;
}

.infobox-h1 {
  text-align:center;
}
.infobox-h1 div {
  font-size: large;
  width: 80%;       /* for centering heading */
  margin: auto;    /* text-align: center; alone doesn't work because of the toggle in the same table row/cell */
}

/* Hide/show switch */
.infobox .mw-collapsible-toggle, .infobox .mw-collapsible-toggle a {
  font-weight:normal;
  color:black;
}

/* 2nd heading (Information) */
.infobox-h2 {
  text-align:center;
  background:#D8E2EF;
  border-top: 1px solid #aaa;
  /*border-bottom: 1px solid #aaa;*/
  padding: 0;
 }

.infobox th {
  padding: 0.3em;
}

/* Flags, coat of arms etc. */
.infobox .floatright {
  margin: 0;
}

.infobox-map div {
  margin: 0 5px 5px 5px !important;
}
/* text "See full map" */
.infobox-map small {
  position: relative;
  bottom: 7px;
}
/* --------------------------------------------------------- */