Skip to content

Commit 496aefc

Browse files
authored
♻️ Migrate Sass @import to @use syntax (#259)
1 parent aae4b81 commit 496aefc

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

style/_button.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Copyright 2011-2019 The Bootstrap Authors
33
// Copyright 2011-2019 Twitter, Inc.
44
// Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5+
@use "colors" as *;
56

67
.sd-btn {
78
background-color: transparent;

style/_display.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "spacing" as *;
2+
13
.sd-d-none {
24
display: none !important;
35
}

style/_grids.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// Copyright 2011-2019 Twitter, Inc.
55
// Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
66
@use 'sass:math';
7+
@use "spacing" as *;
78

89
$gutter-widths: $spacings;
910

style/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "colors" as *;
2+
13
:root {
24
// semantic colors
35
@each $color, $value in $semantic-colors {

style/index.scss

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
@import './colors';
2-
@import './spacing';
3-
@import './sizing';
4-
@import './display';
5-
@import './text';
6-
@import './borders';
7-
@import './animations';
8-
@import './badge';
9-
@import './button';
10-
@import './icons';
11-
@import './cards';
12-
@import './grids';
13-
@import './dropdown';
14-
@import './tabs';
15-
@import './overrides';
16-
@import './variables'
1+
@use './colors' as *;
2+
@use './spacing' as *;
3+
@use './sizing' as *;
4+
@use './display' as *;
5+
@use './text' as *;
6+
@use './borders' as *;
7+
@use './animations' as *;
8+
@use './badge' as *;
9+
@use './button' as *;
10+
@use './icons' as *;
11+
@use './cards' as *;
12+
@use './grids' as *;
13+
@use './dropdown' as *;
14+
@use './tabs' as *;
15+
@use './overrides' as *;
16+
@use './variables' as *;

0 commit comments

Comments
 (0)