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 everything take full width */
/* Make everything take full width */
.main-container {
.main-container {
Line 10: Line 6:
}
}


/* Header & Footer Section */
/* HERO SECTION (Full-width, centered) */
.header-section, .footer-section {
.hero-section {
     width: 100%;
     width: 100%;
     padding: 20px;
     padding: 40px 20px;
    border: 1px solid #ccc;
     background: #fdf5e6;
     background: #f9f9f9;
     text-align: center;
     text-align: center;
     box-sizing: border-box;
     border-bottom: 2px solid #ddd;
}
.hero-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
}


/* Middle Section using CSS Grid */
/* Middle Section (Using CSS Grid) */
.middle-section {
.middle-section {
     display: grid;
     display: grid;
     grid-template-columns: 1fr; /* Default: 1 column */
     grid-template-columns: 1fr; /* Default: 1 column on mobile */
     gap: 10px;
     gap: 20px;
     width: 100%;
     width: 100%;
     padding: 10px;
     padding: 20px;
     box-sizing: border-box;
     box-sizing: border-box;
}
}


/* Columns: default to full width */
/* Columns (Responsive) */
.middle-section .column {
.middle-section .column {
     width: 100%;
     width: 100%;
Line 37: Line 38:
     border-radius: 8px;
     border-radius: 8px;
     background: #fff;
     background: #fff;
     text-align: center;
     text-align: left;
     box-sizing: border-box;
     box-sizing: border-box;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
}


/* Icons before section title */
/* Custom Icons for Sections */
.section-title::before {
.column:nth-child(1) .section-title::before { content: "✨ "; } /* Personal Happiness */
    content: "📝"; /* Default icon */
.column:nth-child(2) .section-title::before { content: "❤️ "; } /* National Happiness */
    margin-right: 8px;
.column:nth-child(3) .section-title::before { content: "🌎 "; } /* Global Happiness */
}
 
/* Custom icons for each section */
.column:nth-child(1) .section-title::before { content: "✨ "; } /* For Individuals */
.column:nth-child(2) .section-title::before { content: "❤️"; } /* For the Nation */
.column:nth-child(3) .section-title::before { content: "🌎"; } /* For the World */


/* Section title styling */
/* Section Title Styling */
.section-title {
.section-title {
     font-size: 18px;
     font-size: 22px;
     font-weight: bold;
     font-weight: bold;
     color: #333;
     color: #333;
     margin-bottom: 10px;
     margin-bottom: 10px;
     text-transform: uppercase;
     text-transform: uppercase;
}
/* Footer Section */
.footer-section {
    width: 100%;
    padding: 20px;
    border-top: 2px solid #ddd;
    background: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}
}


Line 67: Line 72:
         grid-template-columns: repeat(3, 1fr);
         grid-template-columns: repeat(3, 1fr);
     }
     }
}
/* Align text to the left inside columns */
.middle-section .column p {
    text-align: left !important;
}
}

Revision as of 10:05, 20 March 2025

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

/* HERO SECTION (Full-width, centered) */
.hero-section {
    width: 100%;
    padding: 40px 20px;
    background: #fdf5e6;
    text-align: center;
    border-bottom: 2px solid #ddd;
}
.hero-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* Middle Section (Using CSS Grid) */
.middle-section {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column on mobile */
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Columns (Responsive) */
.middle-section .column {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Custom Icons for Sections */
.column:nth-child(1) .section-title::before { content: "✨ "; } /* Personal Happiness */
.column:nth-child(2) .section-title::before { content: "❤️ "; } /* National Happiness */
.column:nth-child(3) .section-title::before { content: "🌎 "; } /* Global Happiness */

/* Section Title Styling */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Footer Section */
.footer-section {
    width: 100%;
    padding: 20px;
    border-top: 2px solid #ddd;
    background: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

/* Responsive Design: 3 columns on larger screens */
@media screen and (min-width: 768px) {
    .middle-section {
        grid-template-columns: repeat(3, 1fr);
    }
}