MediaWiki:Common.css: Difference between revisions

From Disaster Risk Gateway
Streamlined Footer
Tags: Mobile edit Mobile web edit
Streamlined Footer
Tags: Mobile edit Mobile web edit
Line 102: Line 102:
     flex-direction: column;
     flex-direction: column;
     align-items: center;
     align-items: center;
     gap: 2em;
     gap: 2.5em;
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
}
}


/* === Split-column footer layout === */
/* === Split-column layout === */
.lcc-split-links {
.lcc-split-links {
     display: flex;
     display: grid;
     justify-content: space-between;
     grid-template-columns: 1fr 1fr;
     width: 100%;
     width: 100%;
     max-width: 900px;
     max-width: 800px;
     gap: 4em;
     gap: 4em;
    flex-wrap: wrap;
}
}


Line 121: Line 120:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 0.6em;
     gap: 0.8em;
}
}


Line 142: Line 141:
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
     gap: 1em;
     gap: 1.5em;
     flex-wrap: wrap;
     flex-wrap: wrap;
     max-width: 900px;
     max-width: 900px;
     margin: 0 auto;
     margin: 1em auto 0;
     text-align: left;
     text-align: left;
}
}
Line 151: Line 150:
.footer-eu-logo img {
.footer-eu-logo img {
     height: 2.5em;
     height: 2.5em;
     opacity: 0.8;
     opacity: 0.9;
}
}


Line 157: Line 156:
     font-size: 0.9em;
     font-size: 0.9em;
     max-width: 600px;
     max-width: 600px;
    line-height: 1.5;
}
}


Line 162: Line 162:
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     .lcc-split-links {
     .lcc-split-links {
         flex-direction: column;
         grid-template-columns: 1fr;
        align-items: center;
         text-align: center;
         text-align: center;
        gap: 2em;
     }
     }



Revision as of 16:57, 21 May 2025

/* === General tweaks === */
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 colour palette === */
:root {
    --myriad-blue: #374CFF;
    --myriad-purple: #8836EA;
    --myriad-pink: #DB20D2;
    --myriad-dkblue: #000091;
    --myriad-yellow: #FFCE00;
    --myriad-green: #5AE09A;
}

/* === Clickable button styling === */
.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 base cleanup === */
#footer, footer#footer {
    border-top: none !important;
    padding-top: 0 !important;
    padding-bottom: 2em !important;
    background: white;
    color: #202122;
}

footer {
    width: 100%;
    font-size: 1.2rem;
    min-height: 150px;
}

footer a {
    color: var(--myriad-blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--myriad-dkblue);
    font-weight: bold;
}

/* === Restore and style native footer sections === */
#footer-info,
#footer-icons {
    margin: 1em auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0;
    list-style: none;
}

#footer-places {
    display: none !important;
}

#footer-icons {
    display: flex !important;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
}

#footer-icons img {
    max-height: 40px;
    opacity: 0.9;
}

/* === Custom EU Footer Section === */
#lcc-footer {
    width: 100%;
    padding: 2em 1em 1em;
    font-size: 0.9rem;
    font-family: sans-serif;
    font-weight: 300;
    background: #ffffff;
    border-top: 1px solid #ccc;
    margin-top: 1em;
}

#lcc-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5em;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Split-column layout === */
.lcc-split-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 800px;
    gap: 4em;
}

.lcc-links-left,
.lcc-links-right {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.lcc-links-left a,
.lcc-links-right a {
    color: var(--myriad-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lcc-links-left a:hover,
.lcc-links-right a:hover {
    color: var(--myriad-dkblue);
    font-weight: bold;
}

/* === EU logo and text === */
.footer-eu-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 1em auto 0;
    text-align: left;
}

.footer-eu-logo img {
    height: 2.5em;
    opacity: 0.9;
}

.footer-eu-text {
    font-size: 0.9em;
    max-width: 600px;
    line-height: 1.5;
}

/* === Mobile layout === */
@media screen and (max-width: 768px) {
    .lcc-split-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2em;
    }

    .lcc-links-left,
    .lcc-links-right {
        align-items: center;
    }

    .footer-eu-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer-eu-text {
        text-align: center;
    }
}