Skip to content

Commit

Permalink
refactor: prefer use over import in scss
Browse files Browse the repository at this point in the history
> Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
  • Loading branch information
davidyuk committed Dec 26, 2024
1 parent 6bcf737 commit cffbe85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/popup/components/TransactionSpeedPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default defineComponent({
</script>

<style lang="scss" scoped>
@import '@/styles/typography';
@use '@/styles/typography';
.transaction-speed-picker {
margin-top: 4px;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/fullscreen-message.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'typography';
@use 'typography';

body {
&,
Expand Down
16 changes: 8 additions & 8 deletions src/styles/typography.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'variables';

@import '~@fontsource/ibm-plex-sans/300.css';
@import '~@fontsource/ibm-plex-sans/400.css';
@import '~@fontsource/ibm-plex-sans/400-italic.css';
Expand All @@ -6,8 +8,6 @@

@import '~@fontsource/ibm-plex-mono/500.css';

@import 'variables';

/**
* Sans Serif
*/
Expand Down Expand Up @@ -127,42 +127,42 @@
*/

%face-mono-16-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 16px;
line-height: 20px;
}

%face-mono-15-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 15px;
line-height: 24px;
}

%face-mono-14-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 14px;
line-height: 16px;
}

%face-mono-12-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 12px;
line-height: 16px;
}

%face-mono-11-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 11px;
line-height: 20px;
}

%face-mono-10-medium {
font-family: $font-mono;
font-family: variables.$font-mono;
font-weight: 500;
font-size: 10px;
line-height: 16px;
Expand Down

0 comments on commit cffbe85

Please sign in to comment.