MediaWiki:Common.css: Difference between revisions

From Kirby Speedrunning Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(273 intermediate revisions by 2 users not shown)
Line 1: Line 1:


/* CUSTOM LOGOS */
@font-face {
 
  font-family: "Delfino";
.ns-3024 #p-logo a, .ns-3025 #p-logo a { background-image: url(https://kirbyspeedrun.com/w/resources/assets/greenphan.png) !important; }
  src: url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff2") format("woff"),
.ns-3004 #p-logo a, .ns-3005 #p-logo a { background-image: url(https://cdn.discordapp.com/attachments/1106766444508749845/1112967677707812864/4.png) !important; }
      url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff") format("woff2");
.ns-3048 #p-logo a, .ns-3049 #p-logo a { background-image: url(https://cdn.discordapp.com/attachments/702306084391616542/1112963469017370655/guymouth.png) !important; }
}


/* MAIN PAGE STYLING */
/* MAIN PAGE STYLING */


body.page-Main_Page h1.firstHeading { display:none; }
h1.firstHeading {font-family: Delfino; font-size: 34px;}


body.page-Main_Page {
/* Remove Header */
color: white;
body.page-Main_Page h1.firstHeading, body.page-Main_Page_ja h1.firstHeading { display:none; }
background-color: #e6ffb4;
/* The Japanese site is considered a sub-page, so this gets rid of the sub-page button */
background-image: url("https://milkyway.ocremix.org/images/body.jpg");
body.page-Main_Page_ja #contentSub { display:none; }
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}


body.page-Main_Page #content {
/* Main page game links and containers */
color: white;
.mainpage-links-container {
background: rgba(24, 13, 26, 0.87);
  text-align: center;
border-width: 3px;
  width: 100%;
border-style: solid;
  line-height: 1.8;
  border-color: rgb(151, 59, 255);
  margin-top: 0px;
  margin: 2.8em 0 0 12.2em;
  display: flex;
  -moz-border-radius-topleft: 1em;
  align-items: center;
  -moz-border-radius-bottomleft: 1em;
  justify-content: space-around;
-webkit-border-top-left-radius: 1em;
  padding: 0;
-webkit-border-bottom-left-radius: 1em;
border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
  khtml-border-top-left-radius: 1em;
  khtml-border-bottom-left-radius: 1em;
-icab-border-top-left-radius: 1em;
  -icab-border-bottom-left-radius: 1em;
}
}


body.page-Main_Page #footer {
/* Styling for the two boxes on top of the game links */
  background: rgba(24, 13, 26, 0.87);
.header-boxes-container {
  border-width: 3px;
width: 100%;
  border-style: solid;
  background: none;
  border-color: rgb(151, 59, 255);
  line-height: 200%;
  text-align: center;
  font-size: 20px;
display: flex;
margin: 15px;
}
}


body.page-Main_Page a:link {color: #ff99ff;}
.mainpage-header-boxes {
 
width: 100%;
body.page-Main_Page a.new {color: #FF3399;}
padding: 6px;
 
margin: 10px;
body.page-Main_Page a.external {color: #ff99ff;}
text-align: left;
body.page-Main_Page a:visited {color: #ff99ff;}
body.page-Main_Page a.external:visited {color: #ff99ff;}
 
body.page-Main_Page a:hover {color: #ff3399;}
body.page-Main_Page a.external:hover {color: #ff3399;}
 
body.page-Main_Page a:active {color: #9966ff;}
body.page-Main_Page a.external:active {color: #9966ff;}
 
 
/*Sidebar*/
 
.portlet .pBody {
background: rgba(24, 13, 26, 0.87);
    border: 2px solid #1034A6;
}
}


.portlet#p-personal li a, .portlet#p-personal li a:visited {
.mainpage-left-box {
    color: purple;
border: 3px solid #e65c00;
background: rgba(194, 166, 105, 0.42);
vertical-align: top;
}
}


.pBody {
.mainpage-right-box {
    border: 2px outset #1034A6;
border: 3px solid #009933;
    padding-left: 8px;
background: rgba(57, 144, 113, 0.42);
    margin: 2px 5px 0 5px;
float: right;
    -webkit-border-radius: 15px 15px / 15px 15px;
margin-right: 40px;
    -moz-border-radius: 15px 15px;
    border-radius: 15px 15px;
}
}


.portlet h5 {
    color: #F0F8FF;
    font-weight: bold;
    text-transform: uppercase;
    background: #1034A6;
    border: 2px outset aqua;
    padding: 1px 0 3px 10px;
    display: block;
    -webkit-border-radius: 11px 11px / 11px 11px;
    -moz-border-radius: 11px 11px;
    border-radius: 11px 0;
}
.pBody li a {
    color: purple;
}
#p-personal li a:hover {
    background: none;
    text-decoration: underline;
}
/*Links*/
.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 {
.mainpage-links-container ul {
  list-style: none;
  list-style: none;
Line 124: Line 67:
}
}


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


/* Do not show lists on game main pages */
.game-page-links-container ul {
list-style: none;
}
/* Logo Shadows */
.mainpage-links img {
.mainpage-links img {
  height: 150px;
  height: auto;
  width: auto;
  width: 200px;
filter: drop-shadow(0px 4px 5px #231F20);
}
}


/* Logo glow on mouse hover */
.mainpage-links a:hover {
.mainpage-links a:hover {
  color: var(--link-color-hover);
  color: var(--link-color-hover);
  -webkit-filter: drop-shadow(0px 0px 15px rgb(255, 196, 252));
  -webkit-filter: drop-shadow(0px 0px 10px rgb(255, 196, 252));
  filter: drop-shadow(0px 0px 15px rgb(252, 194, 255));
  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: auto;
height: 350px;
}
 
/* 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;
}
}

Latest revision as of 02:53, 5 July 2023


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

/* MAIN PAGE STYLING */

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

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

/* Styling for the two boxes on top of the game links */
.header-boxes-container {
 width: 100%;
 background: none;
 line-height: 200%;
 text-align: center;
 font-size: 20px;
 display: flex;
 margin: 15px;
}

.mainpage-header-boxes {
 width: 100%;
 padding: 6px;
 margin: 10px;
 text-align: left;
}

.mainpage-left-box {
 border: 3px solid #e65c00;
 background: rgba(194, 166, 105, 0.42);
 vertical-align: top;
}

.mainpage-right-box {
 border: 3px solid #009933;
 background: rgba(57, 144, 113, 0.42);
 float: right;
 margin-right: 40px;
}


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

/* Do not show lists on game main pages */
.game-page-links-container ul {
 list-style: none;
}

/* 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: auto;
 height: 350px;
}

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