Difference between revisions of "MediaWiki:Common.css"
MediaWiki interface page
Views
Actions
Namespaces
Variants
Tools
AmberFrost (talk | contribs) |
AmberFrost (talk | contribs) m (Add Roboto via Google Font) |
||
| (64 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); | |||
.main { | |||
font-size: 16px; | |||
font-style: italic; | |||
} | |||
.infobox { | .infobox { | ||
background-color: #eee; | background-color: #eee; | ||
| Line 7: | Line 14: | ||
padding: 1em; | padding: 1em; | ||
border-radius: 9px; | border-radius: 9px; | ||
width: | max-width: 21rem; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
| Line 13: | Line 20: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
text-align: center; | text-align: center; | ||
margin: auto; | |||
max-width: 16rem; | |||
} | } | ||
.infobox-stationtype { | .infobox-stationtype { | ||
| Line 21: | Line 30: | ||
text-align: center; | text-align: center; | ||
width:250px; | width:250px; | ||
margin: auto; | |||
padding-top: 10px; | |||
padding-bottom: 10px; | |||
} | } | ||
.infobox-imgdesc { | .infobox-imgdesc { | ||
font-size: 0. | font-size: 0.7em; | ||
text-align: center; | text-align: center; | ||
color: gray; | |||
} | } | ||
.infobox-category { | .infobox-category { | ||
text-align: center; | text-align: center; | ||
background-color: # | background-color: #dadada; | ||
font-weight: bold; | font-weight: bold; | ||
border-radius: | border-radius: 4px; | ||
width: 100%; | width: 100%; | ||
margin-top: 20px; | |||
} | } | ||
.infobox | .infobox table { | ||
width: 100%; | |||
} | } | ||
.infobox th { | .infobox th { | ||
| Line 40: | Line 54: | ||
text-align: left; | text-align: left; | ||
vertical-align: top; | vertical-align: top; | ||
width: | width: 90px; | ||
} | } | ||
.infobox td { | .infobox td { | ||
font-size: 14px; | font-size: 14px; | ||
vertical-align: top; | vertical-align: top; | ||
} | |||
.infobox table { | |||
margin-top: 0px; | |||
} | } | ||
| Line 62: | Line 79: | ||
} | } | ||
.dialog-box { | |||
. | color: black; | ||
background-color: #FFECA8; | |||
border-radius: 6px; | |||
padding: 3px 20px 3px 20px; | |||
line-height:16px; | |||
max-width: 100%; | |||
font-size: 14px; | |||
margin-bottom: 15px; | |||
} | |||
.lc1 { | |||
width: 4px; | |||
height: 16px; | |||
display: inline-block; | |||
margin-right: 3px; | |||
vertical-align: middle; | |||
} | |||
.grid { | |||
padding-left: 10px; | |||
padding-right: 10px; | |||
width: 120px; | |||
} | |||
.grid-element { | |||
position: relative; | |||
background-color: #8b8b8b; | |||
border-top: 2px solid #353535; | |||
border-left: 2px solid #353535; | |||
border-right: 2px solid #FFFFFF; | |||
border-bottom: 2px solid #FFFFFF; | |||
width: 36px; | |||
height: 36px; | |||
float: left; | |||
} | |||
.clear { | |||
clear: both; | |||
} | |||
.count { | |||
position: absolute; | |||
bottom: 0px; | |||
right: 0px; | |||
color: white; | |||
text-shadow: 2px 2px 2px #000; | |||
} | |||
.mw-footer::before, #mw-data-after-content::before { | |||
pointer-events: none; | |||
} | } | ||
@media screen and (max-width: 600px) { | |||
.infobox { | |||
float: none; | |||
border: none; | |||
border-radius: 0; | |||
width: 90%; | |||
margin: 0; | |||
} | |||
.infobox-image { | |||
margin: auto; | |||
} | |||
} | } | ||
Latest revision as of 21:42, 23 February 2025
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
.main {
font-size: 16px;
font-style: italic;
}
.infobox {
background-color: #eee;
color: black;
border: 1px solid #aaa;
float: right;
margin: 0 0 1em 1em;
padding: 1em;
border-radius: 9px;
max-width: 21rem;
border-collapse: collapse;
}
.infobox-title {
font-size: 1.5em;
text-align: center;
margin: auto;
max-width: 16rem;
}
.infobox-stationtype {
font-size: 0.8em;
text-align: center;
}
.infobox-image {
text-align: center;
width:250px;
margin: auto;
padding-top: 10px;
padding-bottom: 10px;
}
.infobox-imgdesc {
font-size: 0.7em;
text-align: center;
color: gray;
}
.infobox-category {
text-align: center;
background-color: #dadada;
font-weight: bold;
border-radius: 4px;
width: 100%;
margin-top: 20px;
}
.infobox table {
width: 100%;
}
.infobox th {
font-size: 14px;
text-align: left;
vertical-align: top;
width: 90px;
}
.infobox td {
font-size: 14px;
vertical-align: top;
}
.infobox table {
margin-top: 0px;
}
.mwe-popups .mwe-popups-extract {
color: black !important;
}
.mwe-popups:active .mwe-popups-extract[dir='ltr']:after {
background: transparent !important;
}
.mwe-popups:hover .mwe-popups-extract[dir='ltr']:after {
background: transparent !important;
}
.mwe-popups .mwe-popups-extract[dir='ltr']:after {
background: transparent !important;
}
.dialog-box {
color: black;
background-color: #FFECA8;
border-radius: 6px;
padding: 3px 20px 3px 20px;
line-height:16px;
max-width: 100%;
font-size: 14px;
margin-bottom: 15px;
}
.lc1 {
width: 4px;
height: 16px;
display: inline-block;
margin-right: 3px;
vertical-align: middle;
}
.grid {
padding-left: 10px;
padding-right: 10px;
width: 120px;
}
.grid-element {
position: relative;
background-color: #8b8b8b;
border-top: 2px solid #353535;
border-left: 2px solid #353535;
border-right: 2px solid #FFFFFF;
border-bottom: 2px solid #FFFFFF;
width: 36px;
height: 36px;
float: left;
}
.clear {
clear: both;
}
.count {
position: absolute;
bottom: 0px;
right: 0px;
color: white;
text-shadow: 2px 2px 2px #000;
}
.mw-footer::before, #mw-data-after-content::before {
pointer-events: none;
}
@media screen and (max-width: 600px) {
.infobox {
float: none;
border: none;
border-radius: 0;
width: 90%;
margin: 0;
}
.infobox-image {
margin: auto;
}
}