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;
display: flex;
flex-direction: column;
min-height: 100vh;
}
#content,
#mw-content-text {
flex-grow: 1;
}
/* ===== MYRIAD COLOR PALETTE ===== */
:root {
--myriad-blue: #374CFF;
--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;
}
/* ===== NAVBAR ===== */
#drg-navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: #fff;
border-bottom: 1px solid #ddd;
z-index: 10000;
overflow: visible !important;
}
.drg-navbar-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
padding: .75em 1em;
gap: 1em;
flex-wrap: nowrap;
overflow-x: visible !important;
position: relative;
}
.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: 9999 !important;
}
.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-link {
font-weight: 500;
margin-right: 1.5em;
}
.drg-navbar-actions {
display: flex;
align-items: center;
gap: 1em;
margin-left: auto;
flex-wrap: nowrap;
}
/* ===== USER & TOOLS DROPDOWNS ===== */
.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: 9999 !important;
}
.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;
}
.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: 1.5rem;
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: 1.5rem 1rem !important;
flex: 0 1 220px !important;
max-width: 220px !important;
transition: all 0.3s ease-in-out;
color: var(--myriad-blue) !important; /* enforce blue text */
}
/* ===== FORCE ALL CARD ICONS & TEXT BLUE ===== */
.mainpage-card h3,
.mainpage-card .card-icon,
.mainpage-card .card-icon svg,
.mainpage-card .card-icon svg path,
.mainpage-card .card-icon i {
color: var(--myriad-blue) !important;
fill: var(--myriad-blue) !important;
transition: color 0.3s, fill 0.3s;
}
/* ===== FORCE ALL CARD ICONS & TEXT BLUE ===== */
.mainpage-card h3,
.mainpage-card .card-icon,
.mainpage-card .card-icon svg,
.mainpage-card .card-icon svg path,
.mainpage-card .card-icon i {
color: var(--myriad-blue) !important;
fill: var(--myriad-blue) !important;
transition: color 0.3s, fill 0.3s, transform 0.3s; /* added transform */
}
/* ===== HOVER EFFECTS ===== */
.mainpage-card:hover {
transform: translateY(-5px) !important;
box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
border: 2px solid var(--myriad-blue) !important;
}
/* subtle icon scale-up on hover */
.mainpage-card:hover .card-icon,
.mainpage-card:hover .card-icon svg,
.mainpage-card:hover .card-icon i {
transform: scale(1.15); /* scale icon slightly */
}
.mainpage-card:hover h3,
.mainpage-card:hover .card-icon,
.mainpage-card:hover .card-icon svg path,
.mainpage-card:hover .card-icon i {
color: #5F6CFF !important; /* brighter blue on hover */
fill: #5F6CFF !important;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.drg-column {
flex: 1 1 200px;
max-width: 200px;
}
.drg-columns {
flex-direction: column;
align-items: center;
gap: 1.5em;
}
}
/* ===== FOOTER STYLES ===== */
#drg-footer {
background: linear-gradient(to top, #374cff 0%, #db20d2 70%, #ffffff 100%);
color: #fff;
padding: 3em 0;
margin: 0;
box-sizing: border-box;
overflow: hidden;
position: relative;
width: 100vw;
left: 50%;
margin-left: -50vw;
}
.mw-footer-container #drg-footer {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.drg-footer-inner {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.drg-columns {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2em;
text-align: center;
}
.drg-column {
flex: 0 1 calc(33.333% - 2em);
display: flex;
flex-direction: column;
gap: 1em;
align-items: center;
box-sizing: border-box;
}
.drg-column-left,
.drg-column-center,
.drg-column-right {
align-items: center;
}
.drg-eu-flag img {
max-height: 4em !important;
width: auto !important;
display: block;
margin: 0 auto;
border: 1px solid #fff;
box-sizing: border-box;
}
.drg-eu-text {
font-weight: bold;
color: #fff;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
}
.drg-disclaimer-wrapper {
margin-top: 2em;
text-align: center;
font-size: 0.9rem;
color: rgba(255,255,255,0.8);
}
.drg-disclaimer a {
color: #fff;
text-decoration: underline;
}
/* ===== FOOTER LINKS - WHITE WITH HOVER POP & SUBTLE GLOW ===== */
#drg-footer a {
color: #fff; /* white links */
text-decoration: none;
transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
#drg-footer a:hover {
color: var(--myriad-green);
transform: scale(1.08); /* subtle pop out */
text-shadow: 0 2px 8px rgba(255,255,255,0.6), 0 0 4px rgba(255,255,255,0.4); /* subtle glow */
text-decoration: underline;
}
@media (max-width: 768px) {
.drg-columns {
flex-direction: column;
align-items: center;
gap: 1.5em;
}
.drg-column {
flex: 1 1 100%;
max-width: 500px;
}
}