MediaWiki:Common.css
From Ragnafied Wiki
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. MEDIAWIKI COLLAPSIBLE SYSTEM FIXES */
/* =========================================== */
/* Hide the default "[expand/collapse]" text links */
.mw-collapsible-toggle-default {
display: none !important;
}
/* Transform headers into full-width clickable bars */
.mw-collapsible-toggle.ragnawiki-card-header,
.mw-collapsible-toggle.ragnawiki-nav-header {
float: none !important; /* Fixes the "ugly" right-side float */
display: block !important; /* Makes the bar the actual button */
cursor: pointer;
text-align: center;
width: 100%;
box-sizing: border-box;
user-select: none;
margin-bottom: 0 !important;
}
/* Container for the content inside a collapsible */
.mw-collapsible-content {
clear: both !important;
padding: 15px !important;
background: #ffffff !important;
border: 1px solid #e1e8ed;
border-top: none;
border-radius: 0 0 10px 10px;
margin-bottom: 25px;
}
/* =========================================== */
/* 2. RAGNAWIKI BASE UI ELEMENTS */
/* =========================================== */
h2, h3 {
overflow: hidden;
padding-top: 10px;
}
.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;
}
.ragnawiki-grid {
display: flex;
gap: 20px;
margin: 20px 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 {
color: white;
padding: 12px 15px;
font-weight: bold;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.ragnawiki-card-content {
padding: 15px;
}
/* =========================================== */
/* 3. PREMIUM GRADIENT COLOR CLASSES */
/* =========================================== */
.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; }
/* =========================================== */
/* 4. NAVIGATION & TABLES */
/* =========================================== */
.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-header {
color: white;
padding: 12px 15px;
font-weight: bold;
font-size: 14px;
text-align: center;
}
.wikitable {
border-collapse: collapse;
width: 100%;
margin: 15px 0;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wikitable th {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 12px 8px;
font-weight: bold;
}
/* =========================================== */
/* 5. RPG ELEMENTS & RIBBONS */
/* =========================================== */
.ragna-ribbon-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
margin: 20px 0;
}
.ragna-ribbon {
background: #2c3e50;
color: #FFD700;
padding: 10px 25px;
font-weight: bold;
font-size: 13px;
text-transform: uppercase;
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;
}
/* =========================================== */
/* 6. FLOATING UI (Progress & 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%;
}
.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;
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;
}
/* =========================================== */
/* 7. FLOATING MENU */
/* =========================================== */
.floating-menu {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
min-width: 180px;
z-index: 9998;
overflow: hidden;
}
.floating-menu-header {
background: linear-gradient(135deg, #AF011C, #D93800);
color: white;
padding: 12px 15px;
font-weight: bold;
text-align: center;
}
