Difference between revisions of "MediaWiki:Common.css"

From NY Science Standards Wiki
(Add .toggle-new pill style for the tab bar)
 
(35 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";
  
−
/* NGSS Dimensions formatting */
+
/* Segmented tab bar (Performance Expectations / Questions / Claims and Evidence) on directory pages */
−
.three-column-wrapper {
+
.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; }
−
  display: flex;
+
.pe-ce-toggle td { padding: 4px; }
−
  flex-direction: row;
+
.pe-ce-toggle a { display: block; padding: 8px 12px; border-radius: 6px; color: #3d5a80; text-decoration: none; transition: background .15s, color .15s; }
−
  flex-wrap: wrap;
+
.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; }
−
#sep-section, #dci-section, #cc-section {
+
/* Small "New" pill inside a tab (e.g. Exam questions) */
−
  flex: 1;
+
.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; }
−
  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;
 
−
}
 

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; }