MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 27: | Line 27: | ||
a, a:visited, .toctogglelabel { | a, a:visited, .toctogglelabel { | ||
color: #29878C; | color: #29878C!important; | ||
} | } | ||
Revision as of 20:08, 15 December 2023
/* CSS placed here will be applied to all skins */
/* Import fonts */
@import url('https://fonts.cdnfonts.com/css/imperator');
@import url('https://fonts.cdnfonts.com/css/raleway-5');
@font-face {
font-family: 'Desmon';
src: url('/images/1/17/Desmon.ttf') format('truetype');
}
@font-face {
font-family: 'Cinzel Decorative';
src: url('/images/5/52/CinzelDecorative-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Cinzel Decorative Bold';
src: url('/images/6/64/CinzelDecorative-Bold.ttf') format('truetype');
}
body {
background-color: white;
font-family: 'Raleway', sans-serif;
}
h1, h2, h3, h4, h5 {
color: #174345;
}
a, a:visited, .toctogglelabel {
color: #29878C!important;
}
a.new, .vector-menu-tabs-legacy .new a, .vector-menu-tabs-legacy .new a:visited {
color: #FC6543;
}
*:focus-visible {
outline: 1px solid #174345;
}
/* CREATURE TABLES */
table.creature {
background-color: #f9f9f92b;
background: url("https://srd.mythcraftrpg.com/images/5/57/MythCraft-PaperTexture.jpg") scroll;
border: 2px solid #1C6EA4;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
width: 40%;
}
table.creature tbody td {
font-size: 14px;
}
table.creature thead {
background: #A0C3C7;
border-bottom: 0;
}
table.creature th {
font-size: 22px;
font-weight: bold;
color: #000000;
border-top: 2px solid #AAAAAA;
border-bottom: 2px solid #AAAAAA;
}
/* Common table styles */
table {
font-family: 'Raleway', sans-serif;
border-collapse: collapse;
width: 80%;
}
table.mw-collapsible {
text-align: left;
}
.wikitable > * > tr > td:has(img) {
padding: 0;
}
.wikitable > * > tr > td img {
height: auto;
max-width: 100%
}
.wikitable:has(img) {
table-layout: fixed;
}
.wikitable > tr > th, .wikitable > * > tr > th, .toc, .toccolours {
background-color: #FEEBB3;
}
/* To make images responsive */
.res-img img {
max-width: 80%;
height: auto;
}
.res-img p:has(img) {
text-align: center;
}
/* Take off "Main Page" from the home page */
body.page-Main_Page h1 {
display: none;
}
.mw-editsection {
display: none;
}
/* Content and panel styling */
body #content {
padding-right: 10%;
border-bottom: none;
min-height: calc(100vh - 258px);
}
body.page-Main_Page table {
margin: auto!important;
margin-top: 10px!important;
margin-bottom: 10px!important;
}
body.page-Main_Page h2 {
text-align: center;
font-family: "Desmon",Sans-serif;
}
body.page-Main_Page #content {
padding-right: 1.5em;
}
.mw-body h1, mw-body-content h1 {
font-family: "Cinzel Decorative Bold",Sans-serif;
font-size: 45px;
font-weight: 900;
}
.wikitable > caption {
font-family: "Cinzel Decorative Bold",Sans-serif;
font-weight: 900;
font-size: 20px;
letter-spacing: 5px;
}
h2.pi-title {
font-family: "Desmon",Sans-serif;
font-size: 28px;
font-weight: 600;
letter-spacing: 4px;
}
div #mw-panel {
/* Color & Background */
background-attachment: scroll;
background-color: rgba(252, 101, 67, 1);
/* Box */
height: 100%;
width: 170px;
/* Positioning */
position: fixed;
/* Effects */
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
div #mw-panel ul li,
footer ul li {
font-size: 13px !important;
color: white !important;
}
div #mw-panel ul li a,
div#footer ul li a:visited,
footer ul li a,
div#footer ul li a:visited {
color: #FEEBB3 !important;
}
div #mw-panel h3 {
font-size: 16px !important;
color: rgba(44, 37, 3, 1);
}
/* Footer styling */
footer {
background-image: url(https://mythcraft.flywheelsites.com/wp-content/uploads/2020/12/footer-bg.png);
background-repeat: no-repeat;
background-size: cover;
margin-left: 10em!important;
padding: 2em!important;
height: 70px;
}
footer #footer-icons {
display: none;
}
#footer-info-lastmod {
text-align: center;
}
.mw-footer #footer-places {
display: flex;
justify-content: space-between;
width: 50%;
margin: auto;
}