|
|
Line 1: |
Line 1: |
| /** | | /* Main Page Styles */ |
| * ComputerScience.wiki - Main Page Styles
| | #mp-topbanner { |
| * With fixed button width and single button
| | background-color: #f8f9fa; |
| */
| | padding: 0.5em; |
| | | margin-bottom: 1em; |
| /* Base container */
| | border-radius: 5px; |
| .cs-container {
| | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| max-width: 1200px; | |
| margin: 0 auto; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | |
| } | | } |
|
| |
|
| /* Header */
| | #mp-welcome { |
| .cs-header { | | font-size: 1.2em; |
| | margin: 0; |
| text-align: center; | | text-align: center; |
| padding: 30px 20px;
| |
| margin-bottom: 30px;
| |
| border-radius: 8px;
| |
| background-color: #f9f9f9;
| |
| border: 1px solid #ddd;
| |
| } | | } |
|
| |
|
| .cs-title {
| | #mp-welcome h1 { |
| font-size: 2em; | | margin: 0.2em 0; |
| font-weight: 700; | | border-bottom: none; |
| margin: 0; | | font-family: 'Linux Libertine', 'Georgia', 'Times', serif; |
| color: #000; | | font-size: 1.7em; |
| } | | } |
|
| |
|
| .cs-subtitle {
| | #mp-free { |
| | text-align: center; |
| font-size: 1.1em; | | font-size: 1.1em; |
| font-weight: normal; | | margin-bottom: 0.5em; |
| margin: 10px 0 0;
| | color: #54595d; |
| color: #444; | |
| } | | } |
|
| |
|
| /* Search */
| | #articlecount { |
| .cs-search {
| | text-align: center; |
| max-width: 800px; | | font-size: 0.9em; |
| margin: 0 auto 40px; | | color: #72777d; |
| padding: 25px; | |
| border-radius: 8px;
| |
| background-color: #f5f5f5;
| |
| border: 1px solid #ddd;
| |
| } | | } |
|
| |
|
| /* Search input - restore original background */
| | #articlecount ul { |
| .cs-search input[type="search"],
| | margin: 0; |
| .cs-search input[type="text"],
| | display: inline-block; |
| .cs-search .mw-searchInput,
| | list-style: none; |
| .cs-search .cdx-text-input__input {
| | padding-left: 0; |
| background-color: #ffffff !important; | |
| border: 1px solid #ddd !important; | |
| height: 40px !important; | |
| padding: 5px 12px !important; | |
| border-radius: 4px !important;
| |
| font-size: 16px !important;
| |
| color: #333 !important;
| |
| width: 100% !important;
| |
| } | | } |
|
| |
|
| /* Search button */
| | #articlecount li { |
| .cs-search input[name="go"],
| | display: inline-block; |
| .cs-search button[name="go"],
| | margin: 0 1em; |
| .cs-search input[type="submit"],
| |
| .cs-search button[type="submit"],
| |
| .cs-search .oo-ui-buttonElement-button {
| |
| width: 80px !important; | |
| max-width: 80px !important;
| |
| min-width: 80px !important;
| |
| background-color: #f0f0f0 !important;
| |
| border: 1px solid #ddd !important;
| |
| height: 40px !important;
| |
| padding: 5px 8px !important;
| |
| border-radius: 4px !important;
| |
| color: #333 !important;
| |
| font-weight: 600 !important;
| |
| cursor: pointer !important; | |
| } | | } |
|
| |
|
| /* Hide the second (fulltext) button */
| | .mp-box { |
| .cs-search input[name="fulltext"], | | margin-bottom: 1em; |
| .cs-search button[name="fulltext"],
| | padding: 0; |
| .cs-search input[value="Search full text"],
| | border-radius: 5px; |
| .cs-search button[value="Search full text"] {
| | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| display: none !important; | |
| } | | } |
|
| |
|
| /* Grid Layout */
| | .mp-h2 { |
| .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;
| |
| }
| |
| | |
| /* Section styling */
| |
| .cs-section {
| |
| margin-bottom: 30px;
| |
| }
| |
| | |
| .cs-section-header {
| |
| padding: 12px 15px;
| |
| margin-bottom: 20px;
| |
| border-radius: 6px;
| |
| }
| |
| | |
| .cs-section-title {
| |
| margin: 0; | | margin: 0; |
| | padding: 0.5em; |
| | border-bottom: none; |
| | border-top-left-radius: 5px; |
| | border-top-right-radius: 5px; |
| font-size: 1.3em; | | font-size: 1.3em; |
| font-weight: 600; | | font-weight: bold; |
| | color: white; |
| } | | } |
|
| |
|
| /* Card Design */
| | #mp-tfa-h2, #mp-dyk-h2 { |
| .cs-card {
| | background: linear-gradient(to right, #36c, #1a6399); |
| border-radius: 6px; | |
| overflow: hidden;
| |
| height: 100%;
| |
| } | | } |
|
| |
|
| .cs-card-header {
| | #mp-itn-h2, #mp-otd-h2 { |
| padding: 12px 15px; | | background: linear-gradient(to right, #c36, #9a1c43); |
| } | | } |
|
| |
|
| .cs-card-title {
| | #mp-tfl-h2 { |
| margin: 0; | | background: linear-gradient(to right, #36b, #274c89); |
| font-size: 1.1em;
| |
| font-weight: 600;
| |
| } | | } |
|
| |
|
| .cs-card-body {
| | #mp-tfp-h2 { |
| padding: 15px; | | background: linear-gradient(to right, #4caf50, #2e7d32); |
| } | | } |
|
| |
|
| .cs-card-list {
| | #mp-other { |
| margin: 0; | | background: linear-gradient(to right, #673ab7, #4527a0); |
| padding: 0 0 0 20px; | | color: white; |
| } | | } |
|
| |
|
| .cs-card-list li {
| | #mp-sister { |
| margin-bottom: 10px; | | background: linear-gradient(to right, #ff9800, #e65100); |
| | color: white; |
| } | | } |
|
| |
|
| /* Card footer with hover effects */
| | #mp-lang { |
| .cs-card-footer {
| | background: linear-gradient(to right, #607d8b, #455a64); |
| padding: 8px 15px; | | color: white; |
| text-align: right; | |
| } | | } |
|
| |
|
| /* Link hover effects */
| | .mp-contains-float { |
| .cs-card-footer a { | | padding: 0.5em; |
| text-decoration: none;
| |
| position: relative;
| |
| padding-bottom: 2px; | |
| transition: all 0.2s ease-in-out;
| |
| } | | } |
|
| |
|
| .cs-card-footer a:hover {
| | #mp-tfa, #mp-dyk { |
| opacity: 0.85; | | background-color: #f8f9fa; |
| } | | } |
|
| |
|
| .cs-card-footer a::after {
| | #mp-itn, #mp-otd { |
| content: '';
| | background-color: #fef6f9; |
| position: absolute;
| |
| width: 0;
| |
| height: 1px;
| |
| bottom: 0;
| |
| left: 0;
| |
| background-color: currentColor; | |
| transition: width 0.3s ease;
| |
| } | | } |
|
| |
|
| .cs-card-footer a:hover::after {
| | #mp-tfl { |
| width: 100%; | | background-color: #f5f8fa; |
| } | | } |
|
| |
|
| /* Section color schemes */
| | #mp-tfp { |
| /* Programming */
| | background-color: #f1f8e9; |
| .cs-section:nth-child(3) .cs-section-header {
| |
| background-color: #cef2e0; | |
| border: 1px solid #cef2e0;
| |
| } | | } |
|
| |
|
| .cs-section:nth-child(3) .cs-card {
| | #mp-other-content { |
| background-color: #f5fffa; | | background-color: #f3e5f5; |
| border: 1px solid #cef2e0; | | padding: 0.5em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(3) .cs-card-header {
| | #mp-sister-content { |
| background-color: #cef2e0; | | background-color: #fff3e0; |
| border-bottom: 1px solid #cef2e0; | | padding: 0.5em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(3) .cs-card-footer { | | /* Section grid layout */ |
| background-color: #f5fffa; | | .mp-section-grid { |
| border-top: 1px solid #cef2e0; | | display: grid; |
| | grid-template-columns: repeat(3, 1fr); |
| | gap: 1em; |
| | padding: 0.5em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(3) .cs-card-footer a { | | .mp-section-cell { |
| color: #2e8b57; | | background-color: #ffffff; |
| | border-radius: 4px; |
| | padding: 0.8em; |
| | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| } | | } |
|
| |
|
| /* Data Science */
| | .mp-section-cell h3 { |
| .cs-section:nth-child(4) .cs-section-header {
| | margin-top: 0; |
| background-color: #cedff2; | | border-bottom: 1px solid #eaecf0; |
| border: 1px solid #cedff2; | | padding-bottom: 0.3em; |
| | font-size: 1.1em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(4) .cs-card { | | .mp-section-cell ul { |
| background-color: #f5faff; | | margin: 0.5em 0; |
| border: 1px solid #cedff2; | | padding-left: 1.5em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(4) .cs-card-header { | | .mp-section-cell li { |
| background-color: #cedff2; | | margin-bottom: 0.3em; |
| border-bottom: 1px solid #cedff2;
| |
| } | | } |
|
| |
|
| .cs-section:nth-child(4) .cs-card-footer { | | .mp-section-link { |
| background-color: #f5faff; | | text-align: right; |
| border-top: 1px solid #cedff2; | | margin-top: 0.5em; |
| | font-size: 0.9em; |
| } | | } |
|
| |
|
| .cs-section:nth-child(4) .cs-card-footer a { | | /* CTA section */ |
| color: #4169e1; | | .mp-cta { |
| | text-align: center; |
| | padding: 1.5em; |
| | background-color: #f5f5f5; |
| | border-radius: 5px; |
| | margin-top: 1em; |
| } | | } |
|
| |
|
| /* Databases */
| | .mp-cta h2 { |
| .cs-section:nth-child(5) .cs-section-header {
| | margin-top: 0; |
| background-color: #f2cedd; | | color: #333; |
| border: 1px solid #f2cedd; | | border: none; |
| } | | } |
|
| |
|
| .cs-section:nth-child(5) .cs-card { | | .mp-cta-buttons { |
| background-color: #fff5fa; | | margin-top: 1em; |
| border: 1px solid #f2cedd;
| |
| } | | } |
|
| |
|
| .cs-section:nth-child(5) .cs-card-header { | | .mp-button { |
| background-color: #f2cedd; | | display: inline-block; |
| border-bottom: 1px solid #f2cedd; | | padding: 0.6em 1.2em; |
| | margin: 0 0.5em; |
| | background-color: #36c; |
| | color: white; |
| | border-radius: 3px; |
| | text-decoration: none; |
| | font-weight: bold; |
| } | | } |
|
| |
|
| .cs-section:nth-child(5) .cs-card-footer { | | .mp-button:hover { |
| background-color: #fff5fa; | | background-color: #447ff5; |
| border-top: 1px solid #f2cedd;
| | text-decoration: none; |
| }
| | color: white; |
| | |
| .cs-section:nth-child(5) .cs-card-footer a {
| |
| color: #db7093;
| |
| }
| |
| | |
| /* Infrastructure */
| |
| .cs-section:nth-child(6) .cs-section-header {
| |
| background-color: #ddcef2; | |
| border: 1px solid #ddcef2; | |
| }
| |
| | |
| .cs-section:nth-child(6) .cs-card {
| |
| background-color: #faf5ff;
| |
| border: 1px solid #ddcef2;
| |
| }
| |
| | |
| .cs-section:nth-child(6) .cs-card-header {
| |
| background-color: #ddcef2;
| |
| border-bottom: 1px solid #ddcef2;
| |
| }
| |
| | |
| .cs-section:nth-child(6) .cs-card-footer {
| |
| background-color: #faf5ff;
| |
| border-top: 1px solid #ddcef2;
| |
| }
| |
| | |
| .cs-section:nth-child(6) .cs-card-footer a {
| |
| color: #8a2be2;
| |
| } | | } |
|
| |
|
| /* CS Fundamentals */
| | .mp-button-outline { |
| .cs-section:nth-child(7) .cs-section-header {
| | background-color: transparent; |
| background-color: #f2e0ce; | | color: #36c; |
| border: 1px solid #f2e0ce; | | border: 1px solid #36c; |
| } | | } |
|
| |
|
| .cs-section:nth-child(7) .cs-card { | | .mp-button-outline:hover { |
| background-color: #fffaf5; | | background-color: #eaf3ff; |
| border: 1px solid #f2e0ce; | | color: #36c; |
| } | | } |
|
| |
|
| .cs-section:nth-child(7) .cs-card-header {
| | /* Responsive adjustments */ |
| background-color: #f2e0ce;
| | @media (max-width: 768px) { |
| border-bottom: 1px solid #f2e0ce;
| | .mp-section-grid { |
| }
| | grid-template-columns: repeat(1, 1fr); |
| | |
| .cs-section:nth-child(7) .cs-card-footer {
| |
| background-color: #fffaf5;
| |
| border-top: 1px solid #f2e0ce;
| |
| }
| |
| | |
| .cs-section:nth-child(7) .cs-card-footer a {
| |
| color: #d2691e;
| |
| }
| |
| | |
| /* Community */ | |
| .cs-section:nth-child(8) .cs-section-header {
| |
| background-color: #eee;
| |
| border: 1px solid #eee;
| |
| }
| |
| | |
| .cs-section:nth-child(8) .cs-card {
| |
| background-color: #f9f9f9;
| |
| border: 1px solid #eee;
| |
| }
| |
| | |
| .cs-section:nth-child(8) .cs-card-header {
| |
| background-color: #eee;
| |
| border-bottom: 1px solid #eee;
| |
| }
| |
| | |
| .cs-section:nth-child(8) .cs-card-footer {
| |
| background-color: #f9f9f9;
| |
| border-top: 1px solid #eee;
| |
| }
| |
| | |
| .cs-section:nth-child(8) .cs-card-footer a {
| |
| color: #444;
| |
| }
| |
| | |
| /* Dark mode theme toggle */
| |
| @media screen {
| |
| /* Dark mode styles */
| |
| html.skin-theme-clientpref-night .cs-header,
| |
| html.skin-theme-clientpref-os .cs-header {
| |
| background-color: #171a1d;
| |
| border-color: #676767;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-title,
| |
| html.skin-theme-clientpref-os .cs-title {
| |
| color: #fff;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-subtitle,
| |
| html.skin-theme-clientpref-os .cs-subtitle {
| |
| color: #ccc;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-search,
| |
| html.skin-theme-clientpref-os .cs-search {
| |
| background-color: #252525;
| |
| border-color: #676767;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-search input[type="search"],
| |
| html.skin-theme-clientpref-night .cs-search input[type="text"],
| |
| html.skin-theme-clientpref-night .cs-search .mw-searchInput,
| |
| html.skin-theme-clientpref-night .cs-search .cdx-text-input__input,
| |
| html.skin-theme-clientpref-os .cs-search input[type="search"],
| |
| html.skin-theme-clientpref-os .cs-search input[type="text"],
| |
| html.skin-theme-clientpref-os .cs-search .mw-searchInput,
| |
| html.skin-theme-clientpref-os .cs-search .cdx-text-input__input {
| |
| background-color: #1f1f1f !important;
| |
| color: #fff !important;
| |
| border-color: #555 !important;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-search input[type="submit"],
| |
| html.skin-theme-clientpref-night .cs-search button[type="submit"],
| |
| html.skin-theme-clientpref-os .cs-search input[type="submit"],
| |
| html.skin-theme-clientpref-os .cs-search button[type="submit"] {
| |
| background-color: #444 !important;
| |
| border-color: #555 !important;
| |
| color: #fff !important;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-search input[type="submit"]:hover,
| |
| html.skin-theme-clientpref-night .cs-search button[type="submit"]:hover,
| |
| html.skin-theme-clientpref-os .cs-search input[type="submit"]:hover,
| |
| html.skin-theme-clientpref-os .cs-search button[type="submit"]:hover {
| |
| background-color: #555 !important;
| |
| }
| |
| | |
| /* Dark text colors */
| |
| html.skin-theme-clientpref-night .cs-section-title,
| |
| html.skin-theme-clientpref-night .cs-card-title,
| |
| html.skin-theme-clientpref-os .cs-section-title,
| |
| html.skin-theme-clientpref-os .cs-card-title {
| |
| color: #fff;
| |
| }
| |
| | |
| html.skin-theme-clientpref-night .cs-card-list li,
| |
| html.skin-theme-clientpref-os .cs-card-list li {
| |
| color: #ccc;
| |
| }
| |
| }
| |
| | |
| /* Dark mode section colors - condensed */
| |
| @media screen { | |
| /* Programming section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-section-header {
| |
| background-color: #104437;
| |
| border-color: #104437;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card {
| |
| background-color: #0b1e1c;
| |
| border-color: #104437;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-header { | |
| background-color: #104437; | |
| border-color: #104437;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer {
| |
| background-color: #0b1e1c;
| |
| border-color: #104437;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(3) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(3) .cs-card-footer a {
| |
| color: #8fbc8f;
| |
| }
| |
| | |
| /* Data Science section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-section-header {
| |
| background-color: #082849;
| |
| border-color: #082849;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card {
| |
| background-color: #0d1a27;
| |
| border-color: #082849;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-header {
| |
| background-color: #082849;
| |
| border-color: #082849;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer {
| |
| background-color: #0d1a27;
| |
| border-color: #082849;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(4) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(4) .cs-card-footer a {
| |
| color: #87cefa;
| |
| }
| |
| | |
| /* Databases section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-section-header {
| |
| background-color: #882c43;
| |
| border-color: #882c43;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card {
| |
| background-color: #270e1a;
| |
| border-color: #882c43;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-header {
| |
| background-color: #882c43;
| |
| border-color: #882c43;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer {
| |
| background-color: #270e1a;
| |
| border-color: #882c43;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(5) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(5) .cs-card-footer a {
| |
| color: #ffb6c1;
| |
| }
| |
| | |
| /* Infrastructure section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-section-header {
| |
| background-color: #7545ab;
| |
| border-color: #7545ab;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card {
| |
| background-color: #130e20;
| |
| border-color: #7545ab;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-header {
| |
| background-color: #7545ab;
| |
| border-color: #7545ab;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer {
| |
| background-color: #130e20;
| |
| border-color: #7545ab;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(6) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(6) .cs-card-footer a {
| |
| color: #da70d6;
| |
| }
| |
| | |
| /* CS Fundamentals section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-section-header {
| |
| background-color: #663428;
| |
| border-color: #663428;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card {
| |
| background-color: #331a00;
| |
| border-color: #663428;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-header {
| |
| background-color: #663428;
| |
| border-color: #663428;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer {
| |
| background-color: #331a00;
| |
| border-color: #663428;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(7) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(7) .cs-card-footer a {
| |
| color: #ffa500;
| |
| }
| |
| | |
| /* Community section - dark */
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-section-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-section-header {
| |
| background-color: #3d3d3d;
| |
| border-color: #3d3d3d;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card {
| |
| background-color: #171a1d;
| |
| border-color: #3d3d3d;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-header,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-header {
| |
| background-color: #3d3d3d;
| |
| border-color: #3d3d3d;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer {
| |
| background-color: #171a1d;
| |
| border-color: #3d3d3d;
| |
| }
| |
| html.skin-theme-clientpref-night .cs-section:nth-child(8) .cs-card-footer a,
| |
| html.skin-theme-clientpref-os .cs-section:nth-child(8) .cs-card-footer a {
| |
| color: #ccc;
| |
| }
| |
| }
| |
| | |
| /* OS dark mode detection through prefers-color-scheme */
| |
| @media (prefers-color-scheme: dark) {
| |
| /* Dark mode handled through class combinations above */
| |
| }
| |
| | |
| /* Responsive layout */
| |
| @media (max-width: 875px) {
| |
| .cs-title {
| |
| font-size: 1.8em;
| |
| } | | } |
| | | |
| .cs-subtitle { | | #mp-upper { |
| font-size: 1em;
| |
| }
| |
|
| |
| .cs-search {
| |
| padding: 15px;
| |
| }
| |
|
| |
| /* Convert grid table to blocks on mobile */
| |
| .cs-grid {
| |
| display: block;
| |
| width: 100%;
| |
| margin: 0;
| |
| padding: 0 10px;
| |
| box-sizing: border-box;
| |
| }
| |
|
| |
| .cs-row {
| |
| display: block; | | display: block; |
| } | | } |
| | | |
| .cs-cell { | | #mp-left, #mp-right { |
| display: block;
| |
| width: 100%; | | width: 100%; |
| margin-bottom: 15px; | | margin-right: 0; |
| }
| |
|
| |
| .cs-card {
| |
| width: 100%;
| |
| margin: 0 0 15px 0;
| |
| }
| |
|
| |
| .cs-section-header {
| |
| text-align: center;
| |
| padding: 10px;
| |
| }
| |
|
| |
| .cs-section-title {
| |
| font-size: 1.2em;
| |
| }
| |
| }
| |
| | |
| /* Extra small screens */
| |
| @media (max-width: 480px) {
| |
| .cs-search {
| |
| padding: 10px;
| |
| }
| |
|
| |
| .cs-card-header,
| |
| .cs-card-body {
| |
| padding: 10px;
| |
| }
| |
|
| |
| .cs-title {
| |
| font-size: 1.6em;
| |
| } | | } |
| }
| |
|
| |
| /* Additional colors for new sections */
| |
| #mp-cybersec-h2 {
| |
| background: linear-gradient(to right, #4a8fe7, #2757a8);
| |
| color: white;
| |
| }
| |
|
| |
| #mp-cybersec {
| |
| background-color: #eaf1fa;
| |
| }
| |
|
| |
| #mp-careers-h2 {
| |
| background: linear-gradient(to right, #5a67d8, #434190);
| |
| color: white;
| |
| }
| |
|
| |
| #mp-careers {
| |
| background-color: #eff1fa;
| |
| }
| |
|
| |
| #mp-otd2-h2 {
| |
| background: linear-gradient(to right, #ed8936, #c05621);
| |
| color: white;
| |
| }
| |
|
| |
| #mp-otd2 {
| |
| background-color: #fdf0e8;
| |
| }
| |
|
| |
| #mp-itb-h2 {
| |
| background: linear-gradient(to right, #38b2ac, #2c7a7b);
| |
| color: white;
| |
| }
| |
|
| |
| #mp-itb {
| |
| background-color: #e6f7f7;
| |
| } | | } |