sdga-ui 1.0.9 → 1.0.10

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.
@@ -19,8 +19,8 @@ $dropdown-link-color: $gray-900;
19
19
  $dropdown-link-hover-color: darken($gray-900, 5%);
20
20
  $dropdown-link-hover-bg: $gray-100;
21
21
 
22
- $dropdown-link-active-color: $white;
23
- $dropdown-link-active-bg: $primary;
22
+ $dropdown-link-active-color: $black;
23
+ $dropdown-link-active-bg: $neutral-200;
24
24
 
25
25
  $dropdown-link-disabled-color: $gray-500;
26
26
 
@@ -1,9 +1,10 @@
1
1
  // Bootstrap 5.3 - Navbar Component Variables
2
2
 
3
- $navbar-padding-y: 0.5rem;
4
- $navbar-padding-x: 1rem;
3
+ $navbar-padding-y: 0;
4
+ $navbar-padding-x: 2rem;
5
5
 
6
- $navbar-nav-link-padding-x: 0.5rem;
6
+ $navbar-nav-link-padding-x: 1rem;
7
+ $navbar-nav-link-padding-y: 0.5rem;
7
8
 
8
9
  $navbar-brand-font-size: $font-size-lg;
9
10
  $navbar-brand-height: null;
@@ -29,12 +30,12 @@ $navbar-dark-brand-color: $navbar-dark-active-color;
29
30
  $navbar-dark-brand-hover-color: $navbar-dark-active-color;
30
31
 
31
32
  // Navbar light theme
32
- $navbar-light-color: rgba($black, 0.55);
33
- $navbar-light-hover-color: rgba($black, 0.7);
34
- $navbar-light-active-color: rgba($black, 0.9);
33
+ $navbar-light-color: $black;
34
+ $navbar-light-hover-color: $black;
35
+ $navbar-light-active-color: $black;
35
36
  $navbar-light-disabled-color: rgba($black, 0.3);
36
- $navbar-light-icon-color: rgba($black, 0.5);
37
+ $navbar-light-icon-color: $black;
37
38
  $navbar-light-toggler-icon-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='#{$navbar-light-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
38
- $navbar-light-toggler-border-color: rgba($black, 0.1);
39
+ $navbar-light-toggler-border-color: transparent;
39
40
  $navbar-light-brand-color: $navbar-light-active-color;
40
- $navbar-light-brand-hover-color: $navbar-light-active-color;
41
+ $navbar-light-brand-hover-color: $navbar-light-active-color;
@@ -44,7 +44,7 @@ $focus-ring-width: 0.25rem;
44
44
  $focus-ring-opacity: 0.25;
45
45
  $focus-ring-color: shadow-rgba($focus-ring-opacity);
46
46
  $focus-ring-blur: 0;
47
- $focus-ring-box-shadow: 0 0 $focus-ring-blur $focus-ring-width $focus-ring-color;
47
+ $focus-ring-box-shadow: none;
48
48
 
49
49
  // ============================================
50
50
  // UTILITIES
@@ -7,78 +7,62 @@
7
7
 
8
8
  // Define alert color variants
9
9
  $alert-variants: (
10
- "primary": (
11
- border-color: rgba($primary-600, 0.7),
10
+ "primary": (border-color: rgba($primary-600, 0.7),
12
11
  bg: $primary-25,
13
12
  border: $primary-200,
14
13
  icon-bg: $primary-50,
15
14
  icon-color: $primary-700,
16
15
  title-color: $primary-700,
17
- mobile-border-top: $primary-600
18
- ),
19
- "lavender": (
20
- border-color: rgba($lavender-600, 0.7),
16
+ mobile-border-top: $primary-600 ),
17
+ "lavender": (border-color: rgba($lavender-600, 0.7),
21
18
  bg: $lavender-25,
22
19
  border: $lavender-200,
23
20
  icon-bg: $lavender-50,
24
21
  icon-color: $lavender-700,
25
22
  title-color: $lavender-700,
26
- mobile-border-top: rgba($lavender-600, 0.7)
27
- ),
28
- "neutral": (
29
- border-color: rgba($neutral-300, 0.7),
23
+ mobile-border-top: rgba($lavender-600, 0.7)),
24
+ "neutral": (border-color: rgba($neutral-300, 0.7),
30
25
  bg: $neutral-25,
31
26
  border: $neutral-300,
32
27
  icon-bg: $neutral-50,
33
28
  icon-color: $black,
34
29
  title-color: $black,
35
- mobile-border-top: rgba($neutral-300, 0.7)
36
- ),
37
- "success": (
38
- border-color: rgba($success-600, 0.7),
30
+ mobile-border-top: rgba($neutral-300, 0.7)),
31
+ "success": (border-color: rgba($success-600, 0.7),
39
32
  bg: $success-25,
40
33
  border: $success-200,
41
34
  icon-bg: $success-50,
42
35
  icon-color: $success-700,
43
36
  title-color: $success-700,
44
- mobile-border-top: rgba($success-600, 0.7)
45
- ),
46
- "danger": (
47
- border-color: rgba($danger-600, 0.7),
37
+ mobile-border-top: rgba($success-600, 0.7)),
38
+ "danger": (border-color: rgba($danger-600, 0.7),
48
39
  bg: $danger-25,
49
40
  border: $danger-200,
50
41
  icon-bg: $danger-50,
51
42
  icon-color: $danger-700,
52
43
  title-color: $danger-700,
53
- mobile-border-top: rgba($danger-600, 0.7)
54
- ),
55
- "warning": (
56
- border-color: rgba($warning-600, 0.7),
44
+ mobile-border-top: rgba($danger-600, 0.7)),
45
+ "warning": (border-color: rgba($warning-600, 0.7),
57
46
  bg: $warning-25,
58
47
  border: $warning-200,
59
48
  icon-bg: $warning-50,
60
49
  icon-color: $warning-700,
61
50
  title-color: $warning-700,
62
- mobile-border-top: rgba($warning-600, 0.7)
63
- ),
64
- "info": (
65
- border-color: rgba($info-600, 0.7),
51
+ mobile-border-top: rgba($warning-600, 0.7)),
52
+ "info": (border-color: rgba($info-600, 0.7),
66
53
  bg: $info-25,
67
54
  border: $info-200,
68
55
  icon-bg: $info-50,
69
56
  icon-color: $info-700,
70
57
  title-color: $info-700,
71
- mobile-border-top: rgba($info-600, 0.7)
72
- ),
73
- "secondary": (
74
- border-color: rgba($secondary-200, 0.7),
58
+ mobile-border-top: rgba($info-600, 0.7)),
59
+ "secondary": (border-color: rgba($secondary-200, 0.7),
75
60
  bg: $secondary-25,
76
61
  border: $secondary-200,
77
62
  icon-bg: $secondary-50,
78
63
  icon-color: $black,
79
64
  title-color: $black,
80
- mobile-border-top: rgba($secondary-200, 0.7)
81
- )
65
+ mobile-border-top: rgba($secondary-200, 0.7))
82
66
  );
83
67
 
84
68
  // ============================================
@@ -131,6 +115,11 @@ $alert-variants: (
131
115
  padding-right: unset;
132
116
  padding-inline-end: $alert-dismissible-padding-r;
133
117
  padding-inline-start: $alert-padding-x;
118
+
119
+ .btn-close {
120
+ right: unset;
121
+ inset-inline-end: 0;
122
+ }
134
123
  }
135
124
 
136
125
  // Generate alert variant classes
@@ -151,13 +140,14 @@ $alert-variants: (
151
140
  --#{$prefix}alert-title-color: #{$gray-800};
152
141
  }
153
142
 
154
- .alert-footer{
143
+ .alert-footer {
155
144
  display: flex;
156
145
  gap: 1.25rem;
157
146
  margin-top: 1rem;
158
147
  margin-inline-start: -0.75rem;
159
148
  }
160
149
 
150
+
161
151
  // ============================================
162
152
  // MOBILE RESPONSIVE
163
153
  // ============================================
@@ -166,6 +156,7 @@ $alert-variants: (
166
156
  gap: 1rem;
167
157
  border-inline-start-width: $alert-border-width;
168
158
  border-top-width: 0.5rem;
159
+ position: relative;
169
160
 
170
161
  @each $name, $colors in $alert-variants {
171
162
  &.alert-#{$name} {
@@ -190,6 +181,7 @@ $alert-variants: (
190
181
  button {
191
182
  width: 100%;
192
183
  justify-content: center;
184
+
193
185
  &:first-of-type {
194
186
  --#{$prefix}btn-color: #{$black};
195
187
  --#{$prefix}btn-bg: #{$secondary-100};
@@ -207,17 +199,9 @@ $alert-variants: (
207
199
  }
208
200
  }
209
201
  }
210
- }
211
- }
212
- // ============================================
213
- // DISMISSIBLE ALERTS
214
- // ============================================
215
- .alert-dismissible {
216
- .btn-close {
217
- padding: $btn-close-padding-y $btn-close-padding-x;
218
- position: absolute;
219
- top: 1rem;
220
- right: unset;
221
- inset-inline-end: 1.5rem;
202
+
203
+ &.alert-dismissible {
204
+ padding: $alert-padding-y $alert-padding-x;
205
+ }
222
206
  }
223
207
  }
@@ -5,37 +5,7 @@
5
5
  // CARD ICON VARIANTS - Using Sass map and @each loop
6
6
  // ============================================
7
7
 
8
- // Define card icon color variants
9
- $card-icon-variants: (
10
- "success": (
11
- icon-bg: $success-50,
12
- icon-color: $success-700
13
- ),
14
- "primary": (
15
- icon-bg: $primary-50,
16
- icon-color: $primary-700
17
- ),
18
- "danger": (
19
- icon-bg: $danger-50,
20
- icon-color: $danger-700
21
- ),
22
- "warning": (
23
- icon-bg: $warning-50,
24
- icon-color: $warning-700
25
- ),
26
- "info": (
27
- icon-bg: $info-50,
28
- icon-color: $info-700
29
- ),
30
- "secondary": (
31
- icon-bg: $secondary-50,
32
- icon-color: $secondary-700
33
- ),
34
- "neutral": (
35
- icon-bg: $neutral-50,
36
- icon-color: $neutral-700
37
- )
38
- );
8
+
39
9
 
40
10
  // ============================================
41
11
  // CARD BASE STYLES
@@ -84,45 +54,6 @@ $card-icon-variants: (
84
54
  &.disabled {
85
55
  background-color: $gray-200;
86
56
  cursor: not-allowed;
87
-
88
- .card-title-icon {
89
- &::after {
90
- background-color: $gray-100;
91
- }
92
- color: $gray-400;
93
- }
94
-
95
- }
96
-
97
- .card-title-icon {
98
- &::after {
99
- content: '';
100
- width: 3rem;
101
- height: 3rem;
102
- border-radius: $radius-full;
103
- background-color: $primary-50;
104
- position: absolute;
105
- z-index: -1;
106
- }
107
- width: 3rem;
108
- height: 3rem;
109
- position: relative;
110
- display: inline-flex;
111
- align-items: center;
112
- justify-content: center;
113
- color: $success-700;
114
- z-index: 1;
115
-
116
- // Generate card icon variant classes
117
- @each $name, $colors in $card-icon-variants {
118
- &.card-title-icon-#{$name} {
119
- color: map-get($colors, icon-color);
120
-
121
- &::after {
122
- background-color: map-get($colors, icon-bg);
123
- }
124
- }
125
- }
126
57
  }
127
58
 
128
59
  .card-title-checked {
@@ -166,4 +97,4 @@ $card-icon-variants: (
166
97
  }
167
98
  }
168
99
  }
169
- }
100
+ }
@@ -18,16 +18,19 @@
18
18
  --#{$prefix}text-muted: #{rgba($white, 0.8)};
19
19
  --#{$prefix}border-color: #{rgba($white, 0.3)};
20
20
 
21
- *:focus-visible {
21
+ *:focus-visible,
22
+ *:focus {
22
23
  outline-color: $white !important;
23
24
  }
24
25
  }
25
26
 
26
27
  .list-unstyled {
27
- padding-left: unset;
28
- padding-right: unset;
28
+ padding-left: unset;
29
+ padding-inline-start: 0;
29
30
  }
30
31
 
32
+
33
+
31
34
  // ============================================
32
35
  // SAFARI COMPATIBILITY
33
36
  // ============================================
@@ -40,4 +43,4 @@ th {
40
43
  // Fix text-size-adjust for modern browsers
41
44
  html {
42
45
  text-size-adjust: 100%;
43
- }
46
+ }
@@ -0,0 +1,122 @@
1
+ // Define card icon color variants
2
+ $card-icon-variants: (
3
+ "success": (icon-bg: $success-50,
4
+ icon-color: $success-700 ),
5
+ "primary": (icon-bg: $primary-50,
6
+ icon-color: $primary-700 ),
7
+ "danger": (icon-bg: $danger-50,
8
+ icon-color: $danger-700 ),
9
+ "warning": (icon-bg: $warning-50,
10
+ icon-color: $warning-700 ),
11
+ "info": (icon-bg: $info-50,
12
+ icon-color: $info-700 ),
13
+ "secondary": (icon-bg: $secondary-50,
14
+ icon-color: $secondary-700 ),
15
+ "neutral": (icon-bg: $neutral-50,
16
+ icon-color: $neutral-700 )
17
+ );
18
+
19
+ .dga-featured-icon {
20
+ display: flex;
21
+ width: 3rem;
22
+ height: 3rem;
23
+ justify-content: center;
24
+ align-items: center;
25
+ gap: .5rem;
26
+ background: $primary-50;
27
+ font-size: 1.3rem;
28
+
29
+ &.dga-featured-icon-sm {
30
+ width: 2.5rem;
31
+ height: 2.5rem;
32
+ font-size: 0.875rem;
33
+ }
34
+
35
+ &.dga-featured-icon-md {
36
+ width: 3rem;
37
+ height: 3rem;
38
+ font-size: 1.3rem;
39
+ }
40
+
41
+ &.dga-featured-icon-lg {
42
+ width: 4rem;
43
+ height: 4rem;
44
+ font-size: 1.875rem;
45
+ }
46
+
47
+ &.dga-featured-icon-circle {
48
+ border-radius: $radius-full;
49
+ }
50
+
51
+ &.dga-featured-icon-rounded-lg {
52
+ border-radius: $radius-lg;
53
+ }
54
+
55
+ &.dga-featured-icon-rounded-sm {
56
+ border-radius: $radius-sm;
57
+ }
58
+
59
+ &.dga-featured-icon-rounded-md,
60
+ &.dga-featured-icon-rounded {
61
+ border-radius: $radius-md;
62
+ }
63
+
64
+ @each $name, $colors in $card-icon-variants {
65
+ &.dga-featured-icon-#{$name} {
66
+ background-color: map-get($colors, icon-bg);
67
+
68
+ svg,
69
+ i {
70
+ fill: map-get($colors, icon-color);
71
+ color: map-get($colors, icon-color);
72
+ stroke: map-get($colors, icon-color);
73
+ }
74
+
75
+ &.disabled {
76
+ background-color: $gray-100;
77
+
78
+ svg,
79
+ i {
80
+ fill: $gray-400;
81
+ color: $gray-400;
82
+ stroke: $gray-400;
83
+ }
84
+ }
85
+ }
86
+ }
87
+
88
+ &.disabled {
89
+ background-color: $gray-100;
90
+
91
+ svg,
92
+ i {
93
+ fill: $gray-400;
94
+ color: $gray-400;
95
+ stroke: $gray-400;
96
+ }
97
+ }
98
+
99
+ svg,
100
+ i {
101
+ fill: $primary-600;
102
+ color: $primary-600;
103
+ font-size: 1em;
104
+ display: grid;
105
+ place-items: center;
106
+ }
107
+ }
108
+
109
+
110
+ .on-primary {
111
+ .dga-featured-icon,
112
+ &.dga-featured-icon {
113
+ background: rgba($white, 0.1);
114
+
115
+ svg,
116
+ i {
117
+ stroke: $white;
118
+ fill: $white;
119
+ color: $white;
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,167 @@
1
+ .navbar {
2
+ position: relative;
3
+
4
+ .nav-link {
5
+ display: flex;
6
+ height: 4.5rem;
7
+ min-width: 4.5rem;
8
+ font-size: 1rem;
9
+ padding: var(--spacing-md, $navbar-nav-link-padding-y) var(--spacing-xl, $navbar-nav-link-padding-x);
10
+ justify-content: center;
11
+ align-items: center;
12
+ border-radius: $radius-sm;
13
+ gap: 0.25rem;
14
+ position: relative;
15
+
16
+
17
+ &.icon-top {
18
+ flex-direction: column;
19
+ }
20
+
21
+ &::before {
22
+ content: '';
23
+ transition: transform 0.3s ease-in-out;
24
+ position: absolute;
25
+ bottom: 0;
26
+ left: 50%;
27
+ transform: translateX(-50%);
28
+ width: calc(100% - 1rem);
29
+ height: 0.375rem;
30
+ border-radius: $radius-full;
31
+ }
32
+
33
+ &:hover {
34
+ background-color: $neutral-100;
35
+
36
+ &::before {
37
+ background-color: $neutral-400;
38
+ }
39
+ }
40
+
41
+ &:active {
42
+ background-color: $neutral-200;
43
+
44
+ &::before {
45
+ background-color: $neutral-800;
46
+ }
47
+ }
48
+
49
+ &:disabled,
50
+ &.disabled {
51
+ pointer-events: none;
52
+ cursor: default;
53
+ background-color: transparent;
54
+ color: $neutral-400;
55
+
56
+ &::before {
57
+ background-color: transparent;
58
+ }
59
+ }
60
+
61
+ &.active {
62
+ background-color: $primary-600;
63
+ color: $white;
64
+
65
+ &::before {
66
+ background-color: $primary-400;
67
+ }
68
+
69
+ &:hover {
70
+ background-color: $primary-700;
71
+
72
+ &::before {
73
+ background-color: $primary-400;
74
+ }
75
+ }
76
+
77
+ &:active {
78
+ background-color: $primary-900;
79
+
80
+ &::before {
81
+ background-color: $primary-400;
82
+ }
83
+ }
84
+
85
+ &:disabled,
86
+ &.disabled {
87
+ pointer-events: none;
88
+ cursor: default;
89
+ color: $neutral-400;
90
+ background-color: transparent;
91
+
92
+ &::before {
93
+ background-color: $neutral-200;
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ .dropdown {
100
+ position: unset;
101
+ }
102
+
103
+ .dropdown-menu {
104
+ height: max-content;
105
+ transition: transform 1s ease-in-out;
106
+ inset: auto 0 auto auto !important;
107
+ padding: 2rem 5rem;
108
+ width: 100%;
109
+ border: none;
110
+ margin: 0;
111
+ border-top-left-radius: 0;
112
+ border-top-right-radius: 0;
113
+
114
+ .dropdown-header {
115
+ color: $primary;
116
+ font-size: $font-size-lg;
117
+ font-weight: $font-weight-bold;
118
+
119
+ }
120
+
121
+ .dropdown-item-group {
122
+ display: flex;
123
+ flex-direction: column;
124
+ gap: .25rem;
125
+ }
126
+
127
+ &.show {
128
+ display: flex;
129
+ align-items: flex-start;
130
+ align-content: flex-start;
131
+ gap: 1.5rem var(--spacing-3xl, 1.5rem);
132
+ align-self: stretch;
133
+ flex-wrap: wrap;
134
+ }
135
+
136
+ }
137
+ }
138
+
139
+
140
+ .on-primary {
141
+ .dropdown-menu,
142
+ &.dropdown-menu {
143
+
144
+ .dropdown-item,
145
+ .dropdown-header {
146
+ color: $white;
147
+ }
148
+
149
+ .dropdown-item:hover {
150
+ background-color: rgb($white, 0.2);
151
+ color: $white;
152
+ }
153
+
154
+ .dropdown-item:active {
155
+ background-color: rgb($white, 0.4);
156
+ color: $white;
157
+ }
158
+
159
+ .dropdown-item.disabled,
160
+ .dropdown-item.disabled:hover,
161
+ .dropdown-item.disabled:active {
162
+ background-color: transparent;
163
+ color: $neutral-400;
164
+ }
165
+
166
+ }
167
+ }
package/theme/dga-ui.scss CHANGED
@@ -16,6 +16,7 @@
16
16
 
17
17
  // Import all component customizations
18
18
  @import './customizations/global';
19
+ @import './customizations/icon-featured';
19
20
  @import './customizations/links';
20
21
  @import './customizations/buttons';
21
22
  @import './customizations/cards';
@@ -26,3 +27,4 @@
26
27
  @import './customizations/forms-switch';
27
28
  @import './customizations/tables';
28
29
  @import './customizations/footer';
30
+ @import './customizations/navbar';