Skip to content

Commit 3472f20

Browse files
DEPRECATION WARNING [import]: Sass @import rules are deprecated and w… (#85)
* DEPRECATION WARNING [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. * Replace import with use in fixtures --------- Co-authored-by: Victor Bocharsky <[email protected]>
1 parent e186467 commit 3472f20

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Now, import the core ``bootstrap.scss`` from your ``app.scss`` file:
137137
/* Override some Bootstrap variables */
138138
$red: #FB4040;
139139
140-
@import '../../vendor/twbs/bootstrap/scss/bootstrap';
140+
@use '../../vendor/twbs/bootstrap/scss/bootstrap';
141141
142142
Using Bootswatch Sass
143143
~~~~~~~~~~~~~~~~~~~~~
@@ -155,9 +155,9 @@ Now, import the core Sass theme files along with ``bootstrap.scss`` from your
155155

156156
.. code-block:: scss
157157
158-
@import '../../vendor/thomaspark/bootswatch/dist/[theme]/variables';
159-
@import '../../vendor/twbs/bootstrap/scss/bootstrap';
160-
@import '../../vendor/thomaspark/bootswatch/dist/[theme]/bootswatch';
158+
@use '../../vendor/thomaspark/bootswatch/dist/[theme]/variables';
159+
@use '../../vendor/twbs/bootstrap/scss/bootstrap';
160+
@use '../../vendor/thomaspark/bootswatch/dist/[theme]/bootswatch';
161161
162162
Don't forget to install the ``twbs/bootstrap`` main package as well because
163163
Bootswatch needed it. See the previous section for more details.
@@ -311,4 +311,4 @@ And then import bootstrap from ``app.scss`` with:
311311

312312
.. code-block:: scss
313313
314-
@import 'bootstrap';
314+
@use 'bootstrap';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
@import error_bar;
2+
@use error_bar;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
@import error_foo;
2+
@use error_foo;

0 commit comments

Comments
 (0)