Jump to content

MediaWiki:Common.css: Difference between revisions

From VanuatuBook
No edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/* Make the container take full width */
/* Set full-width for all sections */
.main-container {
.main-container {
     width: 100%;
     width: 100%;
Line 8: Line 8:
}
}


/* Header Section (Full Width) */
/* Make header and footer full-width */
.header-section, .footer-section {
.header-section, .footer-section {
     width: 100%;
     width: 100%;
     padding: 20px;
     padding: 20px;
     border: 1px solid #ccc;
     border: 1px solid #ccc;
    border-radius: 0;
     background: #f9f9f9;
     background: #f9f9f9;
     text-align: center;
     text-align: center;
    box-sizing: border-box;
}
}


/* Middle Section (3 Columns on Desktop) */
/* Ensure middle section is full-width and centered */
.middle-section {
.middle-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
     width: 100%;
     width: 100%;
     padding: 0 20px; /* Add slight padding on the sides */
     padding: 10px;
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* Each column inside middle section */
/* Columns: default to full width */
.middle-section .column {
.middle-section .column {
     flex: 1;
     width: 100%;
     padding: 20px;
     padding: 20px;
    margin-bottom: 10px;
     border: 1px solid #ddd;
     border: 1px solid #ddd;
     border-radius: 8px;
     bac
    background: #fff;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}
 
/* Section Title Styling */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}
 
/* Responsive Design: Stack columns on smaller screens */
@media screen and (max-width: 768px) {
    .middle-section {
        flex-direction: column;
        gap: 10px;
        padding: 0; /* Remove padding for mobile */
    }
 
    .middle-section .column {
        width: 100%;
        margin: 0 auto;
    }
}

Revision as of 05:46, 20 March 2025

/* CSS placed here will be applied to all skins */

/* Set full-width for all sections */
.main-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Make header and footer full-width */
.header-section, .footer-section {
    width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

/* Ensure middle section is full-width and centered */
.middle-section {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* Columns: default to full width */
.middle-section .column {
    width: 100%;
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    bac