MediaWiki:Common.css

Revision as of 05:44, 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.
/* 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;
    }
}