Skip to content

Commit

Permalink
Fix Sass @import deprecation
Browse files Browse the repository at this point in the history
I ran:

```
npm install -g sass-migrator
sass-migrator module --migrate-deps lib/graphql-docs/layouts/assets/css/screen.scss
```

Everything looks good locally.

Fixes #158
  • Loading branch information
brettchalupa committed Dec 10, 2024
1 parent ab1aea8 commit 15e0ff9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/graphql-docs/layouts/assets/css/screen.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@charset "utf-8";

@import "../_sass/_normalize.scss";
@import "../_sass/_fonts";
@use "sass:meta";
@use "../_sass/_normalize.scss";
@use "../_sass/_fonts";

body {
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
Expand Down Expand Up @@ -39,11 +40,11 @@ em {
font-family: 'ProximaNova-Semibold';
}

@import '../_sass/_header';
@import '../_sass/_sidebar';
@import '../_sass/_content';
@import '../_sass/_types';
@import '../_sass/_mobile';
@import '../_sass/_api-box';
@import '../_sass/_syntax';
@import '../_sass/_deprecations';
@include meta.load-css('../_sass/_header');
@include meta.load-css('../_sass/_sidebar');
@include meta.load-css('../_sass/_content');
@include meta.load-css('../_sass/_types');
@include meta.load-css('../_sass/_mobile');
@include meta.load-css('../_sass/_api-box');
@include meta.load-css('../_sass/_syntax');
@include meta.load-css('../_sass/_deprecations');

0 comments on commit 15e0ff9

Please sign in to comment.