MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* ===== IMPORT BARLOW ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');
/* ===== GLOBAL FONT ===== */
html, body, #content, #mw-content-text, .drg-navbar-container, .mainpage-card, #drg-footer, .drg-footer-inner, .drg-column {
font-family: 'Barlow', Arial, sans-serif;
}
/* CSS placed here will be applied to all skins */
body.page-Help_Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-view h1.firstHeading { display: none; }
div#content a.external[href ^="https://"] {
background-image: none;
padding-right: 0;
}
html {
font-size: 100%;
}
/* Hide Discussion on all pages */
#ca-talk {
display: none !important;
}
/* Hide Edit and View Source tabs by default in Main namespace (ns-0) */
body.ns-0 #ca-edit,
body.ns-0 #ca-viewsource {
display: none !important;
}
/* EXCEPTIONS: show Edit tab and Source on below pages */
body.page-Main_Page #ca-edit,
body.page-Catalogue #ca-edit,
body.page-Definitions #ca-edit,
body.page-Contribute #ca-edit,
body.page-Resources #ca-edit,
body.page-SMWTestAug2 #ca-edit,
body.page-Main_Page #ca-viewsource,
body.page-Catalogue #ca-viewsource,
body.page-Definitions #ca-viewsource,
body.page-Contribute #ca-viewsource,
body.page-Resources #ca-viewsource,
body.page-SMWTestAug2 #ca-viewsource{
display: inline !important;
}
/* ===== MYRIAD COLOR PALETTE ===== */
:root {
--myriad-blue: #374CFF;
--myriad-dark: #000091;
--myriad-purple: #8836EA;
--myriad-pink: #DB20D2;
--myriad-yellow: #FFCE00;
--myriad-green: #5AE09A;
--myriad-light: #e5ccff;
}
/* ===== GLOBAL LINKS & BUTTONS ===== */
a {
color: var(--myriad-blue);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.drg-button {
display: inline-block;
padding: .5em 1em;
font-variant: small-caps;
border-radius: 7px;
background: var(--myriad-blue);
color: #fff !important;
transition: background 200ms;
text-decoration: none !important;
}
/* === Responsive logo === */
.logo-container {
max-width: 43.75rem; /* 700px ÷ 16 */
margin: 0 auto;
padding: 0.3125rem; /* 5px ÷ 16 */
text-align: center;
}
.responsive-logo img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* ===== MAIN PAGE FLIP CARDS (MediaWiki Safe) ===== */
.mainpage-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
margin: 3rem auto;
max-width: 1200px;
padding: 0 1rem;
}
/* Card container */
.mainpage-card {
flex: 0 1 220px;
max-width: 220px;
height: 180px;
position: relative;
text-decoration: none;
color: inherit;
display: block;
overflow: hidden; /* prevent bleed outside */
border-radius: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
transition: transform 0.3s, box-shadow 0.3s;
}
/* Inner wrapper */
.card-inner {
position: relative;
width: 100%;
height: 100%;
}
/* Front and back faces */
.card-front, .card-back {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 16px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1rem;
box-sizing: border-box;
text-align: center;
transition: opacity 0.5s, z-index 0.5s;
}
/* Front face */
.card-front {
background: #fff;
color: var(--myriad-blue);
z-index: 2;
opacity: 1;
}
/* Back face */
.card-back {
background: var(--myriad-blue);
color: #fff;
z-index: 1;
opacity: 0;
font-size: 0.95rem;
line-height: 1.4;
padding: 1.5rem;
font-weight: 600;
}
/* Flip effect (swap opacity + z-index) */
.mainpage-card:hover .card-front {
opacity: 0;
z-index: 1;
}
.mainpage-card:hover .card-back {
opacity: 1;
z-index: 2;
}
/* Image cleanup */
.card-front img {
border: none !important;
box-shadow: none !important;
margin: 0 auto;
max-height: 80px; /* instead of object-fit */
width: auto;
display: block;
}
/* Front titles */
.card-front h3 {
font-size: 1.25rem;
margin: 0 0 0.5rem;
font-weight: 600;
}
/* Responsive */
@media (max-width: 768px) {
.mainpage-cards {
gap: 1rem;
padding: 0 1rem;
}
.mainpage-card {
flex: 1 1 90%;
max-width: 90%;
}
}
/* === FOOTER === */
/* === Hide native “Privacy/Terms/Desktop” bar === */
#footer-places,
#footer-info-lastmod {
display: none !important;
}
/* === Remove default footer top border === */
.mw-footer-container,
#footer {
border-top: none !important;
}
/* === DRG Footer container === */
#drg-footer {
border-top: 1px solid #ccc;
background: #fff;
padding-top: 2em;
font-family: sans-serif;
color: #000;
font-size: 1.1rem;
margin: 1em 0 2em;
}
/* === Three‐column layout === */
.drg-columns {
display: flex;
justify-content: center;
align-items: stretch;
gap: 2em;
max-width: 1200px;
margin: 0 auto;
flex-wrap: nowrap;
}
.drg-column {
flex: 1 1 33%;
display: flex;
flex-direction: column;
gap: 1em;
min-width: 0;
}
/* Left-aligned with inward padding */
.drg-column-left {
align-items: flex-end;
text-align: left;
padding-right: 1.5em;
}
.drg-column-right {
align-items: flex-start;
text-align: right;
padding-left: 1.5em;
}
.drg-column-left a,
.drg-column-right a {
color: #000;
text-decoration: none;
}
.drg-column-left a:hover,
.drg-column-right a:hover {
text-decoration: underline;
}
/* Divider lines */
.drg-divider {
width: 1px;
background: #666;
opacity: 0.4;
align-self: stretch;
}
/* Center column specifics */
.drg-column-center {
text-align: center;
align-items: center;
justify-content: center;
}
.drg-eu-flag {
margin-bottom: 1em;
}
.drg-eu-flag img {
height: 4em;
width: auto;
max-width: 100%;
}
.drg-eu-text {
font-weight: bold;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
color: #000;
}
/* Disclaimer block */
.drg-disclaimer {
max-width: 900px;
margin: 2em auto 0;
padding: 1em 0 0;
border-top: 1px solid #eee;
font-size: 0.9em;
color: #666;
text-align: center;
}
.drg-disclaimer a {
color: #374CFF;
text-decoration: underline;
}
/* === Responsive tweaks === */
@media (max-width: 768px) {
.drg-columns {
flex-direction: column;
align-items: center;
}
.drg-divider {
display: none;
}
.drg-column {
width: 100%;
text-align: center !important;
align-items: center !important;
padding: 0 !important;
}
.drg-eu-text {
max-width: 90%;
}
}