Skip to content

Commit

Permalink
fix: unused CSS selector warnings in Svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 4, 2023
1 parent 4c2373a commit 23b82cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/modals/JSONRepairModal.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import '../../styles';
@import 'Modal';

.jse-modal.jse-repair {
@include jse-modal-style;
}
12 changes: 1 addition & 11 deletions src/lib/components/modals/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,7 @@
--multi-item-border-radius: 6px;
--indicator-top: 8px;

flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;

font-family: var(--jse-font-family);
font-size: var(--jse-font-size);
line-height: normal;
background: var(--jse-modal-background);
color: var(--jse-text-color);
@include jse-modal-style;

.jse-modal-contents {
flex: 1;
Expand Down
14 changes: 14 additions & 0 deletions src/lib/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,17 @@ $errors-overview-max-height: 25%;
cursor: pointer;
}
}

@mixin jse-modal-style {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;

font-family: var(--jse-font-family);
font-size: var(--jse-font-size);
line-height: normal;
background: var(--jse-modal-background);
color: var(--jse-text-color);
}

0 comments on commit 23b82cc

Please sign in to comment.