MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* --- Global Styles for the new structure --- */
/* Ragnawiki Styles */
.ragnawiki-homepage-v2 {
.ragnawiki-hero {
     max-width: 1200px;
    background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 100%);
     margin: 0 auto;
    color: white;
     padding: 10px;
    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;
}
}


/* --- Hero Section Styling --- */
.ragnawiki-hero-title {
.main-hero {
     font-size: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2c3e50; /* Darker background for contrast */
    color: #ecf0f1; /* Light text */
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero-title {
     font-size: 2.5em;
     font-weight: bold;
     font-weight: bold;
     margin-bottom: 5px;
     margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
}
.hero-subtitle {
 
     font-size: 1.2em;
.ragnawiki-hero-subtitle {
     opacity: 0.8;
     font-size: 16px;
}
     opacity: 0.95;
.hero-image {
     margin-bottom: 15px;
     line-height: 0; /* Prevents extra space below the image */
}
}


/* --- Info Grid (Server & Rates) Styling --- */
.ragnawiki-grid {
.info-grid-compact {
     display: flex;
     display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns for server, rates, and notes */
     gap: 20px;
     gap: 20px;
     margin-bottom: 30px;
     margin: 25px 0;
    flex-wrap: wrap;
}
}


.stat-card {
.ragnawiki-card {
     background: #ffffff;
     background: white;
     border: 1px solid #e0e0e0;
     border-radius: 10px;
     border-radius: 8px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
     overflow: hidden;
     overflow: hidden;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
     flex: 1;
    min-width: 300px;
}
}


.card-header {
.ragnawiki-card-header {
    background: #3498db; /* Blue header */
     color: white;
     color: white;
    padding: 12px 15px;
     font-weight: bold;
     font-weight: bold;
    padding: 10px 15px;
     font-size: 14px;
     font-size: 1.1em;
    display: flex;
    align-items: center;
}
}
.card-header-icon {
 
    font-size: 1.2em;
.ragna-blue { background: linear-gradient(135deg, #4682B4, #5a96d1); }
     margin-right: 8px;
.ragna-gold { background: linear-gradient(135deg, #DAA520, #e6b800); }
.ragna-light-blue { background: linear-gradient(135deg, #87CEFA, #6ab0f5); }
.ragna-green { background: linear-gradient(135deg, #32CD32, #28a428); }
 
.ragnawiki-card-content {
     padding: 15px;
}
}


.card-content-list {
.ragnawiki-list {
     padding: 10px 15px;
     width: 100%;
    border: none;
}
}
.list-item {
 
    display: flex;
.ragnawiki-list tr td {
    /* Removed justify-content: space-between; as it pushes things too far */
     padding: 8px 5px;
    align-items: center;
     border-bottom: 1px solid #f0f0f0;
     padding: 5px 0;
    vertical-align: middle;
     border-bottom: 1px dashed #f0f0f0;
}
}
.list-item:last-child {
 
.ragnawiki-list tr:last-child td {
     border-bottom: none;
     border-bottom: none;
}
}
.list-icon {
 
    /* Make icon fixed width to prevent it from dictating layout too much */
.ragna-value {
    font-size: 1.1em; /* You might need to adjust this further */
    width: 5px; /* Fixed width for icon container */
    text-align: left; /* Center the icon within its fixed width */
    flex-shrink: 0; /* Don't allow it to shrink */
    margin-right: 2px; /* Slightly less margin */
}
.list-label {
     font-weight: 600;
     font-weight: 600;
    /* Removed flex-grow: 1; to prevent it from pushing the value too far */
    white-space: nowrap; /* Prevent wrapping of the label if possible */
    margin-right: 8px; /* Add some margin between label and value */
}
}
.list-value {
    font-weight: bold;
    flex-shrink: 0;
    margin-left: auto; /* Push the value to the far right */
    text-align: right; /* Align the text to the right within its space */
}


/* Notes specific styling */
.ragnawiki-notes {
.notes-card .card-header {
     margin-top: 5px;
    background: #2ecc71; /* Green header */
}
.card-content-notes ul {
    list-style: disc;
    padding: 10px 25px 15px;
    margin: 0;
}
.card-content-notes li {
     margin-bottom: 5px;
}
}


/* --- Navigation Section Styling --- */
.ragnawiki-tip-box {
.section-heading-v2 {
     background: #fff3f3;
     font-size: 1.8em;
     border-left: 4px solid #b22222;
    color: #2c3e50;
     padding: 12px;
     border-bottom: 2px solid #3498db;
    border-radius: 6px;
     padding-bottom: 5px;
     font-size: 13px;
     margin-bottom: 20px;
}
}


.nav-grid-v2 {
.ragnawiki-nav-grid {
     display: grid;
     display: flex;
     grid-template-columns: repeat(3, 1fr); /* Three columns for navigation categories */
    gap: 15px;
     gap: 20px;
     margin: 25px 0;
     flex-wrap: wrap;
}
}


.nav-category-v2 {
.ragnawiki-nav-card {
     border: 1px solid #bdc3c7;
     background: white;
     border-radius: 8px;
     border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
     overflow: hidden;
     overflow: hidden;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     flex: 1;
    min-width: 250px;
}
}


.category-header {
.ragnawiki-nav-header {
    font-size: 1.3em;
    font-weight: bold;
     color: white;
     color: white;
     padding: 12px 15px;
     padding: 12px 15px;
     /* Base color, will be overridden by category-specific colors */
     font-weight: bold;
     background: #7f8c8d;  
    font-size: 14px;
     text-align: center;
}
}


/* Category-specific colors for visual appeal */
.ragnawiki-nav-content {
.beginners-category .category-header { background: #e67e22; } /* Orange/Beginner */
    padding: 0;
.features-category .category-header { background: #9b59b6; } /* Purple/Features */
}
.guides-category .category-header { background: #3498db; } /* Blue/Guides */


.category-links {
.ragnawiki-nav-table {
     padding: 5px 0;
     width: 100%;
    border: none;
    border-collapse: collapse;
}
}


/* Styling for the container of the MediaWiki link */
.ragnawiki-nav-table tr td {
.nav-link-v2 {
     padding: 15px 6px;
    display: flex;
     border-bottom: 1px solid #e1e8ed;
    align-items: center;
     vertical-align: middle;
     padding: 8px 15px;
    transition: background-color 0.2s;
     border-left: 5px solid transparent;
     cursor: pointer;
}
}


/* Hover styles for the container */
.ragnawiki-nav-table tr:nth-child(odd) td {
.nav-link-v2:hover {
     background: rgba(240, 248, 255, 0.7);
     background-color: #f7f9fb;
    border-left-color: #3498db;
}
}


/* CRITICAL: Style the link (<a>) generated by MediaWiki inside the container */
.ragnawiki-nav-table tr:nth-child(even) td {
/* This targets the 'a' tag that MediaWiki wraps around the content of the 'nav-text' span */
     background: rgba(255, 255, 255, 0.9);
.nav-link-v2 .nav-text a {
    text-decoration: none;
    color: inherit; /* Inherit color from the container/text */
    font-weight: 500;
     /* Ensure the link itself expands to fill available space for clicks */
    display: block;
    width: 100%;
}
}


.nav-icon {
.ragnawiki-nav-table tr:last-child td {
    font-size: 1.2em;
     border-bottom: none;
    margin-right: 10px;
    width: 24px; /* Ensure icons align */
    text-align: center;
     flex-shrink: 0; /* Prevents icons from shrinking */
}
}
.nav-text {
 
     flex-grow: 1; /* Allow the text area to expand */
/* Responsive design */
@media (max-width: 768px) {
    .ragnawiki-grid,
    .ragnawiki-nav-grid {
        flex-direction: column;
    }
   
     .ragnawiki-card,
    .ragnawiki-nav-card {
        min-width: auto;
    }
}
}
.nav-addon-tdb {
 
     background-color: #e74c3c;
/* Additional color classes for Stats page */
.ragna-orange { background: linear-gradient(135deg, #ff9800, #f57c00); }
.ragna-red { background: linear-gradient(135deg, #f44336, #d32f2f); }
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d); }
.ragna-purple { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.ragna-brown { background: linear-gradient(135deg, #795548, #5d4037); }
.ragna-pink { background: linear-gradient(135deg, #f48fb1, #f06292); }
 
/* Additional color classes for VIP page */
.ragna-gold { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #8b6914; }
 
/* Additional color classes for Episode page */
.ragna-dark { background: linear-gradient(135deg, #34495e, #2c3e50); }
 
/* Table improvements */
.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;
     color: white;
    font-size: 0.75em;
     padding: 12px 8px;
     padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
     font-weight: bold;
     font-weight: bold;
     vertical-align: middle;
     font-size: 14px;
}
 
.wikitable td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
 
.wikitable tr:nth-child(even) {
    background: rgba(240, 248, 255, 0.7);
}
 
.wikitable tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}
}


/* --- Color Utility Classes --- */
/* Additional troubleshooting-specific styles */
.text-primary { color: #3498db; }
.ragna-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.text-success { color: #2ecc71; }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.text-danger { color: #e74c3c; }
.ragna-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.text-warning { color: #f39c12; }
.ragna-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.text-purple { color: #9b59b6; }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.text-muted { color: #95a5a6; }
 
/* Additional color classes for Illusion quests */
.ragna-teal { background: linear-gradient(135deg, #16a085, #1abc9c); }

Latest revision as of 20:08, 2 October 2025

/* Ragnawiki Styles */
.ragnawiki-hero {
    background: linear-gradient(135deg, #2c5e9e 0%, #1e3a5f 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;
    margin-bottom: 15px;
}

.ragnawiki-grid {
    display: flex;
    gap: 20px;
    margin: 25px 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;
}

.ragnawiki-card-header {
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 14px;
}

.ragna-blue { background: linear-gradient(135deg, #4682B4, #5a96d1); }
.ragna-gold { background: linear-gradient(135deg, #DAA520, #e6b800); }
.ragna-light-blue { background: linear-gradient(135deg, #87CEFA, #6ab0f5); }
.ragna-green { background: linear-gradient(135deg, #32CD32, #28a428); }

.ragnawiki-card-content {
    padding: 15px;
}

.ragnawiki-list {
    width: 100%;
    border: none;
}

.ragnawiki-list tr td {
    padding: 8px 5px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ragnawiki-list tr:last-child td {
    border-bottom: none;
}

.ragna-value {
    font-weight: 600;
}

.ragnawiki-notes {
    margin-top: 5px;
}

.ragnawiki-tip-box {
    background: #fff3f3;
    border-left: 4px solid #b22222;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
}

.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;
}

.ragnawiki-nav-header {
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.ragnawiki-nav-content {
    padding: 0;
}

.ragnawiki-nav-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}

.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;
}

/* Responsive design */
@media (max-width: 768px) {
    .ragnawiki-grid,
    .ragnawiki-nav-grid {
        flex-direction: column;
    }
    
    .ragnawiki-card,
    .ragnawiki-nav-card {
        min-width: auto;
    }
}

/* Additional color classes for Stats page */
.ragna-orange { background: linear-gradient(135deg, #ff9800, #f57c00); }
.ragna-red { background: linear-gradient(135deg, #f44336, #d32f2f); }
.ragna-yellow { background: linear-gradient(135deg, #ffeb3b, #fbc02d); }
.ragna-purple { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }
.ragna-brown { background: linear-gradient(135deg, #795548, #5d4037); }
.ragna-pink { background: linear-gradient(135deg, #f48fb1, #f06292); }

/* Additional color classes for VIP page */
.ragna-gold { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #8b6914; }

/* Additional color classes for Episode page */
.ragna-dark { background: linear-gradient(135deg, #34495e, #2c3e50); }

/* Table improvements */
.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;
    font-size: 14px;
}

.wikitable td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.wikitable tr:nth-child(even) {
    background: rgba(240, 248, 255, 0.7);
}

.wikitable tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

/* Additional troubleshooting-specific styles */
.ragna-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ragna-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.ragna-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.ragna-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.ragna-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }

/* Additional color classes for Illusion quests */
.ragna-teal { background: linear-gradient(135deg, #16a085, #1abc9c); }