MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) No edit summary Tag: Manual revert |
Myriad-admin (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
/* ===== HIDE VECTOR PORTLETS & DEFAULT FOOTER LINKS ===== */ | /* ===== HIDE VECTOR PORTLETS & DEFAULT FOOTER LINKS ===== */ | ||
#p-logo, | #p-logo, #mw-head, #mw-head-base, #mw-navigation, #mw-panel, | ||
#mw-head, | #mw-mf-page-header, [id^="mw-mf-"], header.vector-header, | ||
#mw-head-base, | .vector-page-toolbar, header.mw-body-header.vector-page-titlebar, | ||
#mw-navigation, | #footer-places, #footer-info-lastmod, #p-views, #p-cactions, | ||
#mw-panel, | #p-personal, .vector-user-links, #left-navigation, #right-navigation { | ||
#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; | display: none !important; | ||
} | } | ||
/* ===== RESET & BASE ===== */ | |||
html, body { | |||
/* ===== RESET & BASE | |||
html { | |||
margin: 0; | margin: 0; | ||
min-height: | padding: 0; | ||
min-height: 100%; | |||
height: 100%; | |||
} | } | ||
body { | body { | ||
display: flex; | |||
flex-direction: column; | |||
background: #fff; | background: #fff; | ||
color: #000; | color: #000; | ||
} | } | ||
/* ===== | /* ===== PAGE STRUCTURE ===== */ | ||
.mw-content-container, | #content, .mw-content-container, #mw-content-text, .vector-column-start { | ||
flex: 1 0 auto; | |||
#mw-content-text, | |||
.vector-column-start { | |||
background-color: #fff !important; | background-color: #fff !important; | ||
color: #000 !important; | color: #000 !important; | ||
Line 58: | Line 37: | ||
--myriad-yellow: #FFCE00; | --myriad-yellow: #FFCE00; | ||
--myriad-green: #5AE09A; | --myriad-green: #5AE09A; | ||
} | } | ||
Line 82: | Line 42: | ||
#drg-navbar { | #drg-navbar { | ||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; left: 0; right: 0; | ||
background: #fff; | background: #fff; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
Line 114: | Line 72: | ||
color: #000; | color: #000; | ||
} | } | ||
a { | |||
color: var(--myriad-blue); | |||
text-decoration: none; | |||
} | } | ||
a:hover { | |||
text-decoration: underline; | |||
} | } | ||
.drg- | .drg-button { | ||
background: var(--myriad-blue); | |||
color: #fff !important; | |||
padding: .5em 1em; | padding: .5em 1em; | ||
border-radius: 7px; | |||
font-variant: small-caps; | |||
font- | |||
} | } | ||
/* ===== | /* ===== DROPDOWNS (Navigation, Tools, User) ===== */ | ||
.drg- | .drg-nav, .drg-user, .drg-tools { | ||
.drg-user, .drg-tools { | |||
position: relative; | position: relative; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.drg-user > span, .drg-tools > span { | .drg-nav > span, | ||
.drg-user > span, | |||
.drg-tools > span { | |||
padding: .4em .6em; | padding: .4em .6em; | ||
} | } | ||
.drg-user > span::after, .drg-tools > span::after { | .drg-nav > span::after, | ||
.drg-user > span::after, | |||
.drg-tools > span::after { | |||
content: "▾"; | content: "▾"; | ||
margin-left: .3em; | margin-left: .3em; | ||
font-size: .75em; | font-size: .75em; | ||
} | } | ||
.drg-user-dropdown, | .drg-nav-dropdown, .drg-user-dropdown, .drg-tools-dropdown { | ||
.drg-tools-dropdown { | |||
display: none; | display: none; | ||
position: absolute; | position: absolute; | ||
background: #fff; | background: #fff; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
border-radius: 4px; | border-radius: 4px; | ||
list-style: none; | list-style: none; | ||
min-width: 160px; | min-width: 160px; | ||
box-shadow: 0 2px 6px rgba(0,0,0,0.1); | box-shadow: 0 2px 6px rgba(0,0,0,0.1); | ||
z-index: | z-index: 10003; | ||
} | } | ||
.drg-nav-dropdown li a, | |||
.drg-user-dropdown li a, | .drg-user-dropdown li a, | ||
.drg-tools-dropdown li a { | .drg-tools-dropdown li a { | ||
Line 220: | Line 121: | ||
padding: .5em 1em; | padding: .5em 1em; | ||
color: #000; | color: #000; | ||
} | } | ||
.drg- | .drg-nav:hover .drg-nav-dropdown, | ||
.drg- | .drg-user:hover .drg-user-dropdown, | ||
.drg-tools:hover .drg-tools-dropdown { | |||
display: block !important; | |||
.drg- | |||
.drg- | |||
.drg- | |||
} | } | ||
Line 260: | Line 139: | ||
} | } | ||
.mainpage-card { | .mainpage-card { | ||
background: #fff | background: #fff; | ||
border-radius: 12px | border-radius: 12px; | ||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
text-align: center | text-align: center; | ||
padding: 2rem 1.5rem | padding: 2rem 1.5rem; | ||
flex: 1 1 250px | flex: 1 1 250px; | ||
max-width: 300px | max-width: 300px; | ||
transition: all 0.3s ease-in-out; | transition: all 0.3s ease-in-out; | ||
color: #000 | color: #000; | ||
} | } | ||
.mainpage-card h3 { margin-top: 1rem; } | |||
.card-about h3 { color: var(--myriad-purple); } | .card-about h3 { color: var(--myriad-purple); } | ||
.card-catalogue h3 { color: var(--myriad-blue); } | .card-catalogue h3 { color: var(--myriad-blue); } | ||
Line 287: | Line 159: | ||
.card-contribute:hover { border: 2px solid var(--myriad-yellow); } | .card-contribute:hover { border: 2px solid var(--myriad-yellow); } | ||
/* ===== FOOTER | /* ===== FOOTER ===== */ | ||
#drg-footer { | #drg-footer { | ||
background: | background: linear-gradient(to top, var(--myriad-purple), #fff); | ||
color: # | color: #fff; | ||
padding: 2em 0; | padding: 2em 0; | ||
margin | margin-top: auto; | ||
width: 100%; | width: 100%; | ||
} | } | ||
#drg-footer a { | #drg-footer a { | ||
color: | color: #fff; | ||
} | } | ||
#drg-footer a:hover { | #drg-footer a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
color: #eee; | |||
} | } | ||
.drg-columns { | .drg-columns { | ||
Line 312: | Line 181: | ||
max-width: 1200px; | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
flex-wrap: | flex-wrap: wrap; | ||
} | } | ||
.drg-column { | .drg-column { | ||
Line 319: | Line 188: | ||
flex-direction: column; | flex-direction: column; | ||
gap: 1em; | gap: 1em; | ||
} | } | ||
.drg-divider { | .drg-divider { | ||
width: 1px; | width: 1px; | ||
background: # | background: #ccc; | ||
opacity: 0. | opacity: 0.3; | ||
align-self: stretch; | align-self: stretch; | ||
} | } | ||
.drg-eu-flag img { | .drg-eu-flag img { | ||
max-height: 4em | max-height: 4em; | ||
width: auto | width: auto; | ||
} | } | ||
.drg-eu-text { | .drg-eu-text { | ||
font-weight: bold; | font-weight: bold; | ||
line-height: 1.5; | line-height: 1.5; | ||
Line 361: | Line 207: | ||
} | } | ||
.drg-disclaimer { | .drg-disclaimer { | ||
text-align: center; | text-align: center; | ||
color: rgba( | padding-top: 2em; | ||
font-size: 0.9em; | |||
color: rgba(255, 255, 255, 0.9); | |||
} | |||
.drg-disclaimer a { | |||
color: #fff; | |||
text-decoration: underline; | |||
} | } | ||
Line 380: | Line 227: | ||
align-items: center; | align-items: center; | ||
text-align: center; | text-align: center; | ||
} | } | ||
.drg-divider { | .drg-divider { |
Revision as of 12:40, 8 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;
}
/* ===== 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;
}
}