MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) No edit summary |
Myriad-admin (talk | contribs) No edit summary |
||
Line 281: | Line 281: | ||
/* --- Full-width breakout fix --- */ | /* --- Full-width breakout fix --- */ | ||
position: relative; | position: relative; | ||
width: 100vw; | width: 100vw; | ||
left: 50%; | left: 50%; | ||
margin-left: -50vw; | margin-left: -50vw; | ||
} | } | ||
Line 298: | Line 298: | ||
padding: 0 2rem; | padding: 0 2rem; | ||
} | } | ||
.drg-columns { | .drg-columns { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: | justify-content: center; /* center all columns horizontally */ | ||
gap: 2em; | gap: 2em; | ||
text-align: center; /* center link text inside columns */ | |||
} | } | ||
.drg-column { | .drg-column { | ||
flex: 1 1 300px; | flex: 1 1 300px; | ||
Line 309: | Line 312: | ||
flex-direction: column; | flex-direction: column; | ||
gap: 1em; | gap: 1em; | ||
align-items: center; /* center links in each column */ | |||
} | } | ||
.drg-column-left, | .drg-column-left, | ||
.drg-column-right | .drg-column-right, | ||
.drg-column-center { | .drg-column-center { | ||
align-items: center; /* ensure even special column classes are centered */ | |||
align-items: center; | |||
} | } | ||
.drg-eu-flag img { | .drg-eu-flag img { | ||
max-height: 4em !important; | max-height: 4em !important; | ||
Line 327: | Line 327: | ||
margin: 0 auto; | margin: 0 auto; | ||
} | } | ||
.drg-eu-text { | .drg-eu-text { | ||
font-weight: bold; | font-weight: bold; | ||
Line 335: | Line 336: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.drg-disclaimer-wrapper { | .drg-disclaimer-wrapper { | ||
margin-top: 2em; | margin-top: 2em; | ||
Line 341: | Line 343: | ||
color: rgba(255,255,255,0.8); | color: rgba(255,255,255,0.8); | ||
} | } | ||
.drg-disclaimer a { | .drg-disclaimer a { | ||
color: #fff; | color: #fff; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } |
Revision as of 09:04, 13 August 2025
/* ===== 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: 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;
margin-bottom: 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 STYLES ===== */
#drg-footer {
background: linear-gradient(to top, var(--myriad-purple), #fff);
color: #fff;
padding: 3em 0;
margin: 0;
box-sizing: border-box;
overflow: hidden;
/* --- Full-width breakout fix --- */
position: relative;
width: 100vw;
left: 50%;
margin-left: -50vw;
}
/* Remove extra spacing when inside MediaWiki footer container */
.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; /* center all columns horizontally */
gap: 2em;
text-align: center; /* center link text inside columns */
}
.drg-column {
flex: 1 1 300px;
display: flex;
flex-direction: column;
gap: 1em;
align-items: center; /* center links in each column */
}
.drg-column-left,
.drg-column-right,
.drg-column-center {
align-items: center; /* ensure even special column classes are centered */
}
.drg-eu-flag img {
max-height: 4em !important;
width: auto !important;
display: block;
margin: 0 auto;
}
.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;
}