Jump to content

MediaWiki:Common.css: Difference between revisions

From VanuatuBook
No edit summary
No edit summary
Line 1: Line 1:
/* Main Container: Full Width */
/* Main Container: Full Width */
.main-container {
.main-container {
     width: `00%;
     width: 100%;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
Line 8: Line 8:
/* HERO SECTION (Full-width, centered) */
/* HERO SECTION (Full-width, centered) */
.hero-section {
.hero-section {
     width: 95%;
     width: 100%;
     padding: 40px 20px;
     padding: 40px 20px;
     background: #fdf5e6;
     background: linear-gradient(135deg, #ffefd5, #ffe4b5);
     text-align: center;
     text-align: center;
     border-bottom: 2px solid #ddd;
     border-bottom: 3px solid #ffcc80;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}
.hero-title {
.hero-title {
Line 35: Line 37:
     width: 100%;
     width: 100%;
     padding: 20px;
     padding: 20px;
    border: 1px solid #ddd;
     border-radius: 12px;
     border-radius: 8px;
     background: #fff;
     background: #fff;
     text-align: left;
     text-align: left;
     box-sizing: border-box;
     box-sizing: border-box;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
     justify-content: space-between;
     justify-content: space-between;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
}


/* Custom Icons for Sections - Fixing the Duplicate Issue */
/* Hover effect */
.middle-section .column:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}
 
/* Optimized Section Title */
.section-title {
.section-title {
     font-size: 22px;
     font-size: 18px; /* Optimized to prevent line breaks */
     font-weight: bold;
     font-weight: bold;
     color: #333;
     color: #333;
Line 55: Line 65:
     position: relative;
     position: relative;
     padding-left: 35px;
     padding-left: 35px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffcc80, #ffb74d);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}


Line 62: Line 80:
     position: absolute;
     position: absolute;
     left: 10px;
     left: 10px;
    font-size: 20px;
    color: #fff;
}
}
.national-icon::before {
.national-icon::before {
Line 67: Line 87:
     position: absolute;
     position: absolute;
     left: 10px;
     left: 10px;
    font-size: 20px;
    color: #fff;
}
}
.global-icon::before {
.global-icon::before {
Line 72: Line 94:
     position: absolute;
     position: absolute;
     left: 10px;
     left: 10px;
    font-size: 20px;
    color: #fff;
}
}


Line 82: Line 106:
     text-align: center;
     text-align: center;
     box-sizing: border-box;
     box-sizing: border-box;
    border-radius: 5px;
}
}



Revision as of 10:12, 20 March 2025

/* Main Container: Full Width */
.main-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* HERO SECTION (Full-width, centered) */
.hero-section {
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffefd5, #ffe4b5);
    text-align: center;
    border-bottom: 3px solid #ffcc80;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.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;
}

/* Ensure All Columns Have Equal Width */
.middle-section .column {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.middle-section .column:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

/* Optimized Section Title */
.section-title {
    font-size: 18px; /* Optimized to prevent line breaks */
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    padding-left: 35px;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffcc80, #ffb74d);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Assign Unique Icons to Each Section */
.personal-icon::before {
    content: "✨";
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: #fff;
}
.national-icon::before {
    content: "❤️";
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: #fff;
}
.global-icon::before {
    content: "🌎";
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: #fff;
}

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

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