MediaWiki:Common.css
Ilme
Märkus: võimalik, et pärast avaldamist tuleb muudatuste nägemiseks brauseri puhver tühjendada.
- Firefox / Safari: hoia all Shift-klahvi ja klõpsa Laadi uuesti või vajuta kas Ctrl-F5 või Ctrl-R (Macis ⌘-R).
- Google Chrome: vajuta Ctrl-Shift-R (Macis ⌘-Shift-R).
- Edge: hoia all Ctrl-klahvi ja klõpsa Värskenda või vajuta Ctrl-F5.
/* Nutipeedia Common Stylesheet (Wikipedia Vector Look & Feel) */
/* General Typography */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Liberation Sans", sans-serif;
color: #202122;
}
/* Headings in Serif style matching modern Vector */
.mw-body h1, .mw-body h2, .firstHeading {
font-family: 'Linux Libertine', 'Source Serif 4', Georgia, serif;
font-weight: 500;
}
/* Infobox Styling */
.infobox {
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
color: #202122;
margin: 0.5em 0 1em 1.4em;
padding: 0.4em;
float: right;
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 23em;
border-spacing: 3px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.infobox caption, .infobox-title {
font-size: 130%;
font-weight: bold;
padding: 0.3em 0.5em;
text-align: center;
background-color: #eaecf0;
border-radius: 3px;
margin-bottom: 0.3em;
font-family: 'Linux Libertine', Georgia, serif;
}
.infobox th {
vertical-align: top;
text-align: left;
padding: 0.25em 0.5em;
font-weight: 600;
width: 38%;
background-color: rgba(234, 236, 240, 0.4);
border-bottom: 1px solid #eaecf0;
}
.infobox td {
vertical-align: top;
text-align: left;
padding: 0.25em 0.5em;
border-bottom: 1px solid #eaecf0;
}
.infobox-header {
background-color: #e1e8f2 !important;
text-align: center !important;
font-weight: bold;
padding: 0.3em !important;
color: #102a43;
}
.infobox-image {
text-align: center;
padding: 0.5em 0;
}
.infobox-image img {
max-width: 100%;
height: auto;
border-radius: 2px;
}
/* Hatnote / Disambiguation */
.hatnote {
font-style: italic;
padding: 0.4em 0.6em;
margin-bottom: 0.8em;
background-color: #f8f9fa;
border-left: 3px solid #3366cc;
font-size: 92%;
color: #54595d;
}
/* Article Message Boxes (Ambox) */
.ambox {
border: 1px solid #a2a9b1;
border-left: 10px solid #3366cc;
background-color: #fbfbfb;
margin: 1em 0;
padding: 0.6em 1em;
display: flex;
align-items: center;
gap: 1em;
font-size: 90%;
border-radius: 2px;
}
.ambox-notice {
border-left-color: #2e7d32;
background-color: #f1f8e9;
}
.ambox-content {
border-left-color: #f57c00;
background-color: #fff8e1;
}
.ambox-delete {
border-left-color: #d32f2f;
background-color: #ffebee;
}
.ambox-icon {
font-size: 1.8em;
flex-shrink: 0;
}
/* Pull Quotes */
.nutipeedia-quote {
margin: 1.2em 0;
padding: 0.8em 1.4em;
background-color: #f8f9fa;
border-left: 4px solid #0072ce;
font-style: italic;
font-size: 105%;
}
.nutipeedia-quote figcaption {
font-style: normal;
font-size: 85%;
color: #54595d;
margin-top: 0.4em;
}
/* Main Page (Esileht) Portal Layout */
.mp-container {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 1.2em;
margin-top: 1em;
}
@media (max-width: 850px) {
.mp-container {
grid-template-columns: 1fr;
}
}
.mp-banner {
background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
border: 1px solid #cbd5e1;
border-radius: 6px;
padding: 1.2em 1.5em;
margin-bottom: 1.2em;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1em;
}
.mp-banner-title h1 {
margin: 0;
font-size: 1.8em;
border: none;
padding: 0;
color: #0f172a;
}
.mp-banner-subtitle {
font-size: 1em;
color: #475569;
margin-top: 0.2em;
}
.mp-stats {
font-size: 0.9em;
color: #334155;
background: #ffffff;
padding: 0.6em 1em;
border-radius: 4px;
border: 1px solid #cbd5e1;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.mp-card {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 6px;
margin-bottom: 1.2em;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mp-card-header {
background: #f1f5f9;
border-bottom: 1px solid #e2e8f0;
padding: 0.6em 1em;
font-weight: 600;
font-size: 1.1em;
display: flex;
align-items: center;
gap: 0.5em;
color: #0f172a;
font-family: 'Linux Libertine', Georgia, serif;
}
.mp-card-header.featured {
background: #e0f2fe;
border-bottom-color: #bae6fd;
color: #0369a1;
}
.mp-card-header.did-you-know {
background: #fef3c7;
border-bottom-color: #fde68a;
color: #92400e;
}
.mp-card-header.picture {
background: #f3e8ff;
border-bottom-color: #e9d5ff;
color: #6b21a8;
}
.mp-card-header.history {
background: #dcfce7;
border-bottom-color: #bbf7d0;
color: #166534;
}
.mp-card-body {
padding: 1em;
line-height: 1.6;
}
.mp-portals {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 0.8em;
margin-top: 1.2em;
}
.mp-portal-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.8em;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
text-align: center;
text-decoration: none !important;
color: #1e293b !important;
font-weight: 500;
transition: all 0.2s ease;
}
.mp-portal-btn:hover {
background: #e2e8f0;
border-color: #cbd5e1;
transform: translateY(-2px);
}
.mp-portal-btn .icon {
font-size: 1.8em;
margin-bottom: 0.3em;
}
/* Navbox footer */
.navbox {
border: 1px solid #a2a9b1;
clear: both;
width: 100%;
margin: 1.5em auto 0 auto;
font-size: 88%;
text-align: center;
padding: 1px;
}
.navbox-title {
background-color: #eaecf0;
font-weight: bold;
padding: 0.3em 1em;
font-size: 105%;
}
.navbox-group {
background-color: #f0f2f5;
font-weight: bold;
padding: 0.2em 1em;
width: 12%;
text-align: right;
white-space: nowrap;
}
.navbox-list {
padding: 0.3em 0.8em;
text-align: left;
background-color: #ffffff;
}
/* References Styling */
.reflist {
font-size: 90%;
margin-top: 0.5em;
}
.references {
column-count: 2;
column-gap: 2em;
}
@media (max-width: 600px) {
.references {
column-count: 1;
}
}