@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/_grid.scss CHANGED
@@ -1,9 +1,13 @@
1
- @each $breakpoint in map-keys($grid-breakpoints) {
2
- $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
3
- $size: map-get($grid-breakpoints, $breakpoint);
1
+ @use "sass:map";
2
+ @use "utils";
3
+ @use "variables";
4
+
5
+ @each $breakpoint in map.keys(variables.$grid-breakpoints) {
6
+ $infix: utils.breakpoint-infix($breakpoint, variables.$grid-breakpoints);
7
+ $size: map.get(variables.$grid-breakpoints, $breakpoint);
4
8
 
5
9
  @media (min-width: $size) {
6
- @for $i from 1 through $grid-columns {
10
+ @for $i from 1 through variables.$grid-columns {
7
11
  .fwe-col#{$infix}-#{$i} {
8
12
  grid-column-end: span $i;
9
13
  }
@@ -12,7 +16,7 @@
12
16
  grid-column-start: 1;
13
17
  }
14
18
 
15
- @if $i < $grid-columns {
19
+ @if $i < variables.$grid-columns {
16
20
  .fwe-offset#{$infix}-#{$i} {
17
21
  grid-column-start: $i + 1;
18
22
  }
@@ -23,8 +27,8 @@
23
27
 
24
28
  .fwe-grid {
25
29
  display: grid;
26
- grid-template-columns: repeat($grid-columns, 1fr);
27
- gap: $grid-gap;
30
+ grid-template-columns: repeat(variables.$grid-columns, 1fr);
31
+ gap: variables.$grid-gap;
28
32
 
29
33
  &.fwe-no-gap {
30
34
  gap: 0px;
package/scss/_icons.scss CHANGED
@@ -1,6 +1,8 @@
1
+ @use "variables";
2
+
1
3
  .fwe-icon {
2
- font-family: $font-family-icons-16; // this is needed to center the icons vertically
3
- font-size: $font-size-base;
4
+ font-family: variables.$font-family-icons-16; // this is needed to center the icons vertically
5
+ font-size: variables.$font-size-base;
4
6
  display: inline-block;
5
7
  &:before {
6
8
  line-height: 1;
@@ -12,35 +14,35 @@
12
14
  text-transform: none;
13
15
  -webkit-font-smoothing: antialiased;
14
16
  -moz-osx-font-smoothing: grayscale;
15
- font-family: $font-family-icons-16;
17
+ font-family: variables.$font-family-icons-16;
16
18
  }
17
19
  }
18
20
 
19
21
  .fwe-icon-lg {
20
22
  font-size: 24px;
21
23
  &:before {
22
- font-family: $font-family-icons-24 !important;
24
+ font-family: variables.$font-family-icons-24 !important;
23
25
  }
24
26
  }
25
27
 
26
28
  .fwe-icon-2x {
27
29
  font-size: 32px;
28
30
  &:before {
29
- font-family: $font-family-icons-32 !important;
31
+ font-family: variables.$font-family-icons-32 !important;
30
32
  }
31
33
  }
32
34
 
33
35
  .fwe-icon-3x {
34
36
  font-size: 48px;
35
37
  &:before {
36
- font-family: $font-family-icons-24 !important;
38
+ font-family: variables.$font-family-icons-24 !important;
37
39
  }
38
40
  }
39
41
 
40
42
  .fwe-icon-4x {
41
43
  font-size: 64px;
42
44
  &:before {
43
- font-family: $font-family-icons-32 !important;
45
+ font-family: variables.$font-family-icons-32 !important;
44
46
  }
45
47
  }
46
48
 
package/scss/_layout.scss CHANGED
@@ -1,12 +1,15 @@
1
+ @use "sass:map";
2
+ @use "variables";
3
+
1
4
  .fwe-container {
2
- padding: $container-padding;
5
+ padding: variables.$container-padding;
3
6
  box-sizing: border-box;
4
7
  width: 100%;
5
8
  }
6
9
 
7
- @each $breakpoint in map-keys($grid-breakpoints) {
8
- $padding: map-get($container-paddings, $breakpoint);
9
- $size: map-get($grid-breakpoints, $breakpoint);
10
+ @each $breakpoint in map.keys(variables.$grid-breakpoints) {
11
+ $padding: map.get(variables.$container-paddings, $breakpoint);
12
+ $size: map.get(variables.$grid-breakpoints, $breakpoint);
10
13
 
11
14
  @if $size != 0 {
12
15
  @media (min-width: $size) {
@@ -26,15 +29,15 @@
26
29
  max-width: 1920px - 128;
27
30
  margin-right: 64px;
28
31
  margin-left: 64px;
29
- @media (max-width: $grid-breakpoint-lg) {
32
+ @media (max-width: variables.$grid-breakpoint-lg) {
30
33
  margin-right: 32px;
31
34
  margin-left: 32px;
32
35
  }
33
- @media (max-width: $grid-breakpoint-sm) {
36
+ @media (max-width: variables.$grid-breakpoint-sm) {
34
37
  margin-right: 16px;
35
38
  margin-left: 16px;
36
39
  }
37
- @media (max-width: $grid-breakpoint-xs) {
40
+ @media (max-width: variables.$grid-breakpoint-xs) {
38
41
  margin-right: 8px;
39
42
  margin-left: 8px;
40
43
  }
package/scss/_list.scss CHANGED
@@ -1,3 +1,5 @@
1
+ @use "variables";
2
+
1
3
  ul.fwe-list-group {
2
4
  margin: 0;
3
5
  padding: 0;
@@ -44,7 +46,7 @@ ul.fwe-list-group {
44
46
  display: flex;
45
47
  flex-grow: 1;
46
48
  width: 100%;
47
- font-weight: $font-weight-bold;
49
+ font-weight: variables.$font-weight-bold;
48
50
  margin-bottom: 24px;
49
51
  margin-top: 16px;
50
52
  }
@@ -56,7 +58,7 @@ ul.fwe-list-group {
56
58
 
57
59
  .fwe-list-group-item-footer {
58
60
  width: 100%;
59
- font-size: $font-size-small;
61
+ font-size: variables.$font-size-small;
60
62
  margin-bottom: 16px;
61
63
  }
62
64
 
@@ -67,7 +69,7 @@ ul.fwe-list-group {
67
69
  bottom: 0;
68
70
  width: 1px;
69
71
  left: 0;
70
- background-color: $hero;
72
+ background-color: variables.$hero;
71
73
  transform-origin: left top;
72
74
  transform: scaleX(0);
73
75
  transition: transform 0.3s;
@@ -79,25 +81,25 @@ ul.fwe-list-group {
79
81
  }
80
82
 
81
83
  .fwe-list-group-item-head {
82
- color: $hero;
84
+ color: variables.$hero;
83
85
  }
84
86
  }
85
87
 
86
88
  &.fwe-disabled {
87
- color: $text-disabled;
89
+ color: variables.$text-disabled;
88
90
  &::before {
89
- background-color: $control-hover;
91
+ background-color: variables.$control-hover;
90
92
  }
91
93
  }
92
94
  }
93
95
 
94
96
  a.fwe-list-group-item {
95
97
  cursor: pointer;
96
- color: $text;
98
+ color: variables.$text;
97
99
 
98
100
  &:not(.fwe-disabled):hover {
99
- color: $text;
100
- background-color: $sucanul;
101
+ color: variables.$text;
102
+ background-color: variables.$sucanul;
101
103
  }
102
104
  }
103
105
 
@@ -110,14 +112,14 @@ ul.fwe-list-group {
110
112
  cursor: pointer;
111
113
 
112
114
  &:not(.fwe-disabled):hover {
113
- background-color: $sucanul;
115
+ background-color: variables.$sucanul;
114
116
  }
115
117
  }
116
118
 
117
119
  &.fwe-list-group-border {
118
120
  .fwe-list-group-item,
119
121
  button.fwe-list-group-item {
120
- border-bottom: 1px solid $border;
122
+ border-bottom: 1px solid variables.$border;
121
123
  &:last-child {
122
124
  border-bottom: none;
123
125
  }
@@ -150,28 +152,28 @@ ul.fwe-list-group {
150
152
  right: 0;
151
153
  width: 100%;
152
154
  height: 1px;
153
- background-color: $hero;
155
+ background-color: variables.$hero;
154
156
  transform-origin: center bottom;
155
157
  transform: scaleY(0);
156
158
  transition: transform 0.3s;
157
159
  }
158
160
 
159
161
  &.fwe-active {
160
- color: $hero;
162
+ color: variables.$hero;
161
163
 
162
164
  &::before {
163
165
  transform: scaleY(4);
164
166
  }
165
167
 
166
168
  .fwe-list-group-item-head {
167
- color: $hero;
169
+ color: variables.$hero;
168
170
  }
169
171
  }
170
172
 
171
173
  &.fwe-disabled {
172
- color: $text-disabled;
174
+ color: variables.$text-disabled;
173
175
  &::before {
174
- background-color: $control-hover;
176
+ background-color: variables.$control-hover;
175
177
  }
176
178
  }
177
179
  }
@@ -189,7 +191,7 @@ ul.fwe-list-group {
189
191
  width: auto;
190
192
 
191
193
  &:not(.fwe-disabled):hover {
192
- color: $hero;
194
+ color: variables.$hero;
193
195
  background-color: unset;
194
196
  }
195
197
  }
@@ -200,7 +202,7 @@ ul.fwe-list-group {
200
202
  display: flex;
201
203
  align-items: center;
202
204
  padding: 14px 24px;
203
- border-bottom: 1px solid $border;
205
+ border-bottom: 1px solid variables.$border;
204
206
 
205
207
  button {
206
208
  margin-left: auto;
@@ -1,10 +1,12 @@
1
+ @use "variables";
2
+
1
3
  $spinner-duration: 3s;
2
4
  $pulsing-duration: 1s;
3
5
 
4
6
  @media (prefers-reduced-motion: reduce) {
5
7
  .fwe-waiting-circle-1 {
6
8
  animation: non-motion-animation $pulsing-duration infinite alternate !important;
7
- border-color: $hero !important;
9
+ border-color: variables.$hero !important;
8
10
  }
9
11
 
10
12
  .fwe-waiting-circle-2,
@@ -23,7 +25,7 @@ $pulsing-duration: 1s;
23
25
  align-items: center;
24
26
  .fwe-waiting-content-container {
25
27
  margin-top: 12px;
26
- color: $hero;
28
+ color: variables.$hero;
27
29
  }
28
30
  }
29
31
 
@@ -47,9 +49,9 @@ $pulsing-duration: 1s;
47
49
  position: absolute;
48
50
  width: 96px;
49
51
  height: 96px;
50
- border: 8px solid $hero;
52
+ border: 8px solid variables.$hero;
51
53
  border-radius: 50%;
52
- border-color: $hero transparent transparent transparent;
54
+ border-color: variables.$hero transparent transparent transparent;
53
55
  }
54
56
  .fwe-waiting-circle-1 {
55
57
  animation: fwe-wi-animation-1 $spinner-duration linear infinite;
package/scss/_mixins.scss CHANGED
@@ -1,3 +1,5 @@
1
+ @use "variables";
2
+
1
3
  @mixin firefox-only {
2
4
  @at-root {
3
5
  @-moz-document url-prefix() {
@@ -24,7 +26,7 @@
24
26
  @mixin custom-scrollbar {
25
27
  @-moz-document url-prefix() {
26
28
  scrollbar-width: thin;
27
- scrollbar-color: $control-scrollbar transparent;
29
+ scrollbar-color: variables.$control-scrollbar transparent;
28
30
  }
29
31
  @media (pointer: fine) {
30
32
  &::-webkit-scrollbar {
@@ -37,7 +39,7 @@
37
39
 
38
40
  &::-webkit-scrollbar-thumb {
39
41
  overflow: visible;
40
- background-color: $control-scrollbar;
42
+ background-color: variables.$control-scrollbar;
41
43
  // use $gray-100 with opacity 0 for effect of margins of scrollbar
42
44
  border: 3px solid rgba(242, 243, 245, 0);
43
45
  // hide the background with background clip
@@ -1,3 +1,6 @@
1
+ @use "mixins";
2
+ @use "variables";
3
+
1
4
  .fwe-mobile-flyout {
2
5
  position: relative;
3
6
 
@@ -16,12 +19,12 @@
16
19
  display: block;
17
20
  height: 24px;
18
21
  width: 24px;
19
- background-color: $text;
22
+ background-color: variables.$text;
20
23
  }
21
24
  @media (hover: hover) and (pointer: fine) {
22
25
  &:hover {
23
26
  &::after {
24
- background-color: $hero;
27
+ background-color: variables.$hero;
25
28
  }
26
29
  }
27
30
  }
@@ -43,20 +46,19 @@
43
46
  .fwe-mobile-flyout-container {
44
47
  position: fixed;
45
48
  display: flex;
46
- top: $navbar-height;
49
+ top: variables.$navbar-height;
47
50
  left: 0px;
48
51
  width: 384px;
49
- height: calc(100vh - #{$navbar-height});
50
- background-color: $white;
52
+ height: calc(100vh - #{variables.$navbar-height});
53
+ background-color: variables.$white;
51
54
  flex-direction: column;
52
55
  box-shadow: 0px 1px 4px #00000029;
53
56
  overflow: hidden;
54
57
  transform: translateX(-105%);
55
-
56
- @media (max-width: $grid-breakpoint-xs) {
58
+ transition: transform 0.3s ease;
59
+ @media (max-width: variables.$grid-breakpoint-xs) {
57
60
  width: 100% !important;
58
61
  }
59
- transition: transform 0.3s ease;
60
62
  &.fwe-opened {
61
63
  transform: translateX(0%);
62
64
  }
@@ -64,7 +66,7 @@
64
66
  }
65
67
 
66
68
  .fwe-mobile-flyout-page {
67
- background: $white;
69
+ background: variables.$white;
68
70
  position: absolute;
69
71
  left: 0;
70
72
  top: 0;
@@ -72,9 +74,9 @@
72
74
  bottom: 0;
73
75
  transform: translateX(100%);
74
76
  transition: transform 0.3s ease;
75
- @include custom-scrollbar;
76
77
  overflow-x: hidden;
77
78
  overflow-y: auto;
79
+ @include mixins.custom-scrollbar;
78
80
 
79
81
  &.fwe-opened {
80
82
  transform: translateX(0%);
@@ -85,7 +87,7 @@
85
87
  height: 53px;
86
88
  display: flex;
87
89
  align-items: center;
88
- background: $background;
90
+ background: variables.$background;
89
91
  position: relative;
90
92
  padding-left: 40px;
91
93
  &::after {
@@ -98,7 +100,7 @@
98
100
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMTZWMGgxNnYxNnoiLz48cGF0aCBmaWxsPSIjMzMzIiBkPSJNMTAuMzU0IDQuMzU0IDYuNzA3IDhsMy42NDcgMy42NDYtLjcwOC43MDhMNS4yOTMgOGw0LjM1My00LjM1NC43MDguNzA4eiIvPjwvc3ZnPg==");
99
101
  }
100
102
  &:hover {
101
- background: $control;
103
+ background: variables.$control;
102
104
  }
103
105
  div {
104
106
  margin-top: -1px;
@@ -108,19 +110,19 @@
108
110
 
109
111
  .fwe-mobile-flyout-item-container {
110
112
  padding: 24px;
111
- @media (max-width: $grid-breakpoint-xs) {
113
+ @media (max-width: variables.$grid-breakpoint-xs) {
112
114
  padding: 16px;
113
115
  }
114
116
  }
115
117
  }
116
118
 
117
119
  .fwe-mobile-flyout-item {
118
- color: $text;
120
+ color: variables.$text;
119
121
  cursor: pointer;
120
122
  display: flex;
121
123
  align-items: center;
122
124
  height: 56px;
123
125
  &.fwe-active {
124
- color: $hero;
126
+ color: variables.$hero;
125
127
  }
126
128
  }
package/scss/_modal.scss CHANGED
@@ -1,7 +1,10 @@
1
+ @use "mixins";
2
+ @use "variables";
3
+
1
4
  .fwe-modal {
2
- padding: $spacer-xl;
3
- z-index: $zindex-modal;
4
- background-color: $white;
5
+ padding: variables.$spacer-xl;
6
+ z-index: variables.$zindex-modal;
7
+ background-color: variables.$white;
5
8
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
6
9
  position: relative;
7
10
  width: 92vw;
@@ -13,26 +16,26 @@
13
16
  overflow: hidden;
14
17
 
15
18
  .fwe-modal-body {
16
- @include custom-scrollbar;
17
19
  overflow-x: hidden;
18
20
  overflow-y: auto;
21
+ @include mixins.custom-scrollbar;
19
22
  }
20
23
 
21
24
  &-h1 {
22
25
  margin-top: 0;
23
- margin-bottom: $spacer-l;
24
- margin-right: $spacer-l;
26
+ margin-bottom: variables.$spacer-l;
27
+ margin-right: variables.$spacer-l;
25
28
  overflow: hidden;
26
29
  text-overflow: ellipsis;
27
30
  }
28
31
 
29
32
  &-h2 {
30
33
  margin-top: 0;
31
- margin-bottom: $spacer-xs;
32
- margin-right: $spacer-l;
33
- font-size: $font-size-md;
34
+ margin-bottom: variables.$spacer-xs;
35
+ margin-right: variables.$spacer-l;
36
+ font-size: variables.$font-size-md;
34
37
  line-height: 18px;
35
- font-weight: $font-weight-bold;
38
+ font-weight: variables.$font-weight-bold;
36
39
  white-space: nowrap;
37
40
  overflow: hidden;
38
41
  text-overflow: ellipsis;
@@ -41,18 +44,18 @@
41
44
 
42
45
  &-close-btn {
43
46
  position: absolute;
44
- top: $spacer-l;
45
- right: $spacer-l;
47
+ top: variables.$spacer-l;
48
+ right: variables.$spacer-l;
46
49
  width: 32px;
47
50
  height: 32px;
48
51
  padding: 0;
49
52
  border: none;
50
53
  min-width: 32px;
51
54
  cursor: pointer;
52
- background: $text;
55
+ background: variables.$text;
53
56
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIgZGF0YS1uYW1lPSJ3aGl0ZSBiYWNrZ3JvdW5kIi8+PHBhdGggZmlsbD0iIzMzMyIgZD0iTTIxLjQ4IDkuMSAxNiAxNC41OSAxMC41MSA5LjEgOS4xIDEwLjUyIDE0LjU4IDE2IDkuMSAyMS40OWwxLjQxIDEuNDFMMTYgMTcuNDJsNS40OCA1LjQ4IDEuNDItMS40MUwxNy40MSAxNmw1LjQ5LTUuNDgtMS40Mi0xLjQyeiIgZGF0YS1uYW1lPSJjb250ZW50Ii8+PC9zdmc+");
54
57
  &:hover {
55
- background: $hero;
58
+ background: variables.$hero;
56
59
  }
57
60
  }
58
61
 
@@ -66,7 +69,7 @@
66
69
  width: 100%;
67
70
  height: 100%;
68
71
  overflow: auto;
69
- margin-bottom: $spacer-l;
72
+ margin-bottom: variables.$spacer-l;
70
73
  p:first-child {
71
74
  margin-top: 0;
72
75
  }
@@ -78,18 +81,18 @@
78
81
  &-buttons {
79
82
  flex-shrink: 0;
80
83
  display: grid;
81
- grid-column-gap: $spacer-xs;
84
+ grid-column-gap: variables.$spacer-xs;
82
85
  grid-auto-flow: column;
83
86
  grid-auto-columns: minmax(0, 1fr);
84
87
  }
85
88
 
86
89
  &--with-indicator-bar {
87
- border-left: 8px solid $hero;
90
+ border-left: 8px solid variables.$hero;
88
91
 
89
92
  &.fwe-modal--warning,
90
93
  &.fwe-modal--error {
91
94
  button.fwe-btn.fwe-btn-link {
92
- color: $text;
95
+ color: variables.$text;
93
96
  }
94
97
  }
95
98
  }
@@ -109,7 +112,7 @@
109
112
  }
110
113
  }
111
114
 
112
- @media (max-width: $grid-breakpoint-xs), (max-height: $grid-breakpoint-xs) {
115
+ @media (max-width: variables.$grid-breakpoint-xs), (max-height: variables.$grid-breakpoint-xs) {
113
116
  .fwe-modal-h1 {
114
117
  padding-left: 32px;
115
118
  position: relative;
@@ -136,7 +139,7 @@
136
139
  }
137
140
 
138
141
  &--warning {
139
- border-color: $orange;
142
+ border-color: variables.$orange;
140
143
  .fwe-modal-h2::before {
141
144
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxNnYxNkgweiIgZGF0YS1uYW1lPSJ3aGl0ZSBiYWNrZ3JvdW5kIi8+PHBhdGggZmlsbD0iI2ZmOTYwMCIgZD0iTTE1LjIxNiAxMy41MyA4Ljg4MiAxLjY1M2ExIDEgMCAwIDAtMS43NjQgMEwuNzg0IDEzLjUzQTEgMSAwIDAgMCAxLjY2NyAxNWgxMi42NjZhMSAxIDAgMCAwIC44ODMtMS40N1pNOSAxM0g3di0yaDJabTAtM0g3VjVoMloiIGRhdGEtbmFtZT0iY29udGVudCIvPjwvc3ZnPg==");
142
145
  }
@@ -147,7 +150,7 @@
147
150
  }
148
151
 
149
152
  &--error {
150
- border-color: $red;
153
+ border-color: variables.$red;
151
154
  .fwe-modal-h2::before {
152
155
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxNnYxNkgweiIgZGF0YS1uYW1lPSJ3aGl0ZSBiYWNrZ3JvdW5kIi8+PHBhdGggZmlsbD0iI2Q1MDAwMCIgZD0iTTggMS4wODFhNi45NiA2Ljk2IDAgMSAwIDYuOTYgNi45NkE2Ljk2IDYuOTYgMCAwIDAgOCAxLjA4Wm0yLjM5NyA5Ljk3MUw3Ljk1OCA4LjYxM2wtMi4zNTUgMi4zNTYtLjYzNy0uNjM3IDIuMzU2LTIuMzU1LTIuMjI4LTIuMjI4LjYzNi0uNjM3TDcuOTU4IDcuMzRsMi4zMTEtMi4zMTEuNjM3LjYzNy0yLjMxMSAyLjMxMSAyLjQzOSAyLjQzOFoiIGRhdGEtbmFtZT0iY29udGVudCIvPjwvc3ZnPg==");
153
156
  }
@@ -169,45 +172,45 @@
169
172
 
170
173
  .fwe-modal-backdrop {
171
174
  position: fixed;
172
- background-color: $background-modal;
175
+ background-color: variables.$background-modal;
173
176
  top: 0;
174
177
  left: 0;
175
178
  width: 100vw;
176
179
  height: 100vh;
177
- z-index: $zindex-modal-backdrop;
180
+ z-index: variables.$zindex-modal-backdrop;
178
181
  display: flex;
179
182
  align-items: center;
180
183
  justify-content: center;
181
184
  }
182
185
 
183
- @media (max-width: $grid-breakpoint-xs), (max-height: $grid-breakpoint-xs) {
186
+ @media (max-width: variables.$grid-breakpoint-xs), (max-height: variables.$grid-breakpoint-xs) {
184
187
  .fwe-modal {
185
188
  // always use block buttons on this width
189
+ padding: variables.$spacer-m;
186
190
  &-buttons {
187
191
  justify-content: unset !important;
188
192
  grid-auto-columns: minmax(0, 1fr) !important;
189
193
  }
190
- padding: $spacer-m;
191
194
 
192
195
  &-close-btn {
193
- top: $spacer-xs;
194
- right: $spacer-xs;
196
+ top: variables.$spacer-xs;
197
+ right: variables.$spacer-xs;
195
198
  }
196
199
 
197
200
  &-h1 {
198
- font-size: $font-size-xl;
199
- line-height: $spacer-l;
201
+ font-size: variables.$font-size-xl;
202
+ line-height: variables.$spacer-l;
200
203
  margin-top: 0;
201
- margin-bottom: $spacer-m;
202
- margin-right: $spacer-s;
204
+ margin-bottom: variables.$spacer-m;
205
+ margin-right: variables.$spacer-s;
203
206
  }
204
207
 
205
208
  &-h2 {
206
- @include visual-hidden();
209
+ @include mixins.visual-hidden();
207
210
  }
208
211
 
209
212
  &-body {
210
- margin-bottom: $spacer-m;
213
+ margin-bottom: variables.$spacer-m;
211
214
  }
212
215
  }
213
216
  }