diff --git a/GURPS/gurps.css b/GURPS/gurps.css index 35e01dcb70b..9365d841c19 100644 --- a/GURPS/gurps.css +++ b/GURPS/gurps.css @@ -788,22 +788,6 @@ input { } /* ===== CUSTOM TABS ===== */ -input.sheet-tab1:not(:checked) ~ .sheet-tab1, -input.sheet-tab-misc:not(:checked) ~ .sheet-tab-misc, -input.sheet-tab2:not(:checked) ~ .sheet-tab2, -input.sheet-tab3:not(:checked) ~ .sheet-tab3, -input.sheet-tab4:not(:checked) ~ .sheet-tab4, -input.sheet-tab5:not(:checked) ~ .sheet-tab5, -input.sheet-tab6:not(:checked) ~ .sheet-tab6, -input.sheet-tab7:not(:checked) ~ .sheet-tab7, -input.sheet-tab8:not(:checked) ~ .sheet-tab8, -input.sheet-tab0:not(:checked) ~ .sheet-tab0 { - display: none !important; -} - -.sheet-tab7 { - background: var(--row-bg); -} input.sheet-tab { position: relative; @@ -813,11 +797,13 @@ input.sheet-tab { opacity: 0; z-index: 1; border: none; + display: none; } + input.sheet-tab + span { position: relative; - display: inline-block !important; + display: none; min-width: 70px; height: 23px; margin: 0 0 -3px -80px; @@ -835,6 +821,47 @@ input.sheet-tab + span { line-height: 23px; } +/* show/hide tabs based on sheet type */ +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="2"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="3"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="4"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="5"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="6"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="7"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="8"], +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="0"] { + display: inline; +} + +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="2"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="3"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="4"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="5"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="6"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="7"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="8"] + span, +input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="0"] + span { + display: inline-block !important; +} + +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"], +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"], +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"], +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="0"] { + display: inline; +} + +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"] + span, +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"] + span, +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"] + span, +input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="0"] + span { + display: inline-block !important; +} + input.sheet-tab:checked + span { color: #555; border: 1px solid #a8a8a8; @@ -851,6 +878,27 @@ input.sheet-tab0 + span { margin-bottom: 5px; } +.sheet-tab7 { + background: var(--row-bg); +} + +/* show/hide selected tabs */ + +input.sheet-tab1:not(:checked) ~ .sheet-tab1, +input.sheet-tab-misc:not(:checked) ~ .sheet-tab-misc, +input.sheet-tab2:not(:checked) ~ .sheet-tab2, +input.sheet-tab3:not(:checked) ~ .sheet-tab3, +input.sheet-tab4:not(:checked) ~ .sheet-tab4, +input.sheet-tab5:not(:checked) ~ .sheet-tab5, +input.sheet-tab6:not(:checked) ~ .sheet-tab6, +input.sheet-tab7:not(:checked) ~ .sheet-tab7, +input.sheet-tab8:not(:checked) ~ .sheet-tab8, +input.sheet-tab-chase:not(:checked) ~ .sheet-tab-chase, +input.sheet-tab0:not(:checked) ~ .sheet-tab0 { + display: none !important; +} + + /* ===== SUB ROWS ===== */ .sheet-sub-row { @@ -5835,4 +5883,6 @@ input[name="attr_import_confirm_delete_tables"][value="0"] ~ button[name="act_im input[name="attr_import_confirm_delete_tables"][value="1"] ~ button[name="act_import_delete_tables"] { background-color: var(--highlight-text); -} \ No newline at end of file +} + +/* --- CHASE CONTROL SHEET --- */ diff --git a/GURPS/gurps.html b/GURPS/gurps.html index 14a67a0ffcf..c7d9f37fad5 100644 --- a/GURPS/gurps.html +++ b/GURPS/gurps.html @@ -4328,11 +4328,14 @@