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;
}
/* ===== REMOVE ALL <hr> ===== */
hr {
display: none !important;
}
/* ===== RESET & BASE STYLING ===== */
html {
font-size: 100%;
margin: 0;
min-height: 100vh;
background: #fff;
}
body {
margin: 0;
padding-top: 60px;
background: #fff;
color: #000;
}
/* ===== CONTENT AREA ===== */
.mw-content-container,
#content,
#mw-content-text,
.vector-sitenotice-container,
.vector-column-start {
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;
}
/* ===== 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;
}
/* ===== 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;
}
/* ===== NAVIGATION DROPDOWN ===== */
.drg-nav {
position: relative;
cursor: pointer;
z-index: 10002;
}
.drg-nav > span {
font-weight: 500;
padding: .4em .6em;
}
.drg-nav > span::after {
content: "▾";
margin-left: .3em;
font-size: .75em;
}
.drg-nav-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
list-style: none;
margin: .2em 0 0;
padding: 0;
min-width: 160px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 10003 !important;
}
.drg-nav-dropdown li {
margin: 0;
padding: 0;
list-style: none;
}
.drg-nav-dropdown li a {
display: block;
padding: .5em 1em;
color: #000;
text-decoration: none;
white-space: nowrap;
}
.drg-nav-dropdown li a:hover {
background: #f5f5f5;
}
.drg-nav:hover .drg-nav-dropdown {
display: block !important;
}
/* Flat links (e.g., Contribute, About) */
.flat-link {
font-weight: 500;
margin-right: 1.5em;
}
/* ===== USER & TOOLS DROPDOWNS ===== */
.drg-navbar-actions {
display: flex;
align-items: center;
gap: 1em;
margin-left: auto;
}
.drg-user, .drg-tools {
position: relative;
cursor: pointer;
}
.drg-user > span, .drg-tools > span {
padding: .4em .6em;
}
.drg-user > span::after, .drg-tools > span::after {
content: "▾";
margin-left: .3em;
font-size: .75em;
}
.drg-user-dropdown,
.drg-tools-dropdown {
display: none;
position: absolute;
top: 100%;
right: 0;
background: #fff;
border: 1px solid #ccc;
border-radius: 4px;
list-style: none;
margin: .2em 0 0;
padding: 0;
min-width: 160px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
z-index: 10001;
}
.drg-user:hover .drg-user-dropdown,
.drg-tools:hover .drg-tools-dropdown {
display: block !important;
}
.drg-user-dropdown li,
.drg-tools-dropdown li {
margin: 0;
padding: 0;
}
.drg-user-dropdown li a,
.drg-tools-dropdown li a {
display: block;
padding: .5em 1em;
color: #000;
text-decoration: none;
white-space: nowrap;
}
.drg-user-dropdown li a:hover,
.drg-tools-dropdown li a:hover {
background: #f5f5f5;
}
/* ===== SEARCH FORM ===== */
.drg-search {
display: flex;
align-items: center;
flex-grow: 1;
}
.drg-search input[type="search"] {
padding: .4em .6em;
border: 1px solid #ccc;
border-radius: 4px 0 0 4px;
width: 200px;
}
.drg-search input[type="submit"] {
padding: .4em 1em;
border: none;
border-radius: 0 4px 4px 0;
background: var(--myriad-blue);
color: #fff;
cursor: pointer;
}
/* ===== 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 !important;
border-radius: 12px !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
text-align: center !important;
padding: 2rem 1.5rem !important;
flex: 1 1 250px !important;
max-width: 300px !important;
transition: all 0.3s ease-in-out;
color: #000 !important;
}
.mainpage-card h3 {
font-size: 1.25rem !important;
margin-top: 1rem !important;
}
.mainpage-card:hover {
transform: translateY(-5px) !important;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}
.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 RESTORED ===== */
#drg-footer {
background: transparent;
color: #000;
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding: 2em 0;
margin: 1em 0 0;
font-family: sans-serif;
font-size: 1.1rem;
width: 100%;
}
#drg-footer a {
color: rgba(0, 0, 0, 0.8);
}
#drg-footer a:hover {
color: #000;
text-decoration: underline;
}
.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;
}
.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-center {
align-items: center;
text-align: center;
justify-content: center;
}
.drg-divider {
width: 1px;
background: #666;
opacity: 0.2;
align-self: stretch;
}
.drg-eu-flag {
padding: .5em;
border-radius: 4px;
display: inline-block;
margin-bottom: 1em;
}
.drg-eu-flag img {
max-height: 4em !important;
width: auto !important;
display: block;
}
.drg-eu-text {
color: #000 !important;
font-weight: bold;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
}
.drg-disclaimer {
max-width: 900px;
margin: 2em auto 0;
padding: 1em 0 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
font-size: 0.9rem;
text-align: center;
color: rgba(0, 0, 0, 0.7);
}
/* ===== 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-column-left,
.drg-column-right {
align-items: center;
padding: 0;
}
.drg-divider {
display: none;
}
}