Difference between revisions of "MediaWiki:Common.css"

From NY Science Standards Wiki
(Tab bar: tinted blue background, link-blue tabs, underline on active tab)
(Standards list: code chips, hover rows, chevron toggles, section count badges)
Line 19: Line 19:
 
/* NGSS Dimensions table (three-column-wrapper): give the heading that follows it the same gap as every other heading */
 
/* 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; }
 
.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; }
 +
.sp-pe .mw-collapsible-toggle { color: #5f5e5a; cursor: pointer; padding: 2px 4px; margin-left: 8px; }
 +
.sp-pe .mw-collapsible-toggle::before { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 14px; }
 +
.sp-pe .mw-collapsible-toggle-expanded::before { content: "\f077"; }
 +
.sp-pe .mw-collapsible-toggle::after { content: none; }
 +
.sp-pe .mw-collapsible-toggle:hover::before { color: #1b599b; }
 +
.sp-pe .mw-collapsible-toggle .mw-collapsible-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
 +
.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"; }

Revision as of 14:30, 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; }
.sp-pe .mw-collapsible-toggle { color: #5f5e5a; cursor: pointer; padding: 2px 4px; margin-left: 8px; }
.sp-pe .mw-collapsible-toggle::before { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 14px; }
.sp-pe .mw-collapsible-toggle-expanded::before { content: "\f077"; }
.sp-pe .mw-collapsible-toggle::after { content: none; }
.sp-pe .mw-collapsible-toggle:hover::before { color: #1b599b; }
.sp-pe .mw-collapsible-toggle .mw-collapsible-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.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"; }