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.
/* ===== MEDIAWIKI COMMON.CSS ENHANCEMENTS ===== */ /* Last updated: 2024 - CLEANED VERSION */ /* === Improved Tables === */ .wikitable { border-collapse: collapse; border-spacing: 0; width: 100%; margin: 1em 0; background: white; border: 1px solid #a2a9b1; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .wikitable th { background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%); color: white; font-weight: 600; text-align: center; padding: 12px 8px; border-bottom: 2px solid #1e3a5f; font-size: 14px; } .wikitable td { padding: 10px 8px; border: 1px solid #ddd; vertical-align: top; } .wikitable tr:nth-child(even) { background-color: #f8f9fa; } .wikitable tr:nth-child(odd) { background-color: #ffffff; } .wikitable tr:hover { background-color: #e3f2fd; transition: background-color 0.2s ease; } /* === Enhanced Navigation === */ #toc { background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 6px; padding: 15px; margin: 1em 0; } .tocnumber { color: #2c5e9e; font-weight: bold; } /* === Better Links === */ a { color: #0645ad; text-decoration: none; transition: color 0.2s ease; } a:hover { color: #0b0080; text-decoration: underline; } a:visited { color: #0b0080; } a.new { color: #c20; } /* === Content Improvements === */ #content { line-height: 1.6; color: #202122; } #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { color: #2c5e9e; border-bottom: 1px solid #a2a9b1; padding-bottom: 0.3em; margin-top: 1.5em; } #content h1 { border-bottom: 2px solid #2c5e9e; } /* === Code Blocks === */ pre, code { background: #f8f9fa; border: 1px solid #eaecf0; border-radius: 4px; padding: 2px 4px; font-family: monospace; } pre { padding: 12px; overflow-x: auto; } /* === Infoboxes and Special Elements === */ .infobox { background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 6px; padding: 15px; margin: 1em 0; } .navbox { background: #f8f9fa; border: 1px solid #a2a9b1; border-radius: 4px; padding: 5px; } /* === Custom Header Colors === */ .mw-headline { color: #2c5e9e; } /* === Button Improvements === */ .mw-ui-button { background: #2c5e9e; color: white; border: none; border-radius: 4px; padding: 8px 16px; cursor: pointer; transition: background-color 0.2s ease; } .mw-ui-button:hover { background: #1e3a5f; } /* === Form Elements === */ .mw-input, textarea { border: 1px solid #a2a9b1; border-radius: 4px; padding: 8px; font-size: 14px; } .mw-input:focus, textarea:focus { border-color: #2c5e9e; outline: none; box-shadow: 0 0 0 2px rgba(44, 94, 158, 0.2); } /* === Logo Replacement === */ #p-logo a { background-image: url('https://wiki.ragnafied.net/images/e/ee/Ragnawikilogo.png') !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: transparent !important; display: block !important; min-width: 135px !important; min-height: 135px !important; transition: all 0.3s ease !important; } #p-logo a:hover { opacity: 0.8 !important; transform: scale(1.05) !important; } #p-logo a img { opacity: 0 !important; width: 135px !important; height: 135px !important; } /* === Modern Card System (UNIFIED) === */ .wiki-header-container, .quick-nav-container, .about-container, .guide-container, .accounts-container, .autoloot-container { max-width: 1200px; margin: 0 auto; padding: 20px; } .info-card, .nav-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; margin-bottom: 25px; } .nav-card { height: 100%; } .info-card:hover, .nav-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); } .card-header, .nav-header { padding: 18px 25px; color: white; font-weight: 600; font-size: 20px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .card-content, .nav-content { padding: 25px; line-height: 1.6; } .nav-content { padding: 0; } /* === Table Systems === */ .modern-table, .nav-table { border-radius: 8px !important; overflow: hidden !important; border: none !important; background: transparent !important; } .modern-table tr:hover td { background: rgba(240, 247, 255, 0.7) !important; } .nav-table tr:hover td { background: rgba(240, 247, 255, 0.8) !important; transform: translateX(2px); transition: all 0.2s ease; } /* Hide URL text in nav tables */ .nav-table td:first-child { font-size: 0; } /* === List Systems === */ .modern-list { list-style: none; padding: 0; margin: 0; } .list-item { display: flex; align-items: flex-start; margin-bottom: 15px; padding: 15px; background: rgba(255, 255, 255, 0.7); border-radius: 8px; border: 1px solid #e1e8ed; transition: all 0.3s ease; } .list-item:hover { background: rgba(240, 247, 255, 0.9); transform: translateX(5px); } .list-icon { background: linear-gradient(135deg, #2c5e9e, #1e3a5f); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 15px; flex-shrink: 0; } .list-content { flex: 1; } /* === Special Elements === */ .notes-box { transition: transform 0.2s ease; } .notes-box:hover { transform: scale(1.02); } .tip-box { border-left: 4px solid; } /* === Code & Examples === */ code { background: #2c5e9e; color: white; padding: 4px 8px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 14px; } .command-examples code, .command-grid code, .examples-grid code { font-family: 'Courier New', monospace; font-size: 14px; } .example-box { font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.4; } /* === Hover Effects === */ .quick-overview > div { transition: transform 0.3s ease, box-shadow 0.3s ease; } .quick-overview > div:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); } .command-examples > div, .examples-grid > div { transition: transform 0.2s ease; } .command-examples > div:hover, .examples-grid > div:hover { transform: scale(1.02); } /* === RESPONSIVE DESIGN (UNIFIED) === */ @media (max-width: 768px) { .wikitable { font-size: 14px; display: block; overflow-x: auto; white-space: nowrap; } #content { padding: 10px; } .wikitable th, .wikitable td { padding: 8px 6px; } /* Grid layouts */ .drops-grid, .quick-overview, .item-types-grid { grid-template-columns: 1fr !important; } .command-grid, .examples-grid, .accounts-container .info-card .card-content > div { grid-template-columns: 1fr !important; gap: 15px !important; } /* Lists */ .list-item { flex-direction: column; text-align: center; } .list-icon { margin-right: 0; margin-bottom: 10px; } } /* === Print Styles === */ @media print { .wikitable { box-shadow: none; border: 1px solid #000; } a { color: #000; text-decoration: underline; } } /* Stats Page Specific Styling */ .stats-container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin: 25px 0; } .stat-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); } .stat-header { padding: 16px 20px; color: white; font-weight: 600; font-size: 18px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .stat-content { padding: 20px; } .stat-list { list-style: none; padding: 0; margin: 0; } .stat-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; position: relative; padding-left: 20px; } .stat-list li:last-child { border-bottom: none; } .stat-list li:before { content: "•"; color: #2c5e9e; font-weight: bold; position: absolute; left: 0; } .stat-list li.negative:before { content: "⛔"; color: #e74c3c; } /* Substats Grid */ .substats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin: 25px 0; } .substat-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; } .substat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.1); } .substat-header { padding: 14px 18px; color: white; font-weight: 600; font-size: 16px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .substat-content { padding: 18px; } .substat-list { list-style: none; padding: 0; margin: 0; font-size: 14px; } .substat-list li { padding: 6px 0; border-bottom: 1px solid #f8f9fa; position: relative; padding-left: 18px; } .substat-list li:last-child { border-bottom: none; } .substat-list li:before { content: "•"; color: #2c5e9e; font-weight: bold; position: absolute; left: 0; } /* Trait Stats Grid */ .trait-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 25px 0; } .trait-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; } .trait-card:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.1); } .trait-header { padding: 14px 18px; color: white; font-weight: 600; font-size: 16px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .trait-content { padding: 18px; } .trait-list { list-style: none; padding: 0; margin: 0; font-size: 14px; } .trait-list li { padding: 6px 0; border-bottom: 1px solid #f8f9fa; position: relative; padding-left: 18px; } .trait-list li:last-child { border-bottom: none; } .trait-list li:before { content: "•"; color: #2c5e9e; font-weight: bold; position: absolute; left: 0; } /* Status Breakdown Grid */ .status-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; margin: 25px 0; } .status-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; } .status-card:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(0,0,0,0.1); } .status-header { padding: 14px 18px; color: white; font-weight: 600; font-size: 16px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .status-content { padding: 18px; font-size: 14px; line-height: 1.5; } .note-box { font-size: 12px; } /* Responsive Design */ @media (max-width: 768px) { .stats-grid, .substats-grid, .trait-stats-grid, .status-breakdown-grid { grid-template-columns: 1fr; } .stats-container { padding: 10px; } } /* VIP Features Styling */ .vip-container { max-width: 1000px; margin: 0 auto; padding: 20px; } /* Comparison Section */ .vip-comparison-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; margin: 25px 0; border: 1px solid #e1e8ed; } .comparison-header { padding: 20px; color: white; font-weight: 600; font-size: 20px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .comparison-content { padding: 0; } .comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; } .plan-card { padding: 25px; height: 100%; } .free-plan { background: linear-gradient(135deg, #f8f9fa, #e9ecef); border-right: 2px dashed #dee2e6; } .vip-plan { background: linear-gradient(135deg, #fffaf0, #fff5e6); } .plan-header { padding: 15px; color: white; font-weight: 600; font-size: 18px; text-align: center; border-radius: 8px; margin-bottom: 20px; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .plan-content { height: calc(100% - 70px); } .feature-list { list-style: none; padding: 0; margin: 0; } .feature-item { display: flex; align-items: flex-start; margin-bottom: 20px; padding: 15px; background: rgba(255,255,255,0.7); border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); } .feature-icon { font-size: 20px; margin-right: 12px; flex-shrink: 0; } .feature-text { flex: 1; font-size: 14px; line-height: 1.4; } /* Feature Grid */ .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; } .feature-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e1e8ed; } .feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); } .feature-icon-large { font-size: 40px; margin-bottom: 15px; } .feature-title { font-weight: 600; font-size: 18px; color: #2c5e9e; margin-bottom: 10px; } .feature-description { font-size: 14px; color: #666; line-height: 1.5; } /* Benefits Section */ .benefits-section { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; margin: 30px 0; border: 1px solid #e1e8ed; } .benefits-header { padding: 20px; color: white; font-weight: 600; font-size: 20px; text-align: center; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); } .benefits-content { padding: 25px; } .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .benefit-item { display: flex; align-items: center; padding: 15px; background: rgba(39, 174, 96, 0.1); border-radius: 8px; border-left: 4px solid #27ae60; } .benefit-icon { font-size: 24px; margin-right: 15px; flex-shrink: 0; } .benefit-text { flex: 1; font-size: 14px; line-height: 1.4; } /* CTA Section */ .vip-cta { transition: transform 0.3s ease, box-shadow 0.3s ease; } .vip-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3); } .vip-cta a { transition: all 0.3s ease; } .vip-cta a:hover { background: #8e44ad !important; color: white !important; transform: scale(1.05); } /* Responsive Design */ @media (max-width: 768px) { .comparison-grid { grid-template-columns: 1fr; } .free-plan { border-right: none; border-bottom: 2px dashed #dee2e6; } .feature-grid { grid-template-columns: 1fr; } .benefits-grid { grid-template-columns: 1fr; } .vip-container { padding: 10px; } .feature-item { flex-direction: column; text-align: center; } .feature-icon { margin-right: 0; margin-bottom: 8px; } }