sdga-ui 1.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/.editorconfig +23 -0
- package/.prettierignore +73 -0
- package/.prettierrc +17 -0
- package/LICENSE +21 -0
- package/README.md +167 -0
- package/css/dga-ui.css +27286 -0
- package/css/dga-ui.css.map +1 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Bold.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-ExtraLight.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Light.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Medium.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Regular.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-SemiBold.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Thin.ttf +0 -0
- package/fonts/IBM_Plex_Sans_Arabic/OFL.txt +93 -0
- package/package.json +36 -0
- package/theme/_fonts.scss +58 -0
- package/theme/_functions.scss +12 -0
- package/theme/_variables.scss +50 -0
- package/theme/components/_accordion.scss +35 -0
- package/theme/components/_alerts.scss +12 -0
- package/theme/components/_badges.scss +8 -0
- package/theme/components/_breadcrumb.scss +13 -0
- package/theme/components/_buttons.scss +270 -0
- package/theme/components/_cards.scss +21 -0
- package/theme/components/_carousel.scss +33 -0
- package/theme/components/_content.scss +211 -0
- package/theme/components/_dropdowns.scss +45 -0
- package/theme/components/_forms-check.scss +124 -0
- package/theme/components/_forms-floating.scss +17 -0
- package/theme/components/_forms-inputs.scss +70 -0
- package/theme/components/_forms-range.scss +26 -0
- package/theme/components/_forms-select.scss +47 -0
- package/theme/components/_forms-switch.scss +64 -0
- package/theme/components/_forms-validation.scss +16 -0
- package/theme/components/_forms.scss +14 -0
- package/theme/components/_list-group.scss +26 -0
- package/theme/components/_modals.scss +42 -0
- package/theme/components/_navbar.scss +40 -0
- package/theme/components/_navigation.scss +151 -0
- package/theme/components/_offcanvas.scss +15 -0
- package/theme/components/_overlays.scss +112 -0
- package/theme/components/_pagination.scss +39 -0
- package/theme/components/_popovers.scss +26 -0
- package/theme/components/_progress.scss +11 -0
- package/theme/components/_spinners.scss +11 -0
- package/theme/components/_tables.scss +48 -0
- package/theme/components/_toasts.scss +17 -0
- package/theme/components/_tooltips.scss +15 -0
- package/theme/config/_base.scss +112 -0
- package/theme/config/_colors.scss +303 -0
- package/theme/config/_effects.scss +228 -0
- package/theme/config/_radius.scss +78 -0
- package/theme/config/_spacing.scss +156 -0
- package/theme/config/_typography.scss +118 -0
- package/theme/customizations/_alerts.scss +242 -0
- package/theme/customizations/_badges.scss +15 -0
- package/theme/customizations/_buttons.scss +209 -0
- package/theme/customizations/_cards.scss +117 -0
- package/theme/customizations/_forms-check.scss +279 -0
- package/theme/customizations/_forms-inputs.scss +9 -0
- package/theme/customizations/_forms-switch.scss +91 -0
- package/theme/customizations/_forms.scss +5 -0
- package/theme/customizations/_global.scss +25 -0
- package/theme/customizations/_links.scss +47 -0
- package/theme/customizations/_tables.scss +68 -0
- package/theme/customizations/_toasts.scss +222 -0
- package/theme/customizations/_utilities.scss +138 -0
- package/theme/dga-ui.scss +28 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
// Alert Customizations - SDGA Custom Enhancements
|
|
2
|
+
|
|
3
|
+
// ============================================
|
|
4
|
+
// ALERT VARIANTS
|
|
5
|
+
// ============================================
|
|
6
|
+
|
|
7
|
+
.alert {
|
|
8
|
+
background-color: $alert-bg;
|
|
9
|
+
border: $alert-border-width solid;
|
|
10
|
+
border-color: $alert-border-color;
|
|
11
|
+
border-inline-start-width: .5rem;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
gap: .75rem;
|
|
15
|
+
color: $gray-700;
|
|
16
|
+
|
|
17
|
+
.alert-icon {
|
|
18
|
+
z-index: 1;
|
|
19
|
+
width: 2.5rem;
|
|
20
|
+
height: 2.5rem;
|
|
21
|
+
position: relative;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
color: $alert-icon-color;
|
|
26
|
+
font-size: 1.5rem;
|
|
27
|
+
|
|
28
|
+
&::after {
|
|
29
|
+
content: '';
|
|
30
|
+
width: 2.5rem;
|
|
31
|
+
height: 2.5rem;
|
|
32
|
+
border-radius: $radius-full;
|
|
33
|
+
background-color: $alert-icon-bg;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
z-index: -1;
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.alert-title {
|
|
43
|
+
display: block;
|
|
44
|
+
color: $alert-title-color;
|
|
45
|
+
margin-bottom: .5rem;
|
|
46
|
+
font-weight: $font-weight-semibold;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.alert-dismissible {
|
|
50
|
+
padding-right: unset;
|
|
51
|
+
padding-inline-end: $alert-dismissible-padding-r;
|
|
52
|
+
padding-inline-start: $alert-padding-x;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.alert-primary {
|
|
56
|
+
border-inline-start-color: rgba($primary-600, 0.7);
|
|
57
|
+
--#{$prefix}alert-bg: #{$primary-25};
|
|
58
|
+
--#{$prefix}border-color: #{$primary-200};
|
|
59
|
+
--#{$prefix}alert-icon-bg: #{$primary-50};
|
|
60
|
+
--#{$prefix}alert-icon-color: #{$primary-700};
|
|
61
|
+
--#{$prefix}alert-title-color: #{$primary-700};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.alert-lavender {
|
|
65
|
+
border-inline-start-color: rgba($lavender-600, 0.7);
|
|
66
|
+
--#{$prefix}alert-bg: #{$lavender-25};
|
|
67
|
+
--#{$prefix}border-color: #{$lavender-200};
|
|
68
|
+
--#{$prefix}alert-icon-bg: #{$lavender-50};
|
|
69
|
+
--#{$prefix}alert-icon-color: #{$lavender-700};
|
|
70
|
+
--#{$prefix}alert-title-color: #{$lavender-700};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.alert-neutral {
|
|
74
|
+
border-inline-start-color: rgba($neutral-300, 0.7);
|
|
75
|
+
--#{$prefix}alert-bg: #{$neutral-25};
|
|
76
|
+
--#{$prefix}border-color: #{$neutral-300};
|
|
77
|
+
--#{$prefix}alert-icon-bg: #{$neutral-50};
|
|
78
|
+
--#{$prefix}alert-icon-color: #{$black};
|
|
79
|
+
--#{$prefix}alert-title-color: #{$black};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.alert-success {
|
|
83
|
+
border-inline-start-color: rgba($success-600, 0.7);
|
|
84
|
+
--#{$prefix}alert-bg: #{$success-25};
|
|
85
|
+
--#{$prefix}border-color: #{$success-200};
|
|
86
|
+
--#{$prefix}alert-icon-bg: #{$success-50};
|
|
87
|
+
--#{$prefix}alert-icon-color: #{$success-700};
|
|
88
|
+
--#{$prefix}alert-title-color: #{$success-700};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.alert-danger {
|
|
92
|
+
border-inline-start-color: rgba($danger-600, 0.7);
|
|
93
|
+
--#{$prefix}alert-bg: #{$danger-25};
|
|
94
|
+
--#{$prefix}border-color: #{$danger-200};
|
|
95
|
+
--#{$prefix}alert-icon-bg: #{$danger-50};
|
|
96
|
+
--#{$prefix}alert-icon-color: #{$danger-700};
|
|
97
|
+
--#{$prefix}alert-title-color: #{$danger-700};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&.alert-warning {
|
|
101
|
+
border-inline-start-color: rgba($warning-600, 0.7);
|
|
102
|
+
--#{$prefix}alert-bg: #{$warning-25};
|
|
103
|
+
--#{$prefix}border-color: #{$warning-200};
|
|
104
|
+
--#{$prefix}alert-icon-bg: #{$warning-50};
|
|
105
|
+
--#{$prefix}alert-icon-color: #{$warning-700};
|
|
106
|
+
--#{$prefix}alert-title-color: #{$warning-700};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.alert-info {
|
|
110
|
+
border-inline-start-color: rgba($info-600, 0.7);
|
|
111
|
+
--#{$prefix}alert-bg: #{$info-25};
|
|
112
|
+
--#{$prefix}border-color: #{$info-200};
|
|
113
|
+
--#{$prefix}alert-icon-bg: #{$info-50};
|
|
114
|
+
--#{$prefix}alert-icon-color: #{$info-700};
|
|
115
|
+
--#{$prefix}alert-title-color: #{$info-700};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.alert-secondary {
|
|
119
|
+
border-inline-start-color: rgba($secondary-200, 0.7);
|
|
120
|
+
--#{$prefix}alert-bg: #{$secondary-25};
|
|
121
|
+
--#{$prefix}border-color: #{$secondary-200};
|
|
122
|
+
--#{$prefix}alert-icon-bg: #{$secondary-50};
|
|
123
|
+
--#{$prefix}alert-icon-color: #{$black};
|
|
124
|
+
--#{$prefix}alert-title-color: #{$black};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.alert-side {
|
|
128
|
+
--#{$prefix}alert-bg: #{$body-bg};
|
|
129
|
+
--#{$prefix}border-color: #{$gray-200};
|
|
130
|
+
--#{$prefix}alert-title-color: #{$gray-800};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.alert-footer{
|
|
134
|
+
display: flex;
|
|
135
|
+
gap: 1.25rem;
|
|
136
|
+
margin-top: 1rem;
|
|
137
|
+
margin-inline-start: -0.75rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// ============================================
|
|
141
|
+
// MOBILE RESPONSIVE
|
|
142
|
+
// ============================================
|
|
143
|
+
@media (max-width: $mobile) {
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
gap: 1rem;
|
|
146
|
+
border-inline-start-width: $alert-border-width;
|
|
147
|
+
border-top-width: 0.5rem;
|
|
148
|
+
|
|
149
|
+
&.alert-primary {
|
|
150
|
+
border-inline-start-color: $alert-border-color;
|
|
151
|
+
border-top-color: $primary-600;
|
|
152
|
+
|
|
153
|
+
&.alert-side {
|
|
154
|
+
border-top-color: rgba($primary-600, 0.7);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.alert-lavender {
|
|
159
|
+
border-inline-start-color: $alert-border-color;
|
|
160
|
+
border-top-color: rgba($lavender-600, 0.7);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.alert-neutral {
|
|
164
|
+
border-inline-start-color: $alert-border-color;
|
|
165
|
+
border-top-color: rgba($neutral-300, 0.7);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.alert-success {
|
|
169
|
+
border-inline-start-color: $alert-border-color;
|
|
170
|
+
border-top-color: rgba($success-600, 0.7);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.alert-danger {
|
|
174
|
+
border-inline-start-color: $alert-border-color;
|
|
175
|
+
border-top-color: rgba($danger-600, 0.7);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.alert-warning {
|
|
179
|
+
border-inline-start-color: $alert-border-color;
|
|
180
|
+
border-top-color: rgba($warning-600, 0.7);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.alert-info {
|
|
184
|
+
border-inline-start-color: $alert-border-color;
|
|
185
|
+
border-top-color: rgba($info-600, 0.7);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.alert-secondary {
|
|
189
|
+
border-inline-start-color: $alert-border-color;
|
|
190
|
+
border-top-color: rgba($secondary-200, 0.7);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
div {
|
|
194
|
+
width: 100%;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.alert-footer {
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
margin-inline-start: 0;
|
|
200
|
+
|
|
201
|
+
button {
|
|
202
|
+
width: 100%;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
&:first-of-type {
|
|
205
|
+
--#{$prefix}btn-color: #{$btn-secondary-color};
|
|
206
|
+
--#{$prefix}btn-bg: #{$btn-secondary-bg};
|
|
207
|
+
--#{$prefix}btn-border-color: #{$btn-secondary-border-color};
|
|
208
|
+
--#{$prefix}btn-hover-color: #{$btn-secondary-hover-color};
|
|
209
|
+
--#{$prefix}btn-hover-bg: #{$btn-secondary-hover-bg};
|
|
210
|
+
--#{$prefix}btn-hover-border-color: #{$btn-secondary-hover-border-color};
|
|
211
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-secondary-focus-shadow-rgb};
|
|
212
|
+
--#{$prefix}btn-active-color: #{$btn-secondary-active-color};
|
|
213
|
+
--#{$prefix}btn-active-bg: #{$btn-secondary-active-bg};
|
|
214
|
+
--#{$prefix}btn-active-border-color: #{$btn-secondary-active-border-color};
|
|
215
|
+
--#{$prefix}btn-disabled-color: #{$btn-secondary-disabled-color};
|
|
216
|
+
--#{$prefix}btn-disabled-bg: #{$btn-secondary-disabled-bg};
|
|
217
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-secondary-disabled-border-color};
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&.alert-dismissible {
|
|
223
|
+
padding-inline-end: $alert-padding-x;
|
|
224
|
+
padding-inline-start: $alert-padding-x;
|
|
225
|
+
|
|
226
|
+
.btn-close {
|
|
227
|
+
position: absolute;
|
|
228
|
+
top: 0.5rem;
|
|
229
|
+
inset-inline-end: 0.5rem;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// ============================================
|
|
235
|
+
// DISMISSIBLE ALERTS
|
|
236
|
+
// ============================================
|
|
237
|
+
.alert-dismissible {
|
|
238
|
+
.btn-close {
|
|
239
|
+
right: unset;
|
|
240
|
+
inset-inline-end: 0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Badge Customizations - SDGA Custom Enhancements
|
|
2
|
+
|
|
3
|
+
// ============================================
|
|
4
|
+
// BADGE VARIANTS
|
|
5
|
+
// ============================================
|
|
6
|
+
|
|
7
|
+
.badge-lavender {
|
|
8
|
+
background-color: $lavender-600;
|
|
9
|
+
color: $white;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.badge-neutral {
|
|
13
|
+
background-color: $gray-600;
|
|
14
|
+
color: $white;
|
|
15
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// Button Customizations - SDGA Custom Enhancements
|
|
2
|
+
|
|
3
|
+
@use 'sass:color';
|
|
4
|
+
|
|
5
|
+
// ============================================
|
|
6
|
+
// BUTTON VARIANTS - Primary
|
|
7
|
+
// ============================================
|
|
8
|
+
|
|
9
|
+
.btn-primary {
|
|
10
|
+
--#{$prefix}btn-color: #{$btn-primary-color};
|
|
11
|
+
--#{$prefix}btn-bg: #{$btn-primary-bg};
|
|
12
|
+
--#{$prefix}btn-border-color: #{$btn-primary-border-color};
|
|
13
|
+
--#{$prefix}btn-hover-color: #{$btn-primary-hover-color};
|
|
14
|
+
--#{$prefix}btn-hover-bg: #{$btn-primary-hover-bg};
|
|
15
|
+
--#{$prefix}btn-hover-border-color: #{$btn-primary-hover-border-color};
|
|
16
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-primary-focus-shadow-rgb};
|
|
17
|
+
--#{$prefix}btn-active-color: #{$btn-primary-active-color};
|
|
18
|
+
--#{$prefix}btn-active-bg: #{$btn-primary-active-bg};
|
|
19
|
+
--#{$prefix}btn-active-border-color: #{$btn-primary-active-border-color};
|
|
20
|
+
--#{$prefix}btn-disabled-color: #{$btn-primary-disabled-color};
|
|
21
|
+
--#{$prefix}btn-disabled-bg: #{$btn-primary-disabled-bg};
|
|
22
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-primary-disabled-border-color};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.btn-outline-primary {
|
|
26
|
+
--#{$prefix}btn-color: #{$btn-outline-primary-color};
|
|
27
|
+
--#{$prefix}btn-border-color: #{$btn-outline-primary-border-color};
|
|
28
|
+
--#{$prefix}btn-hover-color: #{$btn-outline-primary-hover-color};
|
|
29
|
+
--#{$prefix}btn-hover-bg: #{$btn-outline-primary-hover-bg};
|
|
30
|
+
--#{$prefix}btn-hover-border-color: #{$btn-outline-primary-hover-border-color};
|
|
31
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-outline-primary-focus-shadow-rgb};
|
|
32
|
+
--#{$prefix}btn-active-color: #{$btn-outline-primary-active-color};
|
|
33
|
+
--#{$prefix}btn-active-bg: #{$btn-outline-primary-active-bg};
|
|
34
|
+
--#{$prefix}btn-active-border-color: #{$btn-outline-primary-active-border-color};
|
|
35
|
+
--#{$prefix}btn-disabled-color: #{$btn-outline-primary-disabled-color};
|
|
36
|
+
--#{$prefix}btn-disabled-bg: #{$btn-outline-primary-disabled-bg};
|
|
37
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-outline-primary-disabled-border-color};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ============================================
|
|
41
|
+
// BUTTON VARIANTS - Secondary
|
|
42
|
+
// ============================================
|
|
43
|
+
|
|
44
|
+
.btn-secondary {
|
|
45
|
+
--#{$prefix}btn-color: #{$btn-secondary-color};
|
|
46
|
+
--#{$prefix}btn-bg: #{$btn-secondary-bg};
|
|
47
|
+
--#{$prefix}btn-border-color: #{$btn-secondary-border-color};
|
|
48
|
+
--#{$prefix}btn-hover-color: #{$btn-secondary-hover-color};
|
|
49
|
+
--#{$prefix}btn-hover-bg: #{$btn-secondary-hover-bg};
|
|
50
|
+
--#{$prefix}btn-hover-border-color: #{$btn-secondary-hover-border-color};
|
|
51
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-secondary-focus-shadow-rgb};
|
|
52
|
+
--#{$prefix}btn-active-color: #{$btn-secondary-active-color};
|
|
53
|
+
--#{$prefix}btn-active-bg: #{$btn-secondary-active-bg};
|
|
54
|
+
--#{$prefix}btn-active-border-color: #{$btn-secondary-active-border-color};
|
|
55
|
+
--#{$prefix}btn-disabled-color: #{$btn-secondary-disabled-color};
|
|
56
|
+
--#{$prefix}btn-disabled-bg: #{$btn-secondary-disabled-bg};
|
|
57
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-secondary-disabled-border-color};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.btn-outline-secondary {
|
|
61
|
+
--#{$prefix}btn-color: #{$btn-outline-secondary-color};
|
|
62
|
+
--#{$prefix}btn-border-color: #{$btn-outline-secondary-border-color};
|
|
63
|
+
--#{$prefix}btn-hover-color: #{$btn-outline-secondary-hover-color};
|
|
64
|
+
--#{$prefix}btn-hover-bg: #{$btn-outline-secondary-hover-bg};
|
|
65
|
+
--#{$prefix}btn-hover-border-color: #{$btn-outline-secondary-hover-border-color};
|
|
66
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-outline-secondary-focus-shadow-rgb};
|
|
67
|
+
--#{$prefix}btn-active-color: #{$btn-outline-secondary-active-color};
|
|
68
|
+
--#{$prefix}btn-active-bg: #{$btn-outline-secondary-active-bg};
|
|
69
|
+
--#{$prefix}btn-active-border-color: #{$btn-outline-secondary-active-border-color};
|
|
70
|
+
--#{$prefix}btn-disabled-color: #{$btn-outline-secondary-disabled-color};
|
|
71
|
+
--#{$prefix}btn-disabled-bg: #{$btn-outline-secondary-disabled-bg};
|
|
72
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-outline-secondary-disabled-border-color};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// ============================================
|
|
76
|
+
// BUTTON VARIANTS - Danger/Destructive
|
|
77
|
+
// ============================================
|
|
78
|
+
|
|
79
|
+
.btn-danger {
|
|
80
|
+
--#{$prefix}btn-color: #{$btn-danger-color};
|
|
81
|
+
--#{$prefix}btn-bg: #{$btn-danger-bg};
|
|
82
|
+
--#{$prefix}btn-border-color: #{$btn-danger-border-color};
|
|
83
|
+
--#{$prefix}btn-hover-color: #{$btn-danger-hover-color};
|
|
84
|
+
--#{$prefix}btn-hover-bg: #{$btn-danger-hover-bg};
|
|
85
|
+
--#{$prefix}btn-hover-border-color: #{$btn-danger-hover-border-color};
|
|
86
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-danger-focus-shadow-rgb};
|
|
87
|
+
--#{$prefix}btn-active-color: #{$btn-danger-active-color};
|
|
88
|
+
--#{$prefix}btn-active-bg: #{$btn-danger-active-bg};
|
|
89
|
+
--#{$prefix}btn-active-border-color: #{$btn-danger-active-border-color};
|
|
90
|
+
--#{$prefix}btn-disabled-color: #{$btn-danger-disabled-color};
|
|
91
|
+
--#{$prefix}btn-disabled-bg: #{$btn-danger-disabled-bg};
|
|
92
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-danger-disabled-border-color};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.btn-outline-danger {
|
|
96
|
+
--#{$prefix}btn-color: #{$btn-outline-danger-color};
|
|
97
|
+
--#{$prefix}btn-border-color: #{$btn-outline-danger-border-color};
|
|
98
|
+
--#{$prefix}btn-hover-color: #{$btn-outline-danger-hover-color};
|
|
99
|
+
--#{$prefix}btn-hover-bg: #{$btn-outline-danger-hover-bg};
|
|
100
|
+
--#{$prefix}btn-hover-border-color: #{$btn-outline-danger-hover-border-color};
|
|
101
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-outline-danger-focus-shadow-rgb};
|
|
102
|
+
--#{$prefix}btn-active-color: #{$btn-outline-danger-active-color};
|
|
103
|
+
--#{$prefix}btn-active-bg: #{$btn-outline-danger-active-bg};
|
|
104
|
+
--#{$prefix}btn-active-border-color: #{$btn-outline-danger-active-border-color};
|
|
105
|
+
--#{$prefix}btn-disabled-color: #{$btn-outline-danger-disabled-color};
|
|
106
|
+
--#{$prefix}btn-disabled-bg: #{$btn-outline-danger-disabled-bg};
|
|
107
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-outline-danger-disabled-border-color};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// ============================================
|
|
111
|
+
// BUTTON VARIANTS - Neutral
|
|
112
|
+
// ============================================
|
|
113
|
+
|
|
114
|
+
.btn-neutral {
|
|
115
|
+
--#{$prefix}btn-color: #{$btn-neutral-color};
|
|
116
|
+
--#{$prefix}btn-bg: #{$btn-neutral-bg};
|
|
117
|
+
--#{$prefix}btn-border-color: #{$btn-neutral-border-color};
|
|
118
|
+
--#{$prefix}btn-hover-color: #{$btn-neutral-hover-color};
|
|
119
|
+
--#{$prefix}btn-hover-bg: #{$btn-neutral-hover-bg};
|
|
120
|
+
--#{$prefix}btn-hover-border-color: #{$btn-neutral-hover-border-color};
|
|
121
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-neutral-focus-shadow-rgb};
|
|
122
|
+
--#{$prefix}btn-active-color: #{$btn-neutral-active-color};
|
|
123
|
+
--#{$prefix}btn-active-bg: #{$btn-neutral-active-bg};
|
|
124
|
+
--#{$prefix}btn-active-border-color: #{$btn-neutral-active-border-color};
|
|
125
|
+
--#{$prefix}btn-disabled-color: #{$btn-neutral-disabled-color};
|
|
126
|
+
--#{$prefix}btn-disabled-bg: #{$btn-neutral-disabled-bg};
|
|
127
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-neutral-disabled-border-color};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.btn-outline-neutral {
|
|
131
|
+
--#{$prefix}btn-color: #{$btn-outline-neutral-color};
|
|
132
|
+
--#{$prefix}btn-border-color: #{$btn-outline-neutral-border-color};
|
|
133
|
+
--#{$prefix}btn-hover-color: #{$btn-outline-neutral-hover-color};
|
|
134
|
+
--#{$prefix}btn-hover-bg: #{$btn-outline-neutral-hover-bg};
|
|
135
|
+
--#{$prefix}btn-hover-border-color: #{$btn-outline-neutral-hover-border-color};
|
|
136
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-outline-neutral-focus-shadow-rgb};
|
|
137
|
+
--#{$prefix}btn-active-color: #{$btn-outline-neutral-active-color};
|
|
138
|
+
--#{$prefix}btn-active-bg: #{$btn-outline-neutral-active-bg};
|
|
139
|
+
--#{$prefix}btn-active-border-color: #{$btn-outline-neutral-active-border-color};
|
|
140
|
+
--#{$prefix}btn-disabled-color: #{$btn-outline-neutral-disabled-color};
|
|
141
|
+
--#{$prefix}btn-disabled-bg: #{$btn-outline-neutral-disabled-bg};
|
|
142
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-outline-neutral-disabled-border-color};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.btn-subtle {
|
|
146
|
+
--#{$prefix}btn-color: #{$btn-subtle-color};
|
|
147
|
+
--#{$prefix}btn-border-color: #{$btn-subtle-border-color};
|
|
148
|
+
--#{$prefix}btn-hover-color: #{$btn-subtle-hover-color};
|
|
149
|
+
--#{$prefix}btn-hover-bg: #{$btn-subtle-hover-bg};
|
|
150
|
+
--#{$prefix}btn-hover-border-color: #{$btn-subtle-hover-border-color};
|
|
151
|
+
--#{$prefix}btn-focus-shadow-rgb: #{$btn-subtle-focus-shadow-rgb};
|
|
152
|
+
--#{$prefix}btn-active-color: #{$btn-subtle-active-color};
|
|
153
|
+
--#{$prefix}btn-active-bg: #{$btn-subtle-active-bg};
|
|
154
|
+
--#{$prefix}btn-active-border-color: #{$btn-subtle-active-border-color};
|
|
155
|
+
--#{$prefix}btn-disabled-color: #{$btn-subtle-disabled-color};
|
|
156
|
+
--#{$prefix}btn-disabled-bg: #{$btn-subtle-disabled-bg};
|
|
157
|
+
--#{$prefix}btn-disabled-border-color: #{$btn-subtle-disabled-border-color};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ============================================
|
|
161
|
+
// CUSTOM BUTTON SIZES
|
|
162
|
+
// ============================================
|
|
163
|
+
|
|
164
|
+
.btn-xs {
|
|
165
|
+
padding: 0.25rem 0.5rem;
|
|
166
|
+
font-size: 0.75rem;
|
|
167
|
+
line-height: 1.4;
|
|
168
|
+
border-radius: $radius-sm;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// ============================================
|
|
172
|
+
// BUTTON ICON UTILITIES
|
|
173
|
+
// ============================================
|
|
174
|
+
// Icon-only buttons (square buttons with icon)
|
|
175
|
+
.btn-icon {
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
gap: .25rem;
|
|
179
|
+
|
|
180
|
+
&.btn-lg {
|
|
181
|
+
padding: 0.75rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.btn-sm {
|
|
185
|
+
padding: 0.375rem;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.btn-xs {
|
|
189
|
+
padding: 0.25rem;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// ============================================
|
|
194
|
+
// Dropdown
|
|
195
|
+
// ============================================
|
|
196
|
+
|
|
197
|
+
.dropdown-toggle{
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
gap: .25rem;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.dropdown-menu{
|
|
204
|
+
text-align: $body-text-align;
|
|
205
|
+
|
|
206
|
+
[dir="rtl"] & {
|
|
207
|
+
inset: 0 0 auto auto !important;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// Card Customizations - SDGA Custom Enhancements
|
|
2
|
+
|
|
3
|
+
.card {
|
|
4
|
+
transition: transform 0.3s ease;
|
|
5
|
+
width: 22.5rem;
|
|
6
|
+
|
|
7
|
+
&:focus-visible {
|
|
8
|
+
border-radius: $radius-lg !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.expanded {
|
|
12
|
+
.card-expanded-icon {
|
|
13
|
+
transform: rotate(180deg);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.card-expanded-content {
|
|
17
|
+
animation: slideDown 0.3s ease-out;
|
|
18
|
+
border-top: 1px solid #e5e7eb;
|
|
19
|
+
padding-top: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes slideDown {
|
|
23
|
+
from {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateY(-10px) scaleY(0);
|
|
26
|
+
transform-origin: top;
|
|
27
|
+
}
|
|
28
|
+
to {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
transform: translateY(0) scaleY(1);
|
|
31
|
+
transform-origin: top;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.card-title {
|
|
36
|
+
margin-bottom: 1.5rem;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&.disabled {
|
|
44
|
+
background-color: $gray-200;
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
|
|
47
|
+
.card-title-icon {
|
|
48
|
+
&::after {
|
|
49
|
+
background-color: $gray-100;
|
|
50
|
+
}
|
|
51
|
+
color: $gray-400;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.card-title-icon {
|
|
57
|
+
&::after {
|
|
58
|
+
content: '';
|
|
59
|
+
width: 3rem;
|
|
60
|
+
height: 3rem;
|
|
61
|
+
border-radius: $radius-full;
|
|
62
|
+
background-color: $primary-50;
|
|
63
|
+
position: absolute;
|
|
64
|
+
z-index: -1;
|
|
65
|
+
}
|
|
66
|
+
width: 3rem;
|
|
67
|
+
height: 3rem;
|
|
68
|
+
position: relative;
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
color: $success-700;
|
|
73
|
+
z-index: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.card-title-checked {
|
|
77
|
+
margin-inline-start: auto;
|
|
78
|
+
margin-inline-end: 4%;
|
|
79
|
+
margin-top: 4%;
|
|
80
|
+
margin-bottom: 4%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.card-text {
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.card-footer {
|
|
88
|
+
margin-top: auto;
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: 1rem;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: flex-start;
|
|
93
|
+
|
|
94
|
+
// Footer variants
|
|
95
|
+
&.card-footer-center {
|
|
96
|
+
justify-content: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.card-footer-start {
|
|
100
|
+
justify-content: flex-start;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.card-footer-between {
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.card-expanded-icon {
|
|
108
|
+
margin-inline-start: auto;
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
transition: transform 0.3s ease;
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
opacity: 0.7;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|