MediaWiki:Common.css: Difference between revisions
Myriad-admin (talk | contribs) Hiding footer horizontal elements Tags: Mobile edit Mobile web edit |
Myriad-admin (talk | contribs) Keeping logos but removing horizontal footer elements Tags: Mobile edit Mobile web edit |
||
Line 37: | Line 37: | ||
/* #region */ | /* #region */ | ||
/* | /* Hide default footer link list, but keep the logos */ | ||
#footer ul, #footer .mw-footer-buttons { | #footer ul, #footer .mw-footer-buttons { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Reset footer spacing so the logos show normally */ | |||
#footer { | |||
border-top: none !important; | border-top: none !important; | ||
padding-top: 0 !important; | padding-top: 0 !important; | ||
padding-bottom: 2em !important; | |||
} | } | ||
footer#footer.footer { | /* Restore alignment and spacing for footer images/logos */ | ||
#footer .mw-footer-icons { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 1em; | |||
margin-top: 2em; | |||
} | } | ||
/* Base footer style */ | |||
footer { | footer { | ||
width: 100%; | width: 100%; | ||
Line 57: | Line 65: | ||
background: white; | background: white; | ||
color: rgba(0, 0, 0, 0.6); | color: rgba(0, 0, 0, 0.6); | ||
min-height: | min-height: 150px; | ||
} | } | ||
Line 68: | Line 76: | ||
#lcc-footer { | #lcc-footer { | ||
width: 100%; | width: 100%; | ||
padding: 2em; | padding: 2em 1em 0.5em 1em; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
font-family: sans-serif; | font-family: sans-serif; | ||
Line 74: | Line 82: | ||
background: #ffffff; | background: #ffffff; | ||
color: #202122; | color: #202122; | ||
margin-top: | margin-top: 1em; | ||
border-top: 1px solid #ccc; | |||
} | } | ||
Revision as of 15:34, 21 May 2025
/* 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;
}
div#content a.external[href ^="https://"] {
background-image: none;
padding-right: 0;
}
/* MYRIAD colours */
:root {
--myriad-blue: #374CFF;
--myriad-purple: #8836EA;
--myriad-pink: #DB20D2;
--myriad-dkblue: #000091;
--myriad-yellow: #FFCE00;
--myriad-green: #5AE09A;
}
/* 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;
}
/* FOOTER START */
/* #region */
/* Hide default footer link list, but keep the logos */
#footer ul, #footer .mw-footer-buttons {
display: none !important;
}
/* Reset footer spacing so the logos show normally */
#footer {
border-top: none !important;
padding-top: 0 !important;
padding-bottom: 2em !important;
}
/* Restore alignment and spacing for footer images/logos */
#footer .mw-footer-icons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1em;
margin-top: 2em;
}
/* Base footer style */
footer {
width: 100%;
padding: 1em;
font-size: 1.2rem;
background: white;
color: rgba(0, 0, 0, 0.6);
min-height: 150px;
}
footer a {
color: var(--myriad-blue);
text-decoration: none;
}
/* EU Footer Section */
#lcc-footer {
width: 100%;
padding: 2em 1em 0.5em 1em;
font-size: 0.9rem;
font-family: sans-serif;
font-weight: 300;
background: #ffffff;
color: #202122;
margin-top: 1em;
border-top: 1px solid #ccc;
}
#lcc-footer-content {
display: grid;
grid-template:
"links nav"
"eu-logo eu-text";
gap: 1em 2em;
font-size: 1rem;
justify-content: center;
align-items: start;
text-align: left;
max-width: 1200px;
margin: 0 auto;
}
#lcc-footer-content a {
color: var(--myriad-blue);
margin-bottom: 0.4em;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
#lcc-footer-content a:hover {
color: var(--myriad-dkblue);
font-weight: bold;
}
#lcc-footer-content .footer-links {
grid-area: links;
display: flex;
flex-direction: column;
}
#lcc-footer-content .footer-nav {
grid-area: nav;
display: flex;
flex-direction: column;
}
#lcc-footer-content .footer-legal {
grid-area: legal;
display: flex;
flex-direction: column;
}
#lcc-footer-content .footer-eu-logo {
grid-area: eu-logo;
}
#lcc-footer-content .footer-eu-logo img {
height: 2.5em;
opacity: 0.8;
}
#lcc-footer-content .footer-eu-text {
grid-area: eu-text;
display: flex;
justify-content: start;
align-items: center;
}
#lcc-footer-content .footer-eu-text p {
font-size: 0.9em;
max-width: 800px;
margin: 0;
}
/* Responsive layout for mobile */
@media screen and (max-width: 768px) {
#lcc-footer-content {
grid-template:
"links"
"nav"
"eu-logo"
"eu-text";
text-align: center;
justify-items: center;
}
#lcc-footer-content .footer-eu-text {
justify-content: center;
text-align: center;
}
#lcc-footer-content .footer-eu-text p {
text-align: center;
}
}
/* #endregion */