Skip to content

Commit

Permalink
Fix an issue with common CSS names conflicting with other modules/sys…
Browse files Browse the repository at this point in the history
…tems
  • Loading branch information
Veilza committed Jul 4, 2024
1 parent f0a0623 commit 26b9903
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}

/* Some universal, useful stylings for grouping */
.grid,
.grid-2col {
.ss-grid,
.ss-grid-2col {
display: grid;
grid-column: span 2 / span 2;
grid-template-columns: repeat(2, minmax(0, 1fr));
Expand All @@ -24,12 +24,12 @@
padding: 0;
}

.grid-3col {
.ss-grid-3col {
grid-column: span 3 / span 3;
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4col {
.ss-grid-4col {
grid-column: span 4 / span 4;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
2 changes: 1 addition & 1 deletion templates/parts/building/statistics.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="tab statistics" data-group="primary" data-tab="statistics">
<div class="trackers grid grid-3col">
<div class="trackers ss-grid ss-grid-3col">
{{#each trackers as |tracker|}}
<div class="tracker">
<label class="title">{{localize tracker.label}}</label>
Expand Down
2 changes: 1 addition & 1 deletion templates/parts/settlement/buildings.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="tab buildings" data-group="primary" data-tab="buildings">
<div class="grid-2col">
<div class="ss-grid-2col">
{{#each actor.system.buildings as |building id|}}
<div class="building">
<h3 class="building-header">
Expand Down
2 changes: 1 addition & 1 deletion templates/parts/settlement/statistics.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="tab statistics" data-group="primary" data-tab="statistics">
<!-- Add detailed statistics fields here -->
<div class="grid grid-3col">
<div class="ss-grid ss-grid-3col">
{{#each page_trackers as |tracker|}}
<div class="tracker">
<label class="title">{{tracker.label}}</label>
Expand Down
6 changes: 3 additions & 3 deletions templates/statistics-menu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<i class="fas fa-trash"></i>
</span>
</h2>
<div class="grid grid-3col">
<div class="ss-grid ss-grid-3col">
<div>
<label for="{{id}}.type">{{localize 'Type'}}</label>
<select id="{{id}}.type" name="{{id}}.type">
Expand All @@ -23,7 +23,7 @@
<input type="text" name="{{id}}.append" value="{{stat.append}}">
</div>
</div>
<div class="grid grid-3col">
<div class="ss-grid ss-grid-3col">
<div>
<label for="{{id}}.showToPlayers">{{localize 'settlement-sheets.STATS.ShowToPlayers'}}</label>
<input type="checkbox" name="{{id}}.showToPlayers" {{#if stat.showToPlayers}}checked{{/if}}>
Expand All @@ -41,7 +41,7 @@
<hr/>
{{/each}}
<div id="statisticsContainer"></div>
<div class="button-section grid grid-3col">
<div class="button-section ss-grid ss-grid-3col">
<button type="button" class="reset-statistics">
<i class="fas fa-redo"></i> {{localize 'settlement-sheets.STATS.ResetStatistics'}}
</button>
Expand Down

0 comments on commit 26b9903

Please sign in to comment.