MediaWiki:Common.css

From Ragnafied Wiki
Revision as of 13:44, 21 February 2026 by Putotine (RID-12) (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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* =========================================== */
/* 1. CORE & GLOBAL OVERRIDES */
/* =========================================== */
h2, h3 {
    overflow: visible !important;
    padding-top: 10px;
    clear: both;
}

/* =========================================== */
/* 2. FLOATING QUICK NAV (RESTORED FROM JS) */
/* =========================================== */
.floating-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 9998;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-menu-header {
    background: linear-gradient(135deg, #AF011C, #D93800);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-menu-items {
    padding: 8px 0;
    transition: all 0.3s ease;
}

/* JS Toggle: Collapsed State */
.floating-menu.collapsed .floating-menu-items {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

.floating-menu-items a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.floating-menu-items a:hover, 
.floating-menu-items a.reading-now {
    background: rgba(255, 106, 0, 0.08);
    border-left-color: #FF6A00;
    color: #FF6A00;
}

.floating-menu-items a:before {
    content: "•";
    color: #FF6A00;
    margin-right: 8px;
}

/* Mobile Toggle Button (The Hamburger) */
.floating-menu-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 20px;
}

/* =========================================== */
/* 3. QUICK NAV TABLES (THE CONTENT CARDS) */
/* =========================================== */
.ragnawiki-nav-grid {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.ragnawiki-nav-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.ragnawiki-nav-table {
    width: 100%;
    border-collapse: collapse !important;
}

.ragnawiki-nav-table tr td {
    padding: 15px 6px;
    border-bottom: 1px solid #e1e8ed;
    vertical-align: middle;
}

.ragnawiki-nav-table tr:nth-child(odd) td {
    background: rgba(240, 248, 255, 0.7);
}

.ragnawiki-nav-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.9);
}

/* =========================================== */
/* 4. BACK TO TOP BUTTON (FIXED CIRCLE) */
/* =========================================== */
.back-to-top-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.back-to-top-fixed a {
    background: linear-gradient(135deg, #FF6A00, #D93800);
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid white;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
}

.back-to-top-fixed a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* =========================================== */
/* 5. COLLAPSIBLE LOGIC (FOR YOUR JS) */
/* =========================================== */
.mw-collapsible {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

/* This is the clickable header your JS targets */
.ragnawiki-card-header, .ragnawiki-nav-header {
    padding: 15px 20px !important;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.mw-collapsible-content {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* =========================================== */
/* 6. GRADIENTS & BOXES */
/* =========================================== */
.ragna-blue   { background: linear-gradient(135deg, #3498db, #2980b9) !important; }
.ragna-green  { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; }
.ragna-red    { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; }
.ragna-gold   { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #333 !important; }

.ragnawiki-tip-box { background: #fff3f3; border-left: 4px solid #b22222; padding: 12px; border-radius: 6px; margin: 10px 0; }
.ragnawiki-warning-box { background: #fff3cd; border-left: 4px solid #f39c12; padding: 12px; border-radius: 6px; margin: 10px 0; }

#scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(to right, #FF6A00, #D93800); z-index: 10001; width: 0%;
}

/* =========================================== */
/* 7. RESPONSIVE DESIGN */
/* =========================================== */
@media (max-width: 768px) {
    .floating-menu {
        left: -220px; /* Offscreen till mobile-visible class added */
        right: auto;
        top: 10px;
        transform: none;
    }
    .floating-menu.mobile-visible { left: 10px; }
    .floating-menu-toggle { display: flex; }
    .back-to-top-fixed { bottom: 20px; right: 20px; }
    .back-to-top-fixed a { width: 50px !important; height: 50px !important; }
}