MediaWiki:Common.css
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/****************************
* Simple dark api.php pages *
*****************************/
@media (prefers-color-scheme: dark) {
body {
background-color:#20211f;
border-color: #7b7261;
color: #f6ecdb;
}
h1, h2, h3, h4, h5, h6 {
color: rgb(234, 224, 207);
border-color: rgb(83, 84, 81);
}
.mw-highlight .s2 {
color: rgb(206, 99, 91);
}
a {
color: rgb(133, 180, 221);
}
a:visited {
color: rgb(141, 127, 218);
}
pre, code, .mw-code {
background-color: rgb(34, 35, 33);
color: rgb(234, 224, 207);
border-color: rgb(63, 64, 62);
}
}
/***************
* End dark API *
****************/
/********************************
* Miscellaneous utility classes *
*********************************/
.responsive-image {
max-width:100%;
height:auto;
}
.view-dark .invert-on-dark,
.view-light .invert-on-light {
filter:invert(100%);
}
.pixelated {
image-rendering:pixelated;
}
@media screen and (min-width:720px){
.mobileonly {
display:none;
}
}
@media screen and (max-width:720px) {
.nomobile {
display:none;
}
}
/***************************
* End misc utility classes *
****************************/
/*****************************
* Dark mode Syntax highlight *
******************************/
.view-dark .mw-highlight .hll { background-color: #49483e }
.view-dark .mw-highlight { background: #272822; color: #f8f8f2 }
.view-dark .mw-highlight .c { color: #75715e } /* Comment */
.view-dark .mw-highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.view-dark .mw-highlight .k { color: #66d9ef } /* Keyword */
.view-dark .mw-highlight .l { color: #ae81ff } /* Literal */
.view-dark .mw-highlight .n { color: #f8f8f2 } /* Name */
.view-dark .mw-highlight .o { color: #f92672 } /* Operator */
.view-dark .mw-highlight .p { color: #f8f8f2 } /* Punctuation */
.view-dark .mw-highlight .ch { color: #75715e } /* Comment.Hashbang */
.view-dark .mw-highlight .cm { color: #75715e } /* Comment.Multiline */
.view-dark .mw-highlight .cp { color: #75715e } /* Comment.Preproc */
.view-dark .mw-highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.view-dark .mw-highlight .c1 { color: #75715e } /* Comment.Single */
.view-dark .mw-highlight .cs { color: #75715e } /* Comment.Special */
.view-dark .mw-highlight .gd { color: #f92672 } /* Generic.Deleted */
.view-dark .mw-highlight .ge { font-style: italic } /* Generic.Emph */
.view-dark .mw-highlight .gi { color: #a6e22e } /* Generic.Inserted */
.view-dark .mw-highlight .gs { font-weight: bold } /* Generic.Strong */
.view-dark .mw-highlight .gu { color: #75715e } /* Generic.Subheading */
.view-dark .mw-highlight .kc { color: #66d9ef } /* Keyword.Constant */
.view-dark .mw-highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.view-dark .mw-highlight .kn { color: #f92672 } /* Keyword.Namespace */
.view-dark .mw-highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.view-dark .mw-highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.view-dark .mw-highlight .kt { color: #66d9ef } /* Keyword.Type */
.view-dark .mw-highlight .ld { color: #e6db74 } /* Literal.Date */
.view-dark .mw-highlight .m { color: #ae81ff } /* Literal.Number */
.view-dark .mw-highlight .s { color: #e6db74 } /* Literal.String */
.view-dark .mw-highlight .na { color: #a6e22e } /* Name.Attribute */
.view-dark .mw-highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.view-dark .mw-highlight .nc { color: #a6e22e } /* Name.Class */
.view-dark .mw-highlight .no { color: #66d9ef } /* Name.Constant */
.view-dark .mw-highlight .nd { color: #a6e22e } /* Name.Decorator */
.view-dark .mw-highlight .ni { color: #f8f8f2 } /* Name.Entity */
.view-dark .mw-highlight .ne { color: #a6e22e } /* Name.Exception */
.view-dark .mw-highlight .nf { color: #a6e22e } /* Name.Function */
.view-dark .mw-highlight .nl { color: #f8f8f2 } /* Name.Label */
.view-dark .mw-highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.view-dark .mw-highlight .nx { color: #a6e22e } /* Name.Other */
.view-dark .mw-highlight .py { color: #f8f8f2 } /* Name.Property */
.view-dark .mw-highlight .nt { color: #f92672 } /* Name.Tag */
.view-dark .mw-highlight .nv { color: #f8f8f2 } /* Name.Variable */
.view-dark .mw-highlight .ow { color: #f92672 } /* Operator.Word */
.view-dark .mw-highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.view-dark .mw-highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.view-dark .mw-highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.view-dark .mw-highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.view-dark .mw-highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.view-dark .mw-highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.view-dark .mw-highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.view-dark .mw-highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.view-dark .mw-highlight .sc { color: #e6db74 } /* Literal.String.Char */
.view-dark .mw-highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.view-dark .mw-highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.view-dark .mw-highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.view-dark .mw-highlight .se { color: #ae81ff } /* Literal.String.Escape */
.view-dark .mw-highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.view-dark .mw-highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.view-dark .mw-highlight .sx { color: #e6db74 } /* Literal.String.Other */
.view-dark .mw-highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.view-dark .mw-highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.view-dark .mw-highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.view-dark .mw-highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.view-dark .mw-highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.view-dark .mw-highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.view-dark .mw-highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.view-dark .mw-highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.view-dark .mw-highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.view-dark .mw-highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
/*****************************
* End syntax highlight *
******************************/
/*********************
* Main page layout *
* [[Felvidek Wiki]] *
**********************/
#mp-welcome-box {grid-area:welcome;}
#mp-about-box {grid-area:about;}
#mp-featured-box {grid-area:featured;}
#mp-wiki-box {grid-area:wiki;}
#mp-container {
display:grid;
grid-template-areas:
"welcome"
"about"
"featured"
"wiki";
grid-template-columns:100%;
gap:10px;
}
@media screen and (min-width:990px) {
#mp-container {
grid-template-areas:
"welcome welcome"
"about featured"
"wiki wiki";
grid-template-columns:1fr 1fr;
}
}
@media screen and (min-width:1350px) {
#mp-container {
grid-template-areas:
"welcome welcome welcome"
"about about featured"
"wiki wiki wiki";
grid-template-columns:2fr 1fr 2fr;
}
}
.mp-box {
display:flex;
flex-flow:column nowrap;
width: calc(100% - 2px);
box-sizing: border-box;
background:rgba(var(--wiki-content-background-color--secondary--rgb), 0.25);
border:1px solid var(--wiki-content-border-color);
padding:0px;
}
.mp-body {
height: 100%;
display: flex;
padding:0.5em;
flex-flow: column nowrap;
}
.mp-box.centered-content .mp-body {
height: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: space-evenly;
}
.mp-box.has-floating-image {
display:block;
}
.mp-box.has-floating-image .mp-body {
height:unset;
display:block;
}
.mp-box .mp-heading,
.mp-box .welcome-message {
text-align:center;
font-weight:bold;
font-family:var(--wiki-heading-font-family);
overflow: initial;
}
.mp-box .mp-heading {
border-bottom: 1px solid var(--wiki-content-border-color);
font-size: 150%;
margin: 0;
padding: 5px 0;
color:var(--wiki-heading-color);
}
.mp-box .welcome-message {
font-size: 200%;
margin: 0;
padding: 5px 0;
color: #fff;
filter: drop-shadow(0px 2px 3px #000) drop-shadow(0px 0px 2px #000);
}
#mp-welcome-box {
text-align:center;
position:relative;
overflow:hidden;
}
#mp-welcome {
position: relative;
font-family: var(--wiki-heading-font-family);
z-index: 2;
box-sizing: border-box;
}
#mp-welcome .welcome-subtitle {
background:rgba(var(--wiki-content-dynamic-color--inverted--rgb), 0.85);
padding:0.5em;
}
#mp-banner {
position: absolute;
width: 100%;
height: 100%;
filter: blur(5px);
z-index: 1;
background: var(--wiki-body-background-image);
background-size: cover;
background-repeat: no-repeat;
background-position: top -200px center;
}
.mp-links {
--gap:10px;
}
.mp-links > ul {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
margin: 2px;
gap:var(--gap);
}
.mp-links > ul > li {
display:flex;
flex-flow:column nowrap;
align-items:stretch;
text-align: center;
box-sizing:border-box;
flex: max(calc(50% - var(--gap)), 5em) 1 1;
outline:1px solid var(--wiki-content-link-color);
transition:0.1s ease-in;
}
.mp-links > ul > li:hover {
background-color:rgba(var(--wiki-content-link-color--rgb), 0.2);
}
.mp-links.columns-1 > ul > li {flex: max(calc(100% - var(--gap)), 5em) 1 1;}
.mp-links.columns-2 > ul > li {flex: max(calc(50% - var(--gap)), 5em) 1 1;}
.mp-links.columns-3 > ul > li {flex: max(calc((100% / 3) - var(--gap)), 5em) 1 1;}
.mp-links.columns-4 > ul > li {flex: max(calc(25% - var(--gap)), 5em) 1 1;}
.mp-links.columns-5 > ul > li {flex: max(calc(20% - var(--gap)), 5em) 1 1;}
.mp-links.columns-6 > ul > li {flex: max(calc((100% / 6) - var(--gap)), 5em) 1 1;}
.mp-links.columns-7 > ul > li {flex: max(calc((100% / 7) - var(--gap)), 5em) 1 1;}
.mp-links > ul > li:hover a {
text-decoration: underline;
}
.mp-links > ul > li > a {
display: flex;
align-items: center;
justify-content: center;
height:100%;
flex:1 1 auto;
box-sizing:border-box;
padding:5px;
}
.mp-links > ul > li > a:first-child {
height:100%;
}
.mp-links > ul > li > a:last-child:not(:first-child) {
height:unset;
}
.mp-links.stretch,
.mp-links.stretch > ul {
height:100%;
}
.mp-links.side-image li {
flex-flow:row nowrap;
}
/***********************
* End main page layout *
************************/
/*****************************
* PortableInfoboxes *
******************************/
:root {
--pi-background: var(--wiki-content-background-color);
--pi-secondary-background: var(--wiki-accent-color);
--pi-secondary-background--rgb: var(--wiki-accent-color--rgb);
--pi-secondary-background-label: var(--wiki-accent-label-color);
--pi-border-color: rgba(var(--pi-secondary-background--rgb),0.5);
}
.portable-infobox .pi-title,
.portable-infobox .pi-header {
text-align:center;
font-size:1.5em;
background:rgba(var(--pi-secondary-background--rgb), 0.75);
color:var(--pi-secondary-background-label);
}
.portable-infobox .pi-data {
background:rgba(var(--pi-secondary-background--rgb), 0.18);
}
.portable-infobox .pi-image {
padding: 8px;
}
.pi-image-thumbnail {
max-width:100%;
}
.pi-section-navigation .pi-section-tab.pi-section-active,
.pi-section-navigation .pi-section-tab.current,
.pi-media-collection .pi-tab-link.current {
background: var(--pi-secondary-background);
color: var(--pi-secondary-background-label);
}
/* overqualify these to overwrite normal content heading styles */
.mw-body .portable-infobox h2,
.mw-body .portable-infobox h3 {
border-bottom: 0;
font-family: inherit;
font-weight: 700;
margin: 0;
}
/*****************************
* End PortableInfoboxes *
******************************/
/**************************
* Start Modular Templates *
**************************/
/********* [[Template:Ambox]] *********/
.ambox {
border: 1px solid var(--wiki-content-border-color);
border-left: 10px solid var(--ambox-color);
border-radius: 2px;
display: flex;
align-items: center;
gap: .6em;
margin: 1em 0;
padding: 3px .6em;
background-color: var(--wiki-content-background-color--secondary);
box-shadow: 2px 2px 5px 0px #0002;
}
@media (min-width: 720px) {
.ambox {
margin-inline: 10%;
}
}
.ambox.tiny {
padding: .04rem .5em;
margin-inline: 0;
width: fit-content;
}
.ambox + .ambox {
margin-top: -.6em;
}
.ambox-content p {
margin: .15em 0;
}
.ambox-title {
font-weight: bold;
}
/********* [[Template:Hatnote]] *********/
.hatnote {
padding: 1px 0 1px 1.6em;
margin-bottom: 0.5em;
font-style: italic;
border-top: 1px solid var(--wiki-body-dynamic-color--secondary--inverted);
border-bottom: 1px solid var(--wiki-body-dynamic-color--secondary--inverted);
}
.hatnote.icon {
padding-left: 0;
}
/********* [[Template:Spoiler]] *********/
.spoiler-content {
background-color: rgb(127, 127, 127);
transition: all 0.3s;
cursor: pointer;
}
.spoiler-content > span {
opacity: 0;
transition: all 0.3s;
}
.spoiler-content.show, .spoiler-content.hover:hover {
background-color: rgba(127, 127, 127, 0);
}
.spoiler-content.show > span, .spoiler-content.hover:hover > span {
opacity: 1;
}
/********* [[Template:Link icon]] *********/
.link-icon {
display: inline-flex;
align-items: baseline;
}
.link-icon .regular {
align-self: center;
}
.link-icon .regular a {
display: flex;
}
.link-icon .regular img {
height: var(--link-icon-size);
max-width: var(--link-icon-size);
}
.link-icon .fallback {
outline: 1px solid var(--wiki-content-text-color);
border-radius: 50%;
text-align: center;
width: var(--link-icon-size);
line-height: var(--link-icon-size);
}
.link-icon.notext {
display: inline;
}
/********* [[Template:Quote]] *********/
.quote {
background: var(--wiki-content-background-color--secondary);
border-radius: 5px;
border: 2px solid var(--wiki-content-border-color);
margin: .5em 0;
padding: .5em;
}
.quote .block {
display: block;
}
.quote .title {
font-size: large;
font-weight: bold;
}
.quote .content {
font-style: italic;
}
.quote .author {
font-weight: bold;
text-align: end;
}
.quote .marks-wrapper {
display: flex;
gap: 5px;
}
.quote .marks-wrapper::before,
.quote .marks-wrapper::after {
font-size: 100px;
line-height: 0px;
}
.quote .marks-wrapper::before {
content: "“";
margin-top: 40px;
}
.quote .marks-wrapper::after {
content: "”";
align-self: end;
margin-bottom: -10px;
}
/************************
* End Modular Templates *
*************************/
/********************************************
* Utility classes for standard MW galleries *
*********************************************/
/* it's important that spaced comes before centered in the sheet */
.gallery.spaced {
display:flex;
flex-flow:row wrap;
justify-content:space-evenly;
margin-left:unset;
}
.gallery.centered {
text-align:center;
margin-left:auto;
margin-right:auto;
}
/**********************
* End gallery classes *
***********************/