MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit |
Myriad-admin (talk | contribs) Trying navbar |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | |||
body.page-Help_Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-view h1.firstHeading { display: none; } | |||
/* === GENERAL CLEANUP === */ | |||
body.page-Help_Main_Page.action-view h1.firstHeading, | |||
body.page-Main_Page.action-view h1.firstHeading { display: none; } | |||
div#content a.external[href ^="https://"] { | div#content a.external[href ^="https://"] { | ||
background-image: none; | background-image: none; | ||
Line 12: | Line 16: | ||
/* === Responsive logo === */ | /* === Responsive logo === */ | ||
.logo-container { | .logo-container { | ||
max-width: 43.75rem; | max-width: 43.75rem; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 0.3125rem; | padding: 0.3125rem; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Line 25: | Line 29: | ||
} | } | ||
/* Hide | /* === Hide UI Elements === */ | ||
#ca-talk { | #ca-talk { | ||
display: none !important; | display: none !important; | ||
} | } | ||
body.ns-0 #ca-edit, | body.ns-0 #ca-edit, | ||
body.ns-0 #ca-viewsource { | body.ns-0 #ca-viewsource { | ||
Line 36: | Line 39: | ||
} | } | ||
body.page-Main_Page #ca-edit, | body.page-Main_Page #ca-edit, | ||
body.page-Catalogue #ca-edit, | body.page-Catalogue #ca-edit, | ||
Line 50: | Line 52: | ||
} | } | ||
/* === MYRIAD colours === */ | |||
:root { | |||
--myriad-blue: #374CFF; | --myriad-blue: #374CFF; | ||
--myriad-purple: #8836EA; | --myriad-purple: #8836EA; | ||
Line 58: | Line 60: | ||
--myriad-yellow: #FFCE00; | --myriad-yellow: #FFCE00; | ||
--myriad-green: #5AE09A; | --myriad-green: #5AE09A; | ||
} | |||
/* Default hyperlink colour */ | /* Default hyperlink colour */ | ||
Line 65: | Line 67: | ||
} | } | ||
/* === Clickable button === */ | |||
.drg-button { | |||
display: inline-block; | display: inline-block; | ||
padding: .5em 1em; | padding: .5em 1em; | ||
Line 77: | Line 79: | ||
text-decoration: none !important; | text-decoration: none !important; | ||
box-shadow: rgba(25, 128, 195, .3) 3px 3px 4px 0px; | box-shadow: rgba(25, 128, 195, .3) 3px 3px 4px 0px; | ||
} | |||
/* === Hide native | /* === Hide native footer === */ | ||
#footer-places, | #footer-places, | ||
#footer-info-lastmod { | #footer-info-lastmod { | ||
Line 85: | Line 87: | ||
} | } | ||
.mw-footer-container, | .mw-footer-container, | ||
#footer { | #footer { | ||
Line 102: | Line 103: | ||
} | } | ||
.drg-columns { | .drg-columns { | ||
display: flex; | display: flex; | ||
Line 121: | Line 121: | ||
} | } | ||
.drg-column-left { | .drg-column-left { | ||
align-items: flex-end; | align-items: flex-end; | ||
Line 143: | Line 142: | ||
} | } | ||
.drg-divider { | .drg-divider { | ||
width: 1px; | width: 1px; | ||
Line 151: | Line 149: | ||
} | } | ||
.drg-column-center { | .drg-column-center { | ||
text-align: center; | text-align: center; | ||
Line 174: | Line 171: | ||
} | } | ||
.drg-disclaimer { | .drg-disclaimer { | ||
max-width: 900px; | max-width: 900px; | ||
Line 206: | Line 202: | ||
.drg-eu-text { | .drg-eu-text { | ||
max-width: 90%; | max-width: 90%; | ||
} | |||
} | |||
/* === DRG NAVBAR === */ | |||
#drg-navbar { | |||
background-color: white; | |||
border-bottom: 1px solid #ddd; | |||
font-family: sans-serif; | |||
font-size: 1rem; | |||
padding: 0.5em 1em; | |||
position: sticky; | |||
top: 0; | |||
z-index: 999; | |||
} | |||
.drg-navbar-container { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
flex-wrap: wrap; | |||
} | |||
.drg-navbar-logo { | |||
font-weight: bold; | |||
color: var(--myriad-blue); | |||
text-decoration: none; | |||
font-size: 1.25rem; | |||
} | |||
.drg-navbar-links { | |||
display: flex; | |||
gap: 1.5em; | |||
flex: 1; | |||
justify-content: center; | |||
} | |||
.drg-navbar-links a { | |||
color: #000; | |||
text-decoration: none; | |||
position: relative; | |||
padding-bottom: 4px; | |||
transition: color 0.3s; | |||
} | |||
.drg-navbar-links a::after { | |||
content: ""; | |||
position: absolute; | |||
bottom: 0; | |||
left: 0; | |||
width: 0%; | |||
height: 2px; | |||
background-color: var(--myriad-blue); | |||
transition: width 0.3s ease; | |||
} | |||
.drg-navbar-links a:hover { | |||
color: var(--myriad-blue); | |||
} | |||
.drg-navbar-links a:hover::after { | |||
width: 100%; | |||
} | |||
.drg-navbar-actions { | |||
display: flex; | |||
gap: 1em; | |||
align-items: center; | |||
} | |||
@media (max-width: 768px) { | |||
.drg-navbar-container { | |||
flex-direction: column; | |||
align-items: stretch; | |||
} | |||
.drg-navbar-links { | |||
justify-content: center; | |||
flex-wrap: wrap; | |||
gap: 1em; | |||
margin-top: 0.5em; | |||
} | |||
.drg-navbar-actions { | |||
justify-content: center; | |||
margin-top: 0.5em; | |||
} | } | ||
} | } |
Revision as of 13:16, 24 June 2025
/* CSS placed here will be applied to all skins */
/* === GENERAL CLEANUP === */
body.page-Help_Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view h1.firstHeading { display: none; }
div#content a.external[href ^="https://"] {
background-image: none;
padding-right: 0;
}
html {
font-size: 100%;
}
/* === Responsive logo === */
.logo-container {
max-width: 43.75rem;
margin: 0 auto;
padding: 0.3125rem;
text-align: center;
}
.responsive-logo img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* === Hide UI Elements === */
#ca-talk {
display: none !important;
}
body.ns-0 #ca-edit,
body.ns-0 #ca-viewsource {
display: none !important;
}
body.page-Main_Page #ca-edit,
body.page-Catalogue #ca-edit,
body.page-Definitions #ca-edit,
body.page-Contribute #ca-edit,
body.page-Resources #ca-edit,
body.page-Main_Page #ca-viewsource,
body.page-Catalogue #ca-viewsource,
body.page-Definitions #ca-viewsource,
body.page-Contribute #ca-viewsource,
body.page-Resources #ca-viewsource {
display: inline !important;
}
/* === MYRIAD colours === */
:root {
--myriad-blue: #374CFF;
--myriad-purple: #8836EA;
--myriad-pink: #DB20D2;
--myriad-dkblue: #000091;
--myriad-yellow: #FFCE00;
--myriad-green: #5AE09A;
}
/* Default hyperlink colour */
a {
color: var(--myriad-blue);
}
/* === Clickable button === */
.drg-button {
display: inline-block;
padding: .5em 1em;
text-align: center;
font-variant: small-caps;
border-radius: 7px;
background-color: var(--myriad-blue);
color: rgba(255, 255, 255, .8) !important;
transition: all 400ms;
text-decoration: none !important;
box-shadow: rgba(25, 128, 195, .3) 3px 3px 4px 0px;
}
/* === Hide native footer === */
#footer-places,
#footer-info-lastmod {
display: none !important;
}
.mw-footer-container,
#footer {
border-top: none !important;
}
/* === DRG Footer container === */
#drg-footer {
border-top: 1px solid #ccc;
background: #fff;
padding-top: 2em;
font-family: sans-serif;
color: #000;
font-size: 1.1rem;
margin: 1em 0 2em;
}
.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;
min-width: 0;
}
.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-left a,
.drg-column-right a {
color: #000;
text-decoration: none;
}
.drg-column-left a:hover,
.drg-column-right a:hover {
text-decoration: underline;
}
.drg-divider {
width: 1px;
background: #666;
opacity: 0.4;
align-self: stretch;
}
.drg-column-center {
text-align: center;
align-items: center;
justify-content: center;
}
.drg-eu-flag {
margin-bottom: 1em;
}
.drg-eu-flag img {
height: 4em;
width: auto;
max-width: 100%;
}
.drg-eu-text {
font-weight: bold;
line-height: 1.5;
font-size: 1em;
max-width: 400px;
text-align: center;
color: #000;
}
.drg-disclaimer {
max-width: 900px;
margin: 2em auto 0;
padding: 1em 0 0;
border-top: 1px solid #eee;
font-size: 0.9em;
color: #666;
text-align: center;
}
.drg-disclaimer a {
color: #374CFF;
text-decoration: underline;
}
/* === Responsive tweaks === */
@media (max-width: 768px) {
.drg-columns {
flex-direction: column;
align-items: center;
}
.drg-divider {
display: none;
}
.drg-column {
width: 100%;
text-align: center !important;
align-items: center !important;
padding: 0 !important;
}
.drg-eu-text {
max-width: 90%;
}
}
/* === DRG NAVBAR === */
#drg-navbar {
background-color: white;
border-bottom: 1px solid #ddd;
font-family: sans-serif;
font-size: 1rem;
padding: 0.5em 1em;
position: sticky;
top: 0;
z-index: 999;
}
.drg-navbar-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.drg-navbar-logo {
font-weight: bold;
color: var(--myriad-blue);
text-decoration: none;
font-size: 1.25rem;
}
.drg-navbar-links {
display: flex;
gap: 1.5em;
flex: 1;
justify-content: center;
}
.drg-navbar-links a {
color: #000;
text-decoration: none;
position: relative;
padding-bottom: 4px;
transition: color 0.3s;
}
.drg-navbar-links a::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 0%;
height: 2px;
background-color: var(--myriad-blue);
transition: width 0.3s ease;
}
.drg-navbar-links a:hover {
color: var(--myriad-blue);
}
.drg-navbar-links a:hover::after {
width: 100%;
}
.drg-navbar-actions {
display: flex;
gap: 1em;
align-items: center;
}
@media (max-width: 768px) {
.drg-navbar-container {
flex-direction: column;
align-items: stretch;
}
.drg-navbar-links {
justify-content: center;
flex-wrap: wrap;
gap: 1em;
margin-top: 0.5em;
}
.drg-navbar-actions {
justify-content: center;
margin-top: 0.5em;
}
}