MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) No edit summary |
Myriad-admin (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
} | } | ||
/* ===== | /* ===== RESET & BASE STYLING ===== */ | ||
html { | html { | ||
font-size: 100%; | font-size: 100%; | ||
Line 32: | Line 32: | ||
body { | body { | ||
margin: 0; | margin: 0; | ||
padding-top: 60px | padding-top: 60px; | ||
background: | background: #fff; | ||
color: #000; | color: #000; | ||
} | } | ||
Line 55: | Line 46: | ||
color: #000 !important; | color: #000 !important; | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | |||
/* ===== MYRIAD COLOR PALETTE ===== */ | |||
:root { | |||
--myriad-blue: #374CFF; | |||
--myriad-purple: #8836EA; | |||
--myriad-pink: #DB20D2; | |||
--myriad-yellow: #FFCE00; | |||
--myriad-green: #5AE09A; | |||
} | } | ||
Line 83: | Line 83: | ||
right: 0; | right: 0; | ||
background: #fff; | background: #fff; | ||
border-bottom: | border-bottom: 1px solid #ddd; | ||
z-index: 10000; | z-index: 10000; | ||
} | } | ||
.drg-navbar-container { | .drg-navbar-container { | ||
max-width: 1200px; | max-width: 1200px; | ||
Line 96: | Line 95: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
} | } | ||
.drg-navbar-logo { | .drg-navbar-logo { | ||
display: flex; | display: flex; | ||
Line 104: | Line 102: | ||
margin-right: 2em; | margin-right: 2em; | ||
} | } | ||
.drg-navbar-logo img { | .drg-navbar-logo img { | ||
height: 40px; | height: 40px; | ||
width: auto; | width: auto; | ||
} | } | ||
.drg-navbar-logo .drg-logo-text { | .drg-navbar-logo .drg-logo-text { | ||
font-weight: bold; | font-weight: bold; | ||
Line 130: | Line 126: | ||
font-size: .75em; | font-size: .75em; | ||
} | } | ||
.drg-nav-dropdown { | .drg-nav-dropdown { | ||
display: none; | display: none; | ||
Line 147: | Line 141: | ||
z-index: 10001; | z-index: 10001; | ||
} | } | ||
.drg-nav:hover .drg-nav-dropdown { | .drg-nav:hover .drg-nav-dropdown { | ||
display: block !important; | display: block !important; | ||
} | } | ||
.drg-nav-dropdown li a { | .drg-nav-dropdown li a { | ||
display: block; | display: block; | ||
Line 165: | Line 151: | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.drg-nav-dropdown li a:hover { | .drg-nav-dropdown li a:hover { | ||
background: #f5f5f5; | background: #f5f5f5; | ||
} | } | ||
.flat-link { | .flat-link { | ||
font-weight: 500; | font-weight: 500; | ||
Line 182: | Line 159: | ||
} | } | ||
/* ===== | /* ===== MAIN PAGE CARDS ===== */ | ||
. | .mainpage-cards { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 2rem; | |||
margin: 3rem auto; | |||
max-width: 1200px; | |||
padding: 0 1rem; | |||
} | } | ||
. | |||
.mainpage-card { | |||
border: | 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; | |||
padding: . | flex: 1 1 250px !important; | ||
max-width: 300px !important; | |||
transition: all 0.3s ease-in-out; | |||
color: #000 !important; | |||
color: # | |||
} | } | ||
.mainpage-card h3 { | |||
. | font-size: 1.25rem !important; | ||
margin-top: 1rem !important; | |||
} | } | ||
/* Hover effects */ | |||
.mainpage-card:hover { | |||
transform: translateY(-5px) !important; | |||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; | |||
. | |||
} | } | ||
. | /* Color coding by type */ | ||
.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; | 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; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: stretch; | |||
gap: 2em; | |||
max-width: 1200px; | max-width: 1200px; | ||
padding: | 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; | 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; | ||
color: | 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 ===== */ | |||
/* ===== RESPONSIVE | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.mainpage-cards { | .mainpage-cards { | ||
Line 313: | Line 293: | ||
align-items: center; | align-items: center; | ||
} | } | ||
.drg-columns { | |||
.drg- | |||
flex-direction: column; | flex-direction: column; | ||
align-items: | align-items: center; | ||
text-align: center; | |||
} | } | ||
.drg-column-left, | |||
.drg- | .drg-column-right { | ||
align-items: center; | |||
padding: 0; | |||
} | } | ||
.drg-divider { | |||
.drg- | display: none; | ||
} | } | ||
} | } |
Revision as of 11:50, 5 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 {
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;
}
.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: 10001;
}
.drg-nav:hover .drg-nav-dropdown {
display: block !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;
}
.flat-link {
font-weight: 500;
margin-right: 1.5em;
}
/* ===== 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;
}
/* Hover effects */
.mainpage-card:hover {
transform: translateY(-5px) !important;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}
/* Color coding by type */
.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;
}
}