Difference between revisions of "MediaWiki:Common.css"

From RetroMMO Wiki
m (Replaced em with rem to respect the root font-size)
(Updated border image for infobox and other tweaks)
Line 63: Line 63:
 
   width: 20rem;
 
   width: 20rem;
 
   border: 1px solid #fec9ed;
 
   border: 1px solid #fec9ed;
   border-collapse: collapse;
+
   border-collapse: separate;
 
   margin: 0.25rem 0.5rem;
 
   margin: 0.25rem 0.5rem;
 
   text-align: center;
 
   text-align: center;
 +
  border-image: url("https://wiki.retro-mmo.com/w/images/6/60/FrameGrey16.png");
 +
  border-image-width: 16px;
 +
  border-image-slice: 7 7;
 +
  background-color: #151515;
 +
}
 +
 +
.retrommo-infobox td {
 +
  width: 50%;
 
}
 
}

Revision as of 08:57, 11 April 2021

/* CSS placed here will be applied to all skins */
@font-face {
  font-family: "RetroPixels";
  src: url("https://wiki.retro-mmo.com/w/images/c/c1/RetroPixels.ttf")
    format("truetype");
}

html {
  /* RetroPixels scales in multiples of 16 */
  font-size: 16px;
}

body {
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -o-crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

#p-banner {
  font-family: RetroPixels !important;
  font-size: 2rem !important;
  margin-top: 0.1rem !important;
  font-variant: none !important;
}

body,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body dt {
  font-family: RetroPixels;
}

#content {
  font-size: 1.5rem !important;
}

.sidebar-chunk {
  font-size: 1.25rem !important;
}

#f-list {
  font-size: 1.5rem;
}

b,
strong {
  font-weight: 400;
}

th {
  font-weight: 400;
}

.retrommo-infobox {
  float: right;
  width: 20rem;
  border: 1px solid #fec9ed;
  border-collapse: separate;
  margin: 0.25rem 0.5rem;
  text-align: center;
  border-image: url("https://wiki.retro-mmo.com/w/images/6/60/FrameGrey16.png");
  border-image-width: 16px;
  border-image-slice: 7 7;
  background-color: #151515;
}

.retrommo-infobox td {
  width: 50%;
}