MediaWiki:Common.css: Difference between revisions
From Ragnafied Wiki
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
/* MediaWiki Core Overrides */ | /* MediaWiki Core Overrides */ | ||
/* =========================================== */ | /* =========================================== */ | ||
h2, h3 { | h2, h3 { | ||
overflow: visible !important; | overflow: visible !important; | ||
| Line 10: | Line 9: | ||
/* =========================================== */ | /* =========================================== */ | ||
/* | /* Quick Nav Grid & Table Structure (RESTORED) */ | ||
/* =========================================== */ | /* =========================================== */ | ||
.ragnawiki-nav-grid { | .ragnawiki-nav-grid { | ||
display: flex; | display: flex; | ||
| Line 56: | Line 18: | ||
} | } | ||
.ragnawiki-nav-card { | |||
background: white; | background: white; | ||
border-radius: 10px; | border-radius: 10px; | ||
| Line 62: | Line 24: | ||
overflow: hidden; | overflow: hidden; | ||
flex: 1; | flex: 1; | ||
min-width: 250px; | min-width: 250px; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
} | } | ||
.ragnawiki-nav-card:hover { | |||
transform: translateY(-5px); | transform: translateY(-5px); | ||
box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2); | box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2); | ||
} | } | ||
.ragnawiki-nav-header { | |||
color: white; | color: white; | ||
padding: 12px 15px; | padding: 12px 15px; | ||
| Line 77: | Line 39: | ||
font-size: 14px; | font-size: 14px; | ||
text-align: center; | text-align: center; | ||
} | |||
.ragnawiki-nav-content { | |||
padding: 0; /* Nav tables usually need 0 padding for full-bleed look */ | |||
} | } | ||
| Line 82: | Line 48: | ||
width: 100%; | width: 100%; | ||
border: none; | border: none; | ||
border-collapse: collapse; | border-collapse: collapse !important; | ||
} | } | ||
| Line 91: | Line 57: | ||
} | } | ||
.ragnawiki-nav-table tr:nth-child(odd) td { | .ragnawiki-nav-table tr:nth-child(odd) td { | ||
background: rgba(240, 248, 255, 0.7); | background: rgba(240, 248, 255, 0.7); | ||
| Line 100: | Line 65: | ||
} | } | ||
.ragnawiki-nav-table tr:last-child td { | |||
border-bottom: none; | |||
} | |||
. | |||
/* =========================================== */ | /* =========================================== */ | ||
/* Back to Top Button ( | /* Back to Top Button (RESTORED CIRCLE) */ | ||
/* =========================================== */ | /* =========================================== */ | ||
.back-to-top-fixed { | .back-to-top-fixed { | ||
position: fixed; | position: fixed; | ||
| Line 131: | Line 82: | ||
background: linear-gradient(135deg, #FF6A00, #D93800); | background: linear-gradient(135deg, #FF6A00, #D93800); | ||
color: white !important; | color: white !important; | ||
width: 60px; | width: 60px !important; | ||
height: 60px; | height: 60px !important; | ||
border-radius: 50%; | border-radius: 50% !important; | ||
display: flex; | display: flex !important; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
| Line 151: | Line 102: | ||
/* =========================================== */ | /* =========================================== */ | ||
/* | /* General Card & Hero 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); | |||
} | } | ||
. | .ragnawiki-card { | ||
background: | 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-header { | |||
color: white; | |||
padding: 12px 15px; | |||
font-weight: bold; | |||
} | } | ||
/* =========================================== */ | /* =========================================== */ | ||
/* | /* 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-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #333 !important; } | |||
/* =========================================== */ | |||
/* Collapsible Design */ | |||
/* =========================================== */ | |||
.mw-collapsible { | .mw-collapsible { | ||
margin-bottom: 20px !important; | margin-bottom: 20px !important; | ||
| Line 183: | Line 151: | ||
} | } | ||
.mw-collapsible-toggle { | .mw-collapsible-toggle { | ||
float: none !important; | float: none !important; | ||
display: block !important; | display: block !important; | ||
text-decoration: none !important; | |||
} | } | ||
| Line 198: | Line 166: | ||
} | } | ||
.mw-collapsible .mw-collapsible-toggle::after { | .mw-collapsible .mw-collapsible-toggle::after { | ||
content: "▼"; | content: "▼"; | ||
| Line 213: | Line 180: | ||
padding: 20px !important; | padding: 20px !important; | ||
background: white; | background: white; | ||
border-top: 1px solid | border-top: 1px solid #f0f0f0; | ||
} | } | ||
/* =========================================== */ | /* =========================================== */ | ||
/* | /* Boxes & UI Extras */ | ||
/* =========================================== */ | /* =========================================== */ | ||
.ragnawiki-tip-box { background: #fff3f3; border-left: 4px solid #b22222; padding: 12px; border-radius: 6px; } | |||
.ragnawiki-warning-box { background: #fff3cd; border-left: 4px solid #f39c12; padding: 12px; border-radius: 6px; } | |||
.ragna-ribbon { | |||
background: #2c3e50; color: #FFD700; padding: 10px 25px; font-weight: bold; | |||
clip-path: polygon(92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%, 8% 0); | |||
} | } | ||
Revision as of 13:42, 21 February 2026
/* =========================================== */
/* MediaWiki Core Overrides */
/* =========================================== */
h2, h3 {
overflow: visible !important;
padding-top: 10px;
clear: both;
}
/* =========================================== */
/* Quick Nav Grid & Table Structure (RESTORED) */
/* =========================================== */
.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-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(255, 106, 0, 0.2);
}
.ragnawiki-nav-header {
color: white;
padding: 12px 15px;
font-weight: bold;
font-size: 14px;
text-align: center;
}
.ragnawiki-nav-content {
padding: 0; /* Nav tables usually need 0 padding for full-bleed look */
}
.ragnawiki-nav-table {
width: 100%;
border: none;
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);
}
.ragnawiki-nav-table tr:last-child td {
border-bottom: none;
}
/* =========================================== */
/* Back to Top Button (RESTORED 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;
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;
}
.back-to-top-fixed a:hover {
background: linear-gradient(135deg, #FF7A20, #F4B400);
transform: translateY(-5px) scale(1.1);
box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
/* =========================================== */
/* General Card & Hero 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);
}
.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-header {
color: white;
padding: 12px 15px;
font-weight: bold;
}
/* =========================================== */
/* 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-silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6) !important; color: #333 !important; }
/* =========================================== */
/* Collapsible Design */
/* =========================================== */
.mw-collapsible {
margin-bottom: 20px !important;
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 .ragnawiki-nav-header {
cursor: pointer;
position: relative;
padding: 15px 20px !important;
}
.mw-collapsible .mw-collapsible-toggle::after {
content: "▼";
float: right;
transition: transform 0.3s ease;
color: rgba(255,255,255,0.8);
}
.mw-collapsible:not(.mw-collapsed) .mw-collapsible-toggle::after {
transform: rotate(180deg);
}
.mw-collapsible-content {
padding: 20px !important;
background: white;
border-top: 1px solid #f0f0f0;
}
/* =========================================== */
/* Boxes & UI Extras */
/* =========================================== */
.ragnawiki-tip-box { background: #fff3f3; border-left: 4px solid #b22222; padding: 12px; border-radius: 6px; }
.ragnawiki-warning-box { background: #fff3cd; border-left: 4px solid #f39c12; padding: 12px; border-radius: 6px; }
.ragna-ribbon {
background: #2c3e50; color: #FFD700; padding: 10px 25px; font-weight: bold;
clip-path: polygon(92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%, 8% 0);
}
