Difference between revisions of "MediaWiki:Common.css"

From NY Science Standards Wiki
(PLD box: drop badge styles)
(Styles for questions-by-performance-level pages)
Line 60: Line 60:
 
.pld-note:hover::after, .pld-note:focus::after { visibility: visible; opacity: 1; }
 
.pld-note:hover::after, .pld-note:focus::after { visibility: visible; opacity: 1; }
 
.pld-note-right::after { left: auto; right: -4px; transform: none; }
 
.pld-note-right::after { left: auto; right: -4px; transform: none; }
 +
/* Questions-by-performance-level pages */
 +
.pldmap-level { margin: 14px 0 4px; padding: 6px 10px; background: #f3f7fb; border-left: 4px solid #1b599b; }
 +
.pldmap-stem { color: #54595d; font-size: 0.93em; }

Revision as of 17:20, 16 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; }

/* PLD box (Template:PLTable) */
.pltable-linear { background: #fff; border: 1px solid #d0dbe8; border-left: 4px solid #1b599b; padding: 14px 18px 10px 16px; margin-bottom: 1em; box-shadow: 0 1px 2px rgba(12, 68, 124, 0.06); }
.pld-row { padding: 9px 0; border-bottom: 1px solid #e3ebf4; }
.pld-row:last-child { border-bottom: none; }
.pld-text { line-height: 1.5; }
.pld-label { font-weight: bold; color: #0c447c; }
.pld-example { color: #54595d; font-size: 0.92em; font-style: italic; }
.pld-footer { text-align: right; margin-top: 4px; padding-top: 4px; }
.pld-note { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; margin-left: 5px; border: 1px solid #7a9cc0; border-radius: 50%; background: #eaf1f9; color: #0c447c; font-size: 0.85em; font-style: normal; font-weight: bold; line-height: 1; vertical-align: middle; cursor: help; position: relative; outline: none; }
.pld-note:hover, .pld-note:focus { background: #0c447c; border-color: #0c447c; color: #fff; }
.pld-note::after { content: attr(data-note); position: absolute; left: 50%; bottom: 150%; transform: translateX(-50%); width: 17em; padding: 7px 9px; background: #202122; color: #fff; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); font-size: 13px; font-weight: normal; font-style: normal; line-height: 1.35; text-align: left; white-space: normal; visibility: hidden; opacity: 0; transition: opacity 0.15s; z-index: 20; pointer-events: none; }
.pld-note:hover::after, .pld-note:focus::after { visibility: visible; opacity: 1; }
.pld-note-right::after { left: auto; right: -4px; transform: none; }
/* Questions-by-performance-level pages */
.pldmap-level { margin: 14px 0 4px; padding: 6px 10px; background: #f3f7fb; border-left: 4px solid #1b599b; }
.pldmap-stem { color: #54595d; font-size: 0.93em; }