Difference between revisions of "MediaWiki:Common.css"

From NY Science Standards Wiki
(Add .toggle-new pill style for the tab bar)
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
 
@import "override.css";
 
@import "override.css";
  
−
/* performance expectation formatting */
+
/* Segmented tab bar (Performance Expectations / Questions / Claims and Evidence) on directory pages */
−
#performance-expectation {
+
.pe-ce-toggle { border-collapse: separate; border-spacing: 0; border: 1px solid #dfe3e8; border-radius: 8px; background: #f3f5f7; overflow: hidden; margin-bottom: 14px; font-size: 1.05em; }
−
    font-size: large;
+
.pe-ce-toggle td { padding: 4px; }
−
    font-style: italic;
+
.pe-ce-toggle a { display: block; padding: 8px 12px; border-radius: 6px; color: #3d5a80; text-decoration: none; transition: background .15s, color .15s; }
−
}
+
.pe-ce-toggle a:hover { background: #e6ebf1; color: #1b599b; }
−
 
+
.pe-ce-toggle a.selflink { background: #fff; color: #1b599b; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
−
/* NGSS Dimensions formatting */
+
.pe-ce-toggle a i { margin-right: 4px; }
−
.three-column-wrapper {
+
/* Small "New" pill inside a tab (e.g. Exam questions) */
−
  display: flex;
+
.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; }
−
  flex-direction: row;
 
−
  flex-wrap: wrap;
 
−
}
 
−
 
 
−
#sep-section, #dci-section, #cc-section {
 
−
  flex: 1;
 
−
  min-width: 250px; /* prevents squishing on narrower screens */
 
−
  padding: 16px;
 
−
  box-sizing: border-box;
 
−
}
 
−
 
 
−
/* Optional: stack vertically on smaller screens */
 
−
@media (max-width: 768px) {
 
−
  .three-column-wrapper {
 
−
    flex-direction: column;
 
−
  }
 
−
}
 
−
 
 
−
#sep-section {
 
−
    background-color: aliceblue;
 
−
}
 
−
 
 
−
#dci-section {
 
−
    background-color: antiquewhite;
 
−
}
 
−
 
 
−
#cc-section {
 
−
    background-color: rgb(240, 255, 241);
 
−
}
 
−
 
 
−
.three-column-wrapper {
 
−
    padding-bottom: 10px;
 
−
}
 
−
 
 
−
/* bottom disclaimer formatting */
 
−
#disclaimer {
 
−
    text-align: center;
 
−
    background-color: color(srgb 0.7405 0.8464 0.9685);
 
−
}
 
−
 
 
−
/* formatting of recent activity on front page */
 
−
/* Center the list container */
 
−
.mw-changeslist ul.special {
 
−
    list-style: none;
 
−
    padding: 0;
 
−
    margin: 0 auto;
 
−
    width: fit-content;
 
−
    text-align: left;
 
−
}
 
−
 
 
−
/* Uniform larger text and margin */
 
−
.mw-changeslist ul.special li {
 
−
    font-size: 1.25em;
 
−
    margin: 0.4em 0;
 
−
    transition: opacity 0.3s ease;
 
−
}
 
−
 
 
−
/* Gradual transparency from top to bottom */
 
−
.mw-changeslist ul.special li:nth-child(1) {
 
−
    opacity: 1;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(2) {
 
−
    opacity: 0.95;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(3) {
 
−
    opacity: 0.9;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(4) {
 
−
    opacity: 0.85;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(5) {
 
−
    opacity: 0.8;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(6) {
 
−
    opacity: 0.75;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(7) {
 
−
    opacity: 0.7;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(8) {
 
−
    opacity: 0.65;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(9) {
 
−
    opacity: 0.6;
 
−
}
 
−
.mw-changeslist ul.special li:nth-child(10) {
 
−
    opacity: 0.55;
 
−
}
 

Latest revision as of 09:20, 23 September 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 #dfe3e8; border-radius: 8px; background: #f3f5f7; 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: #3d5a80; text-decoration: none; transition: background .15s, color .15s; }
.pe-ce-toggle a:hover { background: #e6ebf1; color: #1b599b; }
.pe-ce-toggle a.selflink { background: #fff; color: #1b599b; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.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; }