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-homepage-v2 { | |||
.ragnawiki- | |||
max-width: 1200px; | max-width: 1200px; | ||
margin: | 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; | |||
background: | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); | ||
color: | |||
margin-bottom: | |||
box-shadow: 0 | |||
} | } | ||
. | .hero-title { | ||
font-size: 2. | font-size: 2.5em; | ||
font-weight: | font-weight: bold; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
} | } | ||
. | .hero-subtitle { | ||
font-size: 1. | font-size: 1.2em; | ||
opacity: 0.8; | |||
opacity: 0. | |||
} | } | ||
.hero-image | .hero-image { | ||
line-height: 0; /* Prevents extra space below the image */ | |||
} | } | ||
/* --- | /* --- Info Grid (Server & Rates) Styling --- */ | ||
.info-grid | .info-grid-compact { | ||
display: | 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; | ||
} | } | ||
.stat-card { | |||
. | background: #ffffff; | ||
border: 1px solid #e0e0e0; | border: 1px solid #e0e0e0; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 0; | |||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); | |||
} | } | ||
.card-header { | .card-header { | ||
background: #3498db; /* Blue header */ | |||
color: white; | color: white; | ||
padding: | 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 { | |||
.list- | display: flex; | ||
justify-content: space-between; | |||
display: flex | align-items: center; | ||
padding: 5px 0; | |||
border-bottom: 1px dashed #f0f0f0; | |||
padding: | |||
border-bottom: 1px dashed # | |||
} | } | ||
.list- | .list-item:last-child { | ||
border-bottom: none | border-bottom: none; | ||
} | } | ||
.list-icon { | .list-icon { | ||
font-size: 1.1em; | |||
margin-right: 10px; | |||
flex-shrink: 0; | |||
font-size: 1.1em | |||
margin-right: | |||
flex-shrink: 0 | |||
} | } | ||
.list-label { | .list-label { | ||
font-weight: 600; | |||
flex-grow: 1; | |||
} | } | ||
.list-value { | .list-value { | ||
font-weight: bold; | |||
flex-shrink: 0; | |||
margin-left: | margin-left: 10px; | ||
} | } | ||
/* Notes specific styling */ | |||
/* | .notes-card .card-header { | ||
.notes- | background: #2ecc71; /* Green header */ | ||
background | |||
} | } | ||
. | .card-content-notes ul { | ||
list-style: disc; | list-style: disc; | ||
padding: 10px 25px 15px; | |||
margin: 0; | margin: 0; | ||
} | |||
.card-content-notes li { | |||
margin-bottom: 5px; | |||
} | } | ||
/* --- Navigation Section Styling --- */ | |||
/* --- | .section-heading-v2 { | ||
.section- | |||
font-size: 1.8em; | font-size: 1.8em; | ||
color: #2c3e50; | color: #2c3e50; | ||
border-bottom: 2px solid #3498db; | |||
padding-bottom: 5px; | |||
margin-bottom: 20px; | |||
} | } | ||
.nav- | .nav-grid-v2 { | ||
display: grid; | |||
border: 1px solid # | 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; | ||
overflow: hidden; | overflow: hidden; | ||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | |||
} | } | ||
. | |||
font-size: 1. | .category-header { | ||
font-weight: | font-size: 1.3em; | ||
font-weight: bold; | |||
color: white; | color: white; | ||
padding: | padding: 12px 15px; | ||
/* Base color, will be overridden by category-specific colors */ | |||
background: #7f8c8d; | |||
} | } | ||
. | /* Category-specific colors for visual appeal */ | ||
padding: | .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- | a.nav-link-v2 { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
padding: 8px 0; | padding: 8px 15px; | ||
border- | text-decoration: none; | ||
color: #34495e; /* Darker link text */ | |||
font-weight: 500; | |||
transition: background-color 0.2s; | |||
border-left: 5px solid transparent; | |||
} | } | ||
.nav- | a.nav-link-v2:hover { | ||
border- | background-color: #f7f9fb; | ||
border-left-color: #3498db; | |||
color: #2c3e50; | |||
} | } | ||
.nav-icon { | .nav-icon { | ||
font-size: 1.2em; | |||
margin-right: 10px; | margin-right: 10px; | ||
width: 24px; /* Ensure icons align */ | |||
text-align: center; | |||
} | } | ||
.nav-text { | .nav-text { | ||
flex-grow: 1; | flex-grow: 1; | ||
} | } | ||
.nav- | .nav-addon-tdb { | ||
background-color: #e74c3c; | |||
color: white; | |||
font-size: 0.75em; | |||
padding: 2px 6px; | |||
border-radius: 3px; | |||
color: | |||
font-size: 0. | |||
margin-left: 8px; | 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; } | |||
} | |||
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; }
