MediaWiki:Common.css: Difference between revisions
From Mutant Year Zero
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
/* Get nice font! */ | /* Get nice font! */ | ||
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500&display=swap'); | @import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500&display=swap'); | ||
:root { | :root { | ||
--font-family__header--campaign: 'Chakra Petch', sans-serif; | --font-family__header--campaign: 'Chakra Petch', sans-serif; | ||
Line 14: | Line 12: | ||
} | } | ||
/* Paper background and border for relevant modules */ | |||
/* Paper background for relevant modules */ | |||
.vector-main-menu, .vector-toc, mw-body, .mw-content-container, .vector-user-links, .vector-sticky-header { | .vector-main-menu, .vector-toc, mw-body, .mw-content-container, .vector-user-links, .vector-sticky-header { | ||
background: url("https://rpg.sandcat.nl/.sws/themes/wood-responsive//img/paper.jpg") repeat scroll 0 0 #ab8b4e; | background: url("https://rpg.sandcat.nl/.sws/themes/wood-responsive//img/paper.jpg") repeat scroll 0 0 #ab8b4e; | ||
border:1px solid black; | border: 1px solid black; | ||
} | } | ||
/* Improve some paddings */ | /* Improve some paddings */ | ||
Line 60: | Line 56: | ||
} | } | ||
} | } | ||
/* Footer */ | /* Footer */ | ||
Line 86: | Line 77: | ||
} | } | ||
/* Base font */ | |||
html, body, button, input, select, textarea { | html, body, button, input, select, textarea { | ||
font-family: Verdana, Geneva, sans-serif; | font-family: Verdana, Geneva, sans-serif; | ||
} | } | ||
/* Character Sheet */ | /* Character Sheet Styling*/ | ||
.rpgtable { | .rpgtable { | ||
background-color: #fff; | background-color: #fff; | ||
Line 104: | Line 91: | ||
width:100%; | width:100%; | ||
} | } | ||
.rpgtable > tr > th,.rpgtable > tr > td,.rpgtable > * > tr > th,.rpgtable > * > tr > td { | .rpgtable > tr > th,.rpgtable > tr > td,.rpgtable > * > tr > th,.rpgtable > * > tr > td { | ||
border: 1px solid #999; | border: 1px solid #999; | ||
padding: 1px 4px; | padding: 1px 4px; | ||
} | } | ||
.rpgtable > tr > th,.rpgtable > * > tr > th { | .rpgtable > tr > th,.rpgtable > * > tr > th { | ||
background-color: #ccc; | background-color: #ccc; | ||
text-align: left; | text-align: left; | ||
} | } | ||
.rpgtable > caption { | .rpgtable > caption { | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.rpgtable th, .rpgtable td { | .rpgtable th, .rpgtable td { | ||
text-align: left; | text-align: left; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.rpgtable td { | .rpgtable td { | ||
height:22px; | height:22px; | ||
} | } | ||
/* Attributes */ | |||
.attributes .rpgtable td:nth-child(2) { | .attributes .rpgtable td:nth-child(2) { | ||
font-weight: bold; | font-weight: bold; | ||
Line 144: | Line 126: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* Conditions */ | |||
.conditions .rpgtable td:nth-child(1), .conditions .rpgtable td:nth-child(3) { | .conditions .rpgtable td:nth-child(1), .conditions .rpgtable td:nth-child(3) { | ||
border-right:none; | border-right:none; | ||
Line 153: | Line 136: | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
/* Rot/XP */ | |||
.rot .rpgtable td, .mutationpoints .rpgtable td { | .rot .rpgtable td, .mutationpoints .rpgtable td { | ||
text-align: center; | text-align: center; | ||
} | } | ||
.rot .rpgtable.dice td:nth-child(1) { | .rot .rpgtable.dice td:nth-child(1) { | ||
background-color: #ffffba; | background-color: #ffffba; | ||
Line 182: | Line 165: | ||
font-size:80%; | font-size:80%; | ||
} | } | ||
/* Skills */ | |||
.skills .rpgtable td:nth-child(2) { | .skills .rpgtable td:nth-child(2) { | ||
background-color: #ffffba; | background-color: #ffffba; | ||
Line 189: | Line 172: | ||
font-size:90%; | font-size:90%; | ||
} | } | ||
.skills .rpgtable td:nth-child(3) { | .skills .rpgtable td:nth-child(3) { | ||
font-weight: bold; | font-weight: bold; | ||
Line 202: | Line 184: | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
/* Personal */ | |||
.personal .rpgtable td:nth-child(1) { | .personal .rpgtable td:nth-child(1) { | ||
font-size: 90%; | font-size: 90%; | ||
} | } | ||
/* Gear */ | |||
.gear .rpgtable td:nth-child(1) { | .gear .rpgtable td:nth-child(1) { | ||
font-size: 70%; | font-size: 70%; | ||
Line 217: | Line 201: | ||
line-height: 22px; | line-height: 22px; | ||
} | } | ||
/* Image */ | |||
.image .rpgtable td { | .image .rpgtable td { | ||
height:193px; | height:193px; | ||
padding:0px; | padding:0px; | ||
background-color: #000; | |||
} | } | ||
/* Weapons */ | |||
.weapons .rpgtable tr:nth-child(3), .weapons .rpgtable tr:nth-child(5), .weapons .rpgtable tr:nth-child(7) { | .weapons .rpgtable tr:nth-child(3), .weapons .rpgtable tr:nth-child(5), .weapons .rpgtable tr:nth-child(7) { | ||
font-size: 80%; | font-size: 80%; | ||
Line 250: | Line 237: | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
/* Armor */ | |||
.armor .rpgtable th:nth-child(2) { | .armor .rpgtable th:nth-child(2) { | ||
font-size: 80%; | font-size: 80%; | ||
Line 258: | Line 245: | ||
width:40px; | width:40px; | ||
} | } | ||
/* Relations */ | |||
.relations .rpgtable th:nth-child(2), .relations .rpgtable td:nth-child(3) { | .relations .rpgtable th:nth-child(2), .relations .rpgtable td:nth-child(3) { | ||
font-size: 80%; | font-size: 80%; | ||
Line 268: | Line 256: | ||
white-space: normal; | white-space: normal; | ||
} | } | ||
/* Den */ | |||
.den .rpgtable td { | .den .rpgtable td { | ||
font-size: 80%; | font-size: 80%; | ||
Line 273: | Line 262: | ||
} | } | ||
/* Character container */ | |||
.container { | .container { | ||
display: grid; | display: grid; | ||
Line 285: | Line 271: | ||
width:900px; | width:900px; | ||
} | } | ||
.container th { | .container th { | ||
font-size:16px; | font-size:16px; | ||
vertical-align:middle; | vertical-align:middle; | ||
} | } | ||
.container .column div { | .container .column div { | ||
margin-bottom:10px; | margin-bottom:10px; | ||
} | } | ||
.container .table { | .container .table { | ||
width:100%; | width:100%; | ||
border:1px solid black; | border:1px solid black; | ||
} | } | ||
/* Background story */ | |||
.background { | .background { | ||
page-break-before: always; | page-break-before: always; | ||
Line 305: | Line 288: | ||
} | } | ||
/* Fixes for generic layout*/ | |||
.vector-toc { | .vector-toc { | ||
padding:10px !important; | padding:10px !important; | ||
Line 323: | Line 307: | ||
} | } | ||
} | } | ||
/* Print specific layout adjustments*/ | |||
@media print | @media print | ||
{ | { | ||
Line 336: | Line 322: | ||
display:none; | display:none; | ||
} | } | ||
a { | a { | ||
text-decoration:none !important; | text-decoration:none !important; | ||
border-bottom: none !important; | border-bottom: none !important; | ||
} | } | ||
a, .vector-pinnable-header-toggle-button { | a, .vector-pinnable-header-toggle-button { | ||
color: #000 !important; | color: #000 !important; | ||
Line 350: | Line 334: | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
a[href]:after { | a[href]:after { | ||
content: none !important; | content: none !important; |
Revision as of 14:40, 3 December 2023
/* CSS placed here will be applied to all skins */
/* Get nice font! */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500&display=swap');
:root {
--font-family__header--campaign: 'Chakra Petch', sans-serif;
}
/* Wood background */
body, .mw-page-container {
background: url("https://rpg.sandcat.nl/.sws/themes/wood-responsive//img/wood.jpg") repeat scroll 0 0 #ab8b4e;
}
/* Paper background and border for relevant modules */
.vector-main-menu, .vector-toc, mw-body, .mw-content-container, .vector-user-links, .vector-sticky-header {
background: url("https://rpg.sandcat.nl/.sws/themes/wood-responsive//img/paper.jpg") repeat scroll 0 0 #ab8b4e;
border: 1px solid black;
}
/* Improve some paddings */
.vector-user-links {
padding: 5px 10px 5px 10px;
}
.mw-content-container {
padding-left:10px;
padding-right:10px;
min-width:900px;
}
/* Logo */
.mw-logo-icon {
width:100px;
height:100px;
}
.mw-logo-container {
color: #9a2e00;
font-size: 50px;
font-family: var(--font-family__header--campaign, var(--font-family__header));
background-image: url(https://rpg.sandcat.nl/myz2024/images/MYZ_logo.png);
background-size: contain;
background-repeat: no-repeat;
width:300px;
height:100px;
max-width:300px;
}
.mw-logo-container .mw-logo-wordmark {
display:none;
}
/* Else the MYZ logo becomes small*/
@media screen and (min-width: 1200px) {
.vector-feature-page-tools-enabled .mw-header {
display: grid;
column-gap: 36px;
grid-template: auto / 30em minmax(0,1fr);
grid-template-areas: 'headerStart headerEnd'
}
}
/* Footer */
.mw-footer-container li {
color:#ccc;
}
/* Page title + h1 color/font*/
.mw-page-title-main, h1 {
color: #9a2e00;
font-family: var(--font-family__header--campaign, var(--font-family__header));
}
/* Links color*/
a, .vector-pinnable-header-toggle-button {
color: #9a2e00 !important;
text-decoration: none;
}
a:visited {
color: #742d0f !important;
}
/* Base font */
html, body, button, input, select, textarea {
font-family: Verdana, Geneva, sans-serif;
}
/* Character Sheet Styling*/
.rpgtable {
background-color: #fff;
color: #202122;
margin: 1em 0;
border: 1px solid #999;
border-collapse: collapse;
width:100%;
}
.rpgtable > tr > th,.rpgtable > tr > td,.rpgtable > * > tr > th,.rpgtable > * > tr > td {
border: 1px solid #999;
padding: 1px 4px;
}
.rpgtable > tr > th,.rpgtable > * > tr > th {
background-color: #ccc;
text-align: left;
}
.rpgtable > caption {
font-weight: bold;
}
.rpgtable th, .rpgtable td {
text-align: left;
white-space: nowrap;
}
.rpgtable td {
height:22px;
}
/* Attributes */
.attributes .rpgtable td:nth-child(2) {
font-weight: bold;
background-color: #ffffba;
width: 22px;
text-align: center;
font-size:120%;
line-height: 22px;
}
.attributes .rpgtable td:nth-child(3) {
font-size: 90%;
border-right:none;
}
.attributes .rpgtable td:nth-child(4) {
border-left:none;
text-align: center;
}
/* Conditions */
.conditions .rpgtable td:nth-child(1), .conditions .rpgtable td:nth-child(3) {
border-right:none;
}
.conditions .rpgtable td:nth-child(2), .conditions .rpgtable td:nth-child(4) {
border-left:none;
}
.conditions .rpgtable tr:nth-child(4) {
font-size: 90%;
}
/* Rot/XP */
.rot .rpgtable td, .mutationpoints .rpgtable td {
text-align: center;
}
.rot .rpgtable.dice td:nth-child(1) {
background-color: #ffffba;
width: 22px;
}
.rot .rpgtable.dice td:nth-child(3) {
background-color: #666;
color:#fff;
width: 22px;
}
.rot .rpgtable.dice td:nth-child(5) {
background-color: #ffffba;
width: 22px;
}
.rot .rpgtable.dice td:nth-child(6) {
background-color: #baffc9;
width: 22px;
}
.rot .rpgtable.dice td:nth-child(7) {
background-color: #666;
width: 22px;
color:#fff;
}
.rot .rpgtable.dice td:nth-child(2), .rot .rpgtable.dice td:nth-child(4), .rot .rpgtable.dice td:nth-child(8) {
font-size:80%;
}
/* Skills */
.skills .rpgtable td:nth-child(2) {
background-color: #ffffba;
width: 22px;
text-align: center;
font-size:90%;
}
.skills .rpgtable td:nth-child(3) {
font-weight: bold;
background-color: #baffc9;
width: 22px;
text-align: center;
font-size:120%;
line-height: 22px;
}
.skills .rpgtable td.empty {
background-color: transparent;
}
/* Personal */
.personal .rpgtable td:nth-child(1) {
font-size: 90%;
}
/* Gear */
.gear .rpgtable td:nth-child(1) {
font-size: 70%;
width:10px;
border-right:none;
}
.gear .rpgtable td:nth-child(2) {
border-left:none;
}
.gear .rpgtable tr:nth-child(12) {
font-size:120%;
line-height: 22px;
}
/* Image */
.image .rpgtable td {
height:193px;
padding:0px;
background-color: #000;
}
/* Weapons */
.weapons .rpgtable tr:nth-child(3), .weapons .rpgtable tr:nth-child(5), .weapons .rpgtable tr:nth-child(7) {
font-size: 80%;
}
.weapons .rpgtable th:nth-child(2), .weapons .rpgtable th:nth-child(3), .weapons .rpgtable th:nth-child(4) {
font-size: 80%;
text-align:center;
}
.weapons .rpgtable td:nth-child(2), .weapons .rpgtable td:nth-child(3), .weapons .rpgtable td:nth-child(4) {
text-align: center;
}
.weapons .rpgtable td:nth-child(2) {
font-weight:bold;
background-color: #666;
color:#fff;
width: 22px;
}
.weapons .rpgtable td:nth-child(3) {
width: 22px;
}
.weapons .rpgtable td:nth-child(2), .weapons .rpgtable td:nth-child(3) {
font-size: 120%;
line-height: 22px;
}
.weapons .rpgtable td:nth-child(4) {
font-size: 80%;
}
.weapons .rpgtable td.empty {
background-color: transparent;
}
/* Armor */
.armor .rpgtable th:nth-child(2) {
font-size: 80%;
text-align:center;
}
.armor .rpgtable td:nth-child(2) {
width:40px;
}
/* Relations */
.relations .rpgtable th:nth-child(2), .relations .rpgtable td:nth-child(3) {
font-size: 80%;
text-align:center;
}
.relations .rpgtable td:nth-child(1), .relations .rpgtable td:nth-child(2) {
font-size: 80%;
}
.relations .rpgtable td {
white-space: normal;
}
/* Den */
.den .rpgtable td {
font-size: 80%;
white-space: normal;
}
/* Character container */
.container {
display: grid;
grid-template-columns: 32.5% 32.5% 32.5%;
column-gap: 10px;
row-gap: 10px;
font-family: var(--font-family__header--campaign, var(--font-family__header)) !important;
width:900px;
}
.container th {
font-size:16px;
vertical-align:middle;
}
.container .column div {
margin-bottom:10px;
}
.container .table {
width:100%;
border:1px solid black;
}
/* Background story */
.background {
page-break-before: always;
font-size:90%;
}
/* Fixes for generic layout*/
.vector-toc {
padding:10px !important;
}
.vector-pinnable-header {
padding:0px !important;
padding-bottom:10px !important;
}
.vector-feature-page-tools-enabled .vector-pinnable-element > *:not(:last-child), .vector-dropdown-content > *:not(:last-child) {
border-bottom: 1px solid #999;
}
.vector-feature-page-tools-enabled .vector-dropdown .vector-dropdown-content, .vector-feature-page-tools-enabled .vector-dropdown > .vector-menu-content {
padding:0px;
}
@media screen and (min-width: 1000px) {
#vector-toc-pinned-container .vector-toc:after , #vector-page-tools-pinned-container .vector-page-tools:after {
background: none;
}
}
/* Print specific layout adjustments*/
@media print
{
body, .mw-page-container {
background: none;
}
.vector-main-menu, .vector-toc, mw-body, .mw-content-container, .vector-user-links, .vector-sticky-header {
background: none;
}
/* .mw-body-header, */
.mw-header, .vector-main-menu-container, .vector-sitenotice-container, .mw-panel-toc, .vector-page-toolbar, .vector-column-end {
height:0px;
display:none;
}
a {
text-decoration:none !important;
border-bottom: none !important;
}
a, .vector-pinnable-header-toggle-button {
color: #000 !important;
text-decoration: none !important;
}
a:visited {
color: #000 !important;
text-decoration: none !important;
}
a[href]:after {
content: none !important;
}
.container .rpgtable td, .container .rpgtable th {
font-family: var(--font-family__header--campaign, var(--font-family__header)) !important;
font-size:90%;
}
}