Skip to content

Commit

Permalink
Merge pull request #13278 from coreyhickson/master
Browse files Browse the repository at this point in the history
Torchbearer 2e: cleanup some styles and default values
  • Loading branch information
BronsonHall authored Sep 5, 2024
2 parents c8a1619 + 3a041e7 commit d2cd5e5
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 72 deletions.
8 changes: 4 additions & 4 deletions Torchbearer 2E/src/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on("sheet:opened", function (eventinfo) {
});

function initializeTabs(values) {
if (!(values['tab'] in ["anatomy", "kit", "magic", "relationships", "levels", "roll"])) {
setAttrs({tab: "anatomy"});
if (!(["anatomy", "kit", "magic", "relationships", "levels", "roll"].includes(values['tab']))) {
setAttrs({ tab: "anatomy" });
}
if (!(values['edit'] in ["playing", "editing"])) {
setAttrs({edit: "playing"});
if (!(["playing", "editing"].includes(values['edit']))) {
setAttrs({ edit: "playing" });
}
}

Expand Down
1 change: 1 addition & 0 deletions Torchbearer 2E/src/pug/pages/anatomy/anatomy_mixins.pug
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ mixin skill(label, attr, bl)
input.sheet-pip-value-flag(
name="attr_" + attr + "_bl"
type="hidden"
value!="0"
)
div <strong>BL</strong>:
+zeroPip(attr + "_bl")
Expand Down
8 changes: 4 additions & 4 deletions Torchbearer 2E/src/scss/anatomy/who_you_are.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

.sheet-section-body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 4px;
}

Expand All @@ -18,9 +18,9 @@
flex: 1;
display: flex;
flex-direction: row;
gap: 8px;
gap: 6px;

& > input {
&>input {
flex: 1;
width: 100%;
}
Expand All @@ -32,4 +32,4 @@
font-size: 14px;
font-weight: bold;
}
}
}
2 changes: 1 addition & 1 deletion Torchbearer 2E/src/scss/anatomy/wises.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
.sheet-wise-name {
@include grey-border;

height: 20px;
min-height: 20px;
}
}
6 changes: 3 additions & 3 deletions Torchbearer 2E/torchbearer.css
Original file line number Diff line number Diff line change
Expand Up @@ -3358,7 +3358,7 @@
}
.ui-dialog .tab-content .charsheet .sheet-wises .sheet-wise-name {
border-bottom: 1px solid rgba(150, 150, 150, 0.8);
height: 20px;
min-height: 20px;
}

.ui-dialog .tab-content .charsheet .sheet-section-header {
Expand Down Expand Up @@ -5974,7 +5974,7 @@
}
.ui-dialog .tab-content .charsheet .sheet-who-you-are .sheet-section-body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 4px;
}
.ui-dialog .tab-content .charsheet .sheet-who-you-are .sheet-section-column {
Expand All @@ -5984,7 +5984,7 @@
flex: 1;
display: flex;
flex-direction: row;
gap: 8px;
gap: 6px;
}
.ui-dialog .tab-content .charsheet .sheet-who-you-are .sheet-field > input {
flex: 1;
Expand Down
Loading

0 comments on commit d2cd5e5

Please sign in to comment.