Skip to content

Commit

Permalink
Merge pull request dmdorman#1621 from phBalance/phBalance/scss-guardi…
Browse files Browse the repository at this point in the history
…ng-cleanup

refactor(scss): start to make explicit what is hero override vs unique
  • Loading branch information
phBalance authored Dec 14, 2024
2 parents 3f46875 + b2c4edf commit 7a350f2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
27 changes: 0 additions & 27 deletions scss/components/_dice.scss

This file was deleted.

30 changes: 30 additions & 0 deletions scss/components/foundry-overrides/_dice.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// These all override FoundryVTT basic styling
.dice-roll {
.dice-total {
&.success {
color: inherit;
background: #c7d0c0;
border: 1px solid #006c00;
}

&.failure {
color: inherit;
background: #fdd;
border: 1px solid #6e0000;
}

&.critical {
color: green;
}

&.fumble {
color: red;
}
}

.dice-rolls .roll {
&.calculated {
background-image: url("../icons/circle.svg");
}
}
}
8 changes: 3 additions & 5 deletions scss/herosystem6e.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
@use "global/grid";
@use "global/flex";

/* Styles for dice which are direct overrides of FoundryVTT styling */
@include meta.load-css("components/foundry-overrides/dice");

/* Styles limited to hero sheets */
.hero {
@include meta.load-css("components/forms");
Expand All @@ -26,11 +29,6 @@

@include meta.load-css("components/chat");

/* Styles for dice */
.dice-roll {
@include meta.load-css("components/dice");
}

/* Styles for time tracking */
@include meta.load-css("components/time");

Expand Down

0 comments on commit 7a350f2

Please sign in to comment.