Template:Main Page/styles.css: Difference between revisions
Appearance
AZMindroma (talk | contribs) Undo revision 2254 by AZMindroma (talk) Tags: Undo Reverted |
AZMindroma (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* {{pp|small=yes}} */ | |||
.mp-box { | |||
border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */ | |||
padding: 0 0.5em 0.5em; | |||
border | margin-top: 4px; | ||
} | } | ||
.mp-h2, | .mp-h2, | ||
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */ | body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */ | ||
border- | border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */ | ||
margin: 0.5em 0; | |||
padding: 0.2em 0.4em; | |||
font-size: 120%; | |||
font-weight: bold; | |||
font-family: inherit; | |||
} | } | ||
.mp-later { | |||
.mp- | font-size: 85%; | ||
font-weight: normal; | |||
} | } | ||
#mp-welcomecount { | #mp-welcomecount { | ||
text-align: center; | |||
margin: 0.4em; | margin: 0.4em; | ||
} | } | ||
| Line 30: | Line 29: | ||
font-size: 162%; | font-size: 162%; | ||
padding: 0.1em; | padding: 0.1em; | ||
} | |||
#mp-welcome h1, | |||
#mp-welcome .mw-heading1 { | |||
font-size: inherit; | |||
font-family: inherit; | |||
display: inline; | |||
border: none; | |||
} | } | ||
| Line 40: | Line 47: | ||
} | } | ||
# | #articlecount > ul { | ||
margin: 0; | |||
padding: 0; | |||
margin | |||
} | } | ||
# | #articlecount > ul > li { | ||
margin: 0; | |||
display: inline; | |||
} | } | ||
# | #articlecount > ul > li::after { | ||
content: " · "; | |||
font-weight: bold; | |||
} | } | ||
# | #articlecount > ul > li:last-child::after { | ||
content: ""; | |||
} | } | ||
#mp- | #mp-banner { | ||
top: | text-align: center; | ||
padding-top: 0.5em; | |||
} | } | ||
/* clear fix */ | |||
.mp-contains-float::after { | |||
content: ""; | |||
display: block; | |||
clear: both; | |||
} | } | ||
Revision as of 14:45, 4 June 2025
/* {{pp|small=yes}} */
.mp-box {
border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */
padding: 0 0.5em 0.5em;
margin-top: 4px;
}
.mp-h2,
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
border: 1px solid #aaa; /* all colors overriden on specific elements in @media screen */
margin: 0.5em 0;
padding: 0.2em 0.4em;
font-size: 120%;
font-weight: bold;
font-family: inherit;
}
.mp-later {
font-size: 85%;
font-weight: normal;
}
#mp-welcomecount {
text-align: center;
margin: 0.4em;
}
#mp-welcome {
font-size: 162%;
padding: 0.1em;
}
#mp-welcome h1,
#mp-welcome .mw-heading1 {
font-size: inherit;
font-family: inherit;
display: inline;
border: none;
}
#mp-free {
font-size: 95%;
}
#articlecount {
font-size: 85%;
}
#articlecount > ul {
margin: 0;
padding: 0;
}
#articlecount > ul > li {
margin: 0;
display: inline;
}
#articlecount > ul > li::after {
content: " · ";
font-weight: bold;
}
#articlecount > ul > li:last-child::after {
content: "";
}
#mp-banner {
text-align: center;
padding-top: 0.5em;
}
/* clear fix */
.mp-contains-float::after {
content: "";
display: block;
clear: both;
}
.mp-h2,
body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */
margin: 0.5em;
padding: 0.2em 0.4em;
font-size: 120%;
font-weight: bold;
font-family: inherit;
}
h2.mp-h2::after { /* Remove borders in Timeless */
border: none;
}
.mp-later {
font-size: 85%;
font-weight: normal;
}
#mp-upper {
width: 100%;
margin-top: 4px;
margin-bottom: 0;
border-spacing: 0;
border-collapse: separate;
}
#mp-upper .mid-table {
border-color: transparent;
}
#mp-left {
width: 55%;
border-color: #cef2e0;
background: #f5fffa;
}
#mp-right {
width: 45%;
border-color: #cedff2;
background: #f5faff;
}
#mp-left,
#mp-right {
padding: 0;
vertical-align: top;
}
#mp-left .mp-h2 {
background: #cef2e0;
border-color: #a3bfb1;
}
#mp-right .mp-h2 {
background: #cedff2;
border-color: #a3b0bf;
}
#mp-tfa,
#mp-dyk,
#mp-itn,
#mp-otd,
#mp-other-lower > div {
padding: 0.1em 0.6em;
}
#mp-dyk-h2,
#mp-otd-h2 {
clear: both;
}
#mp-middle {
margin-top: 4px;
border-color: #f2cedd;
background: #fff5fa;
}
#mp-middle,
#mp-lower,
#mp-other-lower {
overflow: auto;
}
#mp-tfl-h2 {
background: #f2cedd;
border-color: #bfa3af;
}
#mp-tfl {
padding: 0.3em 0.7em;
}
#mp-lower {
margin-top: 4px;
border-color: #ddcef2;
background: #faf5ff;
}
#mp-tfp-h2 {
background: #ddcef2;
border-color: #afa3bf;
}
#mp-tfp {
margin: 0.1em 0.4em 0.6em;
}
#mp-other-lower {
padding: 0;
border-color: #e2e2e2;
margin-top: 4px;
}
#mp-dyk,
#mp-otd,
#mp-other-lower {
padding-bottom: 0.5em;
}
#mp-other-lower .mp-h2 {
background: #eee;
border-color: #ddd;
color: #222;
}
@media (max-width: 875px) {
body.skin--responsive #mp-welcomecount {
width: auto;
}
body.skin--responsive #mp-topbanner {
min-width: 0;
white-space: normal;
}
body.skin--responsive #mp-portals {
position: static;
width: auto;
min-width: 0;
text-align: center;
border-top: 1px solid #ddd;
padding: 0.4em 0;
margin: 0 0.4em;
}
body.skin--responsive #mp-portals li {
position: static;
display: inline;
padding: 0 5px;
white-space: nowrap;
}
body.skin--responsive table,
body.skin--responsive tr,
body.skin--responsive td,
body.skin--responsive tbody {
display: block !important;
width: 100% !important;
box-sizing: border-box;
}
body.skin--responsive #mp-tfp tr:first-child td:first-child a {
text-align: center;
display: table;
margin: 0 auto;
}
}
/* https://phabricator.wikimedia.org/T293232 - Minerva doesn't have this style. */
div.hlist.inline ul,
div.hlist.inline li,
div.hlist.inline {
display: inline;
}