@festo-ui/web-essentials 7.3.0-dev.461 → 7.3.0-dev.464

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.
Files changed (135) hide show
  1. package/README.md +83 -83
  2. package/dist/css/festo-web-essentials.css +81 -58
  3. package/dist/css/festo-web-essentials.css.map +1 -1
  4. package/dist/css/festo-web-essentials.min.css +34 -2
  5. package/dist/css/festo-web-essentials.min.css.map +1 -1
  6. package/dist/css/organisms/festo-web-essentials-organisms.css +5 -0
  7. package/dist/css/organisms/festo-web-essentials-organisms.css.map +1 -1
  8. package/dist/css/organisms/festo-web-essentials-organisms.min.css +5 -1
  9. package/dist/css/organisms/festo-web-essentials-organisms.min.css.map +1 -1
  10. package/dist/css/themes/flatpickr/festo.css +1 -1
  11. package/dist/css/themes/flatpickr/festo.css.map +1 -1
  12. package/dist/css/themes/flatpickr/festo.min.css +1 -1
  13. package/dist/scss/_accordion.scss +26 -24
  14. package/dist/scss/_badge.scss +11 -9
  15. package/dist/scss/_border.scss +9 -5
  16. package/dist/scss/_bottom-navigation.scss +8 -6
  17. package/dist/scss/_bottom-sheet.scss +19 -16
  18. package/dist/scss/_breadcrumb.scss +7 -5
  19. package/dist/scss/_button.scss +25 -22
  20. package/dist/scss/_cards.scss +13 -11
  21. package/dist/scss/_checkbox.scss +18 -16
  22. package/dist/scss/_chips.scss +25 -22
  23. package/dist/scss/_colors.scss +3 -1
  24. package/dist/scss/_display.scss +9 -5
  25. package/dist/scss/_flex.scss +10 -5
  26. package/dist/scss/_fonts.scss +13 -11
  27. package/dist/scss/_grid.scss +11 -7
  28. package/dist/scss/_icons.scss +9 -7
  29. package/dist/scss/_layout.scss +10 -7
  30. package/dist/scss/_list.scss +20 -18
  31. package/dist/scss/_loading-indicator.scss +6 -4
  32. package/dist/scss/_mixins.scss +4 -2
  33. package/dist/scss/_mobile-flyout.scss +17 -15
  34. package/dist/scss/_modal.scss +36 -33
  35. package/dist/scss/_navbar-menu.scss +118 -116
  36. package/dist/scss/_navbar.scss +30 -48
  37. package/dist/scss/_normalize.scss +16 -13
  38. package/dist/scss/_pagination.scss +23 -21
  39. package/dist/scss/_popover.scss +21 -19
  40. package/dist/scss/_progressbar.scss +14 -12
  41. package/dist/scss/_radio.scss +20 -18
  42. package/dist/scss/_rfs.scss +5 -4
  43. package/dist/scss/_root.scss +5 -3
  44. package/dist/scss/_scroll.scss +6 -3
  45. package/dist/scss/_search-input.scss +15 -13
  46. package/dist/scss/_segment.scss +30 -27
  47. package/dist/scss/_select.scss +20 -18
  48. package/dist/scss/_sidebar-overlay.scss +7 -5
  49. package/dist/scss/_slider.scss +26 -23
  50. package/dist/scss/_snackbar.scss +48 -45
  51. package/dist/scss/_spacing.scss +9 -5
  52. package/dist/scss/_stepper-horizontal.scss +22 -20
  53. package/dist/scss/_stepper-vertical.scss +18 -16
  54. package/dist/scss/_switch.scss +12 -10
  55. package/dist/scss/_table.scss +11 -9
  56. package/dist/scss/_text-input.scss +24 -22
  57. package/dist/scss/_text-link.scss +7 -5
  58. package/dist/scss/_timepicker.scss +10 -8
  59. package/dist/scss/_toolbar.scss +8 -6
  60. package/dist/scss/_tree.scss +67 -68
  61. package/dist/scss/_type.scss +10 -8
  62. package/dist/scss/_utils.scss +2 -1
  63. package/dist/scss/_variables.scss +3 -2
  64. package/dist/scss/festo-web-essentials.scss +53 -53
  65. package/dist/scss/organisms/_footer.scss +13 -11
  66. package/dist/scss/organisms/_header-modul.scss +14 -12
  67. package/dist/scss/organisms/_header-slider.scss +10 -8
  68. package/dist/scss/organisms/_image-gallery.scss +19 -17
  69. package/dist/scss/organisms/_login.scss +14 -12
  70. package/dist/scss/organisms/_side-menu.scss +8 -5
  71. package/dist/scss/organisms/_teaser.scss +7 -5
  72. package/dist/scss/organisms/festo-web-essentials-organisms.scss +9 -9
  73. package/dist/scss/themes/flatpickr/festo.scss +2 -2
  74. package/package.json +3 -3
  75. package/scss/_accordion.scss +26 -24
  76. package/scss/_badge.scss +11 -9
  77. package/scss/_border.scss +9 -5
  78. package/scss/_bottom-navigation.scss +8 -6
  79. package/scss/_bottom-sheet.scss +19 -16
  80. package/scss/_breadcrumb.scss +7 -5
  81. package/scss/_button.scss +25 -22
  82. package/scss/_cards.scss +13 -11
  83. package/scss/_checkbox.scss +18 -16
  84. package/scss/_chips.scss +25 -22
  85. package/scss/_colors.scss +3 -1
  86. package/scss/_display.scss +9 -5
  87. package/scss/_flex.scss +10 -5
  88. package/scss/_fonts.scss +13 -11
  89. package/scss/_grid.scss +11 -7
  90. package/scss/_icons.scss +9 -7
  91. package/scss/_layout.scss +10 -7
  92. package/scss/_list.scss +20 -18
  93. package/scss/_loading-indicator.scss +6 -4
  94. package/scss/_mixins.scss +4 -2
  95. package/scss/_mobile-flyout.scss +17 -15
  96. package/scss/_modal.scss +36 -33
  97. package/scss/_navbar-menu.scss +118 -116
  98. package/scss/_navbar.scss +30 -48
  99. package/scss/_normalize.scss +16 -13
  100. package/scss/_pagination.scss +23 -21
  101. package/scss/_popover.scss +21 -19
  102. package/scss/_progressbar.scss +14 -12
  103. package/scss/_radio.scss +20 -18
  104. package/scss/_rfs.scss +5 -4
  105. package/scss/_root.scss +5 -3
  106. package/scss/_scroll.scss +6 -3
  107. package/scss/_search-input.scss +15 -13
  108. package/scss/_segment.scss +30 -27
  109. package/scss/_select.scss +20 -18
  110. package/scss/_sidebar-overlay.scss +7 -5
  111. package/scss/_slider.scss +26 -23
  112. package/scss/_snackbar.scss +48 -45
  113. package/scss/_spacing.scss +9 -5
  114. package/scss/_stepper-horizontal.scss +22 -20
  115. package/scss/_stepper-vertical.scss +18 -16
  116. package/scss/_switch.scss +12 -10
  117. package/scss/_table.scss +11 -9
  118. package/scss/_text-input.scss +24 -22
  119. package/scss/_text-link.scss +7 -5
  120. package/scss/_timepicker.scss +10 -8
  121. package/scss/_toolbar.scss +8 -6
  122. package/scss/_tree.scss +67 -68
  123. package/scss/_type.scss +10 -8
  124. package/scss/_utils.scss +2 -1
  125. package/scss/_variables.scss +3 -2
  126. package/scss/festo-web-essentials.scss +52 -52
  127. package/scss/organisms/_footer.scss +13 -11
  128. package/scss/organisms/_header-modul.scss +14 -12
  129. package/scss/organisms/_header-slider.scss +10 -8
  130. package/scss/organisms/_image-gallery.scss +19 -17
  131. package/scss/organisms/_login.scss +14 -12
  132. package/scss/organisms/_side-menu.scss +8 -5
  133. package/scss/organisms/_teaser.scss +7 -5
  134. package/scss/organisms/festo-web-essentials-organisms.scss +9 -9
  135. package/scss/themes/flatpickr/festo.scss +1 -1
package/scss/_navbar.scss CHANGED
@@ -1,35 +1,37 @@
1
+ @use "variables";
2
+
1
3
  header.fwe-fixed-header {
2
4
  position: fixed;
3
5
  left: 0px;
4
6
  right: 0px;
5
7
  top: 0px;
6
- z-index: $zindex-fixed;
8
+ z-index: variables.$zindex-fixed;
7
9
  }
8
10
 
9
11
  .fwe-navbar-spacer {
10
- height: $navbar-height;
11
- min-height: $navbar-height;
12
+ height: variables.$navbar-height;
13
+ min-height: variables.$navbar-height;
12
14
  &.fwe-bottom-box-spacer {
13
- height: $navbar-height + $navbar-bottom-box-height;
14
- min-height: $navbar-height + $navbar-bottom-box-height;
15
+ height: variables.$navbar-height + variables.$navbar-bottom-box-height;
16
+ min-height: variables.$navbar-height + variables.$navbar-bottom-box-height;
15
17
  }
16
18
  }
17
19
 
18
20
  .fwe-navbar {
19
21
  display: flex;
20
22
  align-items: center;
21
- height: $navbar-height;
22
- max-height: $navbar-height;
23
- background: $white;
24
- border-bottom: 1px solid $border;
23
+ height: variables.$navbar-height;
24
+ max-height: variables.$navbar-height;
25
+ background: variables.$white;
26
+ border-bottom: 1px solid variables.$border;
25
27
  position: relative;
26
28
  overflow: visible;
27
29
 
28
- @media (max-width: $breakpoint-lg-min) {
30
+ @media (max-width: variables.$breakpoint-lg-min) {
29
31
  padding-left: 36px;
30
32
  }
31
33
 
32
- @media (max-width: $breakpoint-md-min) {
34
+ @media (max-width: variables.$breakpoint-md-min) {
33
35
  padding-left: 0px;
34
36
  }
35
37
 
@@ -52,7 +54,7 @@ header.fwe-fixed-header {
52
54
  height: 24px;
53
55
  width: 24px;
54
56
  }
55
- @media (min-width: $grid-breakpoint-md) {
57
+ @media (min-width: variables.$grid-breakpoint-md) {
56
58
  display: block;
57
59
  }
58
60
  }
@@ -66,7 +68,7 @@ header.fwe-fixed-header {
66
68
  display: none;
67
69
  margin-bottom: 17px;
68
70
  margin-right: 48px;
69
- @media (min-width: $grid-breakpoint-md) {
71
+ @media (min-width: variables.$grid-breakpoint-md) {
70
72
  display: block;
71
73
  }
72
74
  }
@@ -74,8 +76,8 @@ header.fwe-fixed-header {
74
76
  .fwe-container {
75
77
  display: flex;
76
78
  align-items: flex-end;
77
- height: $navbar-height;
78
- max-height: $navbar-height;
79
+ height: variables.$navbar-height;
80
+ max-height: variables.$navbar-height;
79
81
 
80
82
  img.fwe-logo {
81
83
  position: relative;
@@ -85,26 +87,6 @@ header.fwe-fixed-header {
85
87
  }
86
88
  }
87
89
 
88
- // this exists for reasons of compatibility
89
- // it was replaced with a newer style (see _mobile.menu.scss)
90
- .fwe-navbar-burger-menu {
91
- @extend .fwe-icon;
92
- @extend .fwe-icon-lg;
93
- @extend .fwe-icon-menu-menu;
94
- padding: 0px;
95
- line-height: 1;
96
- height: 24px;
97
- border: none;
98
- background: none;
99
- outline: none;
100
- margin-bottom: 16px;
101
- margin-right: auto;
102
- cursor: pointer;
103
- &:hover {
104
- color: $hero;
105
- }
106
- }
107
-
108
90
  @keyframes fadeInAnimation {
109
91
  0% {
110
92
  visibility: hidden;
@@ -160,7 +142,7 @@ header.fwe-fixed-header {
160
142
  .fwe-mobile-navlist-container {
161
143
  display: none;
162
144
  align-items: stretch;
163
- background: $background-modal;
145
+ background: variables.$background-modal;
164
146
  position: fixed;
165
147
  left: 0px;
166
148
  right: 0px;
@@ -170,7 +152,7 @@ header.fwe-fixed-header {
170
152
 
171
153
  nav.fwe-mobile-navlist {
172
154
  width: 300px;
173
- background: $white;
155
+ background: variables.$white;
174
156
  &:first-child {
175
157
  padding-top: 48px;
176
158
  }
@@ -181,10 +163,10 @@ header.fwe-fixed-header {
181
163
  padding: 16px 32px 16px 48px;
182
164
  list-style-type: none;
183
165
  display: block;
184
- color: $text;
166
+ color: variables.$text;
185
167
 
186
168
  &.fwe-active {
187
- color: $hero;
169
+ color: variables.$hero;
188
170
  }
189
171
  }
190
172
  }
@@ -212,7 +194,7 @@ header.fwe-fixed-header {
212
194
  a {
213
195
  display: block;
214
196
  white-space: nowrap;
215
- color: $text;
197
+ color: variables.$text;
216
198
  padding-bottom: 17px;
217
199
  position: relative;
218
200
  margin-right: 24px;
@@ -226,11 +208,11 @@ header.fwe-fixed-header {
226
208
  bottom: 0px;
227
209
  height: 0px;
228
210
  content: "";
229
- background: $hero;
211
+ background: variables.$hero;
230
212
  transition: height 0.2s;
231
213
  }
232
214
  &.fwe-active {
233
- color: $hero;
215
+ color: variables.$hero;
234
216
  &::after {
235
217
  height: 4px;
236
218
  }
@@ -240,7 +222,7 @@ header.fwe-fixed-header {
240
222
 
241
223
  .fwe-button-container {
242
224
  display: grid;
243
- grid-column-gap: $spacer-m;
225
+ grid-column-gap: variables.$spacer-m;
244
226
  grid-auto-flow: column;
245
227
  margin-bottom: 13px;
246
228
  align-items: center;
@@ -254,21 +236,21 @@ header.fwe-fixed-header {
254
236
  width: 113px;
255
237
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='113.15' height='20'%3E%3Cg fill='%230091dc'%3E%3Cpath d='M82.06 20h-4.14a.25.25 0 01-.2-.06c-.06-.07-.05-.2-.02-.33a1.92 1.92 0 00.02-.29V4.45c0-.43-1.06-.44-1.19-.44h-6.88a1.25 1.25 0 01-1.01-.9V0h21.68c.38 0 .53 0 .53.39v2.7c0 .37-.14.92-.53.92h-6.9c-.39 0-.65.07-.65.44v14.86a.71.71 0 01-.71.68zm-18.6 0H49.62a4.19 4.19 0 01-2.93-1.18 4.1 4.1 0 01-1.26-2.88v-.68c0-.24.18-.27.37-.27H46l.2.01h4.13c.25 0 .69.07.69.5 0 .41.37.5.68.5h8.97c.79 0 .9-.72.9-1.42v-1.35c0-.75-.15-1.22-.9-1.22H49.64a4.3 4.3 0 01-2.96-1.25 4.21 4.21 0 01-1.26-2.93V3.77a3.91 3.91 0 011.3-2.76 3.96 3.96 0 012.65-1H63.7a3.94 3.94 0 012.64 1 3.9 3.9 0 011.29 2.76v.68c0 .39-.39.56-.75.56h-4.14c-.25 0-.68-.06-.68-.5 0-.32-.25-.5-.7-.5H52.4c-.77 0-.92.4-.92 1.11v1.36c0 1.01.31 1.53.92 1.53h11.2a4.05 4.05 0 012.75 1.08 4 4 0 011.28 2.8v4.05a4.08 4.08 0 01-1.24 2.88A4.17 4.17 0 0163.46 20zM43.4 20H22.75c-.34 0-.54-.25-.54-.68V.39c0-.36.15-.38.54-.38H43.4c.38 0 1.01 0 1.01.38v2.72a1.21 1.21 0 01-1.01.9H28.26c-.37 0-1 .06-1 .45v2.7c0 .37.63.85 1 .85h13.8c.16 0 .24.02.29.07s.05.15.05.3v2.83c0 .37 0 .8-.34.8h-13.8c-.35 0-1 .16-1 .56v2.7c0 .38.62.74 1 .74H43.4c.4 0 1.01.24 1.01.62v2.7c0 .38-.61.67-1.01.67zM4.6 20H.68a.68.68 0 01-.69-.68V.4C0 .01.32.01.69.01H20c.15 0 .21 0 .23.03s0 .04 0 .09a1 1 0 00-.04.26v2.72a2.7 2.7 0 00.02.3c.03.21.06.44-.04.54a.22.22 0 01-.17.06H6.2c-.26 0-1.15.03-1.15.44v2.71c0 .37.78.85 1.16.85h12.41a.63.63 0 01.07 0 .62.62 0 01.4.15.61.61 0 01.22.44v2.72a.7.7 0 01-.7.69H6.22c-.4 0-1.16.2-1.16.56v6.75c0 .35-.06.68-.46.68z' /%3E%3Cpath d='M109.55 20H96.3a3.24 3.24 0 01-2.58-1.2 4.5 4.5 0 01-.93-2.87V3.76a3.52 3.52 0 01.92-2.7A3.33 3.33 0 0196.13 0h13.61a3.38 3.38 0 012.43 1.05 3.58 3.58 0 01.98 2.71v12.17a3.84 3.84 0 01-.95 2.84 3.61 3.61 0 01-2.65 1.22zM98.95 4c-.81 0-1.32.43-1.32 1.11v9.46A1.38 1.38 0 0098.95 16h7.95a1.46 1.46 0 001.4-1.42l-.01-9.46c0-.5-.37-1.1-1.4-1.1z' /%3E%3C/g%3E%3C/svg%3E");
256
238
  background-repeat: no-repeat;
257
- @media (max-width: $breakpoint-xs-min) {
239
+ @media (max-width: variables.$breakpoint-xs-min) {
258
240
  margin-right: 8px;
259
241
  }
260
242
  }
261
- @media (max-width: $grid-breakpoint-sm) {
243
+ @media (max-width: variables.$grid-breakpoint-sm) {
262
244
  margin-left: 32px !important;
263
245
  }
264
246
  }
265
247
  }
266
248
 
267
249
  .fwe-navbar-bottom-box {
268
- background-color: $control;
250
+ background-color: variables.$control;
269
251
  .fwe-container {
270
252
  overflow: hidden;
271
- height: $navbar-bottom-box-height;
253
+ height: variables.$navbar-bottom-box-height;
272
254
  display: flex;
273
255
  align-items: center;
274
256
  }
@@ -276,5 +258,5 @@ header.fwe-fixed-header {
276
258
 
277
259
  // Margin for fixed overlay elements used with fixed navbar
278
260
  .fwe-navbar-margin {
279
- margin-top: $navbar-height;
261
+ margin-top: variables.$navbar-height;
280
262
  }
@@ -1,3 +1,6 @@
1
+ @use "rfs";
2
+ @use "variables";
3
+
1
4
  // Normalization of HTML elements, manually forked from Normalize.css to remove
2
5
  // styles targeting irrelevant browsers while applying new styles.
3
6
  // Normalize is licensed MIT. https://github.com/necolas/normalize.css
@@ -16,7 +19,7 @@
16
19
  */
17
20
 
18
21
  html {
19
- line-height: $line-height-base; /* 1.5 */
22
+ line-height: variables.$line-height-base; /* 1.5 */
20
23
  -webkit-text-size-adjust: 100%; /* 2 */
21
24
  }
22
25
 
@@ -29,12 +32,12 @@ html {
29
32
 
30
33
  body {
31
34
  margin: 0;
32
- font-family: $font-family-base;
33
- font-feature-settings: $font-feature-settings;
34
- font-size: $font-size-base;
35
- font-weight: $font-weight-base;
36
- color: $text;
37
- background: $background;
35
+ font-family: variables.$font-family-base;
36
+ font-feature-settings: variables.$font-feature-settings;
37
+ font-size: variables.$font-size-base;
38
+ font-weight: variables.$font-weight-base;
39
+ color: variables.$text;
40
+ background: variables.$background;
38
41
  }
39
42
 
40
43
  /**
@@ -68,7 +71,7 @@ hr {
68
71
  height: 0; /* 1 */
69
72
  overflow: visible; /* 2 */
70
73
  border: none;
71
- border-bottom: 1px solid $border;
74
+ border-bottom: 1px solid variables.$border;
72
75
  }
73
76
 
74
77
  /**
@@ -77,7 +80,7 @@ hr {
77
80
  */
78
81
 
79
82
  pre {
80
- font-family: $font-family-monospace; /* 1 */
83
+ font-family: variables.$font-family-monospace; /* 1 */
81
84
  font-size: 1em; /* 2 */
82
85
  }
83
86
 
@@ -109,7 +112,7 @@ abbr[title] {
109
112
 
110
113
  b,
111
114
  strong {
112
- font-weight: $font-weight-bold;
115
+ font-weight: variables.$font-weight-bold;
113
116
  }
114
117
 
115
118
  /**
@@ -120,8 +123,8 @@ strong {
120
123
  code,
121
124
  kbd,
122
125
  samp {
123
- font-family: $font-family-monospace;
124
- @include font-size(1em); /* 2 */
126
+ font-family: variables.$font-family-monospace;
127
+ @include rfs.font-size(1em); /* 2 */
125
128
  }
126
129
 
127
130
  /**
@@ -179,7 +182,7 @@ select,
179
182
  textarea {
180
183
  font-family: inherit; /* 1 */
181
184
  font-size: 100%; /* 1 */
182
- line-height: $line-height-base; /* 1.5 */
185
+ line-height: variables.$line-height-base; /* 1.5 */
183
186
  margin: 0; /* 2 */
184
187
  }
185
188
 
@@ -1,3 +1,5 @@
1
+ @use "variables";
2
+
1
3
  .fwe-pagination {
2
4
  display: flex;
3
5
 
@@ -6,7 +8,7 @@
6
8
  content: "";
7
9
  height: 24px;
8
10
  width: 24px;
9
- background-color: $text;
11
+ background-color: variables.$text;
10
12
  }
11
13
 
12
14
  line-height: normal;
@@ -14,7 +16,7 @@
14
16
  display: inline-flex;
15
17
  align-items: center;
16
18
  text-align: center;
17
- font-family: $font-family-base;
19
+ font-family: variables.$font-family-base;
18
20
  padding: 0px;
19
21
  height: 24px;
20
22
  width: 24px;
@@ -24,13 +26,13 @@
24
26
 
25
27
  &:hover {
26
28
  &::before {
27
- background-color: $hero;
29
+ background-color: variables.$hero;
28
30
  }
29
31
  }
30
32
 
31
33
  &:active {
32
34
  &::before {
33
- background-color: $hero-hover;
35
+ background-color: variables.$hero-hover;
34
36
  }
35
37
  }
36
38
 
@@ -43,7 +45,7 @@
43
45
  cursor: default;
44
46
 
45
47
  &::before {
46
- background-color: $text-disabled;
48
+ background-color: variables.$text-disabled;
47
49
  }
48
50
  }
49
51
  }
@@ -70,33 +72,33 @@
70
72
  width: 6px;
71
73
  height: 6px;
72
74
  margin: 9px 4px;
73
- background: $control-border;
75
+ background: variables.$control-border;
74
76
  border-radius: 50%;
75
77
 
76
78
  &:hover {
77
- background: $control-border-hover;
79
+ background: variables.$control-border-hover;
78
80
  }
79
81
 
80
82
  &.fwe-selected {
81
- background: $hero;
83
+ background: variables.$hero;
82
84
  cursor: default;
83
85
  }
84
86
  }
85
87
 
86
88
  .fwe-page-current {
87
- font-feature-settings: $font-feature-settings;
88
- font-size: $font-size-base;
89
- font-weight: $font-weight-bold;
90
- border-right: 1px solid $text;
89
+ font-feature-settings: variables.$font-feature-settings;
90
+ font-size: variables.$font-size-base;
91
+ font-weight: variables.$font-weight-bold;
92
+ border-right: 1px solid variables.$text;
91
93
  padding: 0px 12px 0px 4px;
92
94
  }
93
95
 
94
96
  .fwe-page-max {
95
- font-feature-settings: $font-feature-settings;
96
- font-size: $font-size-small;
97
+ font-feature-settings: variables.$font-feature-settings;
98
+ font-size: variables.$font-size-small;
97
99
  line-height: 24px;
98
100
  padding: 0px 4px 0px 12px;
99
- font-weight: $font-weight-normal;
101
+ font-weight: variables.$font-weight-normal;
100
102
  }
101
103
 
102
104
  &--lining-tabular-numbers {
@@ -106,7 +108,7 @@
106
108
 
107
109
  .fwe-page-max {
108
110
  font-feature-settings: inherit;
109
- font-size: $font-size-base;
111
+ font-size: variables.$font-size-base;
110
112
  }
111
113
  }
112
114
  }
@@ -114,22 +116,22 @@
114
116
  .fwe-pagination.fwe-pagination--on-dark-bg {
115
117
  .fwe-navigate-btn-down {
116
118
  &::before {
117
- background-color: $white;
119
+ background-color: variables.$white;
118
120
  }
119
121
  }
120
122
 
121
123
  .fwe-navigate-btn-up {
122
124
  &::before {
123
- background-color: $white;
125
+ background-color: variables.$white;
124
126
  }
125
127
  }
126
128
 
127
129
  .fwe-page-current {
128
- color: $white;
129
- border-right: 1px solid $white;
130
+ color: variables.$white;
131
+ border-right: 1px solid variables.$white;
130
132
  }
131
133
 
132
134
  .fwe-page-max {
133
- color: $white;
135
+ color: variables.$white;
134
136
  }
135
137
  }
@@ -1,3 +1,5 @@
1
+ @use "variables";
2
+
1
3
  %triangle-base {
2
4
  width: 17px;
3
5
  height: 17px;
@@ -8,7 +10,7 @@
8
10
  position: absolute;
9
11
  width: 12px;
10
12
  height: 12px;
11
- background: $white;
13
+ background: variables.$white;
12
14
  transform: rotate(45deg);
13
15
  box-shadow: 0px 1px 4px #33333333;
14
16
  }
@@ -81,15 +83,15 @@
81
83
  }
82
84
 
83
85
  %popover-base {
84
- background-color: $white;
86
+ background-color: variables.$white;
85
87
  box-shadow: 0px 1px 4px #33333333;
86
- border-radius: $control-border-radius;
88
+ border-radius: variables.$control-border-radius;
87
89
  }
88
90
 
89
91
  .fwe-popover {
90
92
  @extend %popover-base;
91
- padding: $spacer * 0.5;
92
- font-size: $font-size-md;
93
+ padding: variables.$spacer * 0.5;
94
+ font-size: variables.$font-size-md;
93
95
  line-height: 1rem;
94
96
  }
95
97
 
@@ -100,33 +102,33 @@
100
102
 
101
103
  @mixin popover-menu {
102
104
  @extend %popover-base;
103
- font-size: $font-size-base;
105
+ font-size: variables.$font-size-base;
104
106
  line-height: 1.5rem;
105
- padding: $spacer;
107
+ padding: variables.$spacer;
106
108
  .fwe-list-group {
107
109
  .fwe-list-group-item {
108
110
  border-bottom: none;
109
- min-height: $spacer * 2.25;
111
+ min-height: variables.$spacer * 2.25;
110
112
  padding: 0;
111
113
  button {
112
114
  width: 100%;
113
115
  margin-left: inherit;
114
- padding: 0 ($spacer * 0.5) 0 0;
116
+ padding: 0 (variables.$spacer * 0.5) 0 0;
115
117
  text-align: left;
116
- height: $spacer * 2;
117
- max-height: $spacer * 2;
118
+ height: variables.$spacer * 2;
119
+ max-height: variables.$spacer * 2;
118
120
  display: inline-flex;
119
121
  justify-content: unset;
120
122
  &:hover {
121
- color: $black;
123
+ color: variables.$black;
122
124
  }
123
125
  i {
124
126
  display: inline-flex;
125
127
  align-items: center;
126
128
  justify-content: center;
127
129
  flex-wrap: nowrap;
128
- height: $spacer * 1.5;
129
- width: $spacer * 2;
130
+ height: variables.$spacer * 1.5;
131
+ width: variables.$spacer * 2;
130
132
  margin-right: 0px;
131
133
  &::before {
132
134
  display: inline-flex;
@@ -138,14 +140,14 @@
138
140
  }
139
141
  span {
140
142
  display: inline-flex;
141
- height: $spacer * 1.5;
143
+ height: variables.$spacer * 1.5;
142
144
  }
143
145
  [class*=" fwe-icon-"] {
144
146
  margin-left: inherit;
145
147
  }
146
148
  }
147
149
  &:hover {
148
- color: $black;
150
+ color: variables.$black;
149
151
  background-color: #3333331a;
150
152
  }
151
153
  &:active {
@@ -157,8 +159,8 @@
157
159
 
158
160
  @mixin popover-legend {
159
161
  display: table;
160
- margin: $spacer;
161
- line-height: $spacer * 1.5;
162
+ margin: variables.$spacer;
163
+ line-height: variables.$spacer * 1.5;
162
164
  }
163
165
 
164
166
  @mixin popover-legend-content {
@@ -166,7 +168,7 @@
166
168
  dt {
167
169
  display: table-cell;
168
170
  margin: 0;
169
- padding-right: $spacer * 0.5;
171
+ padding-right: variables.$spacer * 0.5;
170
172
  }
171
173
  dd {
172
174
  display: table-cell;
@@ -1,8 +1,10 @@
1
+ @use "variables";
2
+
1
3
  .fwe-progress {
2
4
  display: flex;
3
5
  height: 8px;
4
- background-color: $control;
5
- border-radius: $border-radius-m;
6
+ background-color: variables.$control;
7
+ border-radius: variables.$border-radius-m;
6
8
  overflow: hidden;
7
9
 
8
10
  .fwe-progress-bar {
@@ -11,16 +13,16 @@
11
13
  justify-content: center;
12
14
  overflow: hidden;
13
15
  transition: width 0.6s ease;
14
- background-color: $hero;
15
- border-radius: $border-radius-m;
16
- box-shadow: 4px 0px 0px 0px $white;
16
+ background-color: variables.$hero;
17
+ border-radius: variables.$border-radius-m;
18
+ box-shadow: 4px 0px 0px 0px variables.$white;
17
19
 
18
20
  &.fwe-progress-bar-black {
19
- box-shadow: 4px 0px 0px 0px $black;
21
+ box-shadow: 4px 0px 0px 0px variables.$black;
20
22
  }
21
23
 
22
24
  &.fwe-progress-bar-background {
23
- box-shadow: 4px 0px 0px 0px $background;
25
+ box-shadow: 4px 0px 0px 0px variables.$background;
24
26
  }
25
27
  }
26
28
  }
@@ -40,8 +42,8 @@ fieldset.fwe-progress-container {
40
42
  padding-right: 0px;
41
43
  height: 18px;
42
44
  line-height: 18px;
43
- font-size: $font-size-small;
44
- font-weight: $font-weight-bold;
45
+ font-size: variables.$font-size-small;
46
+ font-weight: variables.$font-weight-bold;
45
47
  }
46
48
 
47
49
  p {
@@ -60,8 +62,8 @@ fieldset.fwe-progress-container {
60
62
  padding-left: 4px;
61
63
  height: 18px;
62
64
  line-height: 18px;
63
- font-size: $font-size-small;
64
- font-weight: $font-weight-bold;
65
- color: $hero;
65
+ font-size: variables.$font-size-small;
66
+ font-weight: variables.$font-weight-bold;
67
+ color: variables.$hero;
66
68
  }
67
69
  }
package/scss/_radio.scss CHANGED
@@ -1,3 +1,5 @@
1
+ @use "variables";
2
+
1
3
  $defaultHeight: 16px;
2
4
  $defaultWidth: 16px;
3
5
  $lgHeight: 24px;
@@ -78,8 +80,8 @@ label.fwe-radio {
78
80
  border-width: 1px;
79
81
  border-style: solid;
80
82
  border-radius: 50%;
81
- border-color: $control-border;
82
- background-color: $white;
83
+ border-color: variables.$control-border;
84
+ background-color: variables.$white;
83
85
  }
84
86
 
85
87
  &::after {
@@ -94,8 +96,8 @@ label.fwe-radio {
94
96
  border-width: 5px;
95
97
  border-style: solid;
96
98
  border-radius: 50%;
97
- border-color: $white;
98
- background-color: $white;
99
+ border-color: variables.$white;
100
+ background-color: variables.$white;
99
101
  transition: none;
100
102
  }
101
103
  }
@@ -134,42 +136,42 @@ label.fwe-radio {
134
136
  cursor: pointer;
135
137
 
136
138
  &:hover:not(:disabled) ~ .fwe-radio-checkmark::before {
137
- background-color: $control;
139
+ background-color: variables.$control;
138
140
  }
139
141
 
140
142
  &:hover:invalid ~ .fwe-radio-checkmark::before {
141
- background-color: $white;
143
+ background-color: variables.$white;
142
144
  }
143
145
 
144
146
  &:hover:checked:not(:disabled) ~ .fwe-radio-checkmark::after {
145
- border-color: $hero-hover;
147
+ border-color: variables.$hero-hover;
146
148
  }
147
149
 
148
150
  &:active ~ .fwe-radio-checkmark::before {
149
- border-color: $control-hover;
150
- background-color: $white;
151
+ border-color: variables.$control-hover;
152
+ background-color: variables.$white;
151
153
  }
152
154
 
153
155
  &:checked ~ .fwe-radio-checkmark::before {
154
- border-color: $border;
155
- background-color: $hero;
156
+ border-color: variables.$border;
157
+ background-color: variables.$hero;
156
158
  }
157
159
 
158
160
  &:checked ~ .fwe-radio-checkmark::after {
159
- border-color: $hero;
161
+ border-color: variables.$hero;
160
162
  transition: transform ease-out 0.15s;
161
163
  transform: scale(1, 1);
162
164
  }
163
165
 
164
166
  &:disabled ~ .fwe-radio-checkmark::before {
165
- background-color: $control-disabled;
166
- border-color: $control-disabled;
167
+ background-color: variables.$control-disabled;
168
+ border-color: variables.$control-disabled;
167
169
  cursor: not-allowed;
168
170
  }
169
171
 
170
172
  &:disabled ~ .fwe-radio-checkmark::after {
171
- background-color: $white;
172
- border-color: $control-disabled;
173
+ background-color: variables.$white;
174
+ border-color: variables.$control-disabled;
173
175
  cursor: not-allowed;
174
176
  }
175
177
 
@@ -178,12 +180,12 @@ label.fwe-radio {
178
180
  }
179
181
 
180
182
  &:disabled ~ .fwe-radio-label-content {
181
- color: $text-disabled;
183
+ color: variables.$text-disabled;
182
184
  cursor: not-allowed;
183
185
  }
184
186
 
185
187
  &:invalid ~ .fwe-radio-checkmark::before {
186
- border-color: $red;
188
+ border-color: variables.$red;
187
189
  }
188
190
  }
189
191
  }