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.
/* ===== HIDE VECTOR PORTLETS & DEFAULT FOOTER LINKS ===== */
#p-logo, #mw-head, #mw-head-base, #mw-navigation, #mw-panel,
#mw-mf-page-header, [id^="mw-mf-"], header.vector-header,
.vector-page-toolbar, header.mw-body-header.vector-page-titlebar,
#footer-places, #footer-info-lastmod, #p-views, #p-cactions,
#p-personal, .vector-user-links, #left-navigation, #right-navigation {
display: none !important;
}
/* ===== RESET & BASE ===== */
html, body {
margin: 0;
padding: 0;
min-height: 100%;
height: 100%;
}
body {
display: flex;
flex-direction: column;
background: #fff;
color: #000;
}
/* ===== PAGE STRUCTURE ===== */
#content, .mw-content-container, #mw-content-text, .vector-column-start {
flex: 1 0 auto;
background-color: #fff !important;
color: #000 !important;
margin-top: 0 !important;
}
/* ===== MYRIAD COLOR PALETTE ===== */
:root {
--myriad-blue: #374CFF;
--myriad-purple: #8836EA;
--myriad-pink: #DB20D2;
--myriad-yellow: #FFCE00;
--myriad-green: #5AE09A;
}
/* ===== NAVBAR ===== */
#drg-navbar {
position: fixed;
top: 0; left: 0; right: 0;
background: #fff;
border-bottom: 1px solid #ddd;
z-index: 10000;
}
.drg-navbar-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
padding: .75em 1em;
gap: 1em;
flex-wrap: wrap;
}
.drg-navbar-logo {
display: flex;
align-items: center;
gap: .5em;
flex-shrink: 0;
margin-right: 2em;
}
.drg-navbar-logo img {
height: 40px;
width: auto;
}
.drg-navbar-logo .drg-logo-text {
font-weight: bold;
font-size: 1.25rem;
color: #000;
}
a {
color: var(--myriad-blue);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.drg-button {
background: var(--myriad-blue);
color: #fff !important;
padding: .5em 1em;
border-radius: 7px;
font-variant: small-caps;
}
/* ===== DROPDOWNS (Navigation, Tools, User) ===== */
.drg-nav, .drg-user, .drg-tools {
position: relative;
cursor: pointer;
}
.drg-nav > span,
.drg-user > span,
.drg-tools > span {
padding: .4em .6em;
}
.drg-nav > span::after,
.drg-user > span::after,
.drg-tools > span::after {
content: "▾";
margin-left: .3em;
font-size: .75em;
}
.drg-nav-dropdown, .drg-user-dropdown, .drg-tools-dropdown {
display: none;
position: absolute;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
list-style: none;
min-width: 160px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 10003;
}
.drg-nav-dropdown li a,
.drg-user-dropdown li a,
.drg-tools-dropdown li a {
display: block;
padding: .5em 1em;
color: #000;
}
.drg-nav:hover .drg-nav-dropdown,
.drg-user:hover .drg-user-dropdown,
.drg-tools:hover .drg-tools-dropdown {
display: block !important;
}
/* ===== MAIN PAGE CARDS ===== */
.mainpage-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
margin: 3rem auto;
max-width: 1200px;
padding: 0 1rem;
}
.mainpage-card {
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
padding: 2rem 1.5rem;
flex: 1 1 250px;
max-width: 300px;
transition: all 0.3s ease-in-out;
color: #000;
}
.mainpage-card h3 { margin-top: 1rem; }
.card-about h3 { color: var(--myriad-purple); }
.card-catalogue h3 { color: var(--myriad-blue); }
.card-definitions h3 { color: var(--myriad-green); }
.card-contribute h3 { color: var(--myriad-yellow); }
.card-about:hover { border: 2px solid var(--myriad-purple); }
.card-catalogue:hover { border: 2px solid var(--myriad-blue); }
.card-definitions:hover { border: 2px solid var(--myriad-green); }
.card-contribute:hover { border: 2px solid var(--myriad-yellow); }
/* ===== FOOTER ===== */
#drg-footer {
background: linear-gradient(to top, var(--myriad-purple), #fff);
color: #fff;
padding: 2em 0;
margin-top: auto;
width: 100%;
}
#drg-footer a {
color: #fff;
}
#drg-footer a:hover {
text-decoration: underline;
color: #eee;
}
.drg-columns {
display: flex;
justify-content: center;
align-items: stretch;
gap: 2em;
max-width: 1200px;
margin: 0 auto;
flex-wrap: wrap;
}
.drg-column {
flex: 1 1 33%;
display: flex;
flex-direction: column;
gap: 1em;
}
.drg-divider {
width: 1px;
background: #ccc;
opacity: 0.3;
align-self: stretch;
}
.drg-eu-flag img {
max-height: 4em;
width: auto;
}
.drg-eu-text {
font-weight: bold;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
}
.drg-disclaimer {
text-align: center;
padding-top: 2em;
font-size: 0.9em;
color: rgba(255, 255, 255, 0.9);
}
.drg-disclaimer a {
color: #fff;
text-decoration: underline;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.mainpage-cards {
flex-direction: column;
align-items: center;
}
.drg-columns {
flex-direction: column;
align-items: center;
text-align: center;
}
.drg-divider {
display: none;
}
}