Difference between revisions of "MediaWiki:Common.css"

From Hitchwiki
Jump to navigation Jump to search
m
Line 1: Line 1:
 
/** CSS placed here will be applied to all skins */
 
/** CSS placed here will be applied to all skins */
 +
 +
/** --------- Languages at front page ------- */
 +
/* HTML: http://hitchwiki.org/en/Template:Startpage-language*/
 +
.primary_wikis {
 +
  display: block;
 +
  margin: 0;
 +
  padding: 0 0 10px 0;
 +
  list-style: none;
 +
  text-align: center;
 +
}
 +
  .primary_wikis li {
 +
    display: inline-block;
 +
    list-style: none;
 +
    width: 123px;
 +
    height: 110px;
 +
    margin: 0;
 +
    padding: 0;
 +
    overflow: hidden;
 +
    text-align: center;
 +
    padding: 15px 0 0 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;
 +
        font-family: 'trebuchet ms',helvetica,arial,sans-serif;
 +
        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: #ab8e2c;
 +
      }
 +
 +
/* HTML: http://hitchwiki.org/en/Template:Startpage-babylanguage */
 +
.secondary_wikis {
 +
  clear: both;
 +
  display: block;
 +
  padding-top: 30px;
 +
  padding-bottom: 30px;
 +
  font-size: 13px;
 +
  font-family: 'trebuchet ms',helvetica,arial,sans-serif;
 +
  text-align: center;
 +
}
 +
  .secondary_wikis ul {
 +
    display: table;
 +
    width: 100%;
 +
    margin: 0;
 +
    padding: 0;
 +
  }
 +
  .secondary_wikis li {
 +
    display: table-cell;
 +
    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 ---------
 
/** --------- Infobox location/country styling ---------

Revision as of 14:41, 25 May 2015

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

/** --------- Languages at front page ------- */
/* HTML: http://hitchwiki.org/en/Template:Startpage-language*/
.primary_wikis {
  display: block;
  margin: 0;
  padding: 0 0 10px 0;
  list-style: none;
  text-align: center;
}
  .primary_wikis li {
    display: inline-block;
    list-style: none;
    width: 123px;
    height: 110px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
    padding: 15px 0 0 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;
        font-family: 'trebuchet ms',helvetica,arial,sans-serif;
        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: #ab8e2c;
      }

/* HTML: http://hitchwiki.org/en/Template:Startpage-babylanguage */
.secondary_wikis {
  clear: both;
  display: block;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 13px;
  font-family: 'trebuchet ms',helvetica,arial,sans-serif;
  text-align: center;
}
  .secondary_wikis ul {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .secondary_wikis li {
    display: table-cell;
    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;
}
/* --------------------------------------------------------- */