Skip to content

Commit

Permalink
Merge pull request #12292 from MadCoder253/gurps-2.10.0
Browse files Browse the repository at this point in the history
[GURPS] 2.10.0
  • Loading branch information
BronsonHall committed Nov 14, 2023
2 parents 6639d38 + c11c114 commit 84c5c8a
Show file tree
Hide file tree
Showing 3 changed files with 1,296 additions and 181 deletions.
275 changes: 247 additions & 28 deletions GURPS/gurps.css
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,11 @@ input {
border-bottom: none !important;
}

.sheet-input-disabled {
background: var(--input-disabled-bg) !important;
border-bottom: none !important;
}

.charsheet .sheet-row input[type="text"]:enabled,
.charsheet .sheet-modifier-row input[type="text"]:enabled {
border-bottom: 1px solid var(--border-color);
Expand Down Expand Up @@ -822,43 +827,43 @@ input.sheet-tab + span {
}

/* 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"] {
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="1"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="2"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="3"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="4"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="5"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="6"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="7"],
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="8"],
input[name="attr_gurps_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 {
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="1"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="2"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="3"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="4"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="5"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="6"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="7"] + span,
input[name="attr_gurps_sheet_type"][value="character"] ~ input.sheet-tab[value="8"] + span,
input[name="attr_gurps_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"] {
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"],
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"],
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"],
input[name="attr_gurps_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 {
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"] + span,
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"] + span,
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"] + span,
input[name="attr_gurps_sheet_type"][value="chase"] ~ input.sheet-tab[value="0"] + span {
display: inline-block !important;
}

Expand Down Expand Up @@ -5916,4 +5921,218 @@ input[name="attr_import_confirm_delete_tables"][value="1"] ~ button[name="act_im
background-color: var(--highlight-text);
}

/* --- Generic Styles --- */

.sheet-section-header {
text-transform: lowercase;
color:var(--header-text);
background: var(--header-bg);
font-variant: small-caps;
}

.sheet-padding__left_small {
padding-left: 4px;
}

.sheet-standard-button {
background: #e60023;
border-radius: 3px;
color: #fff;
font-size: 13px;
height: 20px;
text-decoration: none;
text-align: center;
min-width: 60px;
transition: color .1s ease;
line-height: normal;
}

.sheet-standard-button:hover {
background: #c72339;
}

.sheet-margin_right_small {
margin-right: 3px;
}

/* --- 2 column grid --- */
.sheet-grid-2-column-auto {
display: grid;
grid-template-columns: auto 1fr;
}

.sheet-grid-2-column-big-small {
display: grid;
grid-template-columns: 3fr 1fr;
}

/* --- 3 Column Grid --- */
.sheet-grid-3-column-auto {
display: grid;
grid-template-columns: auto auto auto;
}

/* --- 4 Column Grid --- */
.sheet-grid-4-column-equal {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --- generic grid class layouts --- */

.sheet-grid-standard label {
margin: 0 5px 0 0;
display: inline;
padding: 0;
width: auto;
}

.sheet-grid-standard input,
.sheet-grid-standard textarea,
.sheet-grid-standard .sheet-grid-cell select {
margin: 0;
line-height: normal;
}

.sheet-grid-standard select {
width: auto;
}

.sheet-grid-standard input,
.sheet-grid-standard select {
height: 26px;
}

.sheet-grid-standard input,
.sheet-grid-standard textarea {
width: 100%;
}

.sheet-grid-standard textarea {
height: 50px;
box-sizing: border-box;
margin-bottom: 0px;
}

.sheet-grid__border_cell > .sheet-grid-cell {
border: 1px solid black;
}

.sheet-grid__border {
border-top: 1px solid black;
border-left: 1px solid black;
}

.sheet-grid__gap_large {
gap: 10px;
}

.sheet-grid__padding > .sheet-grid-cell {
padding: 4px;
}

.sheet-grid__border > div {
border-bottom: 1px solid black;
border-right: 1px solid black;
}

.sheet-grid-cell__callout_left {
border-left: 1px solid black;
padding-left: 5px;
}

/* --- CHASE CONTROL SHEET --- */

input[name="attr_chase_sequence"][value="quarry_chooses"] ~ h3.sheet-quarry,
input[name="attr_chase_sequence"][value="quarry_rolls"] ~ h3.sheet-quarry {
color: red;
}

input[name="attr_chase_sequence"][value="pursuer_chooses"] ~ h3.sheet-pursuer,
input[name="attr_chase_sequence"][value="pursuer_rolls"] ~ h3.sheet-pursuer {
color: red;
}

.sheet-container-label-input {
display: flex;
align-items: center;
}

.sheet-chase-row {
margin-bottom: 10px;
}

.sheet-chase-row label {
font-size: 1em;
}

.sheet-grid-chase-setup {
display: grid;
grid-template-columns: 100px 330px 122px auto;
gap: 10px;
}

/* align reset button to the right */
.sheet-grid-chase-setup > div:nth-child(4) {
text-align: right;
}

.sheet-grid-chase-leader-table {
display: grid;
grid-template-columns: 235px 80px 45px 45px 54px 44px 1fr 86px;
grid-template-rows: minmax(25px,auto);
gap: 3px;
border: 1px solid black;
}

.sheet-grid-chase-leader-table .sheet-grid-cell {
padding: 4px;
}

.sheet-grid-chase-leader-table .sheet-grid-cell input,
.sheet-grid-chase-leader-table .sheet-grid-cell textarea,
.sheet-grid-chase-leader-table .sheet-grid-cell select {
width: 100%;
}

.sheet-grid-chase-leader-table .sheet-grid-cell textarea {
height: 50px;
box-sizing: border-box;
margin-bottom: 0px;
}

.sheet-grid-chase-support-actions-header {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
font-weight: bold;
gap: 3px;
}

.sheet-grid-chase-support-actions {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
gap: 10px 3px;
}

.sheet-grid__padding_bottom_small > .sheet-grid-cell {
padding-bottom: 6px;
}

.sheet-grid-chase-modifiers-header {
display: grid;
grid-template-columns: 2fr 1fr;
font-weight: bold;
gap: 3px;
}

.sheet-grid-chase-modifiers {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 3px;
}

.sheet-grid-chase-maneuver {
display: grid;
grid-template-columns: 217px 188px 152px 143px auto;
gap: 3px;
}
Loading

0 comments on commit 84c5c8a

Please sign in to comment.