Difference between revisions of "MediaWiki:Common.css"
From NY Science Standards Wiki
(Table header/border rules: match MediaWiki selector specificity) |
(Collapsible toggles: labeled pill button (chevron + text) instead of chevron only) |
||
| Line 26: | Line 26: | ||
.sp-pe .sp-standard a { display: inline-block; background: #eaf1f9; border: 1px solid #b9cde4; color: #0c447c; font-weight: 600; font-size: .85em; line-height: 1.6; padding: 0 8px; border-radius: 5px; text-decoration: none; margin-right: 4px; vertical-align: 1px; } | .sp-pe .sp-standard a { display: inline-block; background: #eaf1f9; border: 1px solid #b9cde4; color: #0c447c; font-weight: 600; font-size: .85em; line-height: 1.6; padding: 0 8px; border-radius: 5px; text-decoration: none; margin-right: 4px; vertical-align: 1px; } | ||
.sp-pe .sp-standard a:hover { background: #dbe6f3; border-color: #1b599b; } | .sp-pe .sp-standard a:hover { background: #dbe6f3; border-color: #1b599b; } | ||
| − | . | + | /* Collapsible toggles ([Expand] / [Answer] etc.) render as a labeled pill button with a chevron */ |
| − | . | + | .mw-parser-output .mw-collapsible-toggle-default { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; margin-left: 8px; border: 1px solid #b9cde4; border-radius: 999px; background: #fff; color: #1b599b; font-size: .85em; font-weight: 600; line-height: 1.6; cursor: pointer; white-space: nowrap; } |
| − | . | + | .mw-parser-output .mw-collapsible-toggle-default:hover { background: #eaf1f9; border-color: #1b599b; } |
| − | . | + | .mw-parser-output .mw-collapsible-toggle-default::before { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; } |
| − | + | .mw-parser-output .mw-collapsible-toggle-default.mw-collapsible-toggle-expanded::before { content: "\f077"; } | |
| − | + | .mw-parser-output .mw-collapsible-toggle-default::after { content: none; } | |
| + | .mw-parser-output .mw-collapsible-toggle-default .mw-collapsible-text { color: inherit; text-decoration: none; } | ||
.sp-pe .sp-pe-collapsed { border-radius: 6px; padding: 10px 14px; margin: 8px 0 2px; } | .sp-pe .sp-pe-collapsed { border-radius: 6px; padding: 10px 14px; margin: 8px 0 2px; } | ||
/* Section heading count badge: <span class="sec-count" data-count="7"></span> (empty text keeps heading anchors unchanged) */ | /* Section heading count badge: <span class="sec-count" data-count="7"></span> (empty text keeps heading anchors unchanged) */ | ||
Revision as of 22:28, 15 October 2026
/* CSS placed here will be applied to all skins */
@import "override.css";
/* Segmented tab bar (Performance Expectations / Questions / Claims and Evidence) on directory pages */
.pe-ce-toggle { border-collapse: separate; border-spacing: 0; border: 1px solid #b9cde4; border-radius: 8px; background: #eaf1f9; overflow: hidden; margin-bottom: 14px; font-size: 1.05em; }
.pe-ce-toggle td { padding: 4px; }
.pe-ce-toggle a { display: block; padding: 8px 12px; border-radius: 6px; color: #1b599b; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.pe-ce-toggle a:hover { background: #dbe6f3; color: #0c447c; }
.pe-ce-toggle a.selflink { background: #fff; color: #1b599b; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); border-bottom: 3px solid #1b599b; border-radius: 6px 6px 2px 2px; padding-bottom: 5px; }
.pe-ce-toggle a i { margin-right: 4px; }
/* Small "New" pill inside a tab (e.g. Exam questions) */
.pe-ce-toggle .toggle-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e8891d; color: #fff; font-size: 0.7em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; line-height: 1.5; }
/* Vocabulary section on standards pages: bold sub-headings sit close to their list; each list gets a full gap before whatever follows */
.vocab-subhead { font-weight: 700; margin-bottom: 0.25em; }
.vocab-list { margin-bottom: 1em; }
/* NGSS Dimensions table (three-column-wrapper): give the heading that follows it the same gap as every other heading */
.three-column-wrapper { margin-bottom: 1em; }
/* Standards list rows (.sp-pe) on the subject standards pages */
.mw-parser-output .sp-pe { padding: 10px 12px; margin: 0 -12px; border-radius: 6px; transition: background .15s; }
.mw-parser-output .sp-pe:hover { background: #f4f7fb; }
.mw-parser-output .sp-pe + hr { margin: 2px 0; border: 0; border-top: 1px solid #e6e9ed; opacity: 1; }
.sp-pe .sp-standard a { display: inline-block; background: #eaf1f9; border: 1px solid #b9cde4; color: #0c447c; font-weight: 600; font-size: .85em; line-height: 1.6; padding: 0 8px; border-radius: 5px; text-decoration: none; margin-right: 4px; vertical-align: 1px; }
.sp-pe .sp-standard a:hover { background: #dbe6f3; border-color: #1b599b; }
/* Collapsible toggles ([Expand] / [Answer] etc.) render as a labeled pill button with a chevron */
.mw-parser-output .mw-collapsible-toggle-default { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; margin-left: 8px; border: 1px solid #b9cde4; border-radius: 999px; background: #fff; color: #1b599b; font-size: .85em; font-weight: 600; line-height: 1.6; cursor: pointer; white-space: nowrap; }
.mw-parser-output .mw-collapsible-toggle-default:hover { background: #eaf1f9; border-color: #1b599b; }
.mw-parser-output .mw-collapsible-toggle-default::before { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px; }
.mw-parser-output .mw-collapsible-toggle-default.mw-collapsible-toggle-expanded::before { content: "\f077"; }
.mw-parser-output .mw-collapsible-toggle-default::after { content: none; }
.mw-parser-output .mw-collapsible-toggle-default .mw-collapsible-text { color: inherit; text-decoration: none; }
.sp-pe .sp-pe-collapsed { border-radius: 6px; padding: 10px 14px; margin: 8px 0 2px; }
/* Section heading count badge: <span class="sec-count" data-count="7"></span> (empty text keeps heading anchors unchanged) */
.sec-count { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 12px; font-weight: 600; color: #1b599b; background: #eaf1f9; border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.sec-count::before { content: attr(data-count) " standards"; }
.sec-count[data-count="1"]::before { content: "1 standard"; }
/* Site-wide harmonization with the standards directory pages */
.mw-parser-output > h2 { border-bottom: 2px solid #b9cde4; padding-bottom: 4px; }
.wikitable, .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td { border-color: #d0dbe8; }
.wikitable > tr > th, .wikitable > * > tr > th { background: #eaf1f9; color: #0c447c; }
/* Standard codes linked from tables render as the same chips used on the directory pages */
.wikitable td a[href*="-PS"], .wikitable td a[href*="-LS"], .wikitable td a[href*="-ESS"], .wikitable td a[href*="-ETS"] { display: inline-block; background: #eaf1f9; border: 1px solid #b9cde4; color: #0c447c; font-weight: 600; font-size: .85em; line-height: 1.6; padding: 0 8px; border-radius: 5px; text-decoration: none; }
.wikitable td a[href*="-PS"]:hover, .wikitable td a[href*="-LS"]:hover, .wikitable td a[href*="-ESS"]:hover, .wikitable td a[href*="-ETS"]:hover { background: #dbe6f3; border-color: #1b599b; }