MediaWiki:Common.css: Difference between revisions

From Ragnafied Wiki
No edit summary
No edit summary
Line 79: Line 79:
     font-size: 1.1em; /* You might need to adjust this further */
     font-size: 1.1em; /* You might need to adjust this further */
     width: 5px; /* Fixed width for icon container */
     width: 5px; /* Fixed width for icon container */
     text-align: center; /* Center the icon within its fixed width */
     text-align: left; /* Center the icon within its fixed width */
     flex-shrink: 0; /* Don't allow it to shrink */
     flex-shrink: 0; /* Don't allow it to shrink */
     margin-right: 8px; /* Slightly less margin */
     margin-right: 2px; /* Slightly less margin */
}
}
.list-label {
.list-label {

Revision as of 21:00, 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;
    /* Removed justify-content: space-between; as it pushes things too far */
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.list-item:last-child {
    border-bottom: none;
}
.list-icon {
    /* Make icon fixed width to prevent it from dictating layout too much */
    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;
    /* 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 */
.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;
}

/* Styling for the container of the MediaWiki link */
.nav-link-v2 {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    transition: background-color 0.2s;
    border-left: 5px solid transparent;
    cursor: pointer;
}

/* Hover styles for the container */
.nav-link-v2:hover {
    background-color: #f7f9fb;
    border-left-color: #3498db;
}

/* CRITICAL: Style the link (<a>) generated by MediaWiki inside the container */
/* This targets the 'a' tag that MediaWiki wraps around the content of the 'nav-text' span */
.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 {
    font-size: 1.2em;
    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 */
}
.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; }