MediaWiki:Common.css

Revision as of 10:08, 20 March 2025 by LoveMan (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Main Container: Full Width */
.main-container {
    width: `00%;
    margin: 0;
    padding: 0;
}

/* HERO SECTION (Full-width, centered) */
.hero-section {
    width: 95%;
    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;
}

/* Ensure All Columns Have Equal Width */
.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);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Custom Icons for Sections - Fixing the Duplicate Issue */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    padding-left: 35px;
}

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

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

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