MediaWiki
Common.css
From Dogcraft Wiki
Tag: Undo |
(Major Cleanup (Part 2: Electric Boogaloo)) |
||
Line 1: | Line 1: | ||
@import url('https://fonts.googleapis.com/css?family=Nunito&display=swap'); | @import url('https://fonts.googleapis.com/css?family=Nunito&display=swap'); | ||
@import url('https://fonts.googleapis.com/css?family=Fascinate+Inline&display=swap'); | @import url('https://fonts.googleapis.com/css?family=Fascinate+Inline&display=swap'); | ||
:root { | |||
--main-color: #8b0024; | |||
--button-color: #367fa9; | |||
--second-color: #e05176; | |||
--phone-trigger-max: 640px; | |||
--phone-trigger-min: 641px; | |||
} | |||
body { | |||
font-family: "Nunito", sans-serif; | |||
background: #ffffff; | |||
} | |||
/* Hide "Main Page" titles */ | /* Hide "Main Page" titles */ | ||
Line 27: | Line 40: | ||
/* VisualEditor | /* VisualEditor | ||
* fixes misalignment of icons | * fixes misalignment of icons */ | ||
.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-tool-link { | .oo-ui-toolbar-bar .oo-ui-tool .oo-ui-tool-link { | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
Line 80: | Line 92: | ||
} | } | ||
/* | /* ==Anything here is only applied to phone screens== */ | ||
@media only screen and (max-width: var(--phone-trigger-max) { | |||
/* Class sets object width to full screen on phones */ | |||
/* | |||
.phonefullscreen { | .phonefullscreen { | ||
width: 100%!important; | width: 100%!important; | ||
Line 159: | Line 101: | ||
padding-right: 0!important; | padding-right: 0!important; | ||
} | } | ||
/* Phonefullscreen variant for Main page*/ | |||
.mainpagefullscreen { | |||
width: 100%!important; | |||
display: block!important; | |||
padding-left: 0!important; | |||
padding-right: 0!important; | |||
padding-bottom: 0!important; | |||
max-width:100%!important; | |||
} | |||
/* Class hides object on phones */ | |||
.nophone { | |||
display: none; | |||
} | |||
/* Infobox width to full screen on phones */ | |||
.infobox { | .infobox { | ||
width: 100%; | width: 100%; | ||
Line 167: | Line 126: | ||
} | } | ||
/* References width to full screen on phones */ | |||
.mw-references-wrap { | .mw-references-wrap { | ||
width: 100%!important; | width: 100%!important; | ||
overflow-wrap: break-word!important; | overflow-wrap: break-word!important; | ||
} | } | ||
/* Orbit width to full screen on phones */ | |||
.example-orbit { | .example-orbit { | ||
width: 100%!important; | width: 100%!important; | ||
Line 188: | Line 138: | ||
padding-right: 0!important; | padding-right: 0!important; | ||
} | } | ||
.orbit-container { | .orbit-container { | ||
width: 100%!important; | width: 100%!important; | ||
Line 193: | Line 144: | ||
padding-right: 0!important; | padding-right: 0!important; | ||
} | } | ||
/* | /* Image width to full screen on phones */ | ||
.thumbimage, .thumbinner, .thumb{ | .thumbimage, .thumbinner, .thumb{ | ||
width: 100%!important; | width: 100%!important; | ||
max-width:100%!important; | max-width:100%!important; | ||
} | } | ||
/* Gallery width to full screen on phones */ | |||
.gallerybox { | .gallerybox { | ||
width: 49%!important; | width: 49%!important; | ||
Line 212: | Line 160: | ||
width: 100%!important; | width: 100%!important; | ||
} | } | ||
.gallery { | .gallery { | ||
Line 221: | Line 165: | ||
} | } | ||
/* | /* Main page image-links to small */ | ||
.mainpagegallery .thumb { | .mainpagegallery .thumb { | ||
width: 124.667px!important; | width: 124.667px!important; | ||
margin: auto; | margin: auto; | ||
} | } | ||
.mainpagegallery .gallerybox { | .mainpagegallery .gallerybox { | ||
width: 49%!important; | width: 49%!important; | ||
Line 231: | Line 176: | ||
} | } | ||
/*=Padding | /* ==Anything here is only applied to desktop screens== */ | ||
@media only screen and (min-width: var(--phone-trigger-min) { | |||
/* Class hides object on desktop */ | |||
.phoneonly { | |||
display: none; | |||
} | |||
} | |||
/* Padding and margin on images */ | |||
.thumbinner { | .thumbinner { | ||
margin:5px; | margin:5px; | ||
Line 240: | Line 193: | ||
} | } | ||
/* | /* Gray and italic image captions */ | ||
.thumbcaption { | .thumbcaption { | ||
color:#6f6f6f; | color:#6f6f6f; | ||
Line 249: | Line 202: | ||
} | } | ||
/***** CSS placed here will be applied to/* default skin for navigation boxes */ | |||
table.navbox { /* navbox container style */ | |||
border: 1px solid #aaa; | |||
width: 100%; | |||
margin: auto; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
padding: 1px; | |||
} | |||
table.navbox + table.navbox { | |||
margin-top: -1px; /* single pixel border between adjacent navboxes (doesn't work for IE6, but that's okay) */ | |||
} | |||
.navbox-title, .navbox-abovebelow, table.navbox th { | |||
text-align: center; /* title and above/below styles */ | |||
padding-left: 1em; | |||
padding-right: 1em; | |||
} | |||
.navbox-group { /* group style */ | |||
white-space: nowrap; | |||
text-align: right; | |||
font-weight: bold; | |||
padding-left: 1em; | |||
padding-right: 1em; | |||
} | |||
.navbox, .navbox-subgroup { | |||
background: #fdfdfd; /* Background color */ | |||
} | |||
.navbox-list { | |||
border-left: 2px solid #fdfdfd; /* Must match background color */ | |||
} | |||
.navbox-title, table.navbox th { | |||
background: #ccccff; /* Level 1 color */ | |||
} | |||
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { | |||
background: #ddddff; /* Level 2 color */ | |||
} | |||
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { | |||
background: #e6e6ff; /* Level 3 color */ | |||
} | |||
.navbox-even { | |||
background: #f7f7f7; /* Even row striping */ | |||
} | |||
.navbox-odd { | |||
background: transparent; /* Odd row striping */ | |||
} | |||
@media print { | |||
.navbox { | |||
display: none; | |||
} | |||
} | |||
.nowraplinks a { /* prevents line breaks in links in primarily navbox */ | |||
white-space: nowrap; | |||
} | |||
/* Disables Discussion pages */ | |||
ca-talk { display:none!important; } | |||
/* Infobox template style */ | |||
.infobox { | |||
border: 1px solid #aaa; | |||
background-color: #E9EDEF; | |||
margin: 0.5em 0 0.5em 1em; | |||
padding: 0.2em; | |||
float: right; | |||
clear: right; | |||
width: 22em; | |||
} | |||
.infobox td, | .infobox td, | ||
Line 266: | Line 291: | ||
font-size: larger; | font-size: larger; | ||
color: black; | color: black; | ||
} | } | ||
/* ==Hover class== */ | /* ==Hover class== */ | ||
Line 363: | Line 310: | ||
} | } | ||
/* Sets Actions button to use the page's --button-color variable for background */ | /* Sets Actions button to use the page's --button-color variable for background */ | ||
Line 387: | Line 321: | ||
} | } | ||
/* Speech Bubble */ | /* Speech Bubble */ |
Revision as of 23:45, 13 May 2020
@import url('https://fonts.googleapis.com/css?family=Nunito&display=swap');
@import url('https://fonts.googleapis.com/css?family=Fascinate+Inline&display=swap');
:root {
--main-color: #8b0024;
--button-color: #367fa9;
--second-color: #e05176;
--phone-trigger-max: 640px;
--phone-trigger-min: 641px;
}
body {
font-family: "Nunito", sans-serif;
background: #ffffff;
}
/* Hide "Main Page" titles */
body.page-Main_Page .title,
body.page-Main_Page #tagline {
display: none;
}
.row.display {
background: #eee;
font-size: 11px;
margin-bottom: 10px;
}
.row.display .columns,
.row.display .column {
background: #e7e7e7;
border: 1px solid #ddd;
font-size: 13px;
font-weight: bold;
text-indent: 3px;
padding-top: 8px;
color: #444;
padding-bottom: 8px;
}
/* VisualEditor
* fixes misalignment of icons */
.oo-ui-toolbar-bar .oo-ui-tool .oo-ui-tool-link {
padding-top: 0 !important;
}
/*==Fixes the Visula Editor save confirm dialog box's position on screens smaller than 550px==*/
@media only screen and (max-width: 499px) {
.oo-ui-window-frame {
top: 90.9px!important;
}
}
/*VE Gallery Insert box fix on phone*/
@media only screen and (max-width: 900px) {
.ve-ui-mwGalleryDialog .oo-ui-window-frame {
top: 90.9px!important;
}
}
/*VE Gallery Insert box fix on dektop*/
@media only screen and (min-width: 901px) {
.ve-ui-mwGalleryDialog .oo-ui-window-frame {
top: 80px!important;
}
}
/*VE Media Insert box fix on phone*/
@media only screen and (max-width: 900px) {
.ve-ui-mwMediaDialog .oo-ui-window-frame {
top: 90.9px!important;
}
}
/*VE Media Insert box fix on dektop*/
@media only screen and (min-width: 901px) {
.ve-ui-mwMediaDialog .oo-ui-window-frame {
top: 80px!important;
}
}
/*VE All options menus fix on phone*/
@media only screen and (max-width: 700px) {
.ve-ui-dir-block-ltr .oo-ui-window-frame {
top: 90.9px!important;
}
}
@media only screen and (max-height: 519px) and (min-width: 500px) {
.oo-ui-window-frame {
top: 80px!important;
}
}
/* ==Anything here is only applied to phone screens== */
@media only screen and (max-width: var(--phone-trigger-max) {
/* Class sets object width to full screen on phones */
.phonefullscreen {
width: 100%!important;
max-width:100%!important;
padding-left: 0!important;
padding-right: 0!important;
}
/* Phonefullscreen variant for Main page*/
.mainpagefullscreen {
width: 100%!important;
display: block!important;
padding-left: 0!important;
padding-right: 0!important;
padding-bottom: 0!important;
max-width:100%!important;
}
/* Class hides object on phones */
.nophone {
display: none;
}
/* Infobox width to full screen on phones */
.infobox {
width: 100%;
}
.infobox .phonefullscreen img {
width: 100%;
}
/* References width to full screen on phones */
.mw-references-wrap {
width: 100%!important;
overflow-wrap: break-word!important;
}
/* Orbit width to full screen on phones */
.example-orbit {
width: 100%!important;
padding-left: 0!important;
padding-right: 0!important;
}
.orbit-container {
width: 100%!important;
padding-left: 0!important;
padding-right: 0!important;
}
/* Image width to full screen on phones */
.thumbimage, .thumbinner, .thumb{
width: 100%!important;
max-width:100%!important;
}
/* Gallery width to full screen on phones */
.gallerybox {
width: 49%!important;
margin:auto!important;
}
.gallerybox div {
width: 100%!important;
}
.gallery {
margin:auto!important;
}
/* Main page image-links to small */
.mainpagegallery .thumb {
width: 124.667px!important;
margin: auto;
}
.mainpagegallery .gallerybox {
width: 49%!important;
}
}
/* ==Anything here is only applied to desktop screens== */
@media only screen and (min-width: var(--phone-trigger-min) {
/* Class hides object on desktop */
.phoneonly {
display: none;
}
}
/* Padding and margin on images */
.thumbinner {
margin:5px;
margin-top:10px;
margin-bottom:10px;
padding-left:5px;
padding-right:5px;
}
/* Gray and italic image captions */
.thumbcaption {
color:#6f6f6f;
font-style:italic;
background:#fcfdfe;
padding-left:3px;
padding-right:3px;
}
/***** CSS placed here will be applied to/* default skin for navigation boxes */
table.navbox { /* navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
table.navbox + table.navbox {
margin-top: -1px; /* single pixel border between adjacent navboxes (doesn't work for IE6, but that's okay) */
}
.navbox-title, .navbox-abovebelow, table.navbox th {
text-align: center; /* title and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
.navbox-group { /* group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
}
.navbox, .navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
border-left: 2px solid #fdfdfd; /* Must match background color */
}
.navbox-title, table.navbox th {
background: #ccccff; /* Level 1 color */
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {
background: #ddddff; /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #e6e6ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
@media print {
.navbox {
display: none;
}
}
.nowraplinks a { /* prevents line breaks in links in primarily navbox */
white-space: nowrap;
}
/* Disables Discussion pages */
ca-talk { display:none!important; }
/* Infobox template style */
.infobox {
border: 1px solid #aaa;
background-color: #E9EDEF;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
float: right;
clear: right;
width: 22em;
}
.infobox td,
.infobox th {
vertical-align: top;
}
.infobox title {
color: white;
}
.infobox heading {
color: white;
}
.infobox caption {
font-size: larger;
color: black;
}
/* ==Hover class== */
.hover:hover .hoverbox {
display: inline;
}
.hoverbox {
display: none;
}
.hover2:hover .hoverbox2 {
display: block;
}
.hoverbox2 {
display: none;
}
/* Sets Actions button to use the page's --button-color variable for background */
.button.secondary {
background-color: var(--button-color);
}
/* Sets page titles to use the page's font */
h1, h2, h3, h4, h5, h6 {
font-family: inherit;
}
/* Speech Bubble */
.speech-bubble {
position: relative;
background: #fffff0;
border-radius: .4em;
}
.speech-bubble:after {
content: '';
position: absolute;
top: 0;
left: 12%;
width: 0;
height: 0;
border: 9px solid transparent;
border-bottom-color: #fffff0;
border-top: 0;
margin-left: -9px;
margin-top: -9px;
}
/* Navigation Popups */
.navpopup {
background-color: #fffff0 !important;
border-color: #fffff0 !important;
}
/* World Map */
@media only screen and (max-width: 640px) {
.worldmap {
width: 100%;
}
}
/* Wikitable Styles */
.wikitable th, .wikitable td {
border: 2px solid #fff !important;
}
.wikitable > * > tr > th {
background: var(--main-color);
color: #fff;
}
.wikitable tbody tr:nth-child(even) {
background: #f5f5f5;
}
.wikitable tbody tr:nth-child(odd) {
background: #e9edef;
}
This page was last modified on 13 May 2020, at 23:45. (2 months ago)