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: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
/**
/**
  * ComputerScience.wiki - Main Page Styles
  * ComputerScience.wiki - Main Page Styles
  * Modern, clean design with proper light/dark mode support
  * Based directly on Squadz/mediawiki reference
* Following MediaWiki conventions and best practices
  */
  */


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


/* Header */
/* Header styles */
.mp-header {
.cs-wiki-header {
     text-align: center;
     text-align: center;
     padding: 30px 20px;
     padding: 30px 20px;
Line 20: Line 18:
}
}


.mp-title {
.cs-wiki-title {
     font-size: 2em;
     font-size: 2em;
    font-weight: 700;
     margin: 0;
     margin: 0;
    padding: 0;
}
}


.mp-subtitle {
.cs-wiki-subtitle {
     font-size: 1.1em;
     font-size: 1.1em;
    font-weight: normal;
     margin: 10px 0 0;
     margin: 10px 0 0;
    font-weight: normal;
}
}


.mp-stats {
.cs-wiki-stats {
    margin-top: 15px;
     font-size: 0.9em;
     font-size: 0.9em;
    margin-top: 15px;
}
}


/* Search Box */
/* Search box */
.mp-search {
.cs-wiki-search {
     max-width: 650px;
     max-width: 600px;
     margin: 0 auto 30px;
     margin: 0 auto 40px;
     padding: 15px;
     padding: 15px;
     border-radius: 8px;
     border-radius: 8px;
}
}


/* Section Headers */
/* Section styles */
.mp-section {
.cs-wiki-section {
     margin-bottom: 30px;
     margin-bottom: 30px;
}
}


.mp-section-header {
.cs-wiki-section-header {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 12px 15px;
     padding: 15px;
    border-radius: 8px;
     margin-bottom: 20px;
     margin-bottom: 20px;
    border-radius: 6px;
}
}


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


.mp-section-title {
.cs-wiki-section-title {
    font-size: 1.2em;
     margin: 0;
     margin: 0;
    font-size: 1.3em;
     font-weight: 600;
     font-weight: 600;
}
}


/* Grid Layout */
/* Category grid */
.mp-grid {
.cs-wiki-grid {
    display: table;
     width: 100%;
     width: 100%;
     border-spacing: 15px;
     border-spacing: 10px;
     border-collapse: separate;
     border-collapse: separate;
     margin: -15px;
     margin: 0 -10px;
}
 
.cs-wiki-row {
    display: table-row;
}
}


.mp-cell {
.cs-wiki-cell {
    display: table-cell;
     width: 33.333%;
     width: 33.333%;
    padding: 0;
     vertical-align: top;
     vertical-align: top;
}
}


/* Card Design */
/* Card styles */
.mp-card {
.cs-wiki-card {
     border-radius: 8px;
     border-radius: 8px;
    overflow: hidden;
     height: 100%;
     height: 100%;
    overflow: hidden;
}
}


.mp-card-header {
.cs-wiki-card-header {
     padding: 12px 15px;
     padding: 15px;
}
}


.mp-card-title {
.cs-wiki-card-title {
     margin: 0;
     margin: 0;
     font-size: 1.05em;
     font-size: 1.1em;
     font-weight: 500;
     font-weight: 600;
}
}


.mp-card-body {
.cs-wiki-card-content {
     padding: 15px;
     padding: 15px;
}
}


.mp-card-list {
.cs-wiki-card-list {
     margin: 0;
     margin: 0;
     padding: 0 0 0 20px;
     padding: 0 0 0 20px;
    list-style-position: outside;
}
}


.mp-card-list li {
.cs-wiki-card-list li {
     margin-bottom: 8px;
     margin-bottom: 10px;
}
}


.mp-card-footer {
.cs-wiki-card-footer {
     padding: 10px 15px;
     padding: 12px 15px;
     text-align: right;
     text-align: right;
}
}


/* Light Theme */
/* Light theme colors */
@media screen {
@media screen {
     .mp-header {
     .cs-wiki-header {
         background-color: #f8f9fa;
         background-color: #f5f5f5;
         border: 1px solid #e2e8f0;
         border: 1px solid #e0e0e0;
     }
     }
      
      
     .mp-title {
     .cs-wiki-title {
         color: #1a202c;
         color: #212121;
     }
     }
      
      
     .mp-subtitle, .mp-stats {
     .cs-wiki-subtitle, .cs-wiki-stats {
         color: #4a5568;
         color: #616161;
     }
     }
      
      
     .mp-search {
     .cs-wiki-search {
         background-color: #ffffff;
         background-color: #ffffff;
         border: 1px solid #e2e8f0;
         border: 1px solid #e0e0e0;
     }
     }
      
      
     .mp-section-header {
     .cs-wiki-section-header {
         background-color: #f0f0f0;
         background-color: #f5f5f5;
         border: 1px solid #e2e8f0;
         border: 1px solid #e0e0e0;
     }
     }
      
      
     .mp-section-title {
     .cs-wiki-section-title {
         color: #1a202c;
         color: #212121;
     }
     }
      
      
     .mp-card {
     .cs-wiki-card {
         background-color: #ffffff;
         background-color: #ffffff;
         border: 1px solid #e2e8f0;
         border: 1px solid #e0e0e0;
    }
   
    .mp-card-header, .mp-card-footer {
        background-color: #f8f9fa;
        border-color: #e2e8f0;
    }
   
    .mp-card-header {
        border-bottom: 1px solid #e2e8f0;
     }
     }
      
      
     .mp-card-footer {
     .cs-wiki-card-header {
         border-top: 1px solid #e2e8f0;
        background-color: #f5f5f5;
         border-bottom: 1px solid #e0e0e0;
     }
     }
      
      
     .mp-card-title {
     .cs-wiki-card-title {
         color: #1a202c;
         color: #212121;
     }
     }
      
      
     .mp-card-list li {
     .cs-wiki-card-content {
         color: #1a202c;
         color: #424242;
     }
     }
      
      
     .mp-card-footer a {
     .cs-wiki-card-footer {
         color: #3182ce;
         background-color: #f5f5f5;
        border-top: 1px solid #e0e0e0;
     }
     }
      
      
     .mp-card-footer a:hover {
     .cs-wiki-card-footer a {
         color: #2c5282;
         color: #1976d2;
     }
     }
}
}


/* Dark Theme */
/* Dark theme colors */
@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
     .mp-header {
     .cs-wiki-header {
         background-color: #2d3748;
         background-color: #1e1e1e;
         border-color: #4a5568;
         border-color: #333333;
    }
   
    .mp-title {
        color: #f7fafc;
    }
   
    .mp-subtitle, .mp-stats {
        color: #cbd5e0;
     }
     }
      
      
     .mp-search {
     .cs-wiki-title {
         background-color: #1a202c;
         color: #e0e0e0;
        border-color: #4a5568;
     }
     }
      
      
     .mp-section-header {
     .cs-wiki-subtitle, .cs-wiki-stats {
         background-color: #2d3748;
         color: #b0b0b0;
        border-color: #4a5568;
     }
     }
      
      
     .mp-section-title {
     .cs-wiki-search {
         color: #f7fafc;
         background-color: #121212;
        border-color: #333333;
     }
     }
      
      
     .mp-card {
     .cs-wiki-section-header {
         background-color: #1a202c;
         background-color: #1e1e1e;
         border-color: #4a5568;
         border-color: #333333;
     }
     }
      
      
     .mp-card-header, .mp-card-footer {
     .cs-wiki-section-title {
         background-color: #2d3748;
         color: #e0e0e0;
        border-color: #4a5568;
     }
     }
      
      
     .mp-card-header {
     .cs-wiki-card {
         border-bottom-color: #4a5568;
        background-color: #121212;
         border-color: #333333;
     }
     }
      
      
     .mp-card-footer {
     .cs-wiki-card-header {
         border-top-color: #4a5568;
        background-color: #1e1e1e;
         border-color: #333333;
     }
     }
      
      
     .mp-card-title {
     .cs-wiki-card-title {
         color: #f7fafc;
         color: #e0e0e0;
     }
     }
      
      
     .mp-card-list li {
     .cs-wiki-card-content {
         color: #e2e8f0;
         color: #b0b0b0;
     }
     }
      
      
     .mp-card-footer a {
     .cs-wiki-card-footer {
         color: #90cdf4;
         background-color: #1e1e1e;
        border-color: #333333;
     }
     }
      
      
     .mp-card-footer a:hover {
     .cs-wiki-card-footer a {
         color: #bee3f8;
         color: #64b5f6;
     }
     }
}
}


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

Revision as of 18:27, 10 August 2025

/**
 * ComputerScience.wiki - Main Page Styles
 * Based directly on Squadz/mediawiki reference
 */

/* Main container */
.cs-wiki-container {
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
}

/* Header styles */
.cs-wiki-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.cs-wiki-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.cs-wiki-subtitle {
    font-size: 1.1em;
    font-weight: normal;
    margin: 10px 0 0;
}

.cs-wiki-stats {
    margin-top: 15px;
    font-size: 0.9em;
}

/* Search box */
.cs-wiki-search {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 15px;
    border-radius: 8px;
}

/* Section styles */
.cs-wiki-section {
    margin-bottom: 30px;
}

.cs-wiki-section-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.cs-wiki-section-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

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

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

.cs-wiki-cell {
    display: table-cell;
    width: 33.333%;
    vertical-align: top;
}

/* Card styles */
.cs-wiki-card {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.cs-wiki-card-header {
    padding: 15px;
}

.cs-wiki-card-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.cs-wiki-card-content {
    padding: 15px;
}

.cs-wiki-card-list {
    margin: 0;
    padding: 0 0 0 20px;
}

.cs-wiki-card-list li {
    margin-bottom: 10px;
}

.cs-wiki-card-footer {
    padding: 12px 15px;
    text-align: right;
}

/* Light theme colors */
@media screen {
    .cs-wiki-header {
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
    }
    
    .cs-wiki-title {
        color: #212121;
    }
    
    .cs-wiki-subtitle, .cs-wiki-stats {
        color: #616161;
    }
    
    .cs-wiki-search {
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
    }
    
    .cs-wiki-section-header {
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
    }
    
    .cs-wiki-section-title {
        color: #212121;
    }
    
    .cs-wiki-card {
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
    }
    
    .cs-wiki-card-header {
        background-color: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .cs-wiki-card-title {
        color: #212121;
    }
    
    .cs-wiki-card-content {
        color: #424242;
    }
    
    .cs-wiki-card-footer {
        background-color: #f5f5f5;
        border-top: 1px solid #e0e0e0;
    }
    
    .cs-wiki-card-footer a {
        color: #1976d2;
    }
}

/* Dark theme colors */
@media screen and (prefers-color-scheme: dark) {
    .cs-wiki-header {
        background-color: #1e1e1e;
        border-color: #333333;
    }
    
    .cs-wiki-title {
        color: #e0e0e0;
    }
    
    .cs-wiki-subtitle, .cs-wiki-stats {
        color: #b0b0b0;
    }
    
    .cs-wiki-search {
        background-color: #121212;
        border-color: #333333;
    }
    
    .cs-wiki-section-header {
        background-color: #1e1e1e;
        border-color: #333333;
    }
    
    .cs-wiki-section-title {
        color: #e0e0e0;
    }
    
    .cs-wiki-card {
        background-color: #121212;
        border-color: #333333;
    }
    
    .cs-wiki-card-header {
        background-color: #1e1e1e;
        border-color: #333333;
    }
    
    .cs-wiki-card-title {
        color: #e0e0e0;
    }
    
    .cs-wiki-card-content {
        color: #b0b0b0;
    }
    
    .cs-wiki-card-footer {
        background-color: #1e1e1e;
        border-color: #333333;
    }
    
    .cs-wiki-card-footer a {
        color: #64b5f6;
    }
}

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