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
  * Based directly on Squadz/mediawiki reference
  * Based on Squadz/mediawiki
  */
  */


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


/* Header styles */
/* Header */
.cs-wiki-header {
.cs-header {
     text-align: center;
     text-align: center;
     padding: 30px 20px;
     padding: 30px 20px;
     margin-bottom: 30px;
     margin-bottom: 30px;
     border-radius: 8px;
     border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}
}


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


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


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


/* Search box */
/* Search */
.cs-wiki-search {
.cs-search {
     max-width: 600px;
     max-width: 600px;
     margin: 0 auto 40px;
     margin: 0 auto 40px;
     padding: 15px;
     padding: 15px;
     border-radius: 8px;
     border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}
}


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


.cs-wiki-section-header {
.cs-section-header {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 15px;
     padding: 15px;
    margin-bottom: 20px;
     border-radius: 8px;
     border-radius: 8px;
     margin-bottom: 20px;
     background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}
}


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


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


/* Category grid */
/* Grid Layout */
.cs-wiki-grid {
.cs-grid {
     display: table;
     display: table;
     width: 100%;
     width: 100%;
Line 76: Line 87:
}
}


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


.cs-wiki-cell {
.cs-cell {
     display: table-cell;
     display: table-cell;
     width: 33.333%;
     width: 33.333%;
Line 86: Line 97:
}
}


/* Card styles */
/* Card Design */
.cs-wiki-card {
.cs-card {
     border-radius: 8px;
     border-radius: 8px;
     overflow: hidden;
     overflow: hidden;
     height: 100%;
     height: 100%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}
}


.cs-wiki-card-header {
.cs-card-header {
     padding: 15px;
     padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
}


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


.cs-wiki-card-content {
.cs-card-body {
     padding: 15px;
     padding: 15px;
    color: #424242;
}
}


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


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


.cs-wiki-card-footer {
.cs-card-footer {
     padding: 12px 15px;
     padding: 12px 15px;
     text-align: right;
     text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}
}


/* Light theme colors */
.cs-card-footer a {
@media screen {
     color: #1976d2;
    .cs-wiki-header {
     text-decoration: none;
        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 */
/* OS night mode */
@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
     .cs-wiki-header {
     .cs-header {
         background-color: #1e1e1e;
         background-color: #1e1e1e;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-title {
     .cs-title {
         color: #e0e0e0;
         color: #e0e0e0;
     }
     }
      
      
     .cs-wiki-subtitle, .cs-wiki-stats {
     .cs-subtitle, .cs-stats {
         color: #b0b0b0;
         color: #b0b0b0;
     }
     }
      
      
     .cs-wiki-search {
     .cs-search {
         background-color: #121212;
         background-color: #121212;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-section-header {
     .cs-section-header {
         background-color: #1e1e1e;
         background-color: #1e1e1e;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-section-title {
     .cs-section-title {
         color: #e0e0e0;
         color: #e0e0e0;
     }
     }
      
      
     .cs-wiki-card {
     .cs-card {
         background-color: #121212;
         background-color: #121212;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-card-header {
     .cs-card-header {
         background-color: #1e1e1e;
         background-color: #1e1e1e;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-card-title {
     .cs-card-title {
         color: #e0e0e0;
         color: #e0e0e0;
     }
     }
      
      
     .cs-wiki-card-content {
     .cs-card-body {
         color: #b0b0b0;
         color: #b0b0b0;
     }
     }
      
      
     .cs-wiki-card-footer {
     .cs-card-footer {
         background-color: #1e1e1e;
         background-color: #1e1e1e;
         border-color: #333333;
         border-color: #333333;
     }
     }
      
      
     .cs-wiki-card-footer a {
     .cs-card-footer a {
         color: #64b5f6;
         color: #64b5f6;
     }
     }
}
}


/* Mobile responsiveness */
/* night mode */
html.skin-theme-clientpref-night .cs-header {
    background-color: #1e1e1e;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-title {
    color: #e0e0e0;
}
 
html.skin-theme-clientpref-night .cs-subtitle,
html.skin-theme-clientpref-night .cs-stats {
    color: #b0b0b0;
}
 
html.skin-theme-clientpref-night .cs-search {
    background-color: #121212;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-section-header {
    background-color: #1e1e1e;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-section-title {
    color: #e0e0e0;
}
 
html.skin-theme-clientpref-night .cs-card {
    background-color: #121212;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-card-header {
    background-color: #1e1e1e;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-card-title {
    color: #e0e0e0;
}
 
html.skin-theme-clientpref-night .cs-card-body {
    color: #b0b0b0;
}
 
html.skin-theme-clientpref-night .cs-card-footer {
    background-color: #1e1e1e;
    border-color: #333333;
}
 
html.skin-theme-clientpref-night .cs-card-footer a {
    color: #64b5f6;
}
 
/* Mobile Responsiveness */
@media screen and (max-width: 800px) {
@media screen and (max-width: 800px) {
     .cs-wiki-grid {
     .cs-grid {
         display: block;
         display: block;
     }
     }
      
      
     .cs-wiki-row {
     .cs-row {
         display: block;
         display: block;
     }
     }
      
      
     .cs-wiki-cell {
     .cs-cell {
         display: block;
         display: block;
         width: 100%;
         width: 100%;

Revision as of 18:34, 10 August 2025

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

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

/* Header */
.cs-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

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

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

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

/* Search */
.cs-search {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

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

.cs-section-header {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

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

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

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

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

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

/* Card Design */
.cs-card {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.cs-card-header {
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

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

.cs-card-body {
    padding: 15px;
    color: #424242;
}

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

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

.cs-card-footer {
    padding: 12px 15px;
    text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.cs-card-footer a {
    color: #1976d2;
    text-decoration: none;
}

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

/* night mode */
html.skin-theme-clientpref-night .cs-header {
    background-color: #1e1e1e;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-title {
    color: #e0e0e0;
}

html.skin-theme-clientpref-night .cs-subtitle, 
html.skin-theme-clientpref-night .cs-stats {
    color: #b0b0b0;
}

html.skin-theme-clientpref-night .cs-search {
    background-color: #121212;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-section-header {
    background-color: #1e1e1e;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-section-title {
    color: #e0e0e0;
}

html.skin-theme-clientpref-night .cs-card {
    background-color: #121212;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-card-header {
    background-color: #1e1e1e;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-card-title {
    color: #e0e0e0;
}

html.skin-theme-clientpref-night .cs-card-body {
    color: #b0b0b0;
}

html.skin-theme-clientpref-night .cs-card-footer {
    background-color: #1e1e1e;
    border-color: #333333;
}

html.skin-theme-clientpref-night .cs-card-footer a {
    color: #64b5f6;
}

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