Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main Page/styles.css

Template page
Revision as of 18:19, 10 August 2025 by Fred (talk | contribs)
/**
 * ComputerScience.wiki - Simple MediaWiki Compatible Stylesheet
 * No CSS variables, just direct styling that works in MediaWiki
 */

/* Main container */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header section */
.cs-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cs-title {
    font-size: 2.2em;
    margin: 0;
    color: #1a202c;
    font-weight: 700;
}

.cs-subtitle {
    font-size: 1.2em;
    margin: 15px 0 0;
    font-weight: normal;
    color: #4a5568;
}

.cs-stats {
    font-size: 0.95em;
    margin-top: 20px;
    color: #4a5568;
}

/* Search bar */
.cs-search {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Section styling */
.cs-section {
    margin-bottom: 40px;
}

.cs-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cs-section-icon {
    margin-right: 15px;
    font-size: 1.4em;
}

.cs-section-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    color: #1a202c;
}

/* Category grid */
.cs-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 15px 0;
    margin: 0 -15px;
}

.cs-row {
    display: table-row;
}

.cs-card {
    display: table-cell;
    width: 33.333%;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    vertical-align: top;
}

.cs-card-header {
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.cs-card-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a202c;
}

.cs-card-body {
    padding: 20px;
}

.cs-card-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-type: disc;
}

.cs-card-list li {
    margin-bottom: 10px;
    color: #1a202c;
}

.cs-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8f9fa;
    text-align: right;
}

.cs-card-footer a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.cs-card-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media screen and (max-width: 800px) {
    .cs-grid {
        display: block;
    }
    
    .cs-row {
        display: block;
        margin-bottom: 15px;
    }
    
    .cs-card {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Dark mode compatibility */
.skin-dark .cs-header,
.skin-dark .cs-section-header,
.skin-dark .cs-card-header,
.skin-dark .cs-card-footer {
    background-color: #2d333b;
}

.skin-dark .cs-card-content {
    background-color: #22272e;
}

.skin-dark .cs-title,
.skin-dark .cs-section-title,
.skin-dark .cs-card-title {
    color: #e2e8f0;
}

.skin-dark .cs-subtitle,
.skin-dark .cs-stats,
.skin-dark .cs-card-list li {
    color: #a0aec0;
}

.skin-dark .cs-header,
.skin-dark .cs-section-header,
.skin-dark .cs-card,
.skin-dark .cs-card-header,
.skin-dark .cs-card-footer,
.skin-dark .cs-search {
    border-color: #444c56;
}

.skin-dark .cs-card-footer a {
    color: #63b3ed;
}