@doodl/slate 1.23.5 → 1.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/scss/_mixins.scss +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.23.6](https://bitbucket.org/doodlltd/slate/compare/v1.23.5...v1.23.6) (2026-01-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add sass compiler compatibility option for media query function ([805a4e6](https://bitbucket.org/doodlltd/slate/commit/805a4e6d6a661210cc09e094d2bf424c75ce1fa8))
|
|
11
|
+
|
|
5
12
|
### [1.23.5](https://bitbucket.org/doodlltd/slate/compare/v1.23.4...v1.23.5) (2024-07-24)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/scss/_mixins.scss
CHANGED
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
@import 'variables/forms';
|
|
3
3
|
@import 'helpers';
|
|
4
4
|
|
|
5
|
+
// Set to 'node-sass' if using the deprecated node-sass compiler
|
|
6
|
+
$slate-sass-compiler: 'dart-sass' !default;
|
|
7
|
+
|
|
5
8
|
// Generate preset media query from breakpoint key
|
|
6
9
|
@function media-query-from-breakpoint($breakpoint, $media: 'screen') {
|
|
7
10
|
$width: map-get($slate-breakpoints, $breakpoint);
|
|
8
|
-
@
|
|
11
|
+
@if $slate-sass-compiler == 'node-sass' {
|
|
12
|
+
@return #{$media} and (min-width: #{$width});
|
|
13
|
+
} @else {
|
|
14
|
+
@return '#{$media} and (min-width: #{$width})';
|
|
15
|
+
}
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
// Output content inside a media query for the defined breakpoint,
|