MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tags: Reverted Mobile edit Mobile web edit |
No edit summary Tags: Manual revert Mobile edit Mobile web edit |
||
| Line 55: | Line 55: | ||
.wikitable:has(img) { | .wikitable:has(img) { | ||
table-layout: fixed; | table-layout: fixed; | ||
} | } | ||
Revision as of 16:43, 15 December 2023
/* CSS placed here will be applied to all skins */
/* Import fonts */
@import url('https://fonts.cdnfonts.com/css/imperator');
@font-face {
font-family: 'Desmon';
src: url('https://mythcraftrpg.com/assets/static/source/wp-content/uploads/2023/11/desmon.ttf') format('truetype');
}
/* 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: Arial, Helvetica, 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;
}
/* 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%;
}
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;
}
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: 12px !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: white !important;
}
div #mw-panel h3 {
font-size: 16px !important;
color: rgba(44, 37, 3, 1);
}
/* Footer styling */
footer {
/* Color & Background */
background-attachment: scroll;
background-color: rgba(0, 0, 0, 0.5);
background-image: none;
background-position: 0% 0%;
background-repeat: repeat;
color: rgb(194, 200, 207);
/* Box */
height: 100px;
}