Jump to content

MediaWiki:Common.css: Difference between revisions

From VanuatuBook
Created page with "CSS placed here will be applied to all skins: Center the main container: .main-container { width: 90%; margin: 0 auto; } Header Section: .header-section { width: 100%; padding: 20px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 8px; background: #f9f9f9; text-align: center; } Middle Section (3 Columns): .middle-section { display: flex; justify-content: space-between; gap: 20px; } .middl..."
 
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 */


/* Center the main container */
/* Make the container take full width */
.main-container {
.main-container {
     width: 90%;
     width: 100%;
     margin: 0 auto;
     margin: 0;
    padding: 0;
}
}


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


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


/* Each column inside middle section */
.middle-section .column {
.middle-section .column {
     flex: 1;
     flex: 1;
Line 32: Line 36:
     background: #fff;
     background: #fff;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
/* Footer Section */
.footer-section {
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
     text-align: center;
     text-align: center;
}
}


/* Highlight Section Titles */
/* Section Title Styling */
.section-title {
.section-title {
     font-size: 22px;
     font-size: 22px;
Line 52: Line 46:
     margin-bottom: 10px;
     margin-bottom: 10px;
     text-transform: uppercase;
     text-transform: uppercase;
     text-align: center;
}
 
/* 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:44, 20 March 2025

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

/* Make the container take full width */
.main-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

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

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

/* Each column inside middle section */
.middle-section .column {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    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;
    }
}