@progressiveui/styles 10.30.0 → 11.0.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/index.scss +0 -2
- package/package.json +2 -2
- package/scss/_breakpoint.scss +191 -2
- package/scss/_carbonMotion.scss +79 -0
- package/scss/_motion.scss +2 -9
- package/scss/_type.scss +22 -23
- package/scss/components/_index.scss +3 -1
- package/scss/components/accordion/_accordion.scss +6 -4
- package/scss/components/banner-navigation/_banner-navigation.scss +7 -5
- package/scss/components/breadcrumb/_breadcrumb.scss +3 -3
- package/scss/components/button/_button.scss +5 -3
- package/scss/components/button/_mixins.scss +2 -0
- package/scss/components/card/_card.scss +1 -1
- package/scss/components/checkbox/_checkbox.scss +3 -4
- package/scss/components/content-switcher/_content-switcher.scss +12 -17
- package/scss/components/credits/_credits.scss +4 -3
- package/scss/components/date-picker/_date-picker.scss +5 -3
- package/scss/components/date-picker-new/_date-picker-new.scss +5 -10
- package/scss/components/date-picker-new/react-datepicker/datepicker.scss +2 -2
- package/scss/components/date-picker-new/react-datepicker/mixins.scss +1 -0
- package/scss/components/file-uploader/_file-uploader.scss +2 -3
- package/scss/components/footer/_footer.scss +7 -6
- package/scss/components/form/_form.scss +21 -17
- package/scss/components/hero/_hero.scss +15 -13
- package/scss/components/link/_link.scss +12 -12
- package/scss/components/loading/_keyframes.scss +1 -8
- package/scss/components/main-navigation/_main-navigation.scss +8 -10
- package/scss/components/notification/_notification.scss +6 -5
- package/scss/components/number-input/_number-input.scss +30 -31
- package/scss/components/pagination/_pagination.scss +14 -11
- package/scss/components/radio-button/_radio-button.scss +12 -10
- package/scss/components/read-more/_read-more.scss +5 -4
- package/scss/components/search/_search.scss +26 -29
- package/scss/components/secondary-navigation/_secondary-navigation.scss +4 -8
- package/scss/components/select/_select.scss +4 -2
- package/scss/components/sidebar/_sidebar.scss +4 -4
- package/scss/components/skeleton-text/_skeleton-text.scss +1 -2
- package/scss/components/step-navigation/_step-navigation.scss +9 -8
- package/scss/components/story/_story.scss +8 -8
- package/scss/components/tabs/_tabs.scss +11 -9
- package/scss/components/tag/_tag.scss +11 -27
- package/scss/components/text-area/_text-area.scss +5 -12
- package/scss/components/toggle/_toggle.scss +2 -3
- package/scss/components/tooltip/_tooltip.scss +12 -20
- package/scss/components/tooltip/animations/fade.scss +2 -2
- package/scss/components/tooltip/themes/light-border.scss +2 -2
- package/scss/components/tooltip/themes/light.scss +2 -2
- package/scss/utilities/_button-reset.scss +3 -1
- package/scss/utilities/_component-reset.scss +0 -7
- package/scss/utilities/_config-breakpoints.scss +84 -0
- package/scss/utilities/_convert.scss +37 -14
- package/scss/utilities/_focus-outline.scss +4 -3
- package/scss/utilities/_input-base.scss +19 -24
- package/scss/utilities/_layer.scss +5 -3
- package/scss/utilities/_z-index.scss +3 -8
- package/styles.css +1 -1
package/index.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progressiveui/styles",
|
|
3
3
|
"description": "Styles for the WFP Design System",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "11.0.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Robert Gühne <wfp.org>",
|
|
7
7
|
"homepage": "https://www.wfp.org",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@carbon/test-utils": "^10.3.0",
|
|
39
39
|
"css": "^3.0.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d5135d857e06dd46b8cfad1d77b35a61aed8ce50"
|
|
42
42
|
}
|
package/scss/_breakpoint.scss
CHANGED
|
@@ -1,2 +1,191 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use '@carbon/layout/scss/modules/convert';
|
|
5
|
+
@use './utilities/config-breakpoints' as *;
|
|
6
|
+
|
|
7
|
+
/// Provide a map and index, and get back the relevant key value
|
|
8
|
+
/// @access public
|
|
9
|
+
/// @param {Map} $map - Map
|
|
10
|
+
/// @param {Integer} $index - Key chain
|
|
11
|
+
/// @return {String} Desired value
|
|
12
|
+
/// @group @carbon/layout
|
|
13
|
+
@function -key-by-index($map, $index) {
|
|
14
|
+
$keys: map.keys($map);
|
|
15
|
+
@return nth($keys, $index);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/// Get the value of the next breakpoint, or null for the last breakpoint
|
|
19
|
+
/// @param {String} $name - The name of the breakpoint
|
|
20
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
21
|
+
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
22
|
+
/// @return {String}
|
|
23
|
+
/// @access public
|
|
24
|
+
/// @group @carbon/layout
|
|
25
|
+
@function breakpoint-next(
|
|
26
|
+
$name,
|
|
27
|
+
$breakpoints: $grid-breakpoints,
|
|
28
|
+
$breakpoint-names: map.keys($breakpoints)
|
|
29
|
+
) {
|
|
30
|
+
$n: list.index($breakpoint-names, $name);
|
|
31
|
+
@if $n != null and $n < list.length($breakpoint-names) {
|
|
32
|
+
@return list.nth($breakpoint-names, $n + 1);
|
|
33
|
+
}
|
|
34
|
+
@return null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/// Get the value of the previous breakpoint, or null for the first breakpoint
|
|
38
|
+
/// @param {String} $name - The name of the breakpoint
|
|
39
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
40
|
+
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
41
|
+
/// @return {String}
|
|
42
|
+
/// @access public
|
|
43
|
+
/// @group @carbon/layout
|
|
44
|
+
@function breakpoint-prev(
|
|
45
|
+
$name,
|
|
46
|
+
$breakpoints: $grid-breakpoints,
|
|
47
|
+
$breakpoint-names: map.keys($breakpoints)
|
|
48
|
+
) {
|
|
49
|
+
$n: list.index($breakpoint-names, $name);
|
|
50
|
+
@if $n != null and $n > 1 {
|
|
51
|
+
@return list.nth($breakpoint-names, $n - 1);
|
|
52
|
+
}
|
|
53
|
+
@return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/// Check to see if the given breakpoint name
|
|
57
|
+
/// @param {String} $name - The name of the breakpoint
|
|
58
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
59
|
+
/// @return {Bool}
|
|
60
|
+
/// @access public
|
|
61
|
+
/// @group @carbon/layout
|
|
62
|
+
@function is-smallest-breakpoint($name, $breakpoints: $grid-breakpoints) {
|
|
63
|
+
@return list.index(map.keys($breakpoints), $name) == 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/// Returns the largest breakpoint name
|
|
67
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
68
|
+
/// @return {String}
|
|
69
|
+
/// @access public
|
|
70
|
+
/// @group @carbon/layout
|
|
71
|
+
@function largest-breakpoint-name($breakpoints: $grid-breakpoints) {
|
|
72
|
+
$total-breakpoints: list.length($breakpoints);
|
|
73
|
+
@return -key-by-index($breakpoints, $total-breakpoints);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/// Get the infix for a given breakpoint in a list of breakpoints. Useful for generating the size part in a selector, for example: `.prefix--col-sm-2`.
|
|
77
|
+
/// @param {String} $name - The name of the breakpoint
|
|
78
|
+
/// @return {String}
|
|
79
|
+
/// @access public
|
|
80
|
+
/// @group @carbon/layout
|
|
81
|
+
@function breakpoint-infix($name) {
|
|
82
|
+
@return '-#{$name}';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/// Generate a media query from the width of the given breakpoint to infinity
|
|
86
|
+
/// @param {String | Number} $name
|
|
87
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
88
|
+
/// @content
|
|
89
|
+
/// @access public
|
|
90
|
+
/// @group @carbon/layout
|
|
91
|
+
@mixin breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
92
|
+
@if meta.type-of($name) == 'number' {
|
|
93
|
+
@media (min-width: $name) {
|
|
94
|
+
@content;
|
|
95
|
+
}
|
|
96
|
+
} @else if map.has-key($breakpoints, $name) {
|
|
97
|
+
$breakpoint: map.get($breakpoints, $name);
|
|
98
|
+
$width: map.get($breakpoint, width);
|
|
99
|
+
@if is-smallest-breakpoint($name, $breakpoints) {
|
|
100
|
+
@content;
|
|
101
|
+
} @else {
|
|
102
|
+
@media (min-width: $width) {
|
|
103
|
+
@content;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
} @else {
|
|
107
|
+
@error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map.keys($breakpoints)})';
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/// Generate a media query for the maximum width of the given styles
|
|
112
|
+
/// @param {String | Number} $name
|
|
113
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
114
|
+
/// @content
|
|
115
|
+
/// @access public
|
|
116
|
+
/// @group @carbon/layout
|
|
117
|
+
@mixin breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
|
118
|
+
@if meta.type-of($name) == 'number' {
|
|
119
|
+
@media (max-width: $name) {
|
|
120
|
+
@content;
|
|
121
|
+
}
|
|
122
|
+
} @else if map.has-key($breakpoints, $name) {
|
|
123
|
+
// We borrow this logic from bootstrap for specifying the value of the
|
|
124
|
+
// max-width. The maximum width is calculated by finding the breakpoint and
|
|
125
|
+
// subtracting .02 from its value. This value is used instead of .01 to
|
|
126
|
+
// avoid rounding issues in Safari
|
|
127
|
+
// https://github.com/twbs/bootstrap/blob/c5b1919deaf5393fcca9e9b9d7ce9c338160d99d/scss/mixins/_breakpoints.scss#L34-L46
|
|
128
|
+
$breakpoint: map.get($breakpoints, $name);
|
|
129
|
+
$width: map.get($breakpoint, width) - 0.02;
|
|
130
|
+
@media (max-width: $width) {
|
|
131
|
+
@content;
|
|
132
|
+
}
|
|
133
|
+
} @else {
|
|
134
|
+
@error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map.keys($breakpoints)})';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/// Generate a media query for the range between the lower and upper breakpoints
|
|
139
|
+
/// @param {String | Number} $lower
|
|
140
|
+
/// @param {String | Number} $upper
|
|
141
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
142
|
+
/// @content
|
|
143
|
+
/// @access public
|
|
144
|
+
/// @group @carbon/layout
|
|
145
|
+
@mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
146
|
+
$is-number-lower: meta.type-of($lower) == 'number';
|
|
147
|
+
$is-number-upper: meta.type-of($upper) == 'number';
|
|
148
|
+
$min: if($is-number-lower, $lower, map.get($breakpoints, $lower));
|
|
149
|
+
$max: if($is-number-upper, $upper, map.get($breakpoints, $upper));
|
|
150
|
+
|
|
151
|
+
@if $min and $max {
|
|
152
|
+
$min-width: if(not $is-number-lower and $min, map.get($min, width), $min);
|
|
153
|
+
$max-width: if(not $is-number-upper and $max, map.get($max, width), $max);
|
|
154
|
+
@media (min-width: $min-width) and (max-width: $max-width) {
|
|
155
|
+
@content;
|
|
156
|
+
}
|
|
157
|
+
} @else if $min != null and $max == null {
|
|
158
|
+
@include breakpoint-up($lower) {
|
|
159
|
+
@content;
|
|
160
|
+
}
|
|
161
|
+
} @else if $min == null and $max != null {
|
|
162
|
+
@include breakpoint-down($upper) {
|
|
163
|
+
@content;
|
|
164
|
+
}
|
|
165
|
+
} @else {
|
|
166
|
+
@error 'Unable to find a breakpoint to satisfy: (#{$lower},#{$upper}). Expected both to be one of (#{map.keys($breakpoints)}).';
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/// Generate media query for the largest breakpoint
|
|
171
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
172
|
+
/// @content
|
|
173
|
+
/// @access public
|
|
174
|
+
/// @group @carbon/layout
|
|
175
|
+
@mixin largest-breakpoint($breakpoints: $grid-breakpoints) {
|
|
176
|
+
@include breakpoint(largest-breakpoint-name()) {
|
|
177
|
+
@content;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/// Generate a media query for a given breakpoint
|
|
182
|
+
/// @param {String | Number} $name
|
|
183
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
184
|
+
/// @content
|
|
185
|
+
/// @access public
|
|
186
|
+
/// @group @carbon/layout
|
|
187
|
+
@mixin breakpoint($name, $breakpoints: $grid-breakpoints) {
|
|
188
|
+
@include breakpoint-up($name, $breakpoints) {
|
|
189
|
+
@content;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
/// Common component easings
|
|
4
|
+
/// @type Map
|
|
5
|
+
/// @access public
|
|
6
|
+
/// @group @carbon/motion
|
|
7
|
+
$easings: (
|
|
8
|
+
standard: (
|
|
9
|
+
productive: cubic-bezier(0.2, 0, 0.38, 0.9),
|
|
10
|
+
expressive: cubic-bezier(0.4, 0.14, 0.3, 1),
|
|
11
|
+
),
|
|
12
|
+
entrance: (
|
|
13
|
+
productive: cubic-bezier(0, 0, 0.38, 0.9),
|
|
14
|
+
expressive: cubic-bezier(0, 0, 0.3, 1),
|
|
15
|
+
),
|
|
16
|
+
exit: (
|
|
17
|
+
productive: cubic-bezier(0.2, 0, 1, 0.9),
|
|
18
|
+
expressive: cubic-bezier(0.4, 0.14, 1, 1),
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
/// Get the transition-timing-function for a given easing and motion mode
|
|
23
|
+
/// @param {String} $name - Can be `standard`, `entrance`, or `exit`
|
|
24
|
+
/// @param {String} $mode [productive] - Can be `productive` or `expressive`
|
|
25
|
+
/// @param {Map} $easings [$carbon--easings] - Easings map
|
|
26
|
+
/// @access public
|
|
27
|
+
/// @group @carbon/motion
|
|
28
|
+
/// @return {Function} CSS `cubic-bezier()` function
|
|
29
|
+
@function motion($name, $mode: productive, $easings: $easings) {
|
|
30
|
+
@if map.has-key($easings, $name) {
|
|
31
|
+
$easing: map.get($easings, $name);
|
|
32
|
+
@if map.has-key($easing, $mode) {
|
|
33
|
+
@return map.get($easing, $mode);
|
|
34
|
+
} @else {
|
|
35
|
+
@error 'Unable to find a mode for the easing #{$easing} called: #{$mode}.';
|
|
36
|
+
}
|
|
37
|
+
} @else {
|
|
38
|
+
@error 'Unable to find an easing named #{$name} in our supported easings.';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/// Set the transition-timing-function for a given easing and motion mode
|
|
43
|
+
/// @param {String} $name - The name of the easing curve to apply
|
|
44
|
+
/// @param {String} $mode - The mode for the easing curve to use
|
|
45
|
+
/// @access public
|
|
46
|
+
/// @group @carbon/motion
|
|
47
|
+
@mixin motion($name, $mode) {
|
|
48
|
+
transition-timing-function: motion($name, $mode);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/// @access public
|
|
52
|
+
/// @type Duration
|
|
53
|
+
/// @group @carbon/motion
|
|
54
|
+
$duration-fast-01: 70ms;
|
|
55
|
+
|
|
56
|
+
/// @access public
|
|
57
|
+
/// @type Duration
|
|
58
|
+
/// @group @carbon/motion
|
|
59
|
+
$duration-fast-02: 110ms;
|
|
60
|
+
|
|
61
|
+
/// @access public
|
|
62
|
+
/// @type Duration
|
|
63
|
+
/// @group @carbon/motion
|
|
64
|
+
$duration-moderate-01: 150ms;
|
|
65
|
+
|
|
66
|
+
/// @access public
|
|
67
|
+
/// @type Duration
|
|
68
|
+
/// @group @carbon/motion
|
|
69
|
+
$duration-moderate-02: 240ms;
|
|
70
|
+
|
|
71
|
+
/// @access public
|
|
72
|
+
/// @type Duration
|
|
73
|
+
/// @group @carbon/motion
|
|
74
|
+
$duration-slow-01: 400ms;
|
|
75
|
+
|
|
76
|
+
/// @access public
|
|
77
|
+
/// @type Duration
|
|
78
|
+
/// @group @carbon/motion
|
|
79
|
+
$duration-slow-02: 700ms;
|
package/scss/_motion.scss
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
@forward '@carbon/motion';
|
|
9
|
-
@use '@carbon/motion';
|
|
1
|
+
@forward "./carbonMotion";
|
|
2
|
+
@use "./carbonMotion" as motion;
|
|
10
3
|
|
|
11
4
|
/// Used primarily for removing elements from the screen
|
|
12
5
|
/// @type Function
|
package/scss/_type.scss
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
@use "@progressiveui/themes-core/dist/scss/tokensMapDeep" as *;
|
|
2
2
|
@use "@progressiveui/themes-core/dist/scss/tokens" as tokens;
|
|
3
3
|
@use "./breakpoint" as *;
|
|
4
|
+
@use "sass:map";
|
|
4
5
|
|
|
5
6
|
@mixin reset() {
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
@function map-deep-get($map, $keys...) {
|
|
9
10
|
@each $key in $keys {
|
|
10
|
-
$map: map
|
|
11
|
+
$map: map.get($map, $key);
|
|
11
12
|
}
|
|
12
13
|
@return $map;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
$code-font-family: var(--code-font-family);
|
|
16
|
-
//$font-family-primary: var(--font-family-primary);
|
|
17
17
|
|
|
18
18
|
@mixin font-family($family) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
//font-family: 'Open Sans', Arial, sans-serif;
|
|
19
|
+
& {
|
|
20
|
+
@if $family == "code" {
|
|
21
|
+
font-family: tokens.$font-family-monospace;
|
|
22
|
+
} @else {
|
|
23
|
+
font-family: tokens.$font-family-primary;
|
|
24
|
+
}
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
@@ -31,26 +30,26 @@ $code-font-family: var(--code-font-family);
|
|
|
31
30
|
|
|
32
31
|
//@warn 'This is a step of the WFP Type Scale!', $maped;
|
|
33
32
|
@if map-deep-get($tokens, "typography", $style) {
|
|
34
|
-
$typographyMap: map
|
|
35
|
-
font-size: map
|
|
36
|
-
font-weight: map
|
|
37
|
-
letter-spacing: map
|
|
38
|
-
text-transform: map
|
|
33
|
+
$typographyMap: map.get($tokens, "typography", $style);
|
|
34
|
+
font-size: map.get($typographyMap, "fontSize");
|
|
35
|
+
font-weight: map.get($typographyMap, "fontWeight");
|
|
36
|
+
letter-spacing: map.get($typographyMap, "letterSpacing");
|
|
37
|
+
text-transform: map.get($typographyMap, "textTransform");
|
|
39
38
|
|
|
40
39
|
@if map-deep-get($tokens, "typography", $style, "md") {
|
|
41
40
|
@include breakpoint-up("md") {
|
|
42
|
-
$typographyMapMd: map
|
|
43
|
-
font-weight: map
|
|
44
|
-
letter-spacing: map
|
|
45
|
-
text-transform: map
|
|
41
|
+
$typographyMapMd: map.get($tokens, "typography", $style, "md");
|
|
42
|
+
font-weight: map.get($typographyMapMd, "fontWeight");
|
|
43
|
+
letter-spacing: map.get($typographyMapMd, "letterSpacing");
|
|
44
|
+
text-transform: map.get($typographyMapMd, "textTransform");
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
/*@if map-has-key($typographyMap, 'body-short-02',$style) {
|
|
50
49
|
@warn 'This is a step of the WFP Type Scale!';
|
|
51
|
-
$elements: map
|
|
52
|
-
font-family: map
|
|
53
|
-
font-size: map
|
|
50
|
+
$elements: map.get($tokens, $style);
|
|
51
|
+
font-family: map.get($elements, 'fontFamily');
|
|
52
|
+
font-size: map.get($elements, 'fontSize');
|
|
54
53
|
} @else {
|
|
55
54
|
//@warn 'This is a step of the WFP Type Scale!';
|
|
56
55
|
//@warn 'This is not a step of the WFP Type Scale!' + $style;
|
|
@@ -77,8 +76,8 @@ $typescale-map: (
|
|
|
77
76
|
);
|
|
78
77
|
|
|
79
78
|
@mixin typescale($size) {
|
|
80
|
-
@if map
|
|
81
|
-
font-size: map
|
|
79
|
+
@if map.has-key($typescale-map, $size) {
|
|
80
|
+
font-size: map.get($typescale-map, $size);
|
|
82
81
|
} @else {
|
|
83
82
|
@warn 'This is not a step of the WFP Type Scale!';
|
|
84
83
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "accordion";
|
|
1
|
+
/* @use "accordion";
|
|
2
2
|
@use "anchor-navigation";
|
|
3
3
|
@use "auth-layout";
|
|
4
4
|
@use "avatar";
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
@use "tooltip";
|
|
65
65
|
@use "toggle";
|
|
66
66
|
@use "number-input";
|
|
67
|
+
|
|
67
68
|
@use "radio-button";
|
|
68
69
|
@use "main-navigation";
|
|
69
70
|
@use "wrapper";
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
@use "info-bar";
|
|
76
77
|
@use "item";
|
|
77
78
|
@use "unit";
|
|
79
|
+
|
|
78
80
|
@use "user";
|
|
79
81
|
@use "value";
|
|
80
82
|
@use "col";
|
|
@@ -57,8 +57,11 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
57
57
|
.szh-accordion {
|
|
58
58
|
@include reset;
|
|
59
59
|
@include font-family("sans");
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
|
|
61
|
+
& {
|
|
62
|
+
width: 100%;
|
|
63
|
+
border-bottom: 1px solid $border-strong;
|
|
64
|
+
}
|
|
62
65
|
&__item {
|
|
63
66
|
border-top: 1px solid $border-strong;
|
|
64
67
|
|
|
@@ -100,10 +103,9 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
.#{$prefix}--accordion {
|
|
103
|
-
@include component-reset.reset;
|
|
104
|
-
|
|
105
106
|
width: 100%;
|
|
106
107
|
list-style: none;
|
|
108
|
+
@include component-reset.reset;
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
.#{$prefix}--accordion__item {
|
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
@mixin banner-navigation {
|
|
12
12
|
.#{$prefix}--banner-navigation {
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
@include reset;
|
|
15
|
-
|
|
15
|
+
& {
|
|
16
|
+
display: flex;
|
|
17
|
+
background: $action-solid-fill-primary-default;
|
|
18
|
+
}
|
|
16
19
|
// @include font-smoothing; //added to reset mixin
|
|
17
20
|
@include breakpoint-down("md") {
|
|
18
21
|
display: none;
|
|
@@ -36,11 +39,10 @@
|
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
.#{$prefix}--banner-navigation__item {
|
|
42
|
+
padding: 0 $spacing-03;
|
|
43
|
+
font-size: 0.85rem;
|
|
39
44
|
@include type-style("label");
|
|
40
45
|
@include font-family("sans");
|
|
41
|
-
padding: 0 $spacing-03;
|
|
42
|
-
|
|
43
|
-
font-size: 0.85rem; //TODO: use token
|
|
44
46
|
@include breakpoint("xlg") {
|
|
45
47
|
padding: 0 $spacing-04;
|
|
46
48
|
}
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
@mixin breadcrumb {
|
|
12
12
|
.#{$prefix}--breadcrumb {
|
|
13
|
-
@include type-style("label-02");
|
|
14
|
-
@include font-family("sans");
|
|
15
13
|
display: none;
|
|
16
|
-
|
|
17
14
|
@include breakpoint("sm") {
|
|
18
15
|
display: flex;
|
|
19
16
|
flex-wrap: wrap;
|
|
20
17
|
}
|
|
18
|
+
@include type-style("label-02");
|
|
19
|
+
@include font-family("sans");
|
|
20
|
+
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.#{$prefix}--breadcrumb-home {
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
@use "../../utilities/skeleton" as *;
|
|
11
11
|
@use "../../utilities/rtl" as *;
|
|
12
12
|
@use "../../utilities/visually-hidden" as *;
|
|
13
|
+
|
|
14
|
+
@use 'sass:color';
|
|
13
15
|
//@use 'tokens' as *;
|
|
14
16
|
|
|
15
17
|
@mixin button {
|
|
@@ -402,8 +404,8 @@
|
|
|
402
404
|
|
|
403
405
|
// Skeleton State
|
|
404
406
|
.#{$prefix}--btn.#{$prefix}--skeleton {
|
|
405
|
-
@include skeleton;
|
|
406
407
|
width: calcRem(150px);
|
|
408
|
+
@include skeleton;
|
|
407
409
|
}
|
|
408
410
|
|
|
409
411
|
// Legacy button state styling
|
|
@@ -426,10 +428,10 @@
|
|
|
426
428
|
|
|
427
429
|
.#{$prefix}--btn--navigation {
|
|
428
430
|
@include button-theme(
|
|
429
|
-
|
|
431
|
+
color.scale(#34a2d9, $lightness: 10%),
|
|
430
432
|
transparent,
|
|
431
433
|
$text-inverse-default,
|
|
432
|
-
|
|
434
|
+
color.scale(#34a2d9, $lightness: 10%),
|
|
433
435
|
$icon-on-color
|
|
434
436
|
);
|
|
435
437
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@mixin button-base {
|
|
12
12
|
@include reset;
|
|
13
13
|
@include font-family("sans");
|
|
14
|
+
& {
|
|
14
15
|
cursor: pointer;
|
|
15
16
|
display: inline-flex;
|
|
16
17
|
align-items: center;
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
transition-timing-function: ease-in;
|
|
29
30
|
white-space: nowrap;
|
|
30
31
|
line-height: 16px;
|
|
32
|
+
}
|
|
31
33
|
|
|
32
34
|
&:disabled {
|
|
33
35
|
cursor: not-allowed;
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
|
|
122
122
|
.#{$prefix}--photo-cardnew--overlay {
|
|
123
123
|
height: calcRem(300px);
|
|
124
|
+
box-shadow: none;
|
|
124
125
|
@include breakpoint("lg") {
|
|
125
126
|
height: calcRem(500px);
|
|
126
127
|
}
|
|
127
|
-
box-shadow: none;
|
|
128
128
|
.#{$prefix}--photo-cardnew__info {
|
|
129
129
|
padding: $spacing-06;
|
|
130
130
|
}
|
|
@@ -34,16 +34,15 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.#{$prefix}--checkbox-label {
|
|
37
|
-
@include reset;
|
|
38
|
-
@include font-family("sans");
|
|
39
|
-
// @include font-smoothing;
|
|
40
|
-
@include type-style("label-02");
|
|
41
37
|
display: flex;
|
|
42
38
|
align-items: center;
|
|
43
39
|
cursor: pointer;
|
|
44
40
|
position: relative;
|
|
45
41
|
padding-left: $spacing-06 + 0.1;
|
|
46
42
|
min-height: calcRem(18px);
|
|
43
|
+
@include reset;
|
|
44
|
+
@include font-family("sans");
|
|
45
|
+
@include type-style("label-02");
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.#{$prefix}--checkbox-label::before {
|
|
@@ -20,9 +20,9 @@ $content-switcher-option-border: 2px solid $focus !default;
|
|
|
20
20
|
|
|
21
21
|
@mixin content-switcher {
|
|
22
22
|
.#{$prefix}--content-switcher {
|
|
23
|
-
@include font-family("sans");
|
|
24
23
|
display: flex;
|
|
25
24
|
height: $input-height;
|
|
25
|
+
@include font-family("sans");
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.#{$prefix}--content-switcher--sm {
|
|
@@ -37,15 +37,17 @@ $content-switcher-option-border: 2px solid $focus !default;
|
|
|
37
37
|
@include reset;
|
|
38
38
|
@include type-style("body-short");
|
|
39
39
|
@include font-family("sans");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
& {
|
|
41
|
+
background-color: transparent;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding: 0 $spacing-07;
|
|
45
|
+
margin: 0;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
border: 2px solid $action-default-fill-primary-default;
|
|
49
|
+
color: $action-default-fill-primary-default;
|
|
50
|
+
}
|
|
49
51
|
|
|
50
52
|
&:focus {
|
|
51
53
|
outline: 1px solid transparent;
|
|
@@ -60,13 +62,6 @@ $content-switcher-option-border: 2px solid $focus !default;
|
|
|
60
62
|
&:hover {
|
|
61
63
|
cursor: pointer;
|
|
62
64
|
}
|
|
63
|
-
|
|
64
|
-
&:hover,
|
|
65
|
-
&:active {
|
|
66
|
-
//background-color: $hover-primary;
|
|
67
|
-
//border-color: $hover-primary;
|
|
68
|
-
//color: var(--inverse-01);
|
|
69
|
-
}
|
|
70
65
|
}
|
|
71
66
|
|
|
72
67
|
.#{$prefix}--content-switcher__icon {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@use "../../utilities/high-contrast-mode" as *;
|
|
11
11
|
@use "../../utilities/placeholder-colors" as *;
|
|
12
12
|
@use "../../utilities/skeleton" as *;
|
|
13
|
+
@use 'sass:color';
|
|
13
14
|
|
|
14
15
|
/// Date picker styles
|
|
15
16
|
/// @access public
|
|
@@ -182,7 +183,7 @@ $input-height: 40px !default;
|
|
|
182
183
|
}
|
|
183
184
|
.SingleDatePicker_closeButton:focus,
|
|
184
185
|
.SingleDatePicker_closeButton:hover {
|
|
185
|
-
color:
|
|
186
|
+
color: color.scale(#cacccd, $lightness: -10%);
|
|
186
187
|
text-decoration: none;
|
|
187
188
|
}
|
|
188
189
|
.SingleDatePicker_closeButton_svg {
|
|
@@ -372,7 +373,8 @@ $input-height: 40px !default;
|
|
|
372
373
|
}
|
|
373
374
|
.CalendarDay__selected_span {
|
|
374
375
|
background: #80bede;
|
|
375
|
-
border: 1px double
|
|
376
|
+
border: 1px double color.scale(#cacccd, $lightness: -5%);
|
|
377
|
+
|
|
376
378
|
color: $text-inverse-default;
|
|
377
379
|
}
|
|
378
380
|
.CalendarDay__selected_span:active,
|
|
@@ -881,7 +883,7 @@ $input-height: 40px !default;
|
|
|
881
883
|
}
|
|
882
884
|
.DateRangePicker_closeButton:focus,
|
|
883
885
|
.DateRangePicker_closeButton:hover {
|
|
884
|
-
color:
|
|
886
|
+
color: color.scale(#cacccd, $lightness: -10%);
|
|
885
887
|
text-decoration: none;
|
|
886
888
|
}
|
|
887
889
|
.DateRangePicker_closeButton_svg {
|