MediaWiki:Common.css: Difference between revisions
From Ragnafied Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* =========================================== */ | |||
/* 1. MEDIAWIKI & GLOBAL OVERRIDES */ | |||
/* =========================================== */ | |||
h2, h3 { | h2, h3 { | ||
overflow: visible !important; | |||
overflow: visible !important; | |||
padding-top: 10px; | padding-top: 10px; | ||
clear: both; | clear: both; | ||
} | } | ||
/* =========================================== */ | /* =========================================== */ | ||
/* 2. ITEM PAGE STYLES (FROM IMAGE) */ | |||
/* | |||
/* =========================================== */ | /* =========================================== */ | ||
.mw-parser-output b { | |||
display: inline-block; | |||
margin-top: 10px; | |||
. | margin-bottom: 5px; | ||
margin | |||
margin-bottom: | |||
} | } | ||
.mw-parser-output ul { | |||
list-style-type: disc; | |||
. | margin-left: 20px; | ||
margin-bottom: 15px; | margin-bottom: 15px; | ||
line-height: 1.6; | |||
} | } | ||
.mw-parser-output li { | |||
margin-bottom: 4px; | |||
. | font-size: 13.5px; | ||
margin: | |||
} | } | ||
/* Metadata footer (Type, Defense, etc.) */ | |||
.mw-parser-output p:last-child { | |||
color: #666; | |||
font-size: 12px; | |||
margin-top: 15px; | |||
color: | |||
font-size: | |||
margin-top: | |||
} | } | ||
/* =========================================== */ | /* =========================================== */ | ||
/* 3. NAVIGATION & CARDS */ | |||
/* | |||
/* =========================================== */ | /* =========================================== */ | ||
.ragnawiki-nav-grid { | .ragnawiki-nav-grid { | ||
display: flex; gap: 15px; margin: 25px 0; flex-wrap: wrap; | |||
display: flex; | |||
} | } | ||
.ragnawiki-card, .ragnawiki-nav-card { | |||
background: white; border-radius: 10px; | |||
.ragnawiki-nav-card { | |||
background: white; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | box-shadow: 0 2px 8px rgba(0,0,0,0.1); | ||
overflow: hidden; flex: 1; min-width: 250px; | |||
overflow: hidden; | |||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
} | } | ||
.ragnawiki-card-header, .ragnawiki-nav-header { | |||
color: white; padding: 12px 15px; | |||
. | font-weight: bold; font-size: 14px; text-align: center; | ||
. | |||
color: white; | |||
font-weight: bold; | |||
} | } | ||
/* Quick Nav Table Structure */ | |||
.ragnawiki-nav-table { width: 100%; border-collapse: collapse !important; } | |||
.ragnawiki-nav-table tr td { padding: 15px 6px; border-bottom: 1px solid #e1e8ed; } | |||
.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. PREFERRED COLLAPSIBLE STYLE (UPDATED) */ | |||
/* | |||
/* =========================================== */ | /* =========================================== */ | ||
.mw-collapsible { | .mw-collapsible { | ||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin-bottom: 20px !important; | |||
margin-bottom: | |||
background: white; | background: white; | ||
border-radius: 10px; | border-radius: 10px; | ||
overflow: hidden; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.1); | box-shadow: 0 2px 8px rgba(0,0,0,0.1); | ||
} | } | ||
/* Style the headers as the clickable area */ | |||
.mw-collapsible .ragnawiki-card-header, | |||
.mw-collapsible .ragnawiki-nav-header { | |||
cursor: pointer; | |||
position: relative; | |||
/* Style headers | |||
.mw-collapsible .ragnawiki-card-header | |||
.mw-collapsible | |||
padding: 15px 20px !important; | padding: 15px 20px !important; | ||
user-select: none; | user-select: none; | ||
} | } | ||
/* Clean Toggle Arrow */ | |||
.mw-collapsible .ragnawiki-card-header::after, | |||
/* | .mw-collapsible .ragnawiki-nav-header::after { | ||
.mw-collapsible .ragnawiki-card-header | |||
.mw-collapsible | |||
content: "▼"; | content: "▼"; | ||
float: right; | float: right; | ||
font-size: 12px; | font-size: 12px; | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
color: rgba(255,255,255,0.8); | |||
color: rgba(255,255,255,0. | |||
} | } | ||
/* Rotation logic */ | |||
.mw-collapsible:not(.mw-collapsed) .ragnawiki-card-header::after, | |||
/* | .mw-collapsible:not(.mw-collapsed) .ragnawiki-nav-header::after { | ||
.mw-collapsible:not(.mw-collapsed) .ragnawiki-card-header | |||
.mw-collapsible:not(.mw-collapsed) | |||
transform: rotate(180deg); | transform: rotate(180deg); | ||
} | } | ||
/* Dark arrow for light headers */ | |||
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after { | |||
/* | color: #333 !important; | ||
. | |||
. | |||
. | |||
} | } | ||
.mw-collapsible-content { | .mw-collapsible-content { | ||
padding: 20px !important; | padding: 20px !important; | ||
background: white !important; | background: white !important; | ||
border-top: 1px solid rgba(0,0,0,0.05); | border-top: 1px solid rgba(0,0,0,0.05); | ||
} | } | ||
/* Hide default MW toggle text */ | |||
.mw-collapsible-toggle { display: none !important; } | |||
/* =========================================== */ | |||
/* | /* 5. FLOATING UI ELEMENTS */ | ||
/* =========================================== */ | |||
. | .floating-menu { | ||
position: fixed; right: 20px; top: 50%; transform: translateY(-50%); | |||
background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); | |||
min-width: 180px; z-index: 9998; border: 1px solid #eee; overflow: hidden; | |||
} | } | ||
.floating-menu-header { | |||
background: linear-gradient(135deg, #AF011C, #D93800); | |||
color: white; padding: 12px 15px; font-weight: bold; cursor: pointer; | |||
. | |||
} | } | ||
.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; font-weight: bold; | |||
. | text-decoration: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3); | ||
border: 3px solid white; transition: all 0.3s ease; | |||
} | } | ||
/* =========================================== */ | /* =========================================== */ | ||
/* 6. COLOR GRADIENTS */ | |||
/* | |||
/* =========================================== */ | /* =========================================== */ | ||
.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-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; } | |||
.ragna-gold { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #333 !important; } | |||
.ragna-dark { background: linear-gradient(135deg, #2c3e50, #34495e) !important; } | |||
} | |||
. | |||
} | |||
. | |||
} | |||
. | |||
} | |||
. | |||
} | |||
Revision as of 13:58, 21 February 2026
/* =========================================== */
/* 1. MEDIAWIKI & GLOBAL OVERRIDES */
/* =========================================== */
h2, h3 {
overflow: visible !important;
padding-top: 10px;
clear: both;
}
/* =========================================== */
/* 2. ITEM PAGE STYLES (FROM IMAGE) */
/* =========================================== */
.mw-parser-output b {
display: inline-block;
margin-top: 10px;
margin-bottom: 5px;
}
.mw-parser-output ul {
list-style-type: disc;
margin-left: 20px;
margin-bottom: 15px;
line-height: 1.6;
}
.mw-parser-output li {
margin-bottom: 4px;
font-size: 13.5px;
}
/* Metadata footer (Type, Defense, etc.) */
.mw-parser-output p:last-child {
color: #666;
font-size: 12px;
margin-top: 15px;
}
/* =========================================== */
/* 3. NAVIGATION & CARDS */
/* =========================================== */
.ragnawiki-nav-grid {
display: flex; gap: 15px; margin: 25px 0; flex-wrap: wrap;
}
.ragnawiki-card, .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-card-header, .ragnawiki-nav-header {
color: white; padding: 12px 15px;
font-weight: bold; font-size: 14px; text-align: center;
}
/* Quick Nav Table Structure */
.ragnawiki-nav-table { width: 100%; border-collapse: collapse !important; }
.ragnawiki-nav-table tr td { padding: 15px 6px; border-bottom: 1px solid #e1e8ed; }
.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. PREFERRED COLLAPSIBLE STYLE (UPDATED) */
/* =========================================== */
.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);
}
/* Style the headers as the clickable area */
.mw-collapsible .ragnawiki-card-header,
.mw-collapsible .ragnawiki-nav-header {
cursor: pointer;
position: relative;
padding: 15px 20px !important;
user-select: none;
}
/* Clean Toggle Arrow */
.mw-collapsible .ragnawiki-card-header::after,
.mw-collapsible .ragnawiki-nav-header::after {
content: "▼";
float: right;
font-size: 12px;
transition: transform 0.3s ease;
color: rgba(255,255,255,0.8);
}
/* Rotation logic */
.mw-collapsible:not(.mw-collapsed) .ragnawiki-card-header::after,
.mw-collapsible:not(.mw-collapsed) .ragnawiki-nav-header::after {
transform: rotate(180deg);
}
/* Dark arrow for light headers */
.ragna-gold::after, .ragna-yellow::after, .ragna-silver::after {
color: #333 !important;
}
.mw-collapsible-content {
padding: 20px !important;
background: white !important;
border-top: 1px solid rgba(0,0,0,0.05);
}
/* Hide default MW toggle text */
.mw-collapsible-toggle { display: none !important; }
/* =========================================== */
/* 5. FLOATING UI ELEMENTS */
/* =========================================== */
.floating-menu {
position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
min-width: 180px; z-index: 9998; border: 1px solid #eee; overflow: hidden;
}
.floating-menu-header {
background: linear-gradient(135deg, #AF011C, #D93800);
color: white; padding: 12px 15px; font-weight: bold; cursor: pointer;
}
.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; font-weight: bold;
text-decoration: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
border: 3px solid white; transition: all 0.3s ease;
}
/* =========================================== */
/* 6. COLOR GRADIENTS */
/* =========================================== */
.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-orange { background: linear-gradient(135deg, #e67e22, #d35400) !important; }
.ragna-gold { background: linear-gradient(135deg, #ffd700, #f1c40f) !important; color: #333 !important; }
.ragna-dark { background: linear-gradient(135deg, #2c3e50, #34495e) !important; }
