@doodl/slate 1.22.15 → 1.23.0
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 +14 -0
- package/package.json +1 -1
- package/scss/_helpers.scss +4 -0
- package/scss/_mixins.scss +5 -2
- package/scss/variables/_hamburger.scss +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.23.0](https://bitbucket.org/doodlltd/slate/compare/v1.22.16...v1.23.0) (2023-09-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add explicit configuration for button active state ([d92312d](https://bitbucket.org/doodlltd/slate/commit/d92312d9ba4bbe10b2784b2808e7cc09e16adb2d))
|
|
11
|
+
|
|
12
|
+
### [1.22.16](https://bitbucket.org/doodlltd/slate/compare/v1.22.15...v1.22.16) (2023-07-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Strip units from $slate-hamburger-height definition sanity check ([d22ed18](https://bitbucket.org/doodlltd/slate/commit/d22ed18668bba72fbd66ccdd441a89c419a1389a))
|
|
18
|
+
|
|
5
19
|
### [1.22.15](https://bitbucket.org/doodlltd/slate/compare/v1.22.14...v1.22.15) (2023-06-26)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
package/scss/_helpers.scss
CHANGED
|
@@ -140,6 +140,10 @@
|
|
|
140
140
|
@return var(#{map-get(map-get($map,$tint),property)},#{map-get(map-get($map,$tint),default)});
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
@function strip-units($number) {
|
|
144
|
+
@return $number / ($number * 0 + 1);
|
|
145
|
+
}
|
|
146
|
+
|
|
143
147
|
@mixin define-global-property-alias($key, $property) {
|
|
144
148
|
@if is-property($property) or is-property-map($property) {
|
|
145
149
|
$_property: extract-property($property);
|
package/scss/_mixins.scss
CHANGED
|
@@ -138,7 +138,8 @@
|
|
|
138
138
|
$colour--hover: 0,
|
|
139
139
|
$border-colour: 0,
|
|
140
140
|
$border-colour--hover: 0,
|
|
141
|
-
$key: 0
|
|
141
|
+
$key: 0,
|
|
142
|
+
$active-shadow-colour: 0,
|
|
142
143
|
) {
|
|
143
144
|
// Pre-define vars
|
|
144
145
|
$_background-colour: "";
|
|
@@ -197,7 +198,9 @@
|
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
&:active {
|
|
200
|
-
@if
|
|
201
|
+
@if $active-shadow-colour != 0 {
|
|
202
|
+
$_shadow-colour--active: $active-shadow-colour,
|
|
203
|
+
} @else if type-of($background) == "map" {
|
|
201
204
|
@if $_bg-lightness < 20 {
|
|
202
205
|
$_shadow-colour--active: map-get($background,300);
|
|
203
206
|
} @else {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@import 'colours';
|
|
2
|
+
@import '../helpers';
|
|
2
3
|
|
|
3
4
|
$slate-hamburger-bar-colour: $slate-highlight-colour !default;
|
|
4
5
|
|
|
5
6
|
$slate-hamburger-width: 30px !default;
|
|
6
7
|
$slate-hamburger-height: 22px !default; // Should always be evenly divisible by 2
|
|
7
8
|
|
|
8
|
-
@if $slate-hamburger-height % 2 != 0 {
|
|
9
|
-
@error "$slate-hamburger-height should always be evenly divisibly by 2 i.e. $slate-
|
|
9
|
+
@if strip-units($slate-hamburger-height) % 2 != 0 {
|
|
10
|
+
@error "$slate-hamburger-height should always be evenly divisibly by 2 i.e. $slate-hamburger-height % 2 == 0 (#{$slate-hamburger-height} provided).";
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
$slate-hamburger-bar-height: 4px !default;
|