MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
message box css |
No edit summary |
||
(20 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 */ | ||
/* | |||
/* Anton is an open-source font similar to Impact. This is to be used as a backup for Impact, for devices that don't have Impact installed such as iPhone. */ | |||
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap'); | |||
.impact { | |||
font-family: Impact, 'Anton'; | |||
} | } | ||
.plainbutton { | |||
appearance: none; | |||
background: none; | |||
color: #3366cc; | |||
margin: 0; | |||
padding: 0; | padding: 0; | ||
border: 0; | |||
font: inherit; | |||
cursor: pointer; | |||
} | } | ||
.link-inherit-color a, .link-inherit-color a.new { | |||
color: inherit; | |||
} | } | ||
/* Hatnotes and disambiguation notices */ | |||
.hatnote { | |||
font-style: italic; | |||
} | } | ||
. | .hatnote i { | ||
font-style: normal; | |||
} | } | ||
. | div.hatnote { | ||
/* @noflip */ | /* @noflip */ | ||
padding: | padding-left: 1.6em; | ||
margin-bottom: 0.5em; | |||
} | } | ||
. | div.hatnote + div.hatnote { | ||
margin-top: -0.5em; | |||
} | } | ||
/* Style for compact ambox */ | |||
/* Hide the images */ | |||
.compact-ambox table .mbox-image, | |||
.compact-ambox table .mbox-imageright, | |||
.compact-ambox table .mbox-empty-cell { | |||
display: none; | |||
} | } | ||
table.ambox | /* Remove borders, backgrounds, padding, etc. */ | ||
.compact-ambox table.ambox { | |||
border- | border: none; | ||
background-color: | border-collapse: collapse; | ||
background-color: transparent; | |||
margin: 0 0 0 1.6em !important; | |||
padding: 0 !important; | |||
width: auto; | |||
display: block; | |||
} | } | ||
table. | body.mediawiki .compact-ambox table.mbox-small-left { | ||
font-size: 100%; | |||
width: auto; | |||
margin: 0; | |||
} | } | ||
table. | /* Style the text cell as a list item and remove its padding */ | ||
.compact-ambox table .mbox-text { | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | } | ||
table. | .compact-ambox table .mbox-text-span { | ||
display: list-item; | |||
line-height: 1.5em; | |||
list-style-type: square; | |||
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg); | |||
} | } | ||
table. | .skin-vector .compact-ambox table .mbox-text-span { | ||
list-style-type: disc; | |||
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg); | |||
} | } | ||
/* Allow for hiding text in compact form */ | |||
.compact-ambox .hide-when-compact { | |||
display: none; | |||
} | } | ||
/* | /* Default styling for Navbar template */ | ||
.navbar { | |||
display: inline; | |||
font-size: 88%; | |||
font-weight: normal; | |||
} | } | ||
. | .navbar ul { | ||
display: inline-block; | |||
white-space: nowrap; | |||
} | } | ||
. | .mw-body-content .navbar ul { | ||
line-height: inherit; | |||
} | } | ||
.navbar li { | |||
word-spacing: -0.125em; | |||
} | } | ||
.navbar.mini li abbr[title] { | |||
border: | font-variant: small-caps; | ||
border-bottom: none; | |||
text-decoration: none; | |||
cursor: inherit; | |||
} | } | ||
/* Navbar styling when nested in infobox and navbox */ | |||
.infobox .navbar { | |||
font-size: 100%; | |||
} | } | ||
.navbox .navbar { | |||
display: block; | |||
font-size: 100%; | |||
} | } | ||
.navbox-title .navbar { | |||
/* @noflip */ | |||
float: left; | |||
/* @noflip */ | |||
text-align: left; | |||
/* @noflip */ | |||
margin-right: 0.5em; | |||
} | } | ||
/* Styling for JQuery makeCollapsible, matching that of collapseButton */ | |||
.mw-parser-output .mw-collapsible-toggle { | |||
font-weight: normal; | |||
/* @noflip */ | |||
text-align: right; | |||
padding-right: 0.2em; | |||
padding-left: 0.2em; | |||
} | } | ||
.mw-collapsible-leftside-toggle .mw-collapsible-toggle { | |||
/* @noflip */ | |||
float: left; | |||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
/* | /* Infobox template style */ | ||
.infobox { | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
background-color: # | border-spacing: 3px; | ||
background-color: #f8f9fa; | |||
color: black; | |||
/* @noflip */ | |||
margin: 0.5em 0 0.5em 1em; | |||
padding: 0.2em; | |||
/* @noflip */ | |||
float: right; | |||
/* @noflip */ | |||
clear: right; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
} | } | ||
.infobox caption { | |||
font-size: 125%; | |||
font-weight: bold; | |||
padding: 0.2em; | |||
text-align: center; | |||
} | } | ||
.infobox td, | |||
.infobox th { | |||
vertical-align: top; | |||
/* @noflip */ | |||
text-align: left; | |||
} | } | ||
.infobox.bordered { | |||
border-collapse: collapse; | |||
} | } | ||
.infobox.bordered td, | |||
.infobox.bordered th { | |||
border: 1px solid #a2a9b1; | |||
} | } | ||
.infobox.bordered .borderless td, | |||
.infobox.bordered .borderless th { | |||
border: 0; | |||
} | } | ||
.infobox.sisterproject { | |||
width: 20em; | |||
font-size: 90%; | |||
} | } | ||
.infobox.standard-talk { | |||
border: 1px solid # | border: 1px solid #c0c090; | ||
background-color: #f8eaba; | |||
} | } | ||
.infobox.standard-talk.bordered td, | |||
border: | .infobox.standard-talk.bordered th { | ||
border: 1px solid #c0c090; | |||
} | } | ||
border: | /* styles for bordered infobox with merged rows */ | ||
.infobox.bordered .mergedtoprow td, | |||
.infobox.bordered .mergedtoprow th { | |||
border: 0; | |||
border-top: 1px solid #a2a9b1; | |||
/* @noflip */ | |||
border-right: 1px solid #a2a9b1; | |||
} | } | ||
.infobox.bordered .mergedrow td, | |||
.infobox.bordered .mergedrow th { | |||
border: 0; | |||
border: | /* @noflip */ | ||
border-right: 1px solid #a2a9b1; | |||
border: | |||
} | } | ||
/* | /* Styles for geography infoboxes, eg countries, | ||
country subdivisions, cities, etc. */ | |||
.infobox.geography { | |||
border-collapse: collapse; | border-collapse: collapse; | ||
line-height: 1.2em; | |||
font-size: 90%; | |||
} | } | ||
. | |||
.infobox.geography td, | |||
.infobox.geography th { | |||
border-top: 1px solid #a2a9b1; | |||
padding: 0.4em 0.6em 0.4em 0.6em; | |||
} | } | ||
. | .infobox.geography .mergedtoprow td, | ||
.infobox.geography .mergedtoprow th { | |||
border-top: 1px solid #a2a9b1; | |||
padding: 0.4em 0.6em 0.2em 0.6em; | |||
} | } | ||
. | |||
.infobox.geography .mergedrow td, | |||
.infobox.geography .mergedrow th { | |||
border: 0; | |||
padding: 0 0.6em 0.2em 0.6em; | |||
} | } | ||
.infobox.geography .mergedbottomrow td, | |||
border: | .infobox.geography .mergedbottomrow th { | ||
border-top: 0; | |||
border-bottom: 1px solid #a2a9b1; | |||
padding: 0 0.6em 0.4em 0.6em; | |||
} | } | ||
.infobox.geography .maptable td, | |||
.infobox.geography .maptable th { | |||
border: 0; | |||
padding: 0; | |||
border: | |||
} | } | ||
/* | |||
/* Main page desktop-only CSS */ | |||
.desktop-flex-container { | |||
width: 100%; | width: 100%; | ||
display: flex; | |||
} | } | ||
.mainpage-column { | |||
display: flex; | |||
flex-basis: 0; | |||
flex-grow: 1; | |||
flex-wrap: wrap; | |||
} | } | ||
border: | .mainpage-col-left { | ||
border-right: 2px solid #0a5ba6; | |||
} | } | ||
.mainpage-col-middle { | |||
border-left: 2px solid #0a5ba6; | |||
border-right: 2px solid #0a5ba6; | |||
border: | |||
} | } | ||
.mainpage-col-right { | |||
border-left: 2px solid #0a5ba6; | |||
} | } | ||
.mainpage-column .col-content { | |||
flex-basis: 0; | |||
flex-grow: 1; | |||
. | margin-bottom: auto; | ||
margin | |||
} | } |
Latest revision as of 05:47, 25 July 2023
/* CSS placed here will be applied to all skins */
/* Anton is an open-source font similar to Impact. This is to be used as a backup for Impact, for devices that don't have Impact installed such as iPhone. */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
.impact {
font-family: Impact, 'Anton';
}
.plainbutton {
appearance: none;
background: none;
color: #3366cc;
margin: 0;
padding: 0;
border: 0;
font: inherit;
cursor: pointer;
}
.link-inherit-color a, .link-inherit-color a.new {
color: inherit;
}
/* Hatnotes and disambiguation notices */
.hatnote {
font-style: italic;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
/* @noflip */
padding-left: 1.6em;
margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
/* Style for compact ambox */
/* Hide the images */
.compact-ambox table .mbox-image,
.compact-ambox table .mbox-imageright,
.compact-ambox table .mbox-empty-cell {
display: none;
}
/* Remove borders, backgrounds, padding, etc. */
.compact-ambox table.ambox {
border: none;
border-collapse: collapse;
background-color: transparent;
margin: 0 0 0 1.6em !important;
padding: 0 !important;
width: auto;
display: block;
}
body.mediawiki .compact-ambox table.mbox-small-left {
font-size: 100%;
width: auto;
margin: 0;
}
/* Style the text cell as a list item and remove its padding */
.compact-ambox table .mbox-text {
padding: 0 !important;
margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
display: list-item;
line-height: 1.5em;
list-style-type: square;
list-style-image: url(/w/skins/MonoBook/resources/images/bullet.svg);
}
.skin-vector .compact-ambox table .mbox-text-span {
list-style-type: disc;
list-style-image: url(/w/skins/Vector/resources/skins.vector.styles/images/bullet-icon.svg);
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
display: none;
}
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline-block;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
font-weight: normal;
/* @noflip */
text-align: right;
padding-right: 0.2em;
padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
}
/* Infobox template style */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption {
font-size: 125%;
font-weight: bold;
padding: 0.2em;
text-align: center;
}
.infobox td,
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
.infobox.bordered {
border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
border: 0;
}
.infobox.sisterproject {
width: 20em;
font-size: 90%;
}
.infobox.standard-talk {
border: 1px solid #c0c090;
background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
border: 0;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
/* Styles for geography infoboxes, eg countries,
country subdivisions, cities, etc. */
.infobox.geography {
border-collapse: collapse;
line-height: 1.2em;
font-size: 90%;
}
.infobox.geography td,
.infobox.geography th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
border: 0;
padding: 0;
}
/* Main page desktop-only CSS */
.desktop-flex-container {
width: 100%;
display: flex;
}
.mainpage-column {
display: flex;
flex-basis: 0;
flex-grow: 1;
flex-wrap: wrap;
}
.mainpage-col-left {
border-right: 2px solid #0a5ba6;
}
.mainpage-col-middle {
border-left: 2px solid #0a5ba6;
border-right: 2px solid #0a5ba6;
}
.mainpage-col-right {
border-left: 2px solid #0a5ba6;
}
.mainpage-column .col-content {
flex-basis: 0;
flex-grow: 1;
margin-bottom: auto;
}