MediaWiki:Common.css

From Ragnafied Wiki
Revision as of 20:54, 30 September 2025 by Putotine (RID-12) (talk | contribs)

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