Difference between revisions of "MediaWiki:Common.css"
From NY Science Standards Wiki
Line 101: | Line 101: | ||
− | + | .performance-tabs { | |
− | .performance- | + | display: flex; |
− | + | flex-direction: column; | |
− | - | ||
max-width: 100%; | max-width: 100%; | ||
+ | font-family: sans-serif; | ||
} | } | ||
− | + | .performance-tabs input[type="radio"] { | |
− | .performance- | + | display: none; |
− | |||
− | |||
− | |||
} | } | ||
− | + | .performance-tabs label { | |
− | .performance- | + | padding: 10px; |
− | + | cursor: pointer; | |
− | + | background-color: #f0f0f0; | |
− | text-align: | + | border: 1px solid #ccc; |
− | + | font-weight: bold; | |
+ | text-align: center; | ||
+ | transition: background-color 0.2s ease-in-out; | ||
} | } | ||
− | /* Optional: | + | .performance-tabs label:hover { |
− | .performance- | + | background-color: #e0e0e0; |
− | + | } | |
+ | |||
+ | .performance-tabs .tab-content { | ||
+ | display: none; | ||
+ | padding: 15px; | ||
+ | border: 1px solid #ccc; | ||
+ | background-color: #fff; | ||
+ | } | ||
+ | |||
+ | /* Show only the selected tab content */ | ||
+ | #tab1:checked ~ #content1, | ||
+ | #tab2:checked ~ #content2, | ||
+ | #tab3:checked ~ #content3, | ||
+ | #tab4:checked ~ #content4, | ||
+ | #tab5:checked ~ #content5 { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | /* Optional: make labels look like tabs horizontally on wider screens */ | ||
+ | @media (min-width: 600px) { | ||
+ | .performance-tabs { | ||
+ | flex-wrap: wrap; | ||
+ | } | ||
+ | |||
+ | .performance-tabs label { | ||
+ | flex: 1; | ||
+ | margin-bottom: -1px; | ||
+ | border-right: 1px solid #ccc; | ||
+ | } | ||
+ | |||
+ | .performance-tabs label:last-of-type { | ||
+ | border-right: none; | ||
+ | } | ||
+ | |||
+ | .performance-tabs .tab-content { | ||
+ | width: 100%; | ||
+ | } | ||
} | } |
Revision as of 13:38, 5 April 2025
/* CSS placed here will be applied to all skins */ @import "override.css"; /* performance expectation formatting */ #performance-expectation { font-size: large; font-style: italic; } /* NGSS Dimensions formatting */ .three-column-wrapper { display: flex; 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; } .performance-tabs { display: flex; flex-direction: column; max-width: 100%; font-family: sans-serif; } .performance-tabs input[type="radio"] { display: none; } .performance-tabs label { padding: 10px; cursor: pointer; background-color: #f0f0f0; border: 1px solid #ccc; font-weight: bold; text-align: center; transition: background-color 0.2s ease-in-out; } .performance-tabs label:hover { background-color: #e0e0e0; } .performance-tabs .tab-content { display: none; padding: 15px; border: 1px solid #ccc; background-color: #fff; } /* Show only the selected tab content */ #tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4, #tab5:checked ~ #content5 { display: block; } /* Optional: make labels look like tabs horizontally on wider screens */ @media (min-width: 600px) { .performance-tabs { flex-wrap: wrap; } .performance-tabs label { flex: 1; margin-bottom: -1px; border-right: 1px solid #ccc; } .performance-tabs label:last-of-type { border-right: none; } .performance-tabs .tab-content { width: 100%; } }