Skip to content

Commit 2545f2a

Browse files
Merge pull request #23 from SpecbeeLabs/DS-000-SCSS-depr-1
(fix) DS-000: Remove deprecated SCSS code and update lock file.
2 parents fca33fb + f1b3b4d commit 2545f2a

4 files changed

Lines changed: 1141 additions & 1344 deletions

File tree

generators/app/templates/theme/_src/scss/settings/_breakpoints.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Breakpoint mixin
44
********************
55
**/
6+
@use 'sass:map';
67
@use 'variables' as *;
78

89
$breakpoints: (
@@ -13,11 +14,11 @@ $breakpoints: (
1314
);
1415

1516
@mixin breakpoint($screen, $type: min) {
16-
@if map_has_key($breakpoints, $screen) {
17-
$screen: map_get($breakpoints, $screen);
17+
@if map.has-key($breakpoints, $screen) {
18+
$screen: map.get($breakpoints, $screen);
1819

1920
@if $type == max {
20-
$screen: $screen - 1px;
21+
$screen: $screen - 0.0625rem;
2122
}
2223

2324
@media only screen and (#{$type}-width: $screen) {

generators/app/templates/theme/_src/scss/theme/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
* library in Twig file using {{ attach_library('theme/library') }} .
1010
********************
1111
**/
12-
@import "../settings";
12+
@use '../settings' as *;

0 commit comments

Comments
 (0)