MediaWiki:Refreshed.css: Difference between revisions

From BIONICLEsector01
m (Try this, Morris :P)
mNo edit summary
Line 246: Line 246:
         Good for wikis, as article names can be copy/pasted to make links that aren't all caps. */
         Good for wikis, as article names can be copy/pasted to make links that aren't all caps. */
     font-variant: small-caps !important;
     font-variant: small-caps !important;
    text-transform: lowercase;
     letter-spacing: .05em;
     letter-spacing: .05em;
     line-height: 1em;
     line-height: 1em;

Revision as of 05:10, 14 July 2017

body,
#firstHeading,
.standard-toolbox,
.header-button,
#searchInput,
#content-wrapper,
#bodyContent,
#catlinks {
  font-family: "Franklin Gothic", sans-serif;
}

h2, h3 {
  font-weight: normal;
}
body {
  background: #a8dae3 url(//biosector01.com/wiki/skins/MonoBook/bgbio2015.jpg) no-repeat center center fixed;
  background-size: cover;
}

#header-wrapper {
  background: #54a1ac;
  top: 0; /* prevents changes to #content-wrapper's margin-top from pushing the header down */
}

.header-button:hover, .header-button-active, .header-dropdown-item:hover {
  background-color: initial;
  opacity: .5;
}

#site-info {
  width: 14.5em;
  position: relative;
}

#site-info:before {
  content: "";
  width: 100%;
  height: 0;
  position: absolute;
  top: 3em;
  left: 0;
  border-right: 1.5em solid transparent;
  border-top: 1.5em solid #54a1ac;
  z-index: 0;
  /* min-width: 15em; */
}

#site-info-main,
#site-info-main > .header-button {
  width: 100%;
}

.main.header-button img {
  height: 4em;
  padding-top: .25em;
  padding-left: .25em;
  width: auto;
  position: relative;
  margin-bottom: 0 !important;
}


#user-info,
.header-button {
  height: 100%;
  /* this combined with .username's max-height and overflow will
  cut off long usernames so they don't break the header */
}

.username {
  text-transform: uppercase;
  /* max-width: 130px; */
  display: inline-block;
  line-height: 1em;
  text-align: left;
  max-width: 138px;
  vertical-align: middle;
  font-size: 1.1em;
  max-height: 100%;
  overflow: hidden;
}


#searchInput {
  padding: .4em;
}

#searchInput:focus {
  outline: 0;
  border-color: #056b7d;
  box-shadow: inset 0 0 0 0.2em #056b7d;
}

#searchInput::-webkit-input-placeholder {
    font-weight: normal;
}

#searchInput:-moz-placeholder {
    font-weight: normal;
}

#searchInput:-ms-input-placeholder {
    font-weight: normal;
}

#sidebar-wrapper {
  position: fixed;
  width: 10em;
  overflow: hidden;
}

#content-wrapper, #footer {
  margin-left: 10em;
}

#sidebar {
  top: 5.25em; /* extra 2em for the nevel part of the header (1.5em), and then some extra space */
  font-size: .9em;
  line-height: 1.6em;
  text-shadow: 0 0 2em #056b7d;
  height: 100%;
  padding-right: 100%; /* enough padding so that scrollbars are pushed outside #sidebar-wrapper and hidden */
}

/*
.sidebar-section .main:before {
    content: "⟨";
    display: inline-block;
    transform: rotate(60deg);
    padding-right: .5em;
    margin-left: -.75em;
    font-size: .8em;
    height: 100%;
}
*/

.sidebar-section .main {
  text-transform: uppercase;
  font-weight: bold;
  font-size: .9em;
  overflow: visible; /* prevent text-shadow from being cut off */
  font-size: .8em;
  letter-spacing: .1em;
  font-weight: normal;
}

.sidebar-social-button {
  padding-left: 1em;
  margin-left: 5px !important;
}

#content-wrapper:before {
  content: "";
  width: calc(100% - 6em); /* (width of #content-wrapper: 100%) - (part of header bevel that pushes over into #content-wrapper: 14.5em [bevel width] + 1.5em [bevel border width] - 10em [sidebar width])*/
  height: 0;
  position: absolute;
  bottom: 100%;
  left: 4.5em; /* part of header bevel that pushes over into #content-wrapper: 14.5em [bevel width] + 1.5em [bevel border width] - 10em [sidebar width] */
  border-left: 1.5em solid transparent;
  border-bottom: 1.5em solid rgba(255, 255, 255, 0.75);
  z-index: 0;
  /* min-width: 15em; */
}


#content-wrapper {
  margin-top: 1.5em;
  padding-top: 0em;
  background-color: rgba(255, 255, 255, 0.75);
}

.fixed-toolbox {
  padding-left: initial;
  position: absolute;
  border-bottom: initial;
  background: initial;
  top: initial;
  left: initial;
  right: initial;
  z-index: initial;
}

.standard-toolbox a {
    padding-left: .25em;
    padding-right: .25em;
}

h1#firstHeading {
    font-size: 2.25em;
}

/***** BIONICLE: Encyclopedia-style image thumbnails *****/
div.thumbinner {
    background: none;
    border: none;
    /* get rid of min-width of 100px (looks bad with this style of thumbnail) */
    min-width: 0;
}

html .thumbimage {
    border: none;
}

html .thumbcaption {
    color: #fff;
    background-color: #000;
    position: relative;
    /* MediaWiki sets .thumbcaption's container to be 2px wider than the image; to compensate shrink the caption by 2px */
    margin-left: 1px;
    margin-right: 1px;
}

.thumbcaption a {
    color: inherit;
    font-weight: bold;
}

.thumbcaption:before {
    content: "";
    width: 30%;
    min-width: 10px;
    height: 0;
    position: absolute;
    top: -10px;
    left: 0;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #000;
}

.tleft {
    -webkit-clip-path: polygon(calc(100% - 2em) 0, 100% 2em, 100% 100%, 0 100%, 0 0);
    clip-path: polygon(calc(100% - 2em) 0, 100% 2em, 100% 100%, 0 100%, 0 0);
}

.tright {
    -webkit-clip-path: polygon(2em 0, 100% 0, 100% 100%, 0 100%, 0 2em);
    clip-path: polygon(2em 0, 100% 0, 100% 100%, 0 100%, 0 2em);
}

/***** Fonts *****/

/* Lato body (Refreshed's name for Lato 400) looks like the traditional Bionicle font Gill Sans when it's all uppercase */
h1, h2, h3, h4, h5, h6 {
    font-family: "Lato body";
    /* Makes font appear to be all caps (albeit with smaller characters), but copy/paste maintains original case.
        Good for wikis, as article names can be copy/pasted to make links that aren't all caps. */
    font-variant: small-caps !important;
    text-transform: lowercase;
    letter-spacing: .05em;
    line-height: 1em;
}

#firstHeading {
    font-family: "TradeMarker Light";
}