MediaWiki:Common.css: Difference between revisions

From Disaster Risk Gateway
Adding spacing and trying to show logos
Tags: Mobile edit Mobile web edit
Checking for logos
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* === General tweaks === */
body.page-Help_Main_Page.action-view h1.firstHeading,
body.page-Help_Main_Page.action-view h1.firstHeading,
body.page-Main_Page.action-view h1.firstHeading {
body.page-Main_Page.action-view h1.firstHeading {
Line 10: Line 10:
}
}


/* MYRIAD colours */
/* === MYRIAD colour palette === */
:root {
:root {
     --myriad-blue: #374CFF;
     --myriad-blue: #374CFF;
Line 20: Line 20:
}
}


/* Clickable button */
/* === Clickable button styling === */
.drg-button {
.drg-button {
     display: inline-block;
     display: inline-block;
Line 34: Line 34:
}
}


/* FOOTER START */
/* === Footer base cleanup === */
/* #region */
 
/* Hide default footer links only */
#footer ul {
    display: none !important;
}
 
/* Restore and style default footer logos/icons */
#footer-icons,
#footer-icons .footer-icons {
    display: flex !important;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
    flex-wrap: wrap;
}
 
#footer-icons img {
    max-height: 40px;
    opacity: 0.9;
}
 
/* Remove default top border and spacing */
#footer, footer#footer {
#footer, footer#footer {
     border-top: none !important;
     border-top: none !important;
     padding-top: 0 !important;
     padding-top: 0 !important;
     padding-bottom: 2em !important;
     padding-bottom: 2em !important;
}
    background: white;
 
     color: #202122;
footer#footer.footer {
     padding: 0;
}
}


footer {
footer {
     width: 100%;
     width: 100%;
    padding: 1em;
     font-size: 1.2rem;
     font-size: 1.2rem;
    background: white;
    color: rgba(0, 0, 0, 0.6);
     min-height: 150px;
     min-height: 150px;
}
}
Line 82: Line 54:
}
}


/* Custom EU Footer Section */
footer a:hover {
    color: var(--myriad-dkblue);
    font-weight: bold;
}
 
/* === Restore and style native footer sections === */
#footer-info,
#footer-places,
#footer-icons {
    margin: 1em auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0;
    list-style: none;
}
 
#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 {
#lcc-footer {
     width: 100%;
     width: 100%;
     padding: 2em 1em 0.5em 1em;
     padding: 2em 1em 1em;
     font-size: 0.9rem;
     font-size: 0.9rem;
     font-family: sans-serif;
     font-family: sans-serif;
     font-weight: 300;
     font-weight: 300;
     background: #ffffff;
     background: #ffffff;
     color: #202122;
     border-top: 1px solid #ccc;
     margin-top: 1em;
     margin-top: 1em;
    border-top: 1px solid #ccc;
}
}


#lcc-footer-content {
#lcc-footer-content {
     display: grid;
     display: flex;
     grid-template:
     flex-direction: column;
        "links nav"
     align-items: center;
        "eu-logo eu-text";
    gap: 2em 2em; /* Increased row gap for better spacing */
    font-size: 1rem;
    justify-content: center;
     align-items: start;
    text-align: left;
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
    gap: 2em;
    text-align: center;
}
/* Grid blocks for link groups */
.lcc-link-group {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5em 2em;
}
}


/* Footer links spacing */
#lcc-footer-content .footer-links,
#lcc-footer-content .footer-links,
#lcc-footer-content .footer-nav {
#lcc-footer-content .footer-nav {
     display: grid;
     display: flex;
     grid-template-columns: 1fr 1fr;
     flex-direction: column;
     gap: 0.5em 2em;
     align-items: center;
}
}


/* Link styling */
#lcc-footer-content a {
#lcc-footer-content a {
     color: var(--myriad-blue);
     color: var(--myriad-blue);
    margin-bottom: 0.4em;
     transition: all 0.3s ease;
     transition: all 0.3s ease;
     text-decoration: none;
     text-decoration: none;
    display: inline-block;
}
}


Line 130: Line 131:
}
}


#lcc-footer-content .footer-legal {
/* EU logo and text */
    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 {
#lcc-footer-content .footer-eu-logo img {
     height: 2.5em;
     height: 2.5em;
Line 145: Line 137:
}
}


#lcc-footer-content .footer-eu-text {
.footer-eu-text {
     grid-area: eu-text;
     max-width: 800px;
     display: flex;
     margin: 0 auto;
    justify-content: start;
    align-items: center;
}
 
#lcc-footer-content .footer-eu-text p {
     font-size: 0.9em;
     font-size: 0.9em;
    max-width: 800px;
    margin: 0;
}
}


/* Responsive layout for mobile */
/* === Mobile layout === */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
     #lcc-footer-content {
     .lcc-link-group {
        grid-template:
            "links"
            "nav"
            "eu-logo"
            "eu-text";
        text-align: center;
        justify-items: center;
    }
 
    #lcc-footer-content .footer-links,
    #lcc-footer-content .footer-nav {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
        gap: 0.5em;
     }
     }


     #lcc-footer-content .footer-eu-text {
     #lcc-footer-content {
        justify-content: center;
        text-align: center;
    }
 
    #lcc-footer-content .footer-eu-text p {
         text-align: center;
         text-align: center;
     }
     }
}
}
/* #endregion */

Revision as of 15:52, 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-places,
#footer-icons {
    margin: 1em auto;
    text-align: center;
    font-size: 0.9rem;
    padding: 0;
    list-style: none;
}

#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;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2em;
    text-align: center;
}

/* Grid blocks for link groups */
.lcc-link-group {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5em 2em;
}

#lcc-footer-content .footer-links,
#lcc-footer-content .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Link styling */
#lcc-footer-content a {
    color: var(--myriad-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* EU logo and text */
#lcc-footer-content .footer-eu-logo img {
    height: 2.5em;
    opacity: 0.8;
}

.footer-eu-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9em;
}

/* === Mobile layout === */
@media screen and (max-width: 768px) {
    .lcc-link-group {
        grid-template-columns: 1fr;
    }

    #lcc-footer-content {
        text-align: center;
    }
}