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,228 @@
|
|
|
1
|
+
// Bootstrap 5.3 - Effects & Utilities
|
|
2
|
+
// Elevation shadows and backdrop blur utilities using SDGA design tokens
|
|
3
|
+
|
|
4
|
+
@use 'sass:map';
|
|
5
|
+
|
|
6
|
+
// ============================================
|
|
7
|
+
// EFFECTS CONFIGURATION
|
|
8
|
+
// ============================================
|
|
9
|
+
|
|
10
|
+
// Global ripple effect toggle
|
|
11
|
+
$enable-ripple-effect: true !default;
|
|
12
|
+
|
|
13
|
+
// Ripple effect variables
|
|
14
|
+
$ripple-size: 200% !default; // Percentage-based size relative to element
|
|
15
|
+
$ripple-hover-opacity: 0.08 !default;
|
|
16
|
+
$ripple-active-opacity: 0.08 !default;
|
|
17
|
+
$ripple-focus-opacity: 0.08 !default;
|
|
18
|
+
$ripple-transition-duration: 0.2s !default;
|
|
19
|
+
$ripple-transition-timing: ease-out !default;
|
|
20
|
+
|
|
21
|
+
// ============================================
|
|
22
|
+
// RIPPLE EFFECT MIXIN
|
|
23
|
+
// ============================================
|
|
24
|
+
|
|
25
|
+
@mixin ripple-effect(
|
|
26
|
+
$size: $ripple-size,
|
|
27
|
+
$hover-opacity: $ripple-hover-opacity,
|
|
28
|
+
$active-opacity: $ripple-active-opacity,
|
|
29
|
+
$focus-opacity: $ripple-focus-opacity,
|
|
30
|
+
$duration: $ripple-transition-duration,
|
|
31
|
+
$timing: $ripple-transition-timing
|
|
32
|
+
) {
|
|
33
|
+
position: relative;
|
|
34
|
+
overflow: visible;
|
|
35
|
+
|
|
36
|
+
// Ripple background element
|
|
37
|
+
&::before {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 50%;
|
|
41
|
+
left: 50%;
|
|
42
|
+
width: $size;
|
|
43
|
+
height: $size;
|
|
44
|
+
background-color: currentColor;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
transform: translate(-50%, -50%) scale(0);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
transition: transform $duration $timing, opacity $duration $timing;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Ripple on hover (subtle)
|
|
53
|
+
&:hover:not(:disabled):not([readonly])::before {
|
|
54
|
+
transform: translate(-50%, -50%) scale(1);
|
|
55
|
+
opacity: $hover-opacity;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Ripple on active/click (prominent)
|
|
59
|
+
&:active:not(:disabled):not([readonly])::before {
|
|
60
|
+
transform: translate(-50%, -50%) scale(1);
|
|
61
|
+
opacity: $active-opacity;
|
|
62
|
+
transition: transform ($duration * 0.5) $timing, opacity ($duration * 0.5) $timing;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Ripple on focus
|
|
66
|
+
&:focus:not(:disabled):not([readonly])::before {
|
|
67
|
+
transform: translate(-50%, -50%) scale(1);
|
|
68
|
+
opacity: $focus-opacity;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// ============================================
|
|
73
|
+
// ELEVATION SHADOWS
|
|
74
|
+
// ============================================
|
|
75
|
+
|
|
76
|
+
// Shadow XS - Subtle elevation
|
|
77
|
+
$box-shadow-xs:
|
|
78
|
+
0px 1px 2px 0px shadow-rgba(0.05),
|
|
79
|
+
0px 1px 3px 0px shadow-rgba(0.10);
|
|
80
|
+
|
|
81
|
+
// Shadow SM - Small elevation
|
|
82
|
+
$box-shadow-sm:
|
|
83
|
+
0px 1px 2px 0px shadow-rgba(0.06),
|
|
84
|
+
0px 4px 8px -2px shadow-rgba(0.10);
|
|
85
|
+
|
|
86
|
+
// Shadow MD - Medium elevation (Bootstrap default)
|
|
87
|
+
$box-shadow:
|
|
88
|
+
0px 4px 8px -2px shadow-rgba(0.10),
|
|
89
|
+
0px 2px 4px -2px shadow-rgba(0.06);
|
|
90
|
+
|
|
91
|
+
// Shadow LG - Large elevation
|
|
92
|
+
$box-shadow-lg:
|
|
93
|
+
0px 4px 6px -2px shadow-rgba(0.03),
|
|
94
|
+
0px 20px 24px -4px shadow-rgba(0.08);
|
|
95
|
+
|
|
96
|
+
// Shadow XL - Extra large elevation
|
|
97
|
+
$box-shadow-xl:
|
|
98
|
+
0px 8px 8px -4px shadow-rgba(0.03),
|
|
99
|
+
0px 24px 48px -12px shadow-rgba(0.08);
|
|
100
|
+
|
|
101
|
+
// Shadow 2XL - Very large elevation
|
|
102
|
+
$box-shadow-2xl:
|
|
103
|
+
0px 24px 48px -12px shadow-rgba(0.18);
|
|
104
|
+
|
|
105
|
+
// Shadow 3XL - Maximum elevation
|
|
106
|
+
$box-shadow-3xl:
|
|
107
|
+
0px 32px 64px -12px shadow-rgba(0.14);
|
|
108
|
+
|
|
109
|
+
// Shadow Inset - For form controls
|
|
110
|
+
$box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
|
|
111
|
+
|
|
112
|
+
// ============================================
|
|
113
|
+
// BACKDROP BLUR
|
|
114
|
+
// ============================================
|
|
115
|
+
|
|
116
|
+
$backdrop-blur-sm: blur(8px);
|
|
117
|
+
$backdrop-blur-md: blur(16px);
|
|
118
|
+
$backdrop-blur-lg: blur(24px);
|
|
119
|
+
$backdrop-blur-xl: blur(40px);
|
|
120
|
+
|
|
121
|
+
// ============================================
|
|
122
|
+
// UTILITY CLASSES GENERATION
|
|
123
|
+
// ============================================
|
|
124
|
+
|
|
125
|
+
// ============================================
|
|
126
|
+
// UTILITY CLASSES GENERATION
|
|
127
|
+
// ============================================
|
|
128
|
+
|
|
129
|
+
// Elevation shadow utilities
|
|
130
|
+
$utilities: (
|
|
131
|
+
"shadow-xs": (
|
|
132
|
+
property: box-shadow,
|
|
133
|
+
class: shadow-xs,
|
|
134
|
+
values: (
|
|
135
|
+
null: $box-shadow-xs
|
|
136
|
+
)
|
|
137
|
+
),
|
|
138
|
+
"shadow-sm": (
|
|
139
|
+
property: box-shadow,
|
|
140
|
+
class: shadow-sm,
|
|
141
|
+
values: (
|
|
142
|
+
null: $box-shadow-sm
|
|
143
|
+
)
|
|
144
|
+
),
|
|
145
|
+
"shadow-md": (
|
|
146
|
+
property: box-shadow,
|
|
147
|
+
class: shadow-md,
|
|
148
|
+
values: (
|
|
149
|
+
null: $box-shadow
|
|
150
|
+
)
|
|
151
|
+
),
|
|
152
|
+
"shadow-lg": (
|
|
153
|
+
property: box-shadow,
|
|
154
|
+
class: shadow-lg,
|
|
155
|
+
values: (
|
|
156
|
+
null: $box-shadow-lg
|
|
157
|
+
)
|
|
158
|
+
),
|
|
159
|
+
"shadow-xl": (
|
|
160
|
+
property: box-shadow,
|
|
161
|
+
class: shadow-xl,
|
|
162
|
+
values: (
|
|
163
|
+
null: $box-shadow-xl
|
|
164
|
+
)
|
|
165
|
+
),
|
|
166
|
+
"shadow-2xl": (
|
|
167
|
+
property: box-shadow,
|
|
168
|
+
class: shadow-2xl,
|
|
169
|
+
values: (
|
|
170
|
+
null: $box-shadow-2xl
|
|
171
|
+
)
|
|
172
|
+
),
|
|
173
|
+
"shadow-3xl": (
|
|
174
|
+
property: box-shadow,
|
|
175
|
+
class: shadow-3xl,
|
|
176
|
+
values: (
|
|
177
|
+
null: $box-shadow-3xl
|
|
178
|
+
)
|
|
179
|
+
),
|
|
180
|
+
// Backdrop blur utilities
|
|
181
|
+
"backdrop-blur-sm": (
|
|
182
|
+
property: backdrop-filter,
|
|
183
|
+
class: backdrop-blur-sm,
|
|
184
|
+
values: (
|
|
185
|
+
null: $backdrop-blur-sm
|
|
186
|
+
)
|
|
187
|
+
),
|
|
188
|
+
"backdrop-blur-md": (
|
|
189
|
+
property: backdrop-filter,
|
|
190
|
+
class: backdrop-blur-md,
|
|
191
|
+
values: (
|
|
192
|
+
null: $backdrop-blur-md
|
|
193
|
+
)
|
|
194
|
+
),
|
|
195
|
+
"backdrop-blur-lg": (
|
|
196
|
+
property: backdrop-filter,
|
|
197
|
+
class: backdrop-blur-lg,
|
|
198
|
+
values: (
|
|
199
|
+
null: $backdrop-blur-lg
|
|
200
|
+
)
|
|
201
|
+
),
|
|
202
|
+
"backdrop-blur-xl": (
|
|
203
|
+
property: backdrop-filter,
|
|
204
|
+
class: backdrop-blur-xl,
|
|
205
|
+
values: (
|
|
206
|
+
null: $backdrop-blur-xl
|
|
207
|
+
)
|
|
208
|
+
)
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
// Generate utility classes
|
|
212
|
+
@each $key, $utility in $utilities {
|
|
213
|
+
$property: map.get($utility, property);
|
|
214
|
+
$class: map.get($utility, class);
|
|
215
|
+
$values: map.get($utility, values);
|
|
216
|
+
|
|
217
|
+
@each $value-key, $value in $values {
|
|
218
|
+
@if $value-key == null {
|
|
219
|
+
.#{$class} {
|
|
220
|
+
#{$property}: $value !important;
|
|
221
|
+
}
|
|
222
|
+
} @else {
|
|
223
|
+
.#{$class}-#{$value-key} {
|
|
224
|
+
#{$property}: $value !important;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Bootstrap 5.3 - Border Radius Variables & Utilities
|
|
2
|
+
// Extended radius system with utility classes
|
|
3
|
+
|
|
4
|
+
// ============================================
|
|
5
|
+
// BORDER RADIUS SCALE
|
|
6
|
+
// ============================================
|
|
7
|
+
|
|
8
|
+
// Extended radius scale
|
|
9
|
+
$radius-none: 0rem; // 0px
|
|
10
|
+
$radius-xs: 0.125rem; // 2px
|
|
11
|
+
$radius-sm: 0.25rem; // 4px
|
|
12
|
+
$radius-md: 0.5rem; // 8px
|
|
13
|
+
$radius-lg: 1rem; // 16px
|
|
14
|
+
$radius-xl: 1.5rem; // 24px
|
|
15
|
+
$radius-full: 9999px; // Full round
|
|
16
|
+
|
|
17
|
+
// Radius scale map
|
|
18
|
+
$radius-scale: (
|
|
19
|
+
none: $radius-none,
|
|
20
|
+
xs: $radius-xs,
|
|
21
|
+
sm: $radius-sm,
|
|
22
|
+
md: $radius-md,
|
|
23
|
+
lg: $radius-lg,
|
|
24
|
+
xl: $radius-xl,
|
|
25
|
+
full: $radius-full
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
// ============================================
|
|
29
|
+
// UTILITY CLASSES GENERATION
|
|
30
|
+
// ============================================
|
|
31
|
+
|
|
32
|
+
// Generate border-radius utilities
|
|
33
|
+
@each $name, $value in $radius-scale {
|
|
34
|
+
.radius-#{$name} {
|
|
35
|
+
border-radius: $value !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Top corners
|
|
39
|
+
.radius-t-#{$name} {
|
|
40
|
+
border-top-left-radius: $value !important;
|
|
41
|
+
border-top-right-radius: $value !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Bottom corners
|
|
45
|
+
.radius-b-#{$name} {
|
|
46
|
+
border-bottom-left-radius: $value !important;
|
|
47
|
+
border-bottom-right-radius: $value !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Left corners
|
|
51
|
+
.radius-l-#{$name} {
|
|
52
|
+
border-top-left-radius: $value !important;
|
|
53
|
+
border-bottom-left-radius: $value !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Right corners
|
|
57
|
+
.radius-r-#{$name} {
|
|
58
|
+
border-top-right-radius: $value !important;
|
|
59
|
+
border-bottom-right-radius: $value !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Individual corners
|
|
63
|
+
.radius-tl-#{$name} {
|
|
64
|
+
border-top-left-radius: $value !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.radius-tr-#{$name} {
|
|
68
|
+
border-top-right-radius: $value !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.radius-bl-#{$name} {
|
|
72
|
+
border-bottom-left-radius: $value !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.radius-br-#{$name} {
|
|
76
|
+
border-bottom-right-radius: $value !important;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// Bootstrap 5.3 - Spacing Variables
|
|
2
|
+
// Customized with extended spacing scale, width utilities, and semantic tokens
|
|
3
|
+
|
|
4
|
+
// ============================================
|
|
5
|
+
// SPACING SCALE
|
|
6
|
+
// ============================================
|
|
7
|
+
|
|
8
|
+
// Base spacer unit
|
|
9
|
+
$spacer: 1rem;
|
|
10
|
+
|
|
11
|
+
// Bootstrap spacers map (0-10)
|
|
12
|
+
$spacers: (
|
|
13
|
+
0: 0,
|
|
14
|
+
1: $spacer * 0.25, // 4px
|
|
15
|
+
2: $spacer * 0.5, // 8px
|
|
16
|
+
3: $spacer * 0.75, // 12px
|
|
17
|
+
4: $spacer, // 16px
|
|
18
|
+
5: $spacer * 1.5, // 24px
|
|
19
|
+
6: $spacer * 2, // 32px
|
|
20
|
+
7: $spacer * 2.5, // 40px
|
|
21
|
+
8: $spacer * 3, // 48px
|
|
22
|
+
9: $spacer * 4, // 64px
|
|
23
|
+
10: $spacer * 5 // 80px
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
// Extended spacing scale for custom utilities
|
|
27
|
+
$spacing-scale: (
|
|
28
|
+
0: 0rem,
|
|
29
|
+
0-5: 0.125rem, // 2px
|
|
30
|
+
1: 0.25rem, // 4px
|
|
31
|
+
2: 0.5rem, // 8px
|
|
32
|
+
3: 0.75rem, // 12px
|
|
33
|
+
4: 1rem, // 16px
|
|
34
|
+
5: 1.25rem, // 20px
|
|
35
|
+
6: 1.5rem, // 24px
|
|
36
|
+
8: 2rem, // 32px
|
|
37
|
+
10: 2.5rem, // 40px
|
|
38
|
+
12: 3rem, // 48px
|
|
39
|
+
16: 4rem, // 64px
|
|
40
|
+
20: 5rem, // 80px
|
|
41
|
+
24: 6rem, // 96px
|
|
42
|
+
32: 8rem, // 128px
|
|
43
|
+
40: 10rem, // 160px
|
|
44
|
+
48: 12rem, // 192px
|
|
45
|
+
56: 14rem, // 224px
|
|
46
|
+
64: 16rem // 256px
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// ============================================
|
|
50
|
+
// SEMANTIC SPACING TOKENS
|
|
51
|
+
// ============================================
|
|
52
|
+
|
|
53
|
+
$spacing-tokens: (
|
|
54
|
+
spacing-none: 0rem,
|
|
55
|
+
spacing-xxs: 0.125rem,
|
|
56
|
+
spacing-xs: 0.25rem,
|
|
57
|
+
spacing-sm: 0.375rem,
|
|
58
|
+
spacing-md: 0.5rem,
|
|
59
|
+
spacing-lg: 0.75rem,
|
|
60
|
+
spacing-xl: 1rem,
|
|
61
|
+
spacing-2xl: 1.25rem,
|
|
62
|
+
spacing-3xl: 1.5rem,
|
|
63
|
+
spacing-4xl: 2rem,
|
|
64
|
+
spacing-5xl: 2.5rem,
|
|
65
|
+
spacing-6xl: 3rem,
|
|
66
|
+
spacing-7xl: 4rem,
|
|
67
|
+
spacing-8xl: 5rem,
|
|
68
|
+
spacing-9xl: 6rem,
|
|
69
|
+
spacing-10xl: 8rem,
|
|
70
|
+
spacing-11xl: 10rem
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
// ============================================
|
|
74
|
+
// WIDTH SCALE
|
|
75
|
+
// ============================================
|
|
76
|
+
|
|
77
|
+
$width-scale: (
|
|
78
|
+
width-xxs: 20rem,
|
|
79
|
+
width-xs: 24rem,
|
|
80
|
+
width-sm: 30rem,
|
|
81
|
+
width-md: 35rem,
|
|
82
|
+
width-lg: 40rem,
|
|
83
|
+
width-xl: 48rem,
|
|
84
|
+
width-2xl: 64rem,
|
|
85
|
+
width-3xl: 80rem,
|
|
86
|
+
width-4xl: 90rem,
|
|
87
|
+
width-5xl: 100rem,
|
|
88
|
+
width-6xl: 120rem
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
// ============================================
|
|
92
|
+
// CONTAINER CONFIGURATION
|
|
93
|
+
// ============================================
|
|
94
|
+
|
|
95
|
+
$container-padding-mobile: 1rem;
|
|
96
|
+
$container-padding-desktop: 2rem;
|
|
97
|
+
$container-max-width-desktop: 80rem;
|
|
98
|
+
|
|
99
|
+
// ============================================
|
|
100
|
+
// PARAGRAPH CONFIGURATION
|
|
101
|
+
// ============================================
|
|
102
|
+
|
|
103
|
+
$paragraph-max-width: 45rem;
|
|
104
|
+
|
|
105
|
+
// ============================================
|
|
106
|
+
// UTILITY CLASSES GENERATION
|
|
107
|
+
// ============================================
|
|
108
|
+
|
|
109
|
+
// Generate extended spacing utilities
|
|
110
|
+
@each $key, $value in $spacing-scale {
|
|
111
|
+
// Margin utilities
|
|
112
|
+
.m-#{$key} { margin: $value !important; }
|
|
113
|
+
.mt-#{$key} { margin-top: $value !important; }
|
|
114
|
+
.mb-#{$key} { margin-bottom: $value !important; }
|
|
115
|
+
.ml-#{$key} { margin-left: $value !important; }
|
|
116
|
+
.mr-#{$key} { margin-right: $value !important; }
|
|
117
|
+
.mx-#{$key} { margin-inline: $value !important; }
|
|
118
|
+
.my-#{$key} { margin-block: $value !important; }
|
|
119
|
+
|
|
120
|
+
// Padding utilities
|
|
121
|
+
.p-#{$key} { padding: $value !important; }
|
|
122
|
+
.pt-#{$key} { padding-top: $value !important; }
|
|
123
|
+
.pb-#{$key} { padding-bottom: $value !important; }
|
|
124
|
+
.pl-#{$key} { padding-left: $value !important; }
|
|
125
|
+
.pr-#{$key} { padding-right: $value !important; }
|
|
126
|
+
.px-#{$key} { padding-inline: $value !important; }
|
|
127
|
+
.py-#{$key} { padding-block: $value !important; }
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Generate semantic spacing token utilities
|
|
131
|
+
@each $name, $space in $spacing-tokens {
|
|
132
|
+
.#{$name} { margin: $space !important; }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Generate width utilities
|
|
136
|
+
@each $name, $value in $width-scale {
|
|
137
|
+
.#{$name} { max-width: $value !important; }
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Container utility class
|
|
141
|
+
.container-platform {
|
|
142
|
+
padding-left: $container-padding-mobile;
|
|
143
|
+
padding-right: $container-padding-mobile;
|
|
144
|
+
|
|
145
|
+
@media (min-width: 992px) {
|
|
146
|
+
padding-left: $container-padding-desktop;
|
|
147
|
+
padding-right: $container-padding-desktop;
|
|
148
|
+
max-width: $container-max-width-desktop;
|
|
149
|
+
margin: 0 auto;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Paragraph max-width utility
|
|
154
|
+
.paragraph-max {
|
|
155
|
+
max-width: $paragraph-max-width;
|
|
156
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// Bootstrap 5.3 - Typography Variables
|
|
2
|
+
// Customized with SDGA Typography System (IBM Plex Sans Arabic)
|
|
3
|
+
// Responsive typography with breakpoint-specific sizes
|
|
4
|
+
|
|
5
|
+
// ============================================
|
|
6
|
+
// TYPOGRAPHY - DESKTOP (Default)
|
|
7
|
+
// ============================================
|
|
8
|
+
|
|
9
|
+
// Font Family
|
|
10
|
+
$font-family-base: 'IBM Plex Sans Arabic';
|
|
11
|
+
|
|
12
|
+
// Font Sizes - Desktop (1024px+)
|
|
13
|
+
$font-size-base: 1rem; // 16px
|
|
14
|
+
$font-size-sm: 0.875rem; // 14px
|
|
15
|
+
$font-size-lg: 1.125rem; // 18px
|
|
16
|
+
|
|
17
|
+
// Font Weights
|
|
18
|
+
$font-weight-lighter: 300;
|
|
19
|
+
$font-weight-light: 300;
|
|
20
|
+
$font-weight-base: 400;
|
|
21
|
+
$font-weight-medium: 500;
|
|
22
|
+
$font-weight-semibold: 600;
|
|
23
|
+
$font-weight-bold: 700;
|
|
24
|
+
$font-weight-bolder: 700;
|
|
25
|
+
|
|
26
|
+
// Line Heights
|
|
27
|
+
$line-height-base: 1.5;
|
|
28
|
+
$line-height-sm: 1.43;
|
|
29
|
+
$line-height-lg: 1.56;
|
|
30
|
+
|
|
31
|
+
// Headings - Desktop
|
|
32
|
+
$headings-font-family: $font-family-base;
|
|
33
|
+
$headings-font-weight: $font-weight-semibold;
|
|
34
|
+
$headings-line-height: $line-height-base;
|
|
35
|
+
$headings-color: null;
|
|
36
|
+
|
|
37
|
+
// Heading Sizes - Desktop
|
|
38
|
+
$h1-font-size: 3rem; // 48px
|
|
39
|
+
$h2-font-size: 2.25rem; // 36px
|
|
40
|
+
$h3-font-size: 1.875rem; // 30px
|
|
41
|
+
$h4-font-size: 1.5rem; // 24px
|
|
42
|
+
$h5-font-size: 1.125rem; // 18px
|
|
43
|
+
$h6-font-size: 1rem; // 16px
|
|
44
|
+
|
|
45
|
+
// Display Headings - Desktop
|
|
46
|
+
$display-font-sizes: (
|
|
47
|
+
1: 4.5rem, // 72px
|
|
48
|
+
2: 3.75rem, // 60px
|
|
49
|
+
3: 3rem, // 48px
|
|
50
|
+
4: 2.25rem, // 36px
|
|
51
|
+
5: 1.875rem, // 30px
|
|
52
|
+
6: 1.5rem // 24px
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
$display-font-weight: 700;
|
|
56
|
+
$display-line-height: 1.25;
|
|
57
|
+
|
|
58
|
+
// ============================================
|
|
59
|
+
// RESPONSIVE CONFIGURATION
|
|
60
|
+
// ============================================
|
|
61
|
+
|
|
62
|
+
// Enable responsive font sizes
|
|
63
|
+
$enable-rfs: true;
|
|
64
|
+
|
|
65
|
+
// Small text
|
|
66
|
+
$small-font-size: 0.875rem;
|
|
67
|
+
$sub-sup-font-size: 0.75rem;
|
|
68
|
+
|
|
69
|
+
// Paragraph
|
|
70
|
+
$paragraph-margin-bottom: 1rem;
|
|
71
|
+
|
|
72
|
+
// Lead text
|
|
73
|
+
$lead-font-size: 1.25rem;
|
|
74
|
+
$lead-font-weight: 300;
|
|
75
|
+
|
|
76
|
+
// ============================================
|
|
77
|
+
// TABLET SIZES (768px - 1023px)
|
|
78
|
+
// Will be applied via media queries in bootstrap.scss
|
|
79
|
+
// ============================================
|
|
80
|
+
$h1-font-size-tablet: 2.5rem; // 40px
|
|
81
|
+
$h2-font-size-tablet: 2rem; // 32px
|
|
82
|
+
$h3-font-size-tablet: 1.75rem; // 28px
|
|
83
|
+
$h4-font-size-tablet: 1.375rem; // 22px
|
|
84
|
+
$h5-font-size-tablet: 1.0625rem; // 17px
|
|
85
|
+
$h6-font-size-tablet: 0.9375rem; // 15px
|
|
86
|
+
|
|
87
|
+
$display-1-tablet: 3.75rem; // 60px
|
|
88
|
+
$display-2-tablet: 3rem; // 48px
|
|
89
|
+
$display-3-tablet: 2.5rem; // 40px
|
|
90
|
+
$display-4-tablet: 2rem; // 32px
|
|
91
|
+
$display-5-tablet: 1.75rem; // 28px
|
|
92
|
+
$display-6-tablet: 1.375rem; // 22px
|
|
93
|
+
|
|
94
|
+
$font-size-base-tablet: 0.9375rem; // 15px
|
|
95
|
+
$font-size-sm-tablet: 0.8125rem; // 13px
|
|
96
|
+
$font-size-lg-tablet: 1.0625rem; // 17px
|
|
97
|
+
|
|
98
|
+
// ============================================
|
|
99
|
+
// MOBILE SIZES (below 768px)
|
|
100
|
+
// Will be applied via media queries in bootstrap.scss
|
|
101
|
+
// ============================================
|
|
102
|
+
$h1-font-size-mobile: 2rem; // 32px
|
|
103
|
+
$h2-font-size-mobile: 1.75rem; // 28px
|
|
104
|
+
$h3-font-size-mobile: 1.5rem; // 24px
|
|
105
|
+
$h4-font-size-mobile: 1.25rem; // 20px
|
|
106
|
+
$h5-font-size-mobile: 1rem; // 16px
|
|
107
|
+
$h6-font-size-mobile: 0.875rem; // 14px
|
|
108
|
+
|
|
109
|
+
$display-1-mobile: 3rem; // 48px
|
|
110
|
+
$display-2-mobile: 2.5rem; // 40px
|
|
111
|
+
$display-3-mobile: 2rem; // 32px
|
|
112
|
+
$display-4-mobile: 1.75rem; // 28px
|
|
113
|
+
$display-5-mobile: 1.5rem; // 24px
|
|
114
|
+
$display-6-mobile: 1.25rem; // 20px
|
|
115
|
+
|
|
116
|
+
$font-size-base-mobile: 0.875rem; // 14px
|
|
117
|
+
$font-size-sm-mobile: 0.75rem; // 12px
|
|
118
|
+
$font-size-lg-mobile: 1rem; // 16px
|