Open main menu

MediaWiki:Common.css

Revision as of 21:28, 28 September 2019 by Mikael (talk | contribs)

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 */


/**
 * Styles for http://hitchwiki.org/en/MediaWiki:Sitenotice
 */
#siteNotice {
   background: #ede2bf;
   font-size: 16px;
   margin: 0 0 15px 0;
}
#localNotice,
.mw-dismissable-notice {
   padding: 10px;
}
#siteNotice a {
   color: #613000;
}
.mw-dismissable-notice-close {
  padding: 5px;
}



/** --------- Languages at front page ------- */
/* HTML: http://hitchwiki.org/en/Template:Startpage-language*/
.primary_wikis {
  display: block;
  margin: 0;
  padding: 0 0 5px 0;
  list-style: none;
  text-align: center;
}
  .primary_wikis li {
    display: inline-block;
    list-style: none;
    width: 80px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
    padding: 10px 0;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 200ms;
    -moz-transition: all 200ms; /* Firefox 4 */
    -webkit-transition: all 200ms; /* Safari and Chrome */
    -o-transition: all 200ms; /* Opera */
    }
    .primary_wikis li:hover {
      background: #f3da70;
      border-color: #d5a72d;
    }
    .primary_wikis li a:link,
    .primary_wikis li a:visited,
    .primary_wikis li a:active,
    .primary_wikis li a:hover {
      text-decoration: none;
      width: 100%; 
      height: 100%;
      display: block; 
    }
      .primary_wikis li p {
        margin-bottom: 0;
      }
      .primary_wikis li strong {
        font-size: 15px;
        display: block;
        line-height: 16px;
        padding: 8px;
      }
      .primary_wikis li .flag {
        display: block;
        height: 32px;
        overflow: hidden;
        text-align: center;
      }
      .primary_wikis li small {
        font-size: 11px;
        line-height: 12px;
        color: #6a6a6a;
      }

/* HTML: http://hitchwiki.org/en/Template:Startpage-babylanguage */
.secondary_wikis {
  clear: both;
  display: block;
  padding-top: 10px;
  font-size: 13px;
  text-align: center;
}
  .secondary_wikis ul {
    display: block;
    margin: 0;
    padding: 0;
  }
  .secondary_wikis li {
    display: block;
    margin: 0;
    padding: 0;
  }
  .secondary_wikis li a:link,
  .secondary_wikis li a:visited, 
  .secondary_wikis li a:hover,
  .secondary_wikis li a:active {
    display: inline-block;
    line-height: 12px;
    font-size: 12px;
    color: #997d20;
    text-align: center;
    float: left;
    text-decoration: none;
    margin: 5px;
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0);
  }
  .secondary_wikis li a:hover,
  .secondary_wikis li a:active {
    border-radius: 5px;
    text-decoration: none;
    background: #f3da70;
    border-color: #d5a72d;
  }
  .secondary_wikis strong {
    display: block;
    padding: 5px 0;
  }
  .secondary_wikis small {
    font-size: 11px;
    display: block;
    width: 100%;
    font-size: 8pt;
  }
  .secondary_wikis a:link,
  .secondary_wikis a:visited,
  .secondary_wikis a:hover,
  .secondary_wikis a:active {
    color: #956520;
  }


/** --------- 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;*/
 }

.infobox th { padding: 0.3em; }
.infobox th.infobox-h2 { padding: 0; }

/* 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;
}

/* --------------------------------------------------------- */

/* Hide "redirected from" from Hitchgathering pages (we get there via URL `/en/hitchgathering/latest` ) */
.page-Hitchgathering_2017 .mw-redirectedfrom,
.page-Hitchgathering_2018 .mw-redirectedfrom,
.page-Hitchgathering_2019 .mw-redirectedfrom,
.page-Hitchgathering_2020 .mw-redirectedfrom,
.page-Hitchgathering_2021 .mw-redirectedfrom,
.page-Hitchgathering_2022 .mw-redirectedfrom,
.page-Hitchgathering_2023 .mw-redirectedfrom,
.page-Hitchgathering_2024 .mw-redirectedfrom,
.page-Hitchgathering_2025 .mw-redirectedfrom  {
  display: none;
}