MediaWiki:Common.css: Difference between revisions

From Disaster Risk Gateway
Trying new footer
Tags: Mobile edit Mobile web edit
Trying new footer
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
/* === DRG FOOTER === */
/* === Hide native “Privacy/Terms/Desktop” bar === */
#footer-places {
    display: none !important;
}
 
/* === DRG Footer container === */
#drg-footer {
#drg-footer {
     width: 100%;
     border-top: 1px solid #ccc;
     background: #fff;
     background: #fff;
    padding-top: 2em;
     font-family: sans-serif;
     font-family: sans-serif;
    color: #000;
     font-size: 0.95rem;
     font-size: 0.95rem;
    border-top: 1px solid #ccc;
     margin: 1em 0 2em;
     margin-top: 1em;
    color: #000;
}
}


/* === Three‐column layout === */
.drg-columns {
.drg-columns {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
    align-items: flex-start;
     gap: 1em;
     gap: 1em;
    padding: 2em 1em 1em;
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     flex-wrap: wrap;
     flex-wrap: wrap;
}
}
.drg-column {
.drg-column {
     flex: 1 1 30%;
     flex: 1 1 30%;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 0.6em;
     gap: 0.8em;
}
}
 
.drg-column-left a,
.drg-column a {
.drg-column-center a,
.drg-column-right a {
     color: #000;
     color: #000;
     text-decoration: none;
     text-decoration: none;
    font-weight: normal;
}
}
 
.drg-column-left a:hover,
.drg-column a:hover {
.drg-column-center a:hover,
.drg-column-right a:hover {
     text-decoration: underline;
     text-decoration: underline;
}
}


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


/* Center column specifics */
.drg-column-center {
.drg-column-center {
    align-items: center;
     text-align: center;
     text-align: center;
    font-weight: bold;
}
}
 
.drg-eu-flag {
    margin-bottom: 0.8em;
}
.drg-eu-flag img {
.drg-eu-flag img {
     height: 2.5em;
     height: 2.5em;
    margin-bottom: 0.8em;
     max-width: 100%;
     max-width: 100%;
}
}
.drg-eu-text {
.drg-eu-text {
    font-weight: bold;
    line-height: 1.4;
     font-size: 0.9em;
     font-size: 0.9em;
     max-width: 400px;
     max-width: 400px;
     line-height: 1.4;
     margin: 0 auto;
}
}


/* Disclaimer block */
.drg-disclaimer {
.drg-disclaimer {
    max-width: 900px;
    margin: 2em auto 0;
    padding: 1em 0 0;
    border-top: 1px solid #eee;
     font-size: 0.8em;
     font-size: 0.8em;
     color: #666;
     color: #666;
     text-align: center;
     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 {
.drg-disclaimer a {
     color: #666;
     color: #666;
Line 79: Line 85:
}
}


/* === Responsive Layout === */
/* === Responsive tweaks === */
@media (max-width: 768px) {
@media (max-width: 768px) {
     .drg-columns {
     .drg-columns {
Line 85: Line 91:
         align-items: center;
         align-items: center;
     }
     }
     .drg-divider {
     .drg-divider {
         display: none;
         display: none;
     }
     }
     .drg-column {
     .drg-column {
         align-items: center;
         width: 100%;
         text-align: center;
         text-align: center;
     }
     }
 
     .drg-eu-text {
    .drg-column-center {
         max-width: 80%;
        order: 2;
    }
 
     .drg-column-right {
         order: 3;
    }
 
    .drg-column-left {
        order: 1;
     }
     }
}
}

Revision as of 14:18, 23 May 2025

/* === Hide native “Privacy/Terms/Desktop” bar === */
#footer-places {
    display: 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: 0.95rem;
    margin: 1em 0 2em;
}

/* === Three‐column layout === */
.drg-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.drg-column {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}
.drg-column-left a,
.drg-column-center a,
.drg-column-right a {
    color: #000;
    text-decoration: none;
}
.drg-column-left a:hover,
.drg-column-center a:hover,
.drg-column-right a:hover {
    text-decoration: underline;
}

/* Divider lines */
.drg-divider {
    width: 1px;
    background: #666;
    opacity: 0.4;
    margin: 0 1em;
}

/* Center column specifics */
.drg-column-center {
    text-align: center;
}
.drg-eu-flag {
    margin-bottom: 0.8em;
}
.drg-eu-flag img {
    height: 2.5em;
    max-width: 100%;
}
.drg-eu-text {
    font-weight: bold;
    line-height: 1.4;
    font-size: 0.9em;
    max-width: 400px;
    margin: 0 auto;
}

/* Disclaimer block */
.drg-disclaimer {
    max-width: 900px;
    margin: 2em auto 0;
    padding: 1em 0 0;
    border-top: 1px solid #eee;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}
.drg-disclaimer a {
    color: #666;
    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;
    }
    .drg-eu-text {
        max-width: 80%;
    }
}