MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| (55 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 */ | ||
. | |||
/* Keep images from escaping their enclosures */ | |||
img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/* Main page overrides */ | |||
body.page-Main_Page main header.mw-body-header { | |||
display:none; | |||
} | |||
body.page-Main_Page div.vector-page-toolbar { | |||
display:none; | |||
} | |||
/* Landing page styles */ | |||
.landing-page .section span.button a { | |||
display: inline-block; | |||
padding: 0.5em 1.5em; | |||
background-color: rgb(177, 224, 223); | |||
color: black; | |||
text-decoration: none; | |||
border-radius: 5px; | |||
font-size: 1rem; | |||
font-weight: bold; | |||
} | |||
.landing-page .section h1 { | |||
font-family: Arial, Helvetica, sans-serif !important; | |||
font-weight: bold; | |||
border: 0; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.landing-page .section h2 { | |||
font-family: Arial, Helvetica, sans-serif !important; | |||
font-weight: bold; | |||
border: 0; | |||
margin: 0 0 .55em 0; | |||
padding: 0; | |||
display: block; | |||
} | |||
/* Section box base */ | |||
.landing-page .section { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
align-items: center; | align-items: center; | ||
margin: 0; | margin: 8em 0; | ||
padding-right: 3em; | |||
} | } | ||
. | .landing-page .section > div { | ||
padding: 2em 0; | padding: 2em 0; | ||
} | } | ||
. | .landing-page .section .left { | ||
flex: | flex: 3; | ||
min-width: | min-width: 350px; | ||
} | } | ||
. | .landing-page .section .right { | ||
flex: | flex: 2; | ||
min-width: | min-width: 350px; | ||
} | } | ||
.hero-box . | .landing-page .section p { | ||
font-size: 1.2rem; | |||
} | |||
/* Hero box overrides */ | |||
.landing-page .hero-box { | |||
padding-right: 0; | |||
} | |||
.landing-page .hero-box h1 { | |||
font-size: 4rem; | font-size: 4rem; | ||
line-height: 1.0; | line-height: 1.0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
.hero-box .tagline { | .landing-page .hero-box .tagline { | ||
font-size: 1.2rem; | font-size: 1.2rem; | ||
line-height: 1.8; | line-height: 1.8; | ||
margin-top: 0; | margin-top: 0; | ||
color: rgba(50, 60, 60, 0.8); | color: rgba(50, 60, 60, 0.8); | ||
} | |||
/* Landing page intro box */ | |||
.landing-page .intro { | |||
padding: 2em; | |||
border: 2px solid rgb(177, 224, 223); | |||
} | |||
.landing-page .intro .label { | |||
font-family: Arial, Helvetica, sans-serif !important; | font-family: Arial, Helvetica, sans-serif !important; | ||
font-weight: bold; | |||
font-size: 1.2rem; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
.landing-page .intro p { | |||
font-size: 1.6rem; | |||
} | |||
/* Button strip */ | |||
.landing-page .button-strip { | |||
padding: 0 !important; | |||
margin: 1em 0; | |||
} | |||
.landing-page .button-strip ul { | |||
list-style: none; | |||
padding: 0; | |||
margin: 0; | |||
display: flex; | |||
justify-content: center; | |||
gap: 1em; | |||
clear: both; | |||
flex-wrap: wrap; | |||
} | |||
.landing-page .button-strip li { | |||
display: inline-block; | |||
padding: 0 1em; | |||
margin: 0.5em 0; | |||
} | |||
.landing-page .button-strip li .mw-parser-output a.external { | |||
background-image: none !important; | |||
} | |||
/* Section alts */ | |||
.landing-page .alt-1 { | |||
clear: both; | |||
margin: 2em 0; | |||
background-color: rgba(40,60,60,0.05); | |||
padding: 3em; | |||
} | |||
.landing-page .alt-1 p { | |||
border-bottom: 2px solid rgb(230, 230, 230); | |||
padding-bottom: 1em; | |||
margin-bottom: 2em; | |||
} | |||
.landing-page .alt-2 { | |||
padding: 3em; | |||
} | |||
.landing-page .section .alt-3 .left { | |||
flex: 2; | |||
min-width: 350px; | |||
} | } | ||
. | .landing-page .section .alt-3 .right { | ||
flex: 3; | |||
min-width: 350px; | |||
} | } | ||
Latest revision as of 19:15, 14 May 2025
/* CSS placed here will be applied to all skins */
/* Keep images from escaping their enclosures */
img {
max-width: 100%;
height: auto;
}
/* Main page overrides */
body.page-Main_Page main header.mw-body-header {
display:none;
}
body.page-Main_Page div.vector-page-toolbar {
display:none;
}
/* Landing page styles */
.landing-page .section span.button a {
display: inline-block;
padding: 0.5em 1.5em;
background-color: rgb(177, 224, 223);
color: black;
text-decoration: none;
border-radius: 5px;
font-size: 1rem;
font-weight: bold;
}
.landing-page .section h1 {
font-family: Arial, Helvetica, sans-serif !important;
font-weight: bold;
border: 0;
margin: 0;
padding: 0;
}
.landing-page .section h2 {
font-family: Arial, Helvetica, sans-serif !important;
font-weight: bold;
border: 0;
margin: 0 0 .55em 0;
padding: 0;
display: block;
}
/* Section box base */
.landing-page .section {
display: flex;
flex-wrap: wrap;
align-items: center;
margin: 8em 0;
padding-right: 3em;
}
.landing-page .section > div {
padding: 2em 0;
}
.landing-page .section .left {
flex: 3;
min-width: 350px;
}
.landing-page .section .right {
flex: 2;
min-width: 350px;
}
.landing-page .section p {
font-size: 1.2rem;
}
/* Hero box overrides */
.landing-page .hero-box {
padding-right: 0;
}
.landing-page .hero-box h1 {
font-size: 4rem;
line-height: 1.0;
margin: 0;
}
.landing-page .hero-box .tagline {
font-size: 1.2rem;
line-height: 1.8;
margin-top: 0;
color: rgba(50, 60, 60, 0.8);
}
/* Landing page intro box */
.landing-page .intro {
padding: 2em;
border: 2px solid rgb(177, 224, 223);
}
.landing-page .intro .label {
font-family: Arial, Helvetica, sans-serif !important;
font-weight: bold;
font-size: 1.2rem;
margin: 0;
padding: 0;
}
.landing-page .intro p {
font-size: 1.6rem;
}
/* Button strip */
.landing-page .button-strip {
padding: 0 !important;
margin: 1em 0;
}
.landing-page .button-strip ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
gap: 1em;
clear: both;
flex-wrap: wrap;
}
.landing-page .button-strip li {
display: inline-block;
padding: 0 1em;
margin: 0.5em 0;
}
.landing-page .button-strip li .mw-parser-output a.external {
background-image: none !important;
}
/* Section alts */
.landing-page .alt-1 {
clear: both;
margin: 2em 0;
background-color: rgba(40,60,60,0.05);
padding: 3em;
}
.landing-page .alt-1 p {
border-bottom: 2px solid rgb(230, 230, 230);
padding-bottom: 1em;
margin-bottom: 2em;
}
.landing-page .alt-2 {
padding: 3em;
}
.landing-page .section .alt-3 .left {
flex: 2;
min-width: 350px;
}
.landing-page .section .alt-3 .right {
flex: 3;
min-width: 350px;
}