MediaWiki:Common.css: Difference between revisions

From Kirby Speedrunning Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(183 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/*We need to reorganize the entirety of common.css (and transfer most of this to monobook.css) once everything is done*/


 
@font-face {
/* CUSTOM LOGOS */
  font-family: "Delfino";
 
  src: url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff2") format("woff"),
.ns-3000 #p-logo a, .ns-3001 #p-logo a { background-image: url(https://cdn.discordapp.com/attachments/1106766444508749845/1113634922649882736/K7Txc52.png) !important; }
      url("https://kirbyspeedrun.com/fonts/delfino-webfont.woff") format("woff2");
.ns-3024 #p-logo a, .ns-3025 #p-logo a { background-image: url(https://kirbyspeedrun.com/w/resources/assets/greenphan.png) !important; }
}
.ns-3004 #p-logo a, .ns-3005 #p-logo a { background-image: url(https://cdn.discordapp.com/attachments/1106766444508749845/1112967677707812864/4.png) !important; }
.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;}


h1, h2 { color: #ffe6ff; }
/* Remove Header */
h3, h4, h5 { color: white; }
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; }


body {
/* Main page game links and containers */
  color: white;
.mainpage-links-container {
  background-color: purple;
  text-align: center;
  background-image: url("https://milkyway.ocremix.org/images/body.jpg");
  width: 100%;
  background-repeat: no-repeat;
line-height: 1.8;
  background-attachment: fixed;
  margin-top: 0px;
  background-size: cover;
display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0;
}
}


body #content {
/* Styling for the two boxes on top of the game links */
color: white;
.header-boxes-container {
background: rgba(24, 13, 26, 0.87);
  width: 100%;
border-width: 3px;
  background: none;
border-style: solid;
  line-height: 200%;
  border-color: rgb(151, 59, 255);
  text-align: center;
  margin: 2.8em 0 0 12.2em;
  font-size: 20px;
  -moz-border-radius-topleft: 1em;
  display: flex;
  -moz-border-radius-bottomleft: 1em;
  margin: 15px;
  -webkit-border-top-left-radius: 1em;
  -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 #footer {
.mainpage-header-boxes {
  background: rgba(24, 13, 26, 0.87);
  width: 100%;
border-width: 3px;
  padding: 6px;
  border-style: solid;
  margin: 10px;
  border-color: rgb(151, 59, 255);
  text-align: left;
}
 
body .thumb { border-color: #4c0080; }
body .thumbinner {
background-color: #0d001a;  
  border-color: #4c0080;
}
}


#toc {
.mainpage-left-box {
  background: #0d001a;
  border: 3px solid #e65c00;
  border-color: #4c0080;
  background: rgba(194, 166, 105, 0.42);
  color: white;
  vertical-align: top;
}
}


/*Sidebar*/
.mainpage-right-box {
.portlet#p-navigation .pBody, .portlet#p-search .pBody, .portlet#p-tb .pBody, .portlet#p-cactions .pBody {
border: 3px solid #009933;
    background-color: rgba(24, 13, 26, 0.87);
background: rgba(57, 144, 113, 0.42);
    border: 2px solid #1034A6;
float: right;
margin-right: 40px;
}
}


.portlet#p-personal li a, .portlet#p-personal li a:visited {
    color: purple;
}
.pBody {
    background: transparent;
    border: 2px outset #1034A6;
    padding-left: 8px;
    margin: 2px 5px 0 5px;
    -webkit-border-radius: 15px 15px / 15px 15px;
    -moz-border-radius: 15px 15px;
    border-radius: 15px 15px;
}
.portlet h3 {
color: #ff80aa;
text-decoration: bold;
}
.pBody li a {
color: #ffb3ff !important;
}
#p-personal a:hover {
    background: none !important;
    text-decoration: underline !important;
}
/*Tabs*/
#p-cactions .pBody:hover {opacity: 1;}
#p-cactions li:hover {background-color: blue}
#p-cactions li {
    border: 2px outset #1034A6;
    border-bottom: 1px solid #1034A6;
    -webkit-border-radius: 10px 10px / 10px 10px;
    -moz-border-radius: 10px 10px;
    border-radius: 10px 10px;
}
#p-cactions li a {
    border: none;
    -webkit-border-radius: 10px 10px / 10px 10px;
    -moz-border-radius: 10px 10px;
    border-radius: 10px 10px;
}
body.skin--responsive #p-cactions li a {
background-color: purple;
}
body.skin--responsive #p-cactions li a:hover {
background-color: pink;
}
/*Link Colors*/
body a:link {color: #ff99ff;}
body a.new {color: #FF3399;}
body a.external {color: #ff99ff;}
body a:visited {color: #ff99ff;}
body a.external:visited {color: #ff99ff;}
body a:hover {color: #ff3399;}
body a.external:hover {color: #ff3399;}
body a:active {color: #9966ff;}
body a.external:active {color: #9966ff;}
/*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 156: 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 10px rgb(255, 196, 252));
  -webkit-filter: drop-shadow(0px 0px 10px rgb(255, 196, 252));
  filter: drop-shadow(0px 0px 10px 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;
}