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 - Simple MediaWiki Compatible Stylesheet
  * Completely redesigned with symmetric structure and consistent colors
  * No CSS variables, just direct styling that works in MediaWiki
  */
  */


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


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


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


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


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


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


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


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


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


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


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


.mp-category {
.cs-row {
     width: 33.333%;
     display: table-row;
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
}


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


.mp-category-content {
.cs-card-header {
     border: 1px solid #ddd;
     padding: 16px 20px;
    background-color: #fff;
    height: 100%;
}
 
.mp-category-header {
     background-color: #f8f9fa;
     background-color: #f8f9fa;
    padding: 10px 15px;
     border-bottom: 1px solid #e2e8f0;
     border-bottom: 1px solid #ddd;
}
}


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


.mp-category-list {
.cs-card-body {
     padding: 10px 15px;
     padding: 20px;
}
 
.cs-card-list {
     margin: 0;
     margin: 0;
     list-style-position: inside;
    padding: 0 0 0 20px;
     list-style-type: disc;
}
}


.mp-category-list li {
.cs-card-list li {
     padding: 5px 0;
     margin-bottom: 10px;
    color: #1a202c;
}
}


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


/* Dark mode */
.cs-card-footer a {
@media (prefers-color-scheme: dark) {
    color: #3182ce;
     .mp-header,
    text-decoration: none;
     .mp-section-header,
     font-weight: 500;
     .mp-category-header,
     font-size: 0.95em;
     .mp-category-all {
}
         background-color: #2d333b;
 
.cs-card-footer a:hover {
     text-decoration: underline;
}
 
/* Mobile responsiveness */
@media screen and (max-width: 800px) {
     .cs-grid {
         display: block;
     }
     }
      
      
     .mp-header,
     .cs-row {
    .mp-section-header,
        display: block;
    .mp-category-content,
         margin-bottom: 15px;
    .mp-category-header,
    .mp-category-all,
    .mp-search {
         border-color: #444c56;
     }
     }
      
      
     .mp-category-content {
     .cs-card {
         background-color: #22272e;
         display: block;
    }
        width: 100%;
   
         margin-bottom: 15px;
    .mp-search {
         background-color: #22272e;
     }
     }
}
}


/* MediaWiki compatibility */
/* Dark mode compatibility */
.mp-contains-float::after {
.skin-dark .cs-header,
     content: "";
.skin-dark .cs-section-header,
     display: block;
.skin-dark .cs-card-header,
     clear: both;
.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;
}
}

Revision as of 18:19, 10 August 2025

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