@luizleon/sf.prefeiturasp.vuecomponents 0.0.37 → 0.0.38

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 (40) hide show
  1. package/dist/components/drawer/Drawer.d.ts +55 -0
  2. package/dist/components/internal/ThemeToggle.d.ts +11 -8
  3. package/dist/components/internal/getMaxZindex.d.ts +2 -0
  4. package/dist/lib.es.js +2030 -1907
  5. package/dist/lib.es.js.map +1 -1
  6. package/dist/lib.umd.js +16 -16
  7. package/dist/lib.umd.js.map +1 -1
  8. package/dist/style.css +1 -1
  9. package/package.json +3 -2
  10. package/src/components/drawer/Drawer.d.ts +55 -0
  11. package/src/components/drawer/Drawer.vue +131 -0
  12. package/src/components/internal/HeaderAvatar.vue +18 -1
  13. package/src/components/internal/getMaxZindex.ts +14 -0
  14. package/src/components/layout/Layout.vue +1 -14
  15. package/src/index.ts +0 -1
  16. package/src/services/authService.ts +3 -4
  17. package/src/style/componentes.scss +1 -1
  18. package/src/style/src/_functions.scss +3 -170
  19. package/src/style/src/_mixins.scss +70 -553
  20. package/src/style/src/_variables.scss +1 -87
  21. package/src/style/src/components/_button.scss +22 -22
  22. package/src/style/src/components/_drawer.scss +29 -39
  23. package/src/style/src/components/_icon.scss +17 -20
  24. package/src/style/src/components/_layout.scss +5 -47
  25. package/src/style/src/components/_mask.scss +35 -0
  26. package/src/style/src/components/_themetoggle.scss +30 -3
  27. package/src/style/src/sweetalert/scss/_core.scss +13 -14
  28. package/src/style/src/sweetalert/scss/_variables.scss +17 -11
  29. package/src/style/src/_animation.scss +0 -441
  30. package/src/style/src/_display.scss +0 -10
  31. package/src/style/src/_flexbox.scss +0 -85
  32. package/src/style/src/_gap.scss +0 -8
  33. package/src/style/src/_grid.scss +0 -100
  34. package/src/style/src/_normalize.scss +0 -351
  35. package/src/style/src/_ripple.scss +0 -30
  36. package/src/style/src/_size.scss +0 -98
  37. package/src/style/src/_spacing.scss +0 -42
  38. package/src/style/src/_typography.scss +0 -43
  39. package/src/style/src/components/_internal-icon-button.scss +0 -5
  40. package/src/style/tema.scss +0 -171
@@ -1,87 +1 @@
1
- @use "sass:color";
2
-
3
- $prefix: "sf-" !default;
4
- $separator: "\\:" !default;
5
-
6
- $sm: 576px !default;
7
- $md: 768px !default;
8
- $lg: 992px !default;
9
- $xl: 1200px !default;
10
- $gutter: 0.5rem !default;
11
-
12
- $fieldMargin: 1rem !default;
13
- $fieldLabelMargin: 0.5rem !default;
14
- $helperTextMargin: 0.25rem !default;
15
-
16
- $spacer: 1rem !default;
17
-
18
- $breakpoints: (
19
- "sm": $sm,
20
- "md": $md,
21
- "lg": $lg,
22
- "xl": $xl,
23
- ) !default;
24
-
25
- $red: #f44336;
26
- $pink: #e91e63;
27
- $purple: #9c27b0;
28
- $deepPurple: #673ab7;
29
- $indigo: #3f51b5;
30
- $blue: #2196f3;
31
- $lightBlue: #03a9f4;
32
- $cyan: #00bcd4;
33
- $teal: #009688;
34
- $green: #4caf50;
35
- $lightGreen: #8bc34a;
36
- $lime: #cddc39;
37
- $yellow: #ffeb3b;
38
- $amber: #ffc107;
39
- $orange: #ff9800;
40
- $deepOrange: #ff5722;
41
- $brown: #795548;
42
- $gray: #9e9e9e;
43
- $blueGray: #607d8b;
44
-
45
- $colors: (
46
- "--red": $red,
47
- "--pink": $pink,
48
- "--purple": $purple,
49
- "--deepPurple": $deepPurple,
50
- "--indigo": $indigo,
51
- "--blue": $blue,
52
- "--lightBlue": $lightBlue,
53
- "--cyan": $cyan,
54
- "--teal": $teal,
55
- "--green": $green,
56
- "--lightGreen": $lightGreen,
57
- "--lime": $lime,
58
- "--yellow": $yellow,
59
- "--amber": $amber,
60
- "--orange": $orange,
61
- "--deepOrange": $deepOrange,
62
- "--brown": $brown,
63
- "--gray": $gray,
64
- "--blueGray": $blueGray,
65
- );
66
-
67
- $icon-hover-color: color.scale($blueGray, $alpha: -80%);
68
-
69
- $theme-colors-list: (
70
- "--primary",
71
- "--info",
72
- "--success",
73
- "--warn",
74
- "--help",
75
- "--error",
76
- "--secondary"
77
- );
78
-
79
- $theme-colors-hover-list: (
80
- "--primary-hover",
81
- "--info-hover",
82
- "--success-hover",
83
- "--warn-hover",
84
- "--help-hover",
85
- "--error-hover",
86
- "--secondary-hover"
87
- );
1
+ $prefix: "sf-" !default;
@@ -1,6 +1,6 @@
1
1
  @use "../mixins";
2
2
 
3
- .sf-button {
3
+ .#{$prefix}button {
4
4
  position: relative;
5
5
  display: inline-flex;
6
6
  align-items: center;
@@ -12,26 +12,26 @@
12
12
  cursor: pointer;
13
13
  }
14
14
 
15
- .sf-button-label {
15
+ .#{$prefix}button-label {
16
16
  white-space: nowrap;
17
17
  }
18
18
 
19
- .sf-icon {
19
+ .#{$prefix}icon {
20
20
  position: absolute;
21
21
  > button {
22
22
  color: currentColor !important;
23
23
  }
24
24
  }
25
25
 
26
- &.sf-component-loading {
26
+ &.#{$prefix}component-loading {
27
27
  color: var(--disabled-color) !important;
28
28
  border-color: var(--disabled-color) !important;
29
- .sf-button-label {
29
+ .#{$prefix}button-label {
30
30
  color: transparent !important;
31
31
  }
32
32
  }
33
33
 
34
- &.sf-button-filled:disabled {
34
+ &.#{$prefix}button-filled:disabled {
35
35
  background-color: hsla(
36
36
  var(--disabled-color-h),
37
37
  var(--disabled-color-s),
@@ -40,59 +40,59 @@
40
40
  ) !important;
41
41
  }
42
42
 
43
- &.sf-button-small {
43
+ &.#{$prefix}button-small {
44
44
  height: 32px;
45
45
  font-size: 0.875rem;
46
46
  padding: 0 12px;
47
- &.sf-button-with-icon {
47
+ &.#{$prefix}button-with-icon {
48
48
  padding-left: 28px;
49
49
  }
50
- .sf-icon {
50
+ .#{$prefix}icon {
51
51
  inset: 0 0 0 6px;
52
- &.sf-component-loading {
52
+ &.#{$prefix}component-loading {
53
53
  inset: 0 0 0 50%;
54
54
  margin-left: -8px;
55
55
  }
56
56
  }
57
- .sf-button-label {
57
+ .#{$prefix}button-label {
58
58
  line-height: 32px;
59
59
  }
60
60
  }
61
61
 
62
- &.sf-button-medium {
62
+ &.#{$prefix}button-medium {
63
63
  height: 36px;
64
64
  font-size: 1rem;
65
65
  padding: 0 12px;
66
- &.sf-button-with-icon {
66
+ &.#{$prefix}button-with-icon {
67
67
  padding-left: 38px;
68
68
  }
69
- .sf-icon {
69
+ .#{$prefix}icon {
70
70
  inset: 0 0 0 8px;
71
- &.sf-component-loading {
71
+ &.#{$prefix}component-loading {
72
72
  inset: 0 0 0 50%;
73
73
  margin-left: -12px;
74
74
  }
75
75
  }
76
- .sf-button-label {
76
+ .#{$prefix}button-label {
77
77
  line-height: 36px;
78
78
  }
79
79
  }
80
80
 
81
- &.sf-button-large {
81
+ &.#{$prefix}button-large {
82
82
  height: 48px;
83
83
  font-size: 1.25rem;
84
84
  padding: 0 16px;
85
- &.sf-button-with-icon {
85
+ &.#{$prefix}button-with-icon {
86
86
  padding-left: 54px;
87
87
  }
88
- .sf-icon {
88
+ .#{$prefix}icon {
89
89
  inset: 0 0 0 10px;
90
- &.sf-component-loading {
90
+ &.#{$prefix}component-loading {
91
91
  inset: 0 0 0 50%;
92
92
  margin-left: -18px;
93
93
  }
94
94
  }
95
- .sf-button-label {
95
+ .#{$prefix}button-label {
96
96
  line-height: 48px;
97
97
  }
98
98
  }
@@ -101,7 +101,7 @@
101
101
  }
102
102
 
103
103
  html.dark {
104
- .sf-button {
104
+ .#{$prefix}button {
105
105
  @include button-colors(true);
106
106
  }
107
107
  }
@@ -1,91 +1,81 @@
1
- .sf-drawer {
1
+ @import "../variables";
2
+
3
+ .#{$prefix}drawer {
2
4
  pointer-events: auto;
3
5
  height: var(--window-height);
4
6
  background: var(--bg-color);
5
7
  border-right: 1px solid var(--surface-border-color);
6
- width: 360px;
8
+ width: min(360px, 100vw);
7
9
  transform: translate3d(0px, 0px, 0px);
8
10
  opacity: 1;
9
11
  transition: all 0.2s linear;
10
- @media screen and (min-width: #{$xl}) {
11
- width: 480px;
12
- }
13
- @media screen and (max-width: #{$sm}) {
14
- width: 100%;
15
- border: none;
16
- }
17
- .sf-drawer-header,
18
- .sf-drawer-footer {
12
+ .#{$prefix}drawer-header,
13
+ .#{$prefix}drawer-footer {
19
14
  border-color: var(--surface-border-color);
20
15
  height: 60px;
21
16
  }
22
- .sf-drawer-header {
17
+ .#{$prefix}drawer-header {
23
18
  padding: 0 1.25rem;
24
19
  display: flex;
25
20
  align-items: center;
26
21
  justify-content: space-between;
27
22
  border-bottom: 1px solid var(--surface-border-color);
28
- .sf-drawer-title {
23
+ .#{$prefix}drawer-title {
29
24
  white-space: nowrap;
30
25
  overflow: hidden;
31
26
  text-overflow: ellipsis;
27
+ flex-grow: 1;
32
28
  }
33
29
  }
34
- .sf-drawer-content {
30
+ .#{$prefix}drawer-content {
35
31
  overflow: auto;
36
- height: 100%;
32
+ height: calc(var(--window-height) - 60px);
37
33
  }
38
- .sf-drawer-footer {
34
+ .#{$prefix}drawer-footer {
39
35
  border-top: 1px solid var(--surface-border-color);
40
36
  }
41
- &.sf-drawer-with-title .sf-drawer-content {
42
- height: calc(100% - 60px);
43
- }
44
- &.sf-drawer-with-footer .sf-drawer-content {
45
- height: calc(100% - 60px);
46
- }
47
- &.sf-drawer-with-title.sf-drawer-with-footer .sf-drawer-content {
48
- height: calc(100% - 120px);
37
+ &.#{$prefix}drawer-with-footer .#{$prefix}drawer-content {
38
+ height: calc(var(--window-height) - 120px);
49
39
  }
50
40
  }
51
- .sf-drawer-enter-active {
41
+ .#{$prefix}drawer-enter-active {
52
42
  transition: all 0.2 linear;
53
43
  }
54
- .sf-drawer-leave-active {
44
+ .#{$prefix}drawer-leave-active {
55
45
  transition: all 0.2 linear;
56
46
  }
57
- .sf-drawer-enter-from,
58
- .sf-drawer-leave-to {
47
+ .#{$prefix}drawer-enter-from,
48
+ .#{$prefix}drawer-leave-to {
59
49
  transform: translate3d(-100%, 0px, 0px);
60
50
  }
61
- .sf-mask.right {
51
+ .#{$prefix}mask.right {
62
52
  justify-content: flex-end;
63
- .sf-drawer {
53
+ .#{$prefix}drawer {
64
54
  border-left: 1px solid var(--surface-border-color);
65
55
  border-right: unset;
66
56
  }
67
- .sf-drawer-enter-from,
68
- .sf-drawer-leave-to {
57
+ .#{$prefix}drawer-enter-from,
58
+ .#{$prefix}drawer-leave-to {
69
59
  transform: translate3d(100%, 0px, 0px);
70
60
  }
71
61
  }
72
- .sf-mask.bottom,
73
- .sf-mask.full {
62
+ .#{$prefix}mask.bottom,
63
+ .#{$prefix}mask.full {
74
64
  justify-content: flex-end;
75
- .sf-drawer {
65
+ .#{$prefix}drawer {
76
66
  border-left: unset;
77
67
  border-top: 1px solid var(--surface-border-color);
78
68
  width: 100%;
79
69
  height: 420px;
80
70
  align-self: end;
81
71
  }
82
- .sf-drawer-enter-from,
83
- .sf-drawer-leave-to {
72
+ .#{$prefix}drawer-enter-from,
73
+ .#{$prefix}drawer-leave-to {
84
74
  transform: translate3d(0px, var(--window-height), 0px);
85
75
  }
86
76
  }
87
77
 
88
- .sf-mask.bottom .sf-drawer {
78
+ .mask.bottom .#{$prefix}drawer {
89
79
  @media screen and (max-height: 360px) {
90
80
  height: var(--window-height);
91
81
  }
@@ -94,6 +84,6 @@
94
84
  }
95
85
  }
96
86
 
97
- .sf-mask.full .sf-drawer {
87
+ .mask.full .#{$prefix}drawer {
98
88
  height: var(--window-height);
99
89
  }
@@ -1,7 +1,7 @@
1
1
  @import "../variables";
2
2
  @import "../mixins";
3
3
 
4
- div.sf-icon {
4
+ div.#{$prefix}icon {
5
5
  position: relative;
6
6
  display: inline-flex;
7
7
  align-items: center;
@@ -31,31 +31,31 @@ div.sf-icon {
31
31
  outline-offset: 0px;
32
32
  }
33
33
 
34
- .sf-loading-circle {
34
+ .#{$prefix}loading-circle {
35
35
  svg {
36
36
  stroke: currentColor;
37
37
  }
38
38
  }
39
39
 
40
- &.sf-icon-filled {
40
+ &.#{$prefix}icon-filled {
41
41
  button {
42
42
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0,
43
43
  "opsz" 48;
44
44
  }
45
45
  }
46
46
 
47
- &.sf-icon-small {
47
+ &.#{$prefix}icon-small {
48
48
  min-width: 28px;
49
49
  > button {
50
50
  font-size: 20px;
51
51
  }
52
- .sf-loading-circle {
52
+ .#{$prefix}loading-circle {
53
53
  width: 20px;
54
54
  height: 20px;
55
55
  }
56
56
  }
57
57
 
58
- &.sf-icon-medium {
58
+ &.#{$prefix}icon-medium {
59
59
  min-width: 37px;
60
60
  > button {
61
61
  font-size: 24px;
@@ -66,13 +66,13 @@ div.sf-icon {
66
66
  right: 6px;
67
67
  }
68
68
  }
69
- .sf-loading-circle {
69
+ .#{$prefix}loading-circle {
70
70
  width: 24px;
71
71
  height: 24px;
72
72
  }
73
73
  }
74
74
 
75
- &.sf-icon-large {
75
+ &.#{$prefix}icon-large {
76
76
  min-width: 48px;
77
77
  > button {
78
78
  font-size: 36px;
@@ -83,36 +83,33 @@ div.sf-icon {
83
83
  right: 6px;
84
84
  }
85
85
  }
86
- .sf-loading-circle {
86
+ .#{$prefix}loading-circle {
87
87
  width: 28px;
88
88
  height: 28px;
89
89
  }
90
90
  }
91
91
 
92
- &.sf-icon-button {
92
+ &.#{$prefix}icon-button {
93
93
  border-radius: 50%;
94
94
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1)
95
95
  0ms;
96
- &.sf-icon-small {
96
+ &.#{$prefix}icon-small {
97
97
  padding: 4px;
98
98
  }
99
- &.sf-icon-medium {
99
+ &.#{$prefix}icon-medium {
100
100
  padding: 6px;
101
101
  }
102
- &.sf-icon-large {
102
+ &.#{$prefix}icon-large {
103
103
  padding: 8px;
104
104
  }
105
105
  @media (pointer: fine) {
106
- &:hover,
107
- &:focus-visible {
108
- cursor: pointer;
109
- background-color: $icon-hover-color;
110
- }
106
+ cursor: pointer;
107
+ @include icon-button-hover-colors;
111
108
  }
112
109
  }
113
110
 
114
- &.sf-component-loading,
115
- &.sf-component-disabled {
111
+ &.#{$prefix}component-loading,
112
+ &.#{$prefix}component-disabled {
116
113
  > button + span {
117
114
  display: none;
118
115
  }
@@ -22,7 +22,6 @@
22
22
  }
23
23
 
24
24
  #sf-theme-toggle svg,
25
- .sf-internal-icon-button svg,
26
25
  .sf-svg-icon {
27
26
  fill: #fff !important;
28
27
  }
@@ -52,10 +51,6 @@
52
51
  }
53
52
  }
54
53
 
55
- @media screen and (max-width: 579px) {
56
- padding: 0 8px;
57
- }
58
-
59
54
  > .title {
60
55
  padding: 0 16px;
61
56
  font-size: 1.25rem;
@@ -64,18 +59,6 @@
64
59
  white-space: nowrap;
65
60
  overflow: hidden;
66
61
  text-overflow: ellipsis;
67
- > .name {
68
- display: none;
69
- @media screen and (min-width: $sm) {
70
- display: unset;
71
- }
72
- }
73
- > .shortname {
74
- display: none;
75
- @media screen and (max-width: $sm) {
76
- display: unset;
77
- }
78
- }
79
62
  }
80
63
  }
81
64
 
@@ -127,22 +110,19 @@
127
110
 
128
111
  &.menu-visible {
129
112
  padding-left: 290px;
130
-
131
- @media screen and (max-width: $sm) {
132
- padding-left: 0;
133
- }
134
113
  }
135
114
  }
136
115
 
137
116
  nav {
117
+ --nav-width: min(100vw, 290px);
138
118
  z-index: 5;
139
119
  position: absolute;
140
- top: 0;
141
- height: var(--window-height);
120
+ top: var(--header-height);
121
+ height: calc(var(--window-height) - var(--header-height));
142
122
  background-color: var(--surface-100-color);
143
- width: 100vw;
123
+ width: var(--nav-width);
144
124
  border-right: 1px solid var(--surface-border-color);
145
- transform: translateX(-100vw);
125
+ transform: translateX(calc(-1 * var(--nav-width)));
146
126
  transition-property: transform;
147
127
  display: flex;
148
128
  flex-direction: column;
@@ -152,32 +132,10 @@
152
132
  transform: translateX(0);
153
133
  }
154
134
 
155
- > .sf-layout-nav-header {
156
- height: var(--header-height);
157
- border-bottom: 1px solid var(--surface-border-color);
158
- background-color: var(--surface-100-color);
159
- display: flex;
160
- align-items: center;
161
- padding: 0 16px;
162
- > span {
163
- flex-grow: 1;
164
- }
165
- }
166
-
167
135
  > .sf-layout-nav-content {
168
136
  height: 100%;
169
137
  overflow: auto;
170
138
  border-bottom: 1px solid var(--surface-border-color);
171
139
  }
172
-
173
- @media screen and (min-width: #{$sm + 1}) {
174
- top: unset;
175
- height: calc(100vh - var(--header-height));
176
- width: 290px;
177
- transform: translateX(-290px);
178
- > .sf-layout-nav-header {
179
- display: none;
180
- }
181
- }
182
140
  }
183
141
  }
@@ -0,0 +1,35 @@
1
+ @import "../variables";
2
+
3
+ .#{$prefix}mask {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ width: 100%;
8
+ height: 100%;
9
+ display: flex;
10
+ pointer-events: none;
11
+ }
12
+
13
+ .#{$prefix}mask-overlay-enter {
14
+ pointer-events: auto;
15
+ animation: #{$prefix}mask-overlay-enter-animation 250ms forwards;
16
+ }
17
+ .#{$prefix}mask-overlay-leave {
18
+ animation: #{$prefix}mask-overlay-leave-animation 250ms forwards;
19
+ }
20
+ @keyframes #{$prefix}mask-overlay-enter-animation {
21
+ from {
22
+ background-color: transparent;
23
+ }
24
+ to {
25
+ background-color: var(--maskbg-color);
26
+ }
27
+ }
28
+ @keyframes #{$prefix}mask-overlay-leave-animation {
29
+ from {
30
+ background-color: var(--maskbg-color);
31
+ }
32
+ to {
33
+ background-color: transparent;
34
+ }
35
+ }
@@ -1,8 +1,35 @@
1
1
  @import "../mixins";
2
2
 
3
3
  html {
4
- #sf-theme-toggle {
5
- @include sf-internal-icon-button;
4
+ ##{$prefix}theme-toggle {
5
+ isolation: isolate;
6
+ display: flex;
7
+ align-items: center;
8
+ background: none;
9
+ border: none;
10
+ padding: 8px;
11
+ position: relative;
12
+ border-radius: 50%;
13
+ @media (pointer: fine) {
14
+ &:hover {
15
+ cursor: pointer;
16
+ background-color: hsla(
17
+ var(--primary-color-h),
18
+ var(--primary-color-s),
19
+ var(--primary-color-l),
20
+ 0.1
21
+ );
22
+ }
23
+ &:focus-visible {
24
+ outline-offset: 0px;
25
+ }
26
+ }
27
+
28
+ svg {
29
+ height: 24px;
30
+ width: 24px;
31
+ fill: var(--text-color);
32
+ }
6
33
 
7
34
  .toggle-circle {
8
35
  transition: transform 500ms ease-out;
@@ -16,7 +43,7 @@ html {
16
43
  }
17
44
  }
18
45
 
19
- &.dark #sf-theme-toggle {
46
+ &.dark ##{$prefix}theme-toggle {
20
47
  .toggle-circle,
21
48
  .toggle-sun {
22
49
  transform: unset;
@@ -14,10 +14,9 @@
14
14
  "top-start top top-end"
15
15
  "center-start center center-end"
16
16
  "bottom-start bottom-center bottom-end";
17
- grid-template-rows: minmax(min-content, auto) minmax(
18
- min-content,
19
- auto
20
- ) minmax(min-content, auto);
17
+ grid-template-rows:
18
+ minmax(min-content, auto) minmax(min-content, auto)
19
+ minmax(min-content, auto);
21
20
  height: 100%; // Safari
22
21
  padding: $swal2-container-padding;
23
22
  overflow-x: hidden;
@@ -393,7 +392,7 @@
393
392
 
394
393
  &.swal2-inputerror {
395
394
  border-color: $swal2-error !important;
396
- background-color: alpha(--error, 0.1);
395
+ background-color: var(--error-hover-color);
397
396
  }
398
397
 
399
398
  &:focus {
@@ -403,7 +402,7 @@
403
402
  }
404
403
 
405
404
  &::placeholder {
406
- color: alpha(--text, 0.8);
405
+ color: var(--secondary-color);
407
406
  }
408
407
  }
409
408
 
@@ -584,8 +583,8 @@ $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
584
583
  }
585
584
 
586
585
  &.swal2-warning {
587
- border-color: alpha(--warn, 0.7);
588
- background-color: alpha(--warn, 0.1);
586
+ border-color: var(--warn-color);
587
+ background-color: var(--warn-hover-color);
589
588
  color: $swal2-warning;
590
589
 
591
590
  // Warning icon animation
@@ -601,8 +600,8 @@ $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
601
600
  }
602
601
 
603
602
  &.swal2-info {
604
- border-color: alpha(--info, 0.7);
605
- background-color: alpha(--info, 0.1);
603
+ border-color: var(--info-color);
604
+ background-color: var(--info-hover-color);
606
605
  color: $swal2-info;
607
606
 
608
607
  // Info icon animation
@@ -618,8 +617,8 @@ $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
618
617
  }
619
618
 
620
619
  &.swal2-question {
621
- border-color: alpha(--help, 0.7);
622
- background-color: alpha(--help, 0.1);
620
+ border-color: var(--help-color);
621
+ background-color: var(--help-hover-color);
623
622
  color: $swal2-question;
624
623
 
625
624
  // Question icon animation
@@ -635,8 +634,8 @@ $icon-zoom: math.div(strip-units($swal2-icon-size), 5);
635
634
  }
636
635
 
637
636
  &.swal2-success {
638
- border-color: alpha(--success, 0.7);
639
- background-color: alpha(--success, 0.1);
637
+ border-color: var(--success-color);
638
+ background-color: var(--success-hover-color);
640
639
  color: $swal2-success;
641
640
 
642
641
  [class^="swal2-success-circular-line"] {