MediaWiki:Common.css: Difference between revisions

From Disaster Risk Gateway
Changed all instances to drg
Tags: Mobile edit Mobile web edit
Trying new footer
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
/* === General tweaks === */
/* === DRG FOOTER === */
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 === */
#drg-footer {
#drg-footer {
     width: 100%;
     width: 100%;
     padding: 2em 1em 1em;
     background: #fff;
    font-size: 0.9rem;
     font-family: sans-serif;
     font-family: sans-serif;
     font-weight: 300;
     font-size: 0.95rem;
    background: #ffffff;
     border-top: 1px solid #ccc;
     border-top: 1px solid #ccc;
     margin-top: 1em;
     margin-top: 1em;
    color: #000;
}
}


#drg-footer-content {
.drg-columns {
     display: flex;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     align-items: center;
     gap: 1em;
     gap: 2.5em;
     padding: 2em 1em 1em;
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
    flex-wrap: wrap;
}
}


/* === Split-column layout === */
.drg-column {
.drg-split-links {
     flex: 1 1 30%;
     display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 800px;
    gap: 4em;
}
 
.drg-links-left,
.drg-links-right {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 0.8em;
     gap: 0.6em;
}
}


.drg-links-left a,
.drg-column a {
.drg-links-right a {
     color: #000;
     color: var(--myriad-blue);
     text-decoration: none;
     text-decoration: none;
     transition: all 0.3s ease;
     font-weight: normal;
}
}


.drg-links-left a:hover,
.drg-column a:hover {
.drg-links-right a:hover {
    text-decoration: underline;
     color: var(--myriad-dkblue);
}
     font-weight: bold;
 
.drg-divider {
    width: 1px;
    background-color: #666;
     opacity: 0.4;
     margin: 0 1em;
}
}


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


.footer-eu-logo img {
.drg-eu-flag img {
     height: 2.5em;
     height: 2.5em;
     opacity: 0.9;
     margin-bottom: 0.8em;
    max-width: 100%;
}
}


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


/* === Mobile layout === */
.drg-disclaimer {
@media screen and (max-width: 768px) {
    font-size: 0.8em;
     .drg-split-links {
    color: #666;
         grid-template-columns: 1fr;
    text-align: center;
    margin-top: 2em;
    padding: 1em;
    border-top: 1px solid #eee;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
 
.drg-disclaimer a {
    color: #666;
    text-decoration: underline;
}
 
/* === Responsive Layout === */
@media (max-width: 768px) {
     .drg-columns {
        flex-direction: column;
        align-items: center;
    }
 
    .drg-divider {
         display: none;
    }
 
    .drg-column {
        align-items: center;
         text-align: center;
         text-align: center;
        gap: 2em;
     }
     }


     .drg-links-left,
     .drg-column-center {
    .drg-links-right {
         order: 2;
         align-items: center;
     }
     }


     .footer-eu-wrapper {
     .drg-column-right {
         flex-direction: column;
         order: 3;
        text-align: center;
     }
     }


     .footer-eu-text {
     .drg-column-left {
         text-align: center;
         order: 1;
     }
     }
}
}

Revision as of 14:12, 23 May 2025

/* === DRG FOOTER === */
#drg-footer {
    width: 100%;
    background: #fff;
    font-family: sans-serif;
    font-size: 0.95rem;
    border-top: 1px solid #ccc;
    margin-top: 1em;
    color: #000;
}

.drg-columns {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding: 2em 1em 1em;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.drg-column {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.drg-column a {
    color: #000;
    text-decoration: none;
    font-weight: normal;
}

.drg-column a:hover {
    text-decoration: underline;
}

.drg-divider {
    width: 1px;
    background-color: #666;
    opacity: 0.4;
    margin: 0 1em;
}

.drg-column-center {
    align-items: center;
    text-align: center;
    font-weight: bold;
}

.drg-eu-flag img {
    height: 2.5em;
    margin-bottom: 0.8em;
    max-width: 100%;
}

.drg-eu-text {
    font-size: 0.9em;
    max-width: 400px;
    line-height: 1.4;
}

.drg-disclaimer {
    font-size: 0.8em;
    color: #666;
    text-align: center;
    margin-top: 2em;
    padding: 1em;
    border-top: 1px solid #eee;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.drg-disclaimer a {
    color: #666;
    text-decoration: underline;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
    .drg-columns {
        flex-direction: column;
        align-items: center;
    }

    .drg-divider {
        display: none;
    }

    .drg-column {
        align-items: center;
        text-align: center;
    }

    .drg-column-center {
        order: 2;
    }

    .drg-column-right {
        order: 3;
    }

    .drg-column-left {
        order: 1;
    }
}