MediaWiki:Common.css

From Kirby Speedrunning Wiki
Revision as of 20:56, 28 June 2023 by Nippo (talk | contribs)
Jump to navigationJump to search

Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.

@font-face {
  font-family: "Delfino";
  src: url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff2") format("woff2"),
       url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff") format("woff");
}

/* MAIN PAGE STYLING */

h1.firstHeading {font-family: Delfino; font-size: 32px;}

/* Remove Header */
body.page-Main_Page h1.firstHeading, body.page-Main_Page_ja h1.firstHeading { display:none; }
/* The Japanese site is considered a sub-page, so this gets rid of the sub-page button */
body.page-Main_Page_ja #contentSub { display:none; }

/* Main page game links and containers */
.mainpage-links-container {
 text-align: center;
 width: 100%;
 line-height: 1.8;
 margin-top: 0px;
 display: flex;
 align-items: center;
 justify-content: space-around;
 padding: 0;
}

/* List styling defaults */
.mainpage-links-container ul {
 list-style: none;
 margin: 0;
 padding: 0;
 overflow: hidden;
}

/* List item styling defaults */
.mainpage-links-container li {
 display: inline-block;
 padding: 10px 20px;
 width: 220px;
 vertical-align: middle;
}

/* Logo Shadows */
.mainpage-links img {
 height: auto;
 width: 200px;
 filter: drop-shadow(0px 4px 5px #231F20);
}

/* Logo glow on mouse hover */
.mainpage-links a:hover {
 color: var(--link-color-hover);
 -webkit-filter: drop-shadow(0px 0px 10px rgb(255, 196, 252));
 filter: drop-shadow(0px 0px 10px rgb(252, 194, 255));
}

/* Game Main Page Header (game logo and amount of pages) */
.game-main-page-header {
 width: 100%;
 text-align: center;
 font-size: 85%;
 line-height: 350%;
}

.game-main-page-header img {
 width: 30%;
 height: auto;
}

/* for h3 headers that should not appear in the table of contents */
.h3-no-toc {
 font-size: 16px;
 font-weight: bold
}

/* for links that do not need an external link icon (example is links that link back to kirbyspeedrun.com/wiki) */
.no-external-link-icon a.external {
  background-image: none !important;
  padding-right: 0px !important;
}

/* EXPERIMENTAL: Vertical Align on Wikitable Class */
.table-vertical-top tbody {
    vertical-align: top;
}