MediaWiki:Common.css

From Frutiger Space Wikipedia!
Revision as of 03:31, 5 September 2025 by Hal.leo (talk | contribs)
Jump to navigation Jump to search

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.
.mainpage-hero,
.mainpage-stats-bar,
.content-card {
    border: none !important;
    width: 100% !important;
    background: none !important;
    margin-bottom: 0 !important;
}
.mainpage-hero td,
.mainpage-stats-bar td,
.content-card td {
    border: none !important;
}


/* 1. Hero Welcome Section */
.mainpage-hero {
    background-color: var(--fa-glass-bg) !important;
    border: 1px solid var(--fa-glass-border) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 1.5em 2em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.mainpage-hero .thumb { /* Style the welcome image */
    border-radius: 6px;
    overflow: hidden;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* 2. Overlapping Stats Bar */
.mainpage-stats-bar {
    background-color: rgba(235, 244, 252, 0.8) !important;
    border: 1px solid var(--fa-glass-border) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1em;
    padding: 0.8em;
    position: relative;
    z-index: 2;
    /* This negative margin is what makes it overlap the hero section */
    margin-top: -25px !important;
}


/* 3. Main Content Grid Layout */
.mainpage-grid {
    display: grid;
    /* Creates responsive columns: they will be at least 400px wide, and stack automatically on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px; /* The space between the cards */
    margin-top: 25px;
}


/* 4. Content Card Styling */
.content-card {
    background-color: var(--fa-glass-bg) !important;
    border: 1px solid var(--fa-glass-border) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 1.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%; /* Makes cards in the same row the same height */
    box-sizing: border-box; /* Ensures padding is included in the height */
}

.content-card h2 {
    font-size: 1.5em;
    color: var(--fa-sky-blue-dark);
    border-bottom: 2px solid var(--fa-sky-blue-light);
    padding-bottom: 0.4em;
    margin-top: 0;
}


/* 5. Tabber Styling for an Aero Look */
.tabber .tabbernav {
    border-bottom: 1px solid var(--fa-sky-blue-medium) !important;
}

.tabber .tabbernav li a {
    background: linear-gradient(to bottom, #f0f8ff, #d4e8f7) !important;
    border: 1px solid #c0d9ec !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    color: var(--fa-sky-blue-dark) !important;
    text-shadow: none !important;
    transition: all 0.2s ease;
}

.tabber .tabbernav li a:hover {
    background: linear-gradient(to bottom, #ffffff, #e0f0ff) !important;
}

.tabber .tabbernav li.tabberactive a {
    background: white !important;
    border-color: var(--fa-sky-blue-medium) !important;
    border-bottom: 1px solid white !important; /* Hides the bottom border line underneath the active tab */
    color: #333 !important;
}

.tabber .tabbertab {
    border: 1px solid var(--fa-sky-blue-medium) !important;
    border-top: none !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 0 6px 6px;
    padding: 1em;
}