@doodl/slate 1.23.4 → 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 +19 -0
- package/package.json +1 -1
- package/scss/_mixins.scss +8 -1
- package/scss/silverstripe/_editor.scss +19 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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
|
+
|
|
12
|
+
### [1.23.5](https://bitbucket.org/doodlltd/slate/compare/v1.23.4...v1.23.5) (2024-07-24)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* fix float rules for images added via SilverStripe's CMS editor ([895be6e](https://bitbucket.org/doodlltd/slate/commit/895be6ec0c58b17b6ca3c79cb4622725814a1fcc))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Improvements
|
|
21
|
+
|
|
22
|
+
* add an option to explicitly force an image to float on small screen sizes ([1a0acb2](https://bitbucket.org/doodlltd/slate/commit/1a0acb2c94f76c9b48d6eb6fa84e54633ad2143c))
|
|
23
|
+
|
|
5
24
|
### [1.23.4](https://bitbucket.org/doodlltd/slate/compare/v1.23.3...v1.23.4) (2024-07-23)
|
|
6
25
|
|
|
7
26
|
|
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,
|
|
@@ -43,20 +43,26 @@
|
|
|
43
43
|
margin: $slate-silverstripe-editor-image-floated-margin-top auto
|
|
44
44
|
$slate-silverstripe-editor-image-floated-margin-bottom;
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
@mixin float-rules {
|
|
47
|
+
&.left {
|
|
48
|
+
float: left;
|
|
49
|
+
margin-right: $slate-silverstripe-editor-image-floated-margin-horizontal;
|
|
50
|
+
margin-left: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.right {
|
|
54
|
+
float: right;
|
|
55
|
+
margin-right: 0;
|
|
56
|
+
margin-left: $slate-silverstripe-editor-image-floated-margin-horizontal;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.rightAlone {
|
|
60
|
+
margin-right: 0;
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
|
|
58
|
-
&.
|
|
59
|
-
|
|
64
|
+
&.force-float-small {
|
|
65
|
+
@include float-rules;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
// Center up the images on mobile so the text doesn't get squeezed out
|
|
@@ -64,6 +70,7 @@
|
|
|
64
70
|
@include align-all {
|
|
65
71
|
max-width: $slate-silverstripe-editor-image-max-width;
|
|
66
72
|
}
|
|
73
|
+
@include float-rules;
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
76
|
|