MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
Line 60: Line 60:
}
}


.ragnawiki-card-header {
.ragnawiki-card-header, .ragnawiki-nav-header {
     color: white;
     color: white;
     padding: 12px 15px;
     padding: 12px 15px;
Line 67: Line 67:
}
}


.ragnawiki-card-content {
.ragnawiki-card-content, .ragnawiki-nav-content {
     padding: 15px;
     padding: 15px;
}
}


/* =========================================== */
/* =========================================== */
/* Table & List Styles */
/* Quick Nav & Table Styles */
/* =========================================== */
/* =========================================== */


.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: none;
    border-collapse: collapse;
}
.ragnawiki-nav-table tr td {
    padding: 15px 6px;
    border-bottom: 1px solid #e1e8ed;
    vertical-align: middle;
}
/* Striping for the Quick Nav */
.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);
}
/* Standard Wikitable rounded look */
.wikitable {
.wikitable {
     border-collapse: separate; /* Changed for better border-radius support */
     border-collapse: separate;  
     border-spacing: 0;
     border-spacing: 0;
     width: 100%;
     width: 100%;
Line 92: Line 131:
     padding: 12px 8px;
     padding: 12px 8px;
     font-weight: bold;
     font-weight: bold;
    font-size: 14px;
     border: none;
     border: none;
}
}


.wikitable td {
/* Boxes & Notes */
     padding: 10px 8px;
.ragnawiki-tip-box {
     border-bottom: 1px solid #f0f0f0;
     background: #fff3f3;
     border-left: 4px solid #b22222;
    padding: 12px;
    border-radius: 6px;
     font-size: 13px;
     font-size: 13px;
    margin-bottom: 10px;
}
}


.wikitable tr:nth-child(even) {
.ragnawiki-warning-box {
     background: rgba(240, 248, 255, 0.7);
     background: #fff3cd;
}
    border-left: 4px solid #f39c12;
 
    padding: 12px;
.ragnawiki-list {
    border-radius: 6px;
     width: 100%;
     font-size: 13px;
     border: none;
     margin-bottom: 10px;
}
}
.ragnawiki-list tr td {
    padding: 8px 5px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.ragna-value { font-weight: 600; }


/* =========================================== */
/* =========================================== */
Line 139: Line 173:


/* =========================================== */
/* =========================================== */
/* Navigation Grid & Ribbons */
/* Floating UI Elements */
/* =========================================== */
/* =========================================== */


.ragnawiki-nav-grid {
.floating-menu {
     display: flex;
     position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
     gap: 15px;
     background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
     margin: 25px 0;
     border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
     flex-wrap: wrap;
     min-width: 180px; z-index: 9998; border: 1px solid rgba(255, 255, 255, 0.3);
}
}


.ragnawiki-nav-card {
.floating-menu-header {
     background: white;
     background: linear-gradient(135deg, #AF011C, #D93800);
    border-radius: 10px;
     color: white; padding: 12px 15px; font-weight: bold; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}
 
.ragna-ribbon {
    background: #2c3e50;
     color: #FFD700;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    clip-path: polygon(92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%, 8% 0);
    border-top: 2px solid #FFD700;
    border-bottom: 2px solid #FFD700;
    transition: all 0.2s ease;
}
 
/* =========================================== */
/* UI Elements (Scroll Bar & Back to Top) */
/* =========================================== */
 
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(to right, #FF6A00, #D93800);
    z-index: 10001; width: 0%; transition: width 0.1s ease-out;
}
}


.back-to-top-fixed {
.floating-menu-items a {
     position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    display: flex; align-items: center; padding: 10px 15px;
     color: #333; text-decoration: none; font-size: 13px;
    border-left: 3px solid transparent; transition: all 0.2s ease;
}
}


.back-to-top-fixed a {
.floating-menu-items a:hover {
     background: linear-gradient(135deg, #FF6A00, #D93800);
     background: rgba(255, 106, 0, 0.08); border-left-color: #FF6A00; color: #FF6A00;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid white; transition: all 0.3s ease;
}
}


/* =========================================== */
/* =========================================== */
/* COLLAPSIBLE DESIGN (FIXED) */
/* COLLAPSIBLE DESIGN (RESTORED & OPTIMIZED) */
/* =========================================== */
/* =========================================== */


Line 209: Line 212:
}
}


/* Style our custom header as the toggle */
.mw-collapsible-toggle {
.mw-collapsible-toggle {
     float: none !important;
     float: none !important;
Line 216: Line 218:
}
}


/* Hide default MW toggle text */
.mw-collapsible-text { display: none !important; }
.mw-collapsible-text {
    display: none !important;
}


/* This allows the whole card header to be the click target */
.mw-collapsible .ragnawiki-card-header.mw-collapsible-toggle,
.mw-collapsible .ragnawiki-card-header.mw-collapsible-toggle,
.mw-collapsible .ragnawiki-nav-header.mw-collapsible-toggle {
.mw-collapsible .ragnawiki-nav-header.mw-collapsible-toggle {
Line 229: Line 227:
     position: relative;
     position: relative;
     box-sizing: border-box;
     box-sizing: border-box;
    transition: filter 0.3s ease;
}
}


/* States Indicator Arrow */
/* Arrow indicator */
.mw-collapsible .mw-collapsible-toggle::after {
.mw-collapsible .mw-collapsible-toggle::after {
     content: "▼";
     content: "▼";
Line 239: Line 236:
     transition: transform 0.3s ease;
     transition: transform 0.3s ease;
     color: rgba(255,255,255,0.9);
     color: rgba(255,255,255,0.9);
}
/* Arrow color for light headers */
.ragna-gold.mw-collapsible-toggle::after,
.ragna-yellow.mw-collapsible-toggle::after,
.ragna-silver.mw-collapsible-toggle::after {
    color: #333 !important;
}
}


Line 263: Line 253:


@media (max-width: 768px) {
@media (max-width: 768px) {
     .floating-menu {
     .floating-menu { left: -220px; top: 10px; transform: none; width: 200px; }
        left: -220px;
     .floating-menu.mobile-visible { left: 10px; }
        top: 10px;
        transform: none;
        width: 200px;
    }
   
     .floating-menu.mobile-visible {
        left: 10px;
    }
   
    .floating-menu-toggle { display: flex; }
 
     .back-to-top-fixed { bottom: 20px; right: 20px; }
     .back-to-top-fixed { bottom: 20px; right: 20px; }
    .back-to-top-fixed a { width: 50px; height: 50px; }
}
}

Revision as of 13:40, 21 February 2026

/* =========================================== */
/* MediaWiki Core Overrides */
/* =========================================== */

h2, h3 {
    overflow: visible !important; 
    padding-top: 10px;
    clear: both;
}

/* =========================================== */
/* Ragnawiki Base Styles */
/* =========================================== */

.ragnawiki-hero {
    background: linear-gradient(135deg, #FF6A00 0%, #F4B400 30%, #D93800 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.ragnawiki-hero-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ragnawiki-hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 15px;
}

.ragnawiki-grid {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

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

.ragnawiki-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2);
}

.ragnawiki-card-header, .ragnawiki-nav-header {
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 14px;
}

.ragnawiki-card-content, .ragnawiki-nav-content {
    padding: 15px;
}

/* =========================================== */
/* Quick Nav & Table Styles */
/* =========================================== */

.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: none;
    border-collapse: collapse;
}

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

/* Striping for the Quick Nav */
.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);
}

/* Standard Wikitable rounded look */
.wikitable {
    border-collapse: separate; 
    border-spacing: 0;
    width: 100%;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
}

.wikitable th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 8px;
    font-weight: bold;
    border: none;
}

/* Boxes & Notes */
.ragnawiki-tip-box {
    background: #fff3f3;
    border-left: 4px solid #b22222;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

.ragnawiki-warning-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* =========================================== */
/* Core Color Classes (Gradients) */
/* =========================================== */

.ragna-blue   { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: white !important; }
.ragna-green  { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; color: white !important; }
.ragna-red    { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: white !important; }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; color: white !important; }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; color: white !important; }
.ragna-gold   { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #333 !important; }
.ragna-teal   { background: linear-gradient(135deg, #16a085, #1abc9c) !important; color: white !important; }
.ragna-pink   { background: linear-gradient(135deg, #f48fb1, #f06292) !important; color: white !important; }
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d) !important; color: #333 !important; }
.ragna-brown  { background: linear-gradient(135deg, #795548, #5d4037) !important; color: white !important; }
.ragna-dark   { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: white !important; }
.ragna-gray   { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; color: white !important; }
.ragna-cyan   { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; color: white !important; }
.ragna-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #333 !important; }

/* =========================================== */
/* Floating UI Elements */
/* =========================================== */

.floating-menu {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85); 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);
}

.floating-menu-header {
    background: linear-gradient(135deg, #AF011C, #D93800);
    color: white; padding: 12px 15px; font-weight: bold; text-align: center;
}

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

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

/* =========================================== */
/* COLLAPSIBLE DESIGN (RESTORED & OPTIMIZED) */
/* =========================================== */

.mw-collapsible {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mw-collapsible-toggle {
    float: none !important;
    display: block !important;
    text-decoration: none !important;
}

.mw-collapsible-text { display: none !important; }

.mw-collapsible .ragnawiki-card-header.mw-collapsible-toggle,
.mw-collapsible .ragnawiki-nav-header.mw-collapsible-toggle {
    padding: 15px 20px !important;
    cursor: pointer;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}

/* Arrow indicator */
.mw-collapsible .mw-collapsible-toggle::after {
    content: "▼";
    float: right;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.9);
}

.mw-collapsible:not(.mw-collapsed) .mw-collapsible-toggle::after {
    transform: rotate(180deg);
}

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

/* =========================================== */
/* Responsive Design */
/* =========================================== */

@media (max-width: 768px) {
    .floating-menu { left: -220px; top: 10px; transform: none; width: 200px; }
    .floating-menu.mobile-visible { left: 10px; }
    .back-to-top-fixed { bottom: 20px; right: 20px; }
}