MediaWiki:Common.css: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
m (Undo revision 186048 by Z929669 (talk))
Tag: Undo
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap');


/* ADD TO SITE CSS */
/* gallery slideshow icon color modification */
 
.oo-ui-icon-next, .mw-ui-icon-next::before {
/* make Navbar responsive to smallest viewport */
background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d=%22M7 1L5.6 2.5 13 10l-7.4 7.5L7 19l9-9z%22/%3E%3C/svg%3E");
@media screen and (max-width: 770px) {
.p-navbar .navbar-nav.right {
flex-direction: column !important;
}
.navbar-collapse {
align-items: flex-start;
}
.navbar-nav .nav-link {
display: block;
padding: 0.1rem 1rem;
}
.p-navbar .navbar-nav.right {
margin-top: 0 !important
}
.p-navbar .navbar-nav .navbar-tools {
padding-left: 1rem !important
}
}
 
.ui-tabs .ui-tabs-nav li a {
padding: .5em;
}
.mpcode {
color: var(--text-dim) !important;
background-color: var(--bg-code);
border: 1px solid var(--bd-mid);
box-shadow: 0 0 2px var(--bd-code-shd) inset;
border-radius: 1px;
font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
font-size: 87.5%;
padding: 0.5rem;
margin-left: 1.6rem;
margin-bottom: 0.5rem;
white-space: pre
}
.detailed > .mpcode {
white-space: pre;
line-height: 1rem
}
.mpheading {
color: var(--text-sec) !important;
font-weight: 600;
line-height: 1.2;
text-transform: uppercase;
margin-top: 1.5rem;
margin-bottom: 0.5rem
}
 
 
/* make Navbar responsive to smallest viewport */
@media screen and (max-width: 770px) {
.p-navbar .navbar-nav.right {
flex-direction: column !important;
}
}
 
/* prevent underscores in <a> links */
a:link {
text-decoration:none
}
a:visited {
text-decoration:none
}
 
/* Hides the Main Page's title */
body.page-SkyrimLE_Wiki h1.firstHeading,
body.page-SkyrimSE_Wiki h1.firstHeading,
body.page-NMS_Wiki h1.firstHeading,
body.page-Main_Page h1.firstHeading {
display:none
}
 
/***** NavFrame example styles *****/
from .de. Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
margin: 0;
padding: 4px;
border: 1px solid #161619;
text-align: center;
border-collapse: collapse;
font-size: 95%
}
 
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style: hidden
}
 
div.NavPic {
background-color: #aaaaaa;
margin: 0;
padding: 2px;
/* @noflip */
float: left
}
 
div.NavFrame div.NavHead {
line-height: 1.6em;
font-weight: bold;
background-color: #262629;
position: relative
}
 
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
font-size: 100%
}
 
div.NavEnd {
margin: 0;
padding: 0;
line-height: 1px;
clear: both
}
 
a.NavToggle {
position: absolute;
top: 0;
/* @noflip */
right: 3px;
font-weight: normal;
font-size: 90%
}
 
.client-js .NavFrame.collapsed > .NavContent {
display: none
}
 
/***** Step Tables on Project:Example_Collapsable_Elements *****/
.mw-collapsible-toggle-default,
.mw-collapsible-toggle-default::before,
.mw-collapsible-toggle-default::after {
color: var(--bd-dim);
font-size: 0.8rem;
font-weight: normal
}
 
.mw-collapsible-toggle-default::before {
padding-left: 0.3em
}
 
.mw-customtoggle, .mw-collapsible-toggle {
cursor: pointer
}
 
body.page-Project_Example_Collapsable_Elements .steptable {
border: none;
background-color: transparent;
width: 100%;
font-size: 0.9em;
line-height: 1.6em
}
 
body.page-Project_Example_Collapsable_Elements .steptablerow {
border-bottom: 1px solid #666
}
 
body.page-Project_Example_Collapsable_Elements .steptable .detailed {
text-align: left;
padding-left: 0.5em 1.5em;
background-color: var(--bg-pri-emph)
}
 
body.page-Project_Example_Collapsable_Elements .steptable th {
background-color: var(--bg-sec-hd);
border-bottom: 2px solid var(--bd-dims);
border-left: 1px solid var(--bd-mid);
padding: 0.5rem 0.5rem;
text-align: center;
vertical-align: middle
}
 
body.page-Project_Example_Collapsable_Elements .steptable td {
padding: 0.1rem 0.5rem;
text-align: center;
vertical-align: middle;
border-left: 1px solid var(--bd-dims)
}
 
body.page-Project_Example_Collapsable_Elements .steptable th.first {
border-left: none;
width: 0.25rem;
padding: 0;
background-color: var(--bg-sec-hd)
}
 
body.page-Project_Example_Collapsable_Elements .steptable th.core {
border-left: none;
width: 0.25rem;
padding: 0;
background-color: var(--clr-chartreuse)
}
body.page-Project_Example_Collapsable_Elements .steptable th.modname,
body.page-Project_Example_Collapsable_Elements .steptable td.modname {
border-left: none;
text-align: left;
width: 25%
}
 
body.page-Project_Example_Collapsable_Elements .steptable th.baseline,
body.page-Project_Example_Collapsable_Elements .steptable td.baseline {
width: 9%
}
}


body.page-Project_Example_Collapsable_Elements .steptable th.notes,
.oo-ui-icon-imageGallery, .mw-ui-icon-imageGallery::before {
body.page-Project_Example_Collapsable_Elements .steptable td.notes {
background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eimage gallery%3C/title%3E%3Cpath d=%22M3 5a2 2 0 00-2 2v10a2 2 0 002 2h14a2 2 0 002-2V7a2 2 0 00-2-2zm0 11l3.5-4.5 2.5 3 3.5-4.5 4.5 6zM16 2a2 2 0 012 2H2a2 2 0 012-2z%22/%3E%3C/svg%3E");
text-align: left
}
}


body.page-Project_Example_Collapsable_Elements .steptable tr.stepborder02-Extenders td,  
.oo-ui-icon-previous, .mw-ui-icon-previous::before {
body.page-Project_Example_Collapsable_Elements .steptable tr.stepborder02-Extenders th {
background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d=%22M4 10l9 9 1.4-1.5L7 10l7.4-7.5L13 1z%22/%3E%3C/svg%3E");
border-bottom: 1px solid #888888
}
}

Latest revision as of 00:29, April 20, 2023

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto&display=swap');

/* gallery slideshow icon color modification */
.oo-ui-icon-next, .mw-ui-icon-next::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Enext%3C/title%3E%3Cpath d=%22M7 1L5.6 2.5 13 10l-7.4 7.5L7 19l9-9z%22/%3E%3C/svg%3E");
}

.oo-ui-icon-imageGallery, .mw-ui-icon-imageGallery::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eimage gallery%3C/title%3E%3Cpath d=%22M3 5a2 2 0 00-2 2v10a2 2 0 002 2h14a2 2 0 002-2V7a2 2 0 00-2-2zm0 11l3.5-4.5 2.5 3 3.5-4.5 4.5 6zM16 2a2 2 0 012 2H2a2 2 0 012-2z%22/%3E%3C/svg%3E");
}

.oo-ui-icon-previous, .mw-ui-icon-previous::before {
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22white%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eprevious%3C/title%3E%3Cpath d=%22M4 10l9 9 1.4-1.5L7 10l7.4-7.5L13 1z%22/%3E%3C/svg%3E");
}