MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
Line 1: Line 1:
/*
/* --- Global Styles for the new structure --- */
* RagnaWiki Modern CSS - FINAL CLEANED VERSION
.ragnawiki-homepage-v2 {
* This is the complete stylesheet with all fixes and high-priority rules applied.
*/
 
/* --- GLOBAL CONTAINER & COLORS --- */
.ragnawiki-modern {
     max-width: 1200px;
     max-width: 1200px;
     margin: 20px auto;
     margin: 0 auto;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
     padding: 10px;
    line-height: 1.5;
}
}


/* Color Utilities */
/* --- Hero Section Styling --- */
.text-primary { color: #3498db !important; font-weight: 700; } /* Blue */
.main-hero {
.text-success { color: #2ecc71 !important; font-weight: 700; } /* Green */
    display: flex;
.text-danger { color: #e74c3c !important; font-weight: 700; } /* Red */
    justify-content: space-between;
.text-warning { color: #f39c12 !important; font-weight: 700; } /* Orange */
    align-items: center;
.text-purple { color: #9b59b6 !important; font-weight: 700; } /* Purple */
    padding: 20px 30px;
.text-muted { color: #7f8c8d !important; font-weight: 700; } /* Gray/Muted */
     background: #2c3e50; /* Darker background for contrast */
 
     color: #ecf0f1; /* Light text */
/* --- HERO SECTION --- */
     border-radius: 8px;
.wiki-hero {
     margin-bottom: 25px;
     background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); /* Dark Blue Gradient */
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     color: white;
     text-align: center;
    padding: 30px 20px;
     margin-bottom: 30px;
    border-radius: 12px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
}
.wiki-hero-title {
.hero-title {
     font-size: 2.8em;
     font-size: 2.5em;
     font-weight: 900;
     font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
     margin-bottom: 5px;
     margin-bottom: 5px;
}
}
.wiki-hero-subtitle {
.hero-subtitle {
     font-size: 1.3em;
     font-size: 1.2em;
    font-style: italic;
     opacity: 0.8;
     opacity: 0.85;
    margin-bottom: 20px;
}
}
.hero-image img {
.hero-image {
     border-radius: 50%;
     line-height: 0; /* Prevents extra space below the image */
    border: 6px solid #2ecc71; /* Green Accent Border */
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    transition: transform 0.3s ease;
}
}
.hero-image img:hover {
    transform: scale(1.05);
}


/* --- INFO & NAVIGATION GRIDS --- */
/* --- Info Grid (Server & Rates) Styling --- */
.info-grid, .nav-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-bottom: 30px;
    align-items: stretch;
}
}


/* Info Cards */
.stat-card {
.info-card {
     background: #ffffff;
     flex: 1;
     border: 1px solid #e0e0e0;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     padding: 0;
     overflow: hidden;
     overflow: hidden;
     background-color: white;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
}
.card-header {
.card-header {
     font-size: 1.3em;
     background: #3498db; /* Blue header */
    font-weight: 700;
     color: white;
     color: white;
     padding: 12px 15px;
    font-weight: bold;
     text-align: left;
     padding: 10px 15px;
     font-size: 1.1em;
    display: flex;
    align-items: center;
}
}
.server-card .card-header { background-color: #3498db; }
.card-header-icon {
.rates-card .card-header { background-color: #e67e22; }
    font-size: 1.2em;
 
     margin-right: 8px;
.card-content {
    padding: 15px;
     flex-grow: 1;
}
}


/* ------------------------------------------------ */
.card-content-list {
/* --- COMPACT LIST STYLE (FINAL, FIXED ALIGNMENT) --- */
     padding: 10px 15px;
/* ------------------------------------------------ */
 
.compact-list {
     /* Uses vertical flex for reliable stacking and alignment */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 15px !important;
}
}
 
.list-item {
.list-row {
     display: flex;
    /* Uses Flexbox for horizontal alignment */
     justify-content: space-between;
     display: flex !important;
     align-items: center;
     align-items: center !important; /* Vertically center all content */
     padding: 5px 0;
     justify-content: space-between !important; /* Push the label/icon left and the value right */
     border-bottom: 1px dashed #f0f0f0;
     padding: 8px 0 !important;
     border-bottom: 1px dashed #ecf0f1 !important;
    font-size: 1em !important;
}
}
.list-row:last-child {
.list-item:last-child {
     border-bottom: none !important;
     border-bottom: none;
}
}
.list-icon {
.list-icon {
    /* **CRITICAL FIX**: Resetting all box model properties to prevent the white box. */
     font-size: 1.1em;
    width: auto !important;
     margin-right: 10px;
    height: auto !important;
     flex-shrink: 0;
    min-width: 1em !important; /* Ensure it's at least the size of the font */
    display: inline-block !important;
    box-sizing: content-box !important; /* Standard box model */
   
    /* Remove any background/border forcing a box */
    padding: 0 !important;
    border: none !important;
    background: none !important;
   
     font-size: 1.1em !important;
     margin-right: 12px !important; /* Space between icon and label */
     flex-shrink: 0 !important;
}
}
.list-label {
.list-label {
     flex-grow: 1 !important;
     font-weight: 600;
     white-space: nowrap !important;
     flex-grow: 1;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 500 !important;
}
}
.list-value {
.list-value {
     flex-shrink: 0 !important;
     font-weight: bold;
     text-align: right !important;
     flex-shrink: 0;
     margin-left: 15px !important;
     margin-left: 10px;
}
}


 
/* Notes specific styling */
/* --- Notes Box Style (kept consistent) --- */
.notes-card .card-header {
.notes-box {
     background: #2ecc71; /* Green header */
    border: 2px solid #f39c12;
    border-radius: 6px;
     background-color: #fffaf0;
    margin-top: 15px;
    overflow: hidden;
}
}
.notes-title {
.card-content-notes ul {
    font-weight: 700;
    background-color: #f39c12;
    color: white;
    padding: 8px 10px;
    font-size: 1em;
}
.notes-content {
    padding: 10px;
    font-size: 0.95em;
}
.notes-content ul {
     list-style: disc;
     list-style: disc;
    padding: 10px 25px 15px;
     margin: 0;
     margin: 0;
     padding-left: 20px;
}
.card-content-notes li {
     margin-bottom: 5px;
}
}


 
/* --- Navigation Section Styling --- */
/* --- QUICK NAVIGATION --- */
.section-heading-v2 {
.section-title {
     font-size: 1.8em;
     font-size: 1.8em;
    font-weight: 700;
     color: #2c3e50;
     color: #2c3e50;
     padding: 10px 0;
     border-bottom: 2px solid #3498db;
     margin: 20px 0 15px 0;
     padding-bottom: 5px;
     border-bottom: 3px solid #3498db;
     margin-bottom: 20px;
}
}


.nav-card {
.nav-grid-v2 {
     flex: 1;
     display: grid;
     border: 1px solid #e0e0e0;
    grid-template-columns: repeat(3, 1fr); /* Three columns for navigation categories */
    gap: 20px;
}
 
.nav-category-v2 {
     border: 1px solid #bdc3c7;
     border-radius: 8px;
     border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     overflow: hidden;
     background-color: white;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
}
.nav-header {
 
     font-size: 1.2em;
.category-header {
     font-weight: 700;
     font-size: 1.3em;
     font-weight: bold;
     color: white;
     color: white;
     padding: 10px 12px;
     padding: 12px 15px;
     text-align: center;
     /* Base color, will be overridden by category-specific colors */
    background: #7f8c8d;  
}
}
.beginners-nav .nav-header { background-color: #2ecc71; } /* Green */
.features-nav .nav-header { background-color: #e74c3c; } /* Red */
.guides-nav .nav-header { background-color: #9b59b6; } /* Purple */


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


.nav-item {
a.nav-link-v2 {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 8px 0;
     padding: 8px 15px;
     border-bottom: 1px dashed #f0f0f0;
    text-decoration: none;
    color: #34495e; /* Darker link text */
    font-weight: 500;
    transition: background-color 0.2s;
     border-left: 5px solid transparent;
}
}
.nav-item:last-child {
a.nav-link-v2:hover {
     border-bottom: none;
    background-color: #f7f9fb;
     border-left-color: #3498db;
    color: #2c3e50;
}
}
.nav-icon {
.nav-icon {
     /* Base style for navigation icons */
     font-size: 1.2em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
     margin-right: 10px;
     margin-right: 10px;
     flex-shrink: 0;
     width: 24px; /* Ensure icons align */
    border-radius: 3px;
     text-align: center;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
}
/* External Icon (Background Image) Styles */
.nav-icon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.icon-external-ragna { background-image: url('https://ragnafied.net/themes/simple/img/logo.png'); }
.icon-external-greed { background-image: url('https://irowiki.org/w/images/0/04/Greed.png'); }
.icon-external-longing { background-image: url('https://irowiki.org/w/images/e/e5/Longing_for_Freedom.png'); }
.icon-external-vip { background-image: url('https://irowiki.org/w/images/0/0b/I_MystAmp.png'); }
.icon-external-smith { background-image: url('https://irowiki.org/w/images/2/20/Smith_Axe.png'); }
.icon-external-4thjob { background-image: url('https://static.divine-pride.net/images/skill/5201.png'); }
.icon-external-exceed { background-image: url('https://irowiki.org/w/images/a/ae/I_Exceed_Break.png'); }
.icon-external-guard { background-image: url('https://irowiki.org/w/images/f/f3/I_Guard.png'); }
.icon-external-trouble { background-image: url('https://muhro.eu/flux/data/items/icons/100381.png'); }
.icon-external-illusion { background-image: url('https://static.divine-pride.net/images/items/item/25723.png'); }
.icon-external-sage { background-image: url('https://irowiki.org/images/db/item/1000103.png'); }
.icon-external-prayer { background-image: url('https://irowiki.org/images/db/item/1000405.png'); }
.icon-external-issgard { background-image: url('https://irowiki.org/images/db/item/1000608.png'); }
.icon-external-immortal { background-image: url('https://muhro.eu/flux/data/items/icons/1001217.png'); }
.nav-text {
.nav-text {
     flex-grow: 1;
     flex-grow: 1;
    font-weight: 500;
}
}
.nav-text a {
.nav-addon-tdb {
     text-decoration: none;
     background-color: #e74c3c;
    color: #34495e;
     color: white;
    transition: color 0.2s;
     font-size: 0.75em;
}
     padding: 2px 6px;
.nav-text a:hover {
     border-radius: 3px;
     color: #3498db;
    text-decoration: underline;
}
.nav-addon { /* For the TDB tag */
     font-size: 0.8em;
     color: #e74c3c;
     font-weight: 700;
     margin-left: 8px;
     margin-left: 8px;
     padding: 2px 5px;
     font-weight: bold;
    border: 1px solid #e74c3c;
     vertical-align: middle;
     border-radius: 3px;
}
}


/* --- RESPONSIVE DESIGN (FOR PHONES/SMALL TABLETS) --- */
/* --- Color Utility Classes --- */
@media screen and (max-width: 768px) {
.text-primary { color: #3498db; }
    .ragnawiki-modern {
.text-success { color: #2ecc71; }
        margin: 10px;
.text-danger { color: #e74c3c; }
    }
.text-warning { color: #f39c12; }
    .info-grid, .nav-grid {
.text-purple { color: #9b59b6; }
        flex-direction: column; /* Stack cards vertically */
.text-muted { color: #95a5a6; }
        gap: 15px;
    }
    .info-card, .nav-card {
        flex: none; /* Disable flex growth */
        width: 100%;
    }
    .wiki-hero-title {
        font-size: 2em;
    }
    .compact-list {
        /* Restore vertical flex for single column view on small screens */
        display: flex;
        flex-direction: column;
    }
}

Revision as of 20:54, 30 September 2025

/* --- Global Styles for the new structure --- */
.ragnawiki-homepage-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* --- Hero Section Styling --- */
.main-hero {
    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;
    margin-bottom: 5px;
}
.hero-subtitle {
    font-size: 1.2em;
    opacity: 0.8;
}
.hero-image {
    line-height: 0; /* Prevents extra space below the image */
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: #3498db; /* Blue header */
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}
.card-header-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.card-content-list {
    padding: 10px 15px;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.list-item:last-child {
    border-bottom: none;
}
.list-icon {
    font-size: 1.1em;
    margin-right: 10px;
    flex-shrink: 0;
}
.list-label {
    font-weight: 600;
    flex-grow: 1;
}
.list-value {
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Notes specific styling */
.notes-card .card-header {
    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 --- */
.section-heading-v2 {
    font-size: 1.8em;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

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

.nav-category-v2 {
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.category-links {
    padding: 5px 0;
}

a.nav-link-v2 {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: #34495e; /* Darker link text */
    font-weight: 500;
    transition: background-color 0.2s;
    border-left: 5px solid transparent;
}
a.nav-link-v2:hover {
    background-color: #f7f9fb;
    border-left-color: #3498db;
    color: #2c3e50;
}

.nav-icon {
    font-size: 1.2em;
    margin-right: 10px;
    width: 24px; /* Ensure icons align */
    text-align: center;
}
.nav-text {
    flex-grow: 1;
}
.nav-addon-tdb {
    background-color: #e74c3c;
    color: white;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: bold;
    vertical-align: middle;
}

/* --- Color Utility Classes --- */
.text-primary { color: #3498db; }
.text-success { color: #2ecc71; }
.text-danger { color: #e74c3c; }
.text-warning { color: #f39c12; }
.text-purple { color: #9b59b6; }
.text-muted { color: #95a5a6; }