MediaWiki:Common.css: Difference between revisions
From Ragnafied Wiki
No edit summary |
No edit summary |
||
| (158 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ===== | /* ========================================================================== | ||
/* | 00. DESIGN TOKENS & SYSTEM VARIABLES | ||
Allows site-wide theme tweaks instantly from one central location. | |||
========================================================================== */ | |||
:root { | |||
/* Brand Gradients & Accents */ | |||
--ragna-grad-primary: linear-gradient(135deg, #ff6a00 0%, #f4b400 30%, #d93800 100%); | |||
--ragna-grad-accent: linear-gradient(135deg, #af011c, #d93800); | |||
--ragna-gold-text: #ffd700; | |||
/* Layout Variables */ | |||
--radius-sm: 6px; | |||
--radius-md: 10px; | |||
--radius-lg: 14px; | |||
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08); | |||
--shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12); | |||
--shadow-lg: 0 12px 32px rgba(255, 106, 0, 0.15); | |||
--transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); | |||
/* Global Semantic Colors */ | |||
--bg-card-dark: #1e2a36; | |||
--border-light: rgba(0, 0, 0, 0.06); | |||
} | |||
/* ========================================================================== | |||
01. BASE ELEMENTS & TYPOGRAPHY CLEANUP | |||
========================================================================== */ | |||
h2, h3 { | |||
overflow: visible !important; | |||
padding-top: 14px; | |||
margin-bottom: 12px; | |||
clear: both; | |||
font-family: system-ui, -apple-system, sans-serif; | |||
} | |||
/* === | code { | ||
transition: var(--transition-smooth); | |||
cursor: pointer; | |||
background-color: rgba(0, 0, 0, 0.05); | |||
padding: 2px 6px; | |||
border-radius: var(--radius-sm); | |||
} | |||
code:hover { | |||
filter: brightness(1.15); | |||
} | |||
/* ========================================================================== | |||
02. COMPONENT HERO & CONTAINERS | |||
========================================================================== */ | |||
.ragnawiki-hero { | |||
background: var(--ragna-grad-primary); | |||
color: #ffffff; | |||
padding: 30px 25px; | |||
border-radius: var(--radius-lg); | |||
text-align: center; | |||
margin: 20px 0; | |||
box-shadow: var(--shadow-md); | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
.ragnawiki-hero-title { | |||
font-size: 30px; | |||
font-weight: 800; | |||
margin-bottom: 8px; | |||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); | |||
letter-spacing: -0.5px; | |||
} | |||
.ragnawiki-hero-subtitle { | |||
font-size: 16px; | |||
opacity: 0.95; | |||
margin-bottom: 0; | |||
} | |||
/* | |||
ENHANCEMENT: Switched to CSS Grid. | |||
Prevents dynamic flexing issues where elements stretch unevenly. | |||
*/ | |||
.ragnawiki-grid, | |||
.ragnawiki-nav-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |||
gap: 20px; | |||
margin: 25px 0; | |||
} | |||
/* ========================================================================== | |||
03. CARDS & PANELS | |||
========================================================================== */ | |||
.ragnawiki-card, | |||
.ragnawiki-nav-card { | |||
background: #ffffff; | |||
border-radius: var(--radius-md); | |||
box-shadow: var(--shadow-sm); | |||
overflow: hidden; | |||
transition: var(--transition-smooth); | |||
border: 1px solid var(--border-light); | |||
} | |||
.ragnawiki-card:hover, | |||
.ragnawiki-nav-card:hover { | |||
transform: translateY(-4px); | |||
box-shadow: var(--shadow-lg); | |||
} | |||
.ragnawiki-card-header, | |||
.ragnawiki-nav-header { | |||
color: #ffffff; | |||
padding: 14px 18px; | |||
font-weight: 700; | |||
font-size: 14px; | |||
letter-spacing: 0.3px; | |||
} | |||
.ragnawiki-card-content { | |||
padding: 18px; | |||
} | |||
/* ========================================================================== | |||
04. TABLES & DATA LISTS | |||
========================================================================== */ | |||
.ragnawiki-list, | |||
.ragnawiki-nav-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
border: none; | |||
} | |||
.ragnawiki-list tr td, | |||
.ragnawiki-nav-table tr td { | |||
padding: 10px 12px; | |||
border-bottom: 1px solid #f0f0f5; | |||
vertical-align: middle; | |||
font-size: 13px; | |||
} | |||
.ragnawiki-list tr:last-child td, | |||
.ragnawiki-nav-table tr:last-child td { | |||
border-bottom: none; | |||
} | |||
.ragnawiki-nav-table tr:nth-child(odd) td { | |||
background: rgba(240, 248, 255, 0.4); | |||
} | |||
.ragnawiki-nav-table tr:nth-child(even) td { | |||
background: #ffffff; | |||
} | |||
.ragna-value { | |||
font-weight: 700; | |||
} | |||
/* Modernized Global Wikipedia Tables to harmonize with your theme */ | |||
.wikitable { | .wikitable { | ||
border-collapse: collapse; | border-collapse: collapse; | ||
width: 100%; | width: 100%; | ||
margin: | margin: 20px 0; | ||
background: | background: #ffffff; | ||
border-radius: var(--radius-md); | |||
border-radius: | |||
overflow: hidden; | overflow: hidden; | ||
box-shadow: | box-shadow: var(--shadow-sm); | ||
border: 1px solid var(--border-light); | |||
} | } | ||
.wikitable th { | .wikitable th { | ||
background: linear-gradient(135deg, # | background: linear-gradient(135deg, #667eea, #764ba2); | ||
color: | color: #ffffff; | ||
padding: 14px 12px; | |||
font-weight: 700; | |||
padding: 12px | |||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
.wikitable td { | .wikitable td { | ||
padding: 10px | padding: 12px 10px; | ||
border: 1px solid # | border-bottom: 1px solid #f0f0f5; | ||
font-size: 13px; | |||
} | } | ||
.wikitable tr:nth-child(even) { | .wikitable tr:nth-child(even) { | ||
background-color: # | background: rgba(240, 248, 255, 0.4); | ||
} | |||
/* ========================================================================== | |||
05. ALERT BOXES, RIBBONS, HOVER WRAPPERS | |||
========================================================================== */ | |||
.ragnawiki-tip-box, .tip-box, | |||
.ragnawiki-warning-box { | |||
padding: 14px 16px; | |||
border-radius: var(--radius-sm); | |||
font-size: 13px; | |||
margin: 12px 0; | |||
border-left: 4px solid; | |||
transition: var(--transition-smooth); | |||
} | |||
.ragnawiki-tip-box, .tip-box { | |||
background: #fff5f5; | |||
border-left-color: #b22222; | |||
color: #801010; | |||
} | |||
.ragnawiki-warning-box { | |||
background: #fffbeb; | |||
border-left-color: #f39c12; | |||
color: #8a5100; | |||
} | |||
.ragnawiki-tip-box:hover, .tip-box:hover, .ragnawiki-warning-box:hover { | |||
transform: translateX(4px); | |||
} | |||
/* Universal Clean Hover Interactions for Content Modules */ | |||
.hero-section, .quick-overview > div, .info-card, | |||
.command-examples > div, .example-box, .command-section > div, | |||
.examples-grid > div, .item-types-grid > div { | |||
transition: var(--transition-smooth); | |||
} | |||
.hero-section:hover, .quick-overview > div:hover, .info-card:hover, | |||
.command-examples > div:hover, .command-section > div:hover, .examples-grid > div:hover { | |||
transform: translateY(-4px); | |||
box-shadow: var(--shadow-md); | |||
} | |||
.example-box:hover { | |||
transform: translateX(6px); | |||
box-shadow: var(--shadow-sm); | |||
} | |||
.item-types-grid > div:hover { | |||
transform: scale(1.03); | |||
} | |||
/* Ribbons Layout */ | |||
.ragna-ribbon-container { | |||
display: flex; | |||
justify-content: center; | |||
flex-wrap: wrap; | |||
gap: 12px; | |||
margin: 25px 0; | |||
} | } | ||
. | .ragna-ribbon { | ||
background: #2c3e50; | |||
color: var(--ragna-gold-text); | |||
padding: 10px 24px; | |||
font-weight: 700; | |||
font-size: 13px; | |||
text-transform: uppercase; | |||
letter-spacing: 1px; | |||
clip-path: polygon(94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%, 6% 0); | |||
border-top: 2px solid var(--ragna-gold-text); | |||
border-bottom: 2px solid var(--ragna-gold-text); | |||
transition: var(--transition-smooth); | |||
} | } | ||
. | .ragna-ribbon:hover { | ||
background | transform: translateY(-2px) scale(1.03); | ||
background: #34495e; | |||
color: #ffffff; | |||
} | } | ||
/* === | /* ========================================================================== | ||
6. FIX: USER-FRIENDLY COLLAPSIBLE DESIGN | |||
background: # | ========================================================================== */ | ||
border: 1px solid | .mw-collapsible { | ||
display: block !important; | |||
width: 100% !important; | |||
margin-bottom: 15px !important; | |||
background: transparent !important; | |||
overflow: hidden; | |||
border: none !important; | |||
box-shadow: none !important; | |||
} | |||
/* Style the text toggle link nicely so users see it clearly */ | |||
.mw-collapsible-toggle { | |||
display: inline-block !important; | |||
float: none !important; | |||
text-align: left !important; | |||
margin-bottom: 12px; | |||
padding: 6px 14px !important; | |||
background: #f1f3f5; | |||
border: 1px solid rgba(0,0,0,0.06); | |||
border-radius: 6px; | border-radius: 6px; | ||
font-size: 13px !important; | |||
font-weight: 600; | |||
color: #FF6A00 !important; | |||
cursor: pointer !important; | |||
transition: all 0.2s ease; | |||
} | } | ||
. | .mw-collapsible-toggle:hover { | ||
color: # | background: #FF6A00; | ||
color: #ffffff !important; | |||
border-color: #FF6A00; | |||
text-decoration: none !important; | |||
} | |||
.mw-collapsible-content { | |||
padding: 5px 0 !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
} | |||
/* ========================================================================== | |||
07. MEDIAWIKI RE-ENGINEERED COLLAPSIBLES | |||
========================================================================== */ | |||
.mw-collapsible { | |||
display: block !important; | |||
width: 100% !important; | |||
margin-bottom: 24px !important; | |||
background: #ffffff; | |||
border-radius: var(--radius-lg); | |||
box-shadow: var(--shadow-sm); | |||
overflow: hidden; | |||
transition: var(--transition-smooth); | |||
border: 1px solid var(--border-light); | |||
} | |||
.mw-collapsible:hover { | |||
box-shadow: var(--shadow-lg); | |||
} | } | ||
.mw-collapsible .ragnawiki-card-header { | |||
display: block !important; | |||
width: 100% !important; | |||
padding: 16px 24px !important; | |||
box-sizing: border-box !important; | |||
cursor: pointer !important; | |||
position: relative !important; | |||
font-size: 16px !important; | |||
border-bottom: 2px solid rgba(255, 255, 255, 0.15); | |||
transition: var(--transition-smooth); | |||
} | } | ||
.mw-collapsible .ragnawiki-card-header:hover { | |||
filter: brightness(1.08); | |||
padding-left: 28px !important; | |||
} | } | ||
.mw-collapsible .ragnawiki-card-header::after { | |||
content: "▼"; | |||
float: right; | |||
font-size: 11px; | |||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
background: rgba(0, 0, 0, 0.15); | |||
width: 22px; | |||
height: 22px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
border-radius: 50%; | |||
} | } | ||
.mw-collapsible.expanded .ragnawiki-card-header::after { | |||
transform: rotate(180deg); | |||
} | } | ||
.mw-collapsible-content { | |||
padding: 24px !important; | |||
background: #fafafb !important; | |||
} | } | ||
/* Collapsible Content Deep Nesting Fixes */ | |||
.mw-collapsible-content .ragnawiki-card { | |||
border: 1px solid var(--border-light); | |||
margin-bottom: 0; | |||
border | |||
} | } | ||
.mw-collapsible-content .ragnawiki-card-header { | |||
padding: 12px 16px !important; | |||
font-size: 14px !important; | |||
border-bottom: none !important; | |||
} | |||
.mw-collapsible-content .ragnawiki-card-header::after { display: none !important; } | |||
/* Hide native MediaWiki toggle strings safely */ | |||
.mw-collapsible-toggle, .mw-collapsible-toggle-default, .mw-collapsible-text { | |||
display: none !important; | |||
} | } | ||
/* === | /* ========================================================================== | ||
08. COLOR ATTRIBUTE THEMES (COLOR TOKENS) | |||
background: # | ========================================================================== */ | ||
border: 1px solid # | .ragna-blue { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: #ffffff !important; } | ||
border-radius: | .ragna-green { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; color: #ffffff !important; } | ||
.ragna-red { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: #ffffff !important; } | |||
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; color: #ffffff !important; } | |||
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; color: #ffffff !important; } | |||
.ragna-teal { background: linear-gradient(135deg, #16a085, #1abc9c) !important; color: #ffffff !important; } | |||
.ragna-pink { background: linear-gradient(135deg, #f48fb1, #f06292) !important; color: #ffffff !important; } | |||
.ragna-cyan { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; color: #ffffff !important; } | |||
.ragna-brown { background: linear-gradient(135deg, #795548, #5d4037) !important; color: #ffffff !important; } | |||
.ragna-dark { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: #ffffff !important; } | |||
.ragna-gray { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; color: #ffffff !important; } | |||
.ragna-gold { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #222222 !important; } | |||
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d) !important; color: #222222 !important; } | |||
.ragna-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #222222 !important; } | |||
/* Apply Text Theme Color Corrections automatically to dark-text variants */ | |||
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after { color: #222222 !important; } | |||
/* ========================================================================== | |||
08b. FLOATING MENU & BACK TO TOP BUTTON (DESKTOP CORE) | |||
========================================================================== */ | |||
.floating-menu { | |||
position: fixed !important; | |||
z-index: 9999 !important; | |||
background: #ffffff; | |||
border: 1px solid #ced4da; | |||
border-radius: var(--radius-md); | |||
box-shadow: var(--shadow-md); | |||
transition: max-height 0.25s ease, opacity 0.2s ease; | |||
overflow: hidden; | |||
width: 220px; | |||
} | } | ||
.floating-menu-header { | |||
background: #2c3e50; | |||
color: #ffffff; | |||
padding: 12px; | padding: 12px; | ||
font-weight: bold; | |||
display: flex; | |||
align-items: center; | |||
cursor: pointer; | |||
} | } | ||
.floating-menu-items { | |||
max-height: 400px; | |||
overflow-y: auto; | |||
} | } | ||
.floating-menu-items a { | |||
. | display: block; | ||
padding: 10px 14px; | |||
color: #333333 !important; | |||
border- | text-decoration: none !important; | ||
border-bottom: 1px solid #f0f0f5; | |||
font-size: 13px; | |||
transition: var(--transition-smooth); | |||
} | } | ||
. | .floating-menu-items a:hover { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
padding-left: 18px; | |||
color: #FF6A00 !important; | |||
} | } | ||
.floating-menu-items a.reading-now { | |||
. | background: rgba(255, 106, 0, 0.1); | ||
color: # | color: #FF6A00 !important; | ||
font-weight: bold; | |||
border-left: 3px solid #FF6A00; | |||
} | } | ||
/* | /* Floating Menu Toggle Trigger (Mobile) */ | ||
. | .floating-menu-toggle { | ||
background: # | position: fixed !important; | ||
color: | bottom: 25px !important; | ||
left: 25px !important; | |||
z-index: 9999 !important; | |||
background: #2c3e50; | |||
color: #ffffff; | |||
width: 45px; | |||
height: 45px; | |||
display: none; /* JS toggles visibility */ | |||
align-items: center; | |||
justify-content: center; | |||
border-radius: 50%; | |||
cursor: pointer; | cursor: pointer; | ||
transition: background- | box-shadow: var(--shadow-md); | ||
font-size: 20px; | |||
} | |||
/* Back To Top Layout Configuration */ | |||
.back-to-top-fixed { | |||
position: fixed !important; | |||
bottom: 25px !important; | |||
right: 25px !important; | |||
z-index: 9998 !important; | |||
} | |||
.back-to-top-fixed a { | |||
display: block; | |||
padding: 11px 16px; | |||
background: #2e7d32; | |||
color: #ffffff !important; | |||
font-weight: 700; | |||
font-size: 13px; | |||
text-decoration: none !important; | |||
border-radius: var(--radius-sm); | |||
box-shadow: var(--shadow-sm); | |||
transition: var(--transition-smooth); | |||
} | |||
.back-to-top-fixed a:hover { | |||
background: #1b5e20; | |||
transform: translateY(-2px); | |||
box-shadow: var(--shadow-md); | |||
} | |||
@media (max-width: 768px) { | |||
.floating-menu-toggle { display: flex; } | |||
} | |||
/* Collapsible Toggle Action for the Floating Menu */ | |||
.floating-menu.collapsed { | |||
max-height: 42px !important; /* Matches the header height exactly */ | |||
} | |||
.floating-menu.collapsed .floating-menu-items { | |||
opacity: 0; | |||
pointer-events: none; | |||
} | } | ||
. | .floating-menu.collapsed .floating-menu-header .arrow { | ||
transform: rotate(-90deg); | |||
} | } | ||
.floating-menu-header .arrow { | |||
. | display: inline-block; | ||
transition: transform 0.2s ease; | |||
margin-left: 8px; | |||
font-size: 10px; | |||
font-size: | |||
} | } | ||
. | /* ========================================================================== | ||
09. ULTRA RESPONSIVE MEDIA QUERIES | |||
========================================================================== */ | |||
@media (max-width: 1200px) { | |||
.floating-menu { min-width: 170px; } | |||
} | } | ||
@media (max-width: 768px) { | |||
@media | .ragnawiki-grid, .ragnawiki-nav-grid { | ||
. | grid-template-columns: 1fr; | ||
} | } | ||
.floating-menu { | |||
left: -240px; | |||
top: 15px; | |||
width: 210px; | |||
max-height: 75vh; | |||
overflow-y: auto; | |||
} | } | ||
.floating-menu.mobile-visible { left: 15px; } | |||
.drag-handle { display: none; } | |||
.back-to-top-fixed a { width: 48px; height: 48px; } | |||
.mw-collapsible .ragnawiki-card-header { padding: 14px 20px !important; font-size: 15px !important; } | |||
.mw-collapsible-content { padding: 16px !important; } | |||
} | } | ||
@media (max-width: 600px) { | |||
.ragna-ribbon { min-width: 120px; font-size: 11px; padding: 8px 16px; } | |||
.ragnawiki-hero-title { font-size: 24px; } | |||
} | } | ||
Latest revision as of 23:53, 24 June 2026
/* ==========================================================================
00. DESIGN TOKENS & SYSTEM VARIABLES
Allows site-wide theme tweaks instantly from one central location.
========================================================================== */
:root {
/* Brand Gradients & Accents */
--ragna-grad-primary: linear-gradient(135deg, #ff6a00 0%, #f4b400 30%, #d93800 100%);
--ragna-grad-accent: linear-gradient(135deg, #af011c, #d93800);
--ragna-gold-text: #ffd700;
/* Layout Variables */
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
--shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
--shadow-lg: 0 12px 32px rgba(255, 106, 0, 0.15);
--transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
/* Global Semantic Colors */
--bg-card-dark: #1e2a36;
--border-light: rgba(0, 0, 0, 0.06);
}
/* ==========================================================================
01. BASE ELEMENTS & TYPOGRAPHY CLEANUP
========================================================================== */
h2, h3 {
overflow: visible !important;
padding-top: 14px;
margin-bottom: 12px;
clear: both;
font-family: system-ui, -apple-system, sans-serif;
}
code {
transition: var(--transition-smooth);
cursor: pointer;
background-color: rgba(0, 0, 0, 0.05);
padding: 2px 6px;
border-radius: var(--radius-sm);
}
code:hover {
filter: brightness(1.15);
}
/* ==========================================================================
02. COMPONENT HERO & CONTAINERS
========================================================================== */
.ragnawiki-hero {
background: var(--ragna-grad-primary);
color: #ffffff;
padding: 30px 25px;
border-radius: var(--radius-lg);
text-align: center;
margin: 20px 0;
box-shadow: var(--shadow-md);
position: relative;
overflow: hidden;
}
.ragnawiki-hero-title {
font-size: 30px;
font-weight: 800;
margin-bottom: 8px;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
letter-spacing: -0.5px;
}
.ragnawiki-hero-subtitle {
font-size: 16px;
opacity: 0.95;
margin-bottom: 0;
}
/*
ENHANCEMENT: Switched to CSS Grid.
Prevents dynamic flexing issues where elements stretch unevenly.
*/
.ragnawiki-grid,
.ragnawiki-nav-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin: 25px 0;
}
/* ==========================================================================
03. CARDS & PANELS
========================================================================== */
.ragnawiki-card,
.ragnawiki-nav-card {
background: #ffffff;
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: var(--transition-smooth);
border: 1px solid var(--border-light);
}
.ragnawiki-card:hover,
.ragnawiki-nav-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
.ragnawiki-card-header,
.ragnawiki-nav-header {
color: #ffffff;
padding: 14px 18px;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.3px;
}
.ragnawiki-card-content {
padding: 18px;
}
/* ==========================================================================
04. TABLES & DATA LISTS
========================================================================== */
.ragnawiki-list,
.ragnawiki-nav-table {
width: 100%;
border-collapse: collapse;
border: none;
}
.ragnawiki-list tr td,
.ragnawiki-nav-table tr td {
padding: 10px 12px;
border-bottom: 1px solid #f0f0f5;
vertical-align: middle;
font-size: 13px;
}
.ragnawiki-list tr:last-child td,
.ragnawiki-nav-table tr:last-child td {
border-bottom: none;
}
.ragnawiki-nav-table tr:nth-child(odd) td {
background: rgba(240, 248, 255, 0.4);
}
.ragnawiki-nav-table tr:nth-child(even) td {
background: #ffffff;
}
.ragna-value {
font-weight: 700;
}
/* Modernized Global Wikipedia Tables to harmonize with your theme */
.wikitable {
border-collapse: collapse;
width: 100%;
margin: 20px 0;
background: #ffffff;
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-light);
}
.wikitable th {
background: linear-gradient(135deg, #667eea, #764ba2);
color: #ffffff;
padding: 14px 12px;
font-weight: 700;
font-size: 14px;
}
.wikitable td {
padding: 12px 10px;
border-bottom: 1px solid #f0f0f5;
font-size: 13px;
}
.wikitable tr:nth-child(even) {
background: rgba(240, 248, 255, 0.4);
}
/* ==========================================================================
05. ALERT BOXES, RIBBONS, HOVER WRAPPERS
========================================================================== */
.ragnawiki-tip-box, .tip-box,
.ragnawiki-warning-box {
padding: 14px 16px;
border-radius: var(--radius-sm);
font-size: 13px;
margin: 12px 0;
border-left: 4px solid;
transition: var(--transition-smooth);
}
.ragnawiki-tip-box, .tip-box {
background: #fff5f5;
border-left-color: #b22222;
color: #801010;
}
.ragnawiki-warning-box {
background: #fffbeb;
border-left-color: #f39c12;
color: #8a5100;
}
.ragnawiki-tip-box:hover, .tip-box:hover, .ragnawiki-warning-box:hover {
transform: translateX(4px);
}
/* Universal Clean Hover Interactions for Content Modules */
.hero-section, .quick-overview > div, .info-card,
.command-examples > div, .example-box, .command-section > div,
.examples-grid > div, .item-types-grid > div {
transition: var(--transition-smooth);
}
.hero-section:hover, .quick-overview > div:hover, .info-card:hover,
.command-examples > div:hover, .command-section > div:hover, .examples-grid > div:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md);
}
.example-box:hover {
transform: translateX(6px);
box-shadow: var(--shadow-sm);
}
.item-types-grid > div:hover {
transform: scale(1.03);
}
/* Ribbons Layout */
.ragna-ribbon-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
margin: 25px 0;
}
.ragna-ribbon {
background: #2c3e50;
color: var(--ragna-gold-text);
padding: 10px 24px;
font-weight: 700;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
clip-path: polygon(94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%, 6% 0);
border-top: 2px solid var(--ragna-gold-text);
border-bottom: 2px solid var(--ragna-gold-text);
transition: var(--transition-smooth);
}
.ragna-ribbon:hover {
transform: translateY(-2px) scale(1.03);
background: #34495e;
color: #ffffff;
}
/* ==========================================================================
6. FIX: USER-FRIENDLY COLLAPSIBLE DESIGN
========================================================================== */
.mw-collapsible {
display: block !important;
width: 100% !important;
margin-bottom: 15px !important;
background: transparent !important;
overflow: hidden;
border: none !important;
box-shadow: none !important;
}
/* Style the text toggle link nicely so users see it clearly */
.mw-collapsible-toggle {
display: inline-block !important;
float: none !important;
text-align: left !important;
margin-bottom: 12px;
padding: 6px 14px !important;
background: #f1f3f5;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 6px;
font-size: 13px !important;
font-weight: 600;
color: #FF6A00 !important;
cursor: pointer !important;
transition: all 0.2s ease;
}
.mw-collapsible-toggle:hover {
background: #FF6A00;
color: #ffffff !important;
border-color: #FF6A00;
text-decoration: none !important;
}
.mw-collapsible-content {
padding: 5px 0 !important;
background: transparent !important;
box-shadow: none !important;
}
/* ==========================================================================
07. MEDIAWIKI RE-ENGINEERED COLLAPSIBLES
========================================================================== */
.mw-collapsible {
display: block !important;
width: 100% !important;
margin-bottom: 24px !important;
background: #ffffff;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
overflow: hidden;
transition: var(--transition-smooth);
border: 1px solid var(--border-light);
}
.mw-collapsible:hover {
box-shadow: var(--shadow-lg);
}
.mw-collapsible .ragnawiki-card-header {
display: block !important;
width: 100% !important;
padding: 16px 24px !important;
box-sizing: border-box !important;
cursor: pointer !important;
position: relative !important;
font-size: 16px !important;
border-bottom: 2px solid rgba(255, 255, 255, 0.15);
transition: var(--transition-smooth);
}
.mw-collapsible .ragnawiki-card-header:hover {
filter: brightness(1.08);
padding-left: 28px !important;
}
.mw-collapsible .ragnawiki-card-header::after {
content: "▼";
float: right;
font-size: 11px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
background: rgba(0, 0, 0, 0.15);
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.mw-collapsible.expanded .ragnawiki-card-header::after {
transform: rotate(180deg);
}
.mw-collapsible-content {
padding: 24px !important;
background: #fafafb !important;
}
/* Collapsible Content Deep Nesting Fixes */
.mw-collapsible-content .ragnawiki-card {
border: 1px solid var(--border-light);
margin-bottom: 0;
}
.mw-collapsible-content .ragnawiki-card-header {
padding: 12px 16px !important;
font-size: 14px !important;
border-bottom: none !important;
}
.mw-collapsible-content .ragnawiki-card-header::after { display: none !important; }
/* Hide native MediaWiki toggle strings safely */
.mw-collapsible-toggle, .mw-collapsible-toggle-default, .mw-collapsible-text {
display: none !important;
}
/* ==========================================================================
08. COLOR ATTRIBUTE THEMES (COLOR TOKENS)
========================================================================== */
.ragna-blue { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: #ffffff !important; }
.ragna-green { background: linear-gradient(135deg, #2ecc71, #27ae60) !important; color: #ffffff !important; }
.ragna-red { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: #ffffff !important; }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad) !important; color: #ffffff !important; }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; color: #ffffff !important; }
.ragna-teal { background: linear-gradient(135deg, #16a085, #1abc9c) !important; color: #ffffff !important; }
.ragna-pink { background: linear-gradient(135deg, #f48fb1, #f06292) !important; color: #ffffff !important; }
.ragna-cyan { background: linear-gradient(135deg, #00bcd4, #0097a7) !important; color: #ffffff !important; }
.ragna-brown { background: linear-gradient(135deg, #795548, #5d4037) !important; color: #ffffff !important; }
.ragna-dark { background: linear-gradient(135deg, #2c3e50, #34495e) !important; color: #ffffff !important; }
.ragna-gray { background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important; color: #ffffff !important; }
.ragna-gold { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #222222 !important; }
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d) !important; color: #222222 !important; }
.ragna-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #222222 !important; }
/* Apply Text Theme Color Corrections automatically to dark-text variants */
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after { color: #222222 !important; }
/* ==========================================================================
08b. FLOATING MENU & BACK TO TOP BUTTON (DESKTOP CORE)
========================================================================== */
.floating-menu {
position: fixed !important;
z-index: 9999 !important;
background: #ffffff;
border: 1px solid #ced4da;
border-radius: var(--radius-md);
box-shadow: var(--shadow-md);
transition: max-height 0.25s ease, opacity 0.2s ease;
overflow: hidden;
width: 220px;
}
.floating-menu-header {
background: #2c3e50;
color: #ffffff;
padding: 12px;
font-weight: bold;
display: flex;
align-items: center;
cursor: pointer;
}
.floating-menu-items {
max-height: 400px;
overflow-y: auto;
}
.floating-menu-items a {
display: block;
padding: 10px 14px;
color: #333333 !important;
text-decoration: none !important;
border-bottom: 1px solid #f0f0f5;
font-size: 13px;
transition: var(--transition-smooth);
}
.floating-menu-items a:hover {
background: #f8f9fa;
padding-left: 18px;
color: #FF6A00 !important;
}
.floating-menu-items a.reading-now {
background: rgba(255, 106, 0, 0.1);
color: #FF6A00 !important;
font-weight: bold;
border-left: 3px solid #FF6A00;
}
/* Floating Menu Toggle Trigger (Mobile) */
.floating-menu-toggle {
position: fixed !important;
bottom: 25px !important;
left: 25px !important;
z-index: 9999 !important;
background: #2c3e50;
color: #ffffff;
width: 45px;
height: 45px;
display: none; /* JS toggles visibility */
align-items: center;
justify-content: center;
border-radius: 50%;
cursor: pointer;
box-shadow: var(--shadow-md);
font-size: 20px;
}
/* Back To Top Layout Configuration */
.back-to-top-fixed {
position: fixed !important;
bottom: 25px !important;
right: 25px !important;
z-index: 9998 !important;
}
.back-to-top-fixed a {
display: block;
padding: 11px 16px;
background: #2e7d32;
color: #ffffff !important;
font-weight: 700;
font-size: 13px;
text-decoration: none !important;
border-radius: var(--radius-sm);
box-shadow: var(--shadow-sm);
transition: var(--transition-smooth);
}
.back-to-top-fixed a:hover {
background: #1b5e20;
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
.floating-menu-toggle { display: flex; }
}
/* Collapsible Toggle Action for the Floating Menu */
.floating-menu.collapsed {
max-height: 42px !important; /* Matches the header height exactly */
}
.floating-menu.collapsed .floating-menu-items {
opacity: 0;
pointer-events: none;
}
.floating-menu.collapsed .floating-menu-header .arrow {
transform: rotate(-90deg);
}
.floating-menu-header .arrow {
display: inline-block;
transition: transform 0.2s ease;
margin-left: 8px;
font-size: 10px;
}
/* ==========================================================================
09. ULTRA RESPONSIVE MEDIA QUERIES
========================================================================== */
@media (max-width: 1200px) {
.floating-menu { min-width: 170px; }
}
@media (max-width: 768px) {
.ragnawiki-grid, .ragnawiki-nav-grid {
grid-template-columns: 1fr;
}
.floating-menu {
left: -240px;
top: 15px;
width: 210px;
max-height: 75vh;
overflow-y: auto;
}
.floating-menu.mobile-visible { left: 15px; }
.drag-handle { display: none; }
.back-to-top-fixed a { width: 48px; height: 48px; }
.mw-collapsible .ragnawiki-card-header { padding: 14px 20px !important; font-size: 15px !important; }
.mw-collapsible-content { padding: 16px !important; }
}
@media (max-width: 600px) {
.ragna-ribbon { min-width: 120px; font-size: 11px; padding: 8px 16px; }
.ragnawiki-hero-title { font-size: 24px; }
}
