@amelharrak/eldo-ui 1.0.1
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/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/css/eldo.css +11683 -0
- package/dist/css/eldo.css.map +1 -0
- package/dist/css/eldo.min.css +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +64 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/__tests__/Alert.test.d.ts +1 -0
- package/dist/types/__tests__/Button.test.d.ts +1 -0
- package/dist/types/__tests__/Modal.test.d.ts +1 -0
- package/dist/types/components/Accordion.d.ts +15 -0
- package/dist/types/components/Alert.d.ts +15 -0
- package/dist/types/components/Avatar.d.ts +10 -0
- package/dist/types/components/Badge.d.ts +7 -0
- package/dist/types/components/Box.d.ts +27 -0
- package/dist/types/components/Breadcrumb.d.ts +15 -0
- package/dist/types/components/Button.d.ts +16 -0
- package/dist/types/components/ButtonGroup.d.ts +7 -0
- package/dist/types/components/Card.d.ts +15 -0
- package/dist/types/components/Carousel.d.ts +21 -0
- package/dist/types/components/Checkbox.d.ts +10 -0
- package/dist/types/components/Col.d.ts +12 -0
- package/dist/types/components/Collapse.d.ts +12 -0
- package/dist/types/components/Container.d.ts +8 -0
- package/dist/types/components/Dropdown.d.ts +19 -0
- package/dist/types/components/FileUpload.d.ts +13 -0
- package/dist/types/components/Input.d.ts +20 -0
- package/dist/types/components/InputOTP.d.ts +13 -0
- package/dist/types/components/ListGroup.d.ts +20 -0
- package/dist/types/components/Modal.d.ts +13 -0
- package/dist/types/components/Navbar.d.ts +17 -0
- package/dist/types/components/NumberInput.d.ts +15 -0
- package/dist/types/components/Offcanvas.d.ts +15 -0
- package/dist/types/components/Pagination.d.ts +14 -0
- package/dist/types/components/Popover.d.ts +14 -0
- package/dist/types/components/Progress.d.ts +11 -0
- package/dist/types/components/Radio.d.ts +11 -0
- package/dist/types/components/Row.d.ts +7 -0
- package/dist/types/components/Scrollspy.d.ts +13 -0
- package/dist/types/components/Select.d.ts +16 -0
- package/dist/types/components/Slider.d.ts +16 -0
- package/dist/types/components/Sonner.d.ts +21 -0
- package/dist/types/components/Spinner.d.ts +11 -0
- package/dist/types/components/Stat.d.ts +24 -0
- package/dist/types/components/Switch.d.ts +14 -0
- package/dist/types/components/Tabs.d.ts +20 -0
- package/dist/types/components/Text.d.ts +13 -0
- package/dist/types/components/Timeline.d.ts +41 -0
- package/dist/types/components/Toast.d.ts +17 -0
- package/dist/types/components/Tooltip.d.ts +12 -0
- package/dist/types/index.d.ts +40 -0
- package/package.json +106 -0
- package/setup.js +260 -0
- package/src/scss/abstracts/_functions.scss +19 -0
- package/src/scss/abstracts/_mixins.scss +33 -0
- package/src/scss/abstracts/_variables.scss +119 -0
- package/src/scss/base/_reset.scss +24 -0
- package/src/scss/base/_transitions.scss +10 -0
- package/src/scss/base/_typography.scss +50 -0
- package/src/scss/components/_accordion.scss +238 -0
- package/src/scss/components/_alert.scss +85 -0
- package/src/scss/components/_alerts.scss +137 -0
- package/src/scss/components/_avatar.scss +184 -0
- package/src/scss/components/_badge.scss +70 -0
- package/src/scss/components/_blockquote.scss +41 -0
- package/src/scss/components/_breadcrumb.scss +39 -0
- package/src/scss/components/_button-group.scss +43 -0
- package/src/scss/components/_button.scss +92 -0
- package/src/scss/components/_buttons.scss +66 -0
- package/src/scss/components/_calendar.scss +520 -0
- package/src/scss/components/_card.scss +52 -0
- package/src/scss/components/_cards.scss +123 -0
- package/src/scss/components/_carousel.scss +490 -0
- package/src/scss/components/_charts.scss +29 -0
- package/src/scss/components/_checkbox.scss +194 -0
- package/src/scss/components/_code.scss +70 -0
- package/src/scss/components/_collapse.scss +13 -0
- package/src/scss/components/_combobox.scss +239 -0
- package/src/scss/components/_date-picker.scss +102 -0
- package/src/scss/components/_divider.scss +55 -0
- package/src/scss/components/_dropdown.scss +122 -0
- package/src/scss/components/_file-upload.scss +233 -0
- package/src/scss/components/_floating-labels.scss +247 -0
- package/src/scss/components/_form-select.scss +49 -0
- package/src/scss/components/_forms.scss +41 -0
- package/src/scss/components/_index.scss +7 -0
- package/src/scss/components/_input-otp.scss +338 -0
- package/src/scss/components/_list-group.scss +95 -0
- package/src/scss/components/_modal.scss +166 -0
- package/src/scss/components/_nav.scss +175 -0
- package/src/scss/components/_navbar.scss +228 -0
- package/src/scss/components/_number-input.scss +67 -0
- package/src/scss/components/_offcanvas.scss +123 -0
- package/src/scss/components/_pagination.scss +64 -0
- package/src/scss/components/_placeholders.scss +52 -0
- package/src/scss/components/_popovers.scss +69 -0
- package/src/scss/components/_progress.scss +90 -0
- package/src/scss/components/_range.scss +82 -0
- package/src/scss/components/_scrollspy.scss +239 -0
- package/src/scss/components/_skeleton.scss +108 -0
- package/src/scss/components/_slider.scss +95 -0
- package/src/scss/components/_snippet.scss +79 -0
- package/src/scss/components/_spinners.scss +137 -0
- package/src/scss/components/_stat.scss +42 -0
- package/src/scss/components/_stepper.scss +104 -0
- package/src/scss/components/_switch.scss +57 -0
- package/src/scss/components/_table.scss +109 -0
- package/src/scss/components/_tag.scss +60 -0
- package/src/scss/components/_tags-input.scss +60 -0
- package/src/scss/components/_timeline.scss +238 -0
- package/src/scss/components/_toasts.scss +75 -0
- package/src/scss/components/_tooltips.scss +50 -0
- package/src/scss/components/_tree-view.scss +72 -0
- package/src/scss/components/_user.scss +26 -0
- package/src/scss/docs/_examples.scss +148 -0
- package/src/scss/docs/_layout.scss +251 -0
- package/src/scss/docs/_search.scss +141 -0
- package/src/scss/eldo.scss +74 -0
- package/src/scss/layout/_container.scss +37 -0
- package/src/scss/layout/_grid.scss +49 -0
- package/src/scss/pages/_landing-config.scss +135 -0
- package/src/scss/pages/_landing-features-enhanced.scss +165 -0
- package/src/scss/pages/_landing-hero-enhanced.scss +427 -0
- package/src/scss/pages/_landing-setup.scss +264 -0
- package/src/scss/pages/_landing.scss +1828 -0
- package/src/scss/utilities/_api.scss +66 -0
- package/src/scss/utilities/_colors.scss +32 -0
- package/src/scss/utilities/_display.scss +70 -0
- package/src/scss/utilities/_glass.scss +32 -0
- package/src/scss/utilities/_helpers.scss +16 -0
- package/src/scss/utilities/_map.scss +224 -0
- package/src/scss/utilities/_spacing.scss +58 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../abstracts/variables" as *;
|
|
3
|
+
|
|
4
|
+
.timeline {
|
|
5
|
+
position: relative;
|
|
6
|
+
padding-left: 0; // Reset
|
|
7
|
+
margin-bottom: 2rem;
|
|
8
|
+
list-style: none;
|
|
9
|
+
|
|
10
|
+
// The Line (Vertical)
|
|
11
|
+
&::before {
|
|
12
|
+
content: "";
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: 0.75rem; // Center of 1.5rem marker
|
|
17
|
+
width: 2px;
|
|
18
|
+
background-color: $gray-200;
|
|
19
|
+
transform: translateX(-50%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.timeline-item {
|
|
23
|
+
position: relative;
|
|
24
|
+
padding-left: 2.5rem; // Space for marker + gap
|
|
25
|
+
padding-bottom: 2rem;
|
|
26
|
+
|
|
27
|
+
&:last-child {
|
|
28
|
+
padding-bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// The Marker
|
|
32
|
+
&::after {
|
|
33
|
+
content: "";
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0; // 0.75rem center - 0.5rem radius = 0.25rem left... wait.
|
|
36
|
+
// Let's position explicitly
|
|
37
|
+
left: 0.75rem;
|
|
38
|
+
top: 0.25rem;
|
|
39
|
+
width: 1rem;
|
|
40
|
+
height: 1rem;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
background-color: $white;
|
|
43
|
+
border: 2px solid $gray-400;
|
|
44
|
+
transform: translateX(-50%);
|
|
45
|
+
z-index: 1;
|
|
46
|
+
transition: all 0.2s ease;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Content Spacing
|
|
50
|
+
.timeline-content {
|
|
51
|
+
position: relative;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// States
|
|
55
|
+
&.active,
|
|
56
|
+
&.completed {
|
|
57
|
+
&::after {
|
|
58
|
+
background-color: $primary;
|
|
59
|
+
border-color: $primary;
|
|
60
|
+
box-shadow: 0 0 0 4px color.scale($primary, $alpha: -85%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Optional Aniamtion (Vertical)
|
|
64
|
+
&.animated::after {
|
|
65
|
+
animation: timeline-pulse 2s infinite;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Title color
|
|
69
|
+
.timeline-title {
|
|
70
|
+
color: $primary;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.completed {
|
|
75
|
+
|
|
76
|
+
// Maybe a checkmark icon later, but for now solid color
|
|
77
|
+
&::after {
|
|
78
|
+
background-color: $success;
|
|
79
|
+
border-color: $success;
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.timeline-title {
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
margin-bottom: 0.25rem;
|
|
88
|
+
color: $gray-900;
|
|
89
|
+
font-size: 1rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.timeline-text {
|
|
93
|
+
color: $gray-600;
|
|
94
|
+
margin-bottom: 0.5rem;
|
|
95
|
+
font-size: 0.95rem;
|
|
96
|
+
line-height: 1.6;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.timeline-date {
|
|
100
|
+
font-size: 0.85rem;
|
|
101
|
+
color: $gray-500;
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
margin-bottom: 0.25rem;
|
|
104
|
+
text-transform: uppercase;
|
|
105
|
+
letter-spacing: 0.5px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Horizontal Variant (Wizard / Steps)
|
|
109
|
+
&.timeline-horizontal {
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
align-items: flex-start;
|
|
113
|
+
padding-top: 1rem;
|
|
114
|
+
counter-reset: timeline-step; // Initialize counter
|
|
115
|
+
|
|
116
|
+
// Remove vertical line
|
|
117
|
+
&::before {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.timeline-item {
|
|
122
|
+
padding: 0;
|
|
123
|
+
flex: 1;
|
|
124
|
+
text-align: center;
|
|
125
|
+
position: relative;
|
|
126
|
+
|
|
127
|
+
// Flex layout: Marker (Top) -> Content (Bottom)
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
align-items: center;
|
|
131
|
+
|
|
132
|
+
// 1. The Connector Line (::after)
|
|
133
|
+
// Positioned behind the marker to connect to the NEXT item
|
|
134
|
+
&::after {
|
|
135
|
+
content: "";
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 1rem; // Center vertically with marker (2rem / 2)
|
|
138
|
+
left: 50%; // Start from center of this item
|
|
139
|
+
width: 100%; // Spans to center of next item
|
|
140
|
+
height: 3px;
|
|
141
|
+
background-color: $gray-200;
|
|
142
|
+
z-index: 0; // Behind marker
|
|
143
|
+
transform: translateY(-50%);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Remove line from last item
|
|
147
|
+
&:last-child::after {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// 2. The Marker (::before)
|
|
152
|
+
// Becomes the first flex icon because it's ::before
|
|
153
|
+
&::before {
|
|
154
|
+
counter-increment: timeline-step;
|
|
155
|
+
content: counter(timeline-step);
|
|
156
|
+
|
|
157
|
+
width: 2rem;
|
|
158
|
+
height: 2rem;
|
|
159
|
+
border-radius: 50%;
|
|
160
|
+
background-color: $white;
|
|
161
|
+
border: 2px solid $gray-300;
|
|
162
|
+
color: $gray-600;
|
|
163
|
+
font-weight: 700;
|
|
164
|
+
font-size: 0.9rem;
|
|
165
|
+
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
|
|
170
|
+
z-index: 1; // Above line
|
|
171
|
+
position: relative; // Flex item
|
|
172
|
+
margin-bottom: 0.75rem; // Space between marker and text
|
|
173
|
+
transition: all 0.2s ease;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Hide the old marker from vertical style
|
|
177
|
+
// Note: The parent CSS defines &::after as marker.
|
|
178
|
+
// We are repurposing ::after for the horizontal line,
|
|
179
|
+
// so we must ensure we don't inherit the vertical marker styles on ::after incorrectly.
|
|
180
|
+
// But wait, the parent .timeline-item::after rule is specific.
|
|
181
|
+
// We need to override the parent properties for ::after completely.
|
|
182
|
+
|
|
183
|
+
// Overriding Vertical styles to be safe
|
|
184
|
+
// Vertical ::before is on .timeline, distinct.
|
|
185
|
+
// Vertical ::after is on .timeline-item. We reused it for Line.
|
|
186
|
+
// So we just need to reset its properties in the &::after block above.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
// STATES
|
|
190
|
+
|
|
191
|
+
// Active State
|
|
192
|
+
&.active {
|
|
193
|
+
&::before {
|
|
194
|
+
border-color: $primary;
|
|
195
|
+
background-color: $primary;
|
|
196
|
+
color: $white;
|
|
197
|
+
box-shadow: 0 0 0 4px color.scale($primary, $alpha: -85%);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Optional Animation
|
|
201
|
+
&.animated::before {
|
|
202
|
+
animation: timeline-pulse 2s infinite;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// Completed State
|
|
207
|
+
&.completed {
|
|
208
|
+
|
|
209
|
+
// Marker
|
|
210
|
+
&::before {
|
|
211
|
+
content: "✓"; // Checkmark for completed
|
|
212
|
+
background-color: $success;
|
|
213
|
+
border-color: $success;
|
|
214
|
+
color: $white;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Line to next item
|
|
218
|
+
&::after {
|
|
219
|
+
background-color: $success;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@keyframes timeline-pulse {
|
|
227
|
+
0% {
|
|
228
|
+
box-shadow: 0 0 0 0 color.scale($primary, $alpha: -50%);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
70% {
|
|
232
|
+
box-shadow: 0 0 0 10px color.scale($primary, $alpha: -100%);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
100% {
|
|
236
|
+
box-shadow: 0 0 0 0 color.scale($primary, $alpha: -100%);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../abstracts/variables" as *;
|
|
3
|
+
|
|
4
|
+
.toast {
|
|
5
|
+
width: 350px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
pointer-events: auto;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
background-clip: padding-box;
|
|
11
|
+
border: 0; // No border
|
|
12
|
+
box-shadow: $box-shadow-lg;
|
|
13
|
+
border-radius: $border-radius-lg;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
|
|
16
|
+
&:not(.show) {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.toast-header {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
padding: 0.75rem 1rem;
|
|
25
|
+
color: $gray-600;
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
background-clip: padding-box;
|
|
28
|
+
border-bottom: 1px solid $gray-100;
|
|
29
|
+
|
|
30
|
+
strong {
|
|
31
|
+
color: $dark;
|
|
32
|
+
font-weight: $font-weight-semibold;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.btn-close {
|
|
36
|
+
margin-right: -0.375rem;
|
|
37
|
+
margin-left: auto; // Push to right
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.toast-body {
|
|
42
|
+
padding: 1rem;
|
|
43
|
+
word-wrap: break-word;
|
|
44
|
+
color: $body-color;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.toast-container {
|
|
48
|
+
position: absolute;
|
|
49
|
+
z-index: 1090;
|
|
50
|
+
width: max-content;
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
padding: 1rem;
|
|
54
|
+
|
|
55
|
+
> :not(:last-child) {
|
|
56
|
+
margin-bottom: 0.75rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Positioning utility
|
|
60
|
+
&.top-0 {
|
|
61
|
+
top: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.end-0 {
|
|
65
|
+
right: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.bottom-0 {
|
|
69
|
+
bottom: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.start-0 {
|
|
73
|
+
left: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../abstracts/variables" as *;
|
|
3
|
+
|
|
4
|
+
.tooltip {
|
|
5
|
+
position: absolute;
|
|
6
|
+
z-index: 1080;
|
|
7
|
+
display: block;
|
|
8
|
+
margin: 0;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
line-height: 1.5;
|
|
13
|
+
text-align: left;
|
|
14
|
+
text-transform: none;
|
|
15
|
+
letter-spacing: normal;
|
|
16
|
+
word-break: normal;
|
|
17
|
+
white-space: normal;
|
|
18
|
+
font-size: 0.75rem; // Smaller font
|
|
19
|
+
word-wrap: break-word;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transition: opacity 0.2s ease;
|
|
22
|
+
|
|
23
|
+
&.show {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tooltip-arrow {
|
|
28
|
+
position: absolute;
|
|
29
|
+
display: block;
|
|
30
|
+
width: 0.8rem;
|
|
31
|
+
height: 0.4rem;
|
|
32
|
+
|
|
33
|
+
&::before {
|
|
34
|
+
position: absolute;
|
|
35
|
+
content: "";
|
|
36
|
+
border-color: transparent;
|
|
37
|
+
border-style: solid;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tooltip-inner {
|
|
43
|
+
max-width: 200px;
|
|
44
|
+
padding: 0.4rem 0.75rem;
|
|
45
|
+
color: #fff;
|
|
46
|
+
text-align: center;
|
|
47
|
+
background-color: $gray-900;
|
|
48
|
+
border-radius: $border-radius;
|
|
49
|
+
box-shadow: $box-shadow-sm;
|
|
50
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../abstracts/variables" as *;
|
|
3
|
+
|
|
4
|
+
.tree-view {
|
|
5
|
+
list-style: none;
|
|
6
|
+
padding-left: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
|
|
9
|
+
// Recursive nesting padding
|
|
10
|
+
.tree-group {
|
|
11
|
+
list-style: none;
|
|
12
|
+
padding-left: 1.5rem;
|
|
13
|
+
display: none; // Hidden by default
|
|
14
|
+
|
|
15
|
+
&.show {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tree-item {
|
|
21
|
+
margin-bottom: 0.25rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tree-content {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
padding: 0.375rem 0.5rem;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
border-radius: $border-radius-sm;
|
|
30
|
+
transition: background-color .15s ease;
|
|
31
|
+
color: $body-color;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: $gray-100;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.active {
|
|
38
|
+
background-color: color.scale($primary, $lightness: 90%);
|
|
39
|
+
color: $primary;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.tree-toggle {
|
|
44
|
+
width: 1.25rem;
|
|
45
|
+
height: 1.25rem;
|
|
46
|
+
margin-right: 0.5rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
color: $gray-500;
|
|
51
|
+
transition: transform .2s ease;
|
|
52
|
+
|
|
53
|
+
// Ensure styling only if it contains svg
|
|
54
|
+
svg {
|
|
55
|
+
width: 1em;
|
|
56
|
+
height: 1em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.expanded {
|
|
60
|
+
transform: rotate(90deg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.hidden {
|
|
64
|
+
visibility: hidden;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tree-label {
|
|
69
|
+
font-weight: 500; // Slightly thicker
|
|
70
|
+
user-select: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use "../abstracts/variables" as *;
|
|
2
|
+
|
|
3
|
+
.user {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: $spacer * 0.75;
|
|
7
|
+
|
|
8
|
+
// Avatar is handled by _avatar.scss, usually .avatar class
|
|
9
|
+
|
|
10
|
+
.user-info {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
line-height: 1.2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.user-name {
|
|
17
|
+
font-weight: $font-weight-semibold;
|
|
18
|
+
font-size: $font-size-base;
|
|
19
|
+
color: $gray-900;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.user-description {
|
|
23
|
+
font-size: $font-size-sm;
|
|
24
|
+
color: $gray-500;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../abstracts/variables" as *;
|
|
3
|
+
|
|
4
|
+
// HeroUI-like Documentation Tabs & Example Style
|
|
5
|
+
|
|
6
|
+
.example-tabs-wrapper {
|
|
7
|
+
background: transparent;
|
|
8
|
+
margin-bottom: 2rem;
|
|
9
|
+
|
|
10
|
+
// The Navigation Bar (Tabs)
|
|
11
|
+
.nav-tabs {
|
|
12
|
+
border-bottom: 2px solid transparent;
|
|
13
|
+
padding: 0;
|
|
14
|
+
gap: 1.25rem;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
margin-bottom: 0.75rem;
|
|
18
|
+
|
|
19
|
+
.nav-item {
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nav-link {
|
|
24
|
+
border: none;
|
|
25
|
+
border-bottom: 2px solid transparent;
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
padding: 0.5rem 0;
|
|
28
|
+
background: none;
|
|
29
|
+
color: $gray-500;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
font-size: 0.9rem;
|
|
32
|
+
transition: all 0.2s;
|
|
33
|
+
margin: 0;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
color: $body-color;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.active {
|
|
40
|
+
color: #000;
|
|
41
|
+
border-bottom-color: #000;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// The Content Area
|
|
48
|
+
.tab-content {
|
|
49
|
+
|
|
50
|
+
// Preview Pane (White Bordered Box)
|
|
51
|
+
.tab-pane[id$="-preview"] {
|
|
52
|
+
border: 1px solid $gray-200;
|
|
53
|
+
border-radius: $border-radius-lg;
|
|
54
|
+
padding: 2.5rem;
|
|
55
|
+
background-color: #fff;
|
|
56
|
+
|
|
57
|
+
// Clean/White Background (No Dots)
|
|
58
|
+
background-image: none;
|
|
59
|
+
|
|
60
|
+
// CRITICAL FIX: Only flex when active!
|
|
61
|
+
display: none;
|
|
62
|
+
|
|
63
|
+
&.active {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
// align-items: flex-start; // Removed to allow full width (responsive)
|
|
67
|
+
gap: 1.5rem;
|
|
68
|
+
overflow-x: auto; // Allow scrolling on small screens
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Allow children (the example wrapper) to take full width if needed
|
|
72
|
+
>* {
|
|
73
|
+
width: 100%;
|
|
74
|
+
max-width: 100%;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Clean up internal example styling
|
|
78
|
+
.bd-example {
|
|
79
|
+
padding: 0 !important;
|
|
80
|
+
margin: 0 !important;
|
|
81
|
+
border: none !important;
|
|
82
|
+
background: transparent !important;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Code Pane (Dark Box)
|
|
87
|
+
.tab-pane[id$="-code"] {
|
|
88
|
+
border-radius: $border-radius-lg;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
background-color: #1e1e1e; // HeroUI Dark
|
|
91
|
+
position: relative;
|
|
92
|
+
min-height: 3rem;
|
|
93
|
+
|
|
94
|
+
// Visibility Logic
|
|
95
|
+
display: none;
|
|
96
|
+
|
|
97
|
+
&.active {
|
|
98
|
+
display: block;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
pre[class*="language-"] {
|
|
102
|
+
background: transparent !important;
|
|
103
|
+
margin: 0 !important;
|
|
104
|
+
padding: 1.5rem !important;
|
|
105
|
+
border: none !important;
|
|
106
|
+
border-radius: 0 !important;
|
|
107
|
+
box-shadow: none !important;
|
|
108
|
+
text-shadow: none !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Copy Button
|
|
112
|
+
button {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 0.75rem;
|
|
115
|
+
right: 0.75rem;
|
|
116
|
+
z-index: 10;
|
|
117
|
+
color: $gray-400;
|
|
118
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
119
|
+
border-radius: $border-radius;
|
|
120
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
121
|
+
font-size: 0.75rem;
|
|
122
|
+
padding: 0.25rem 0.65rem;
|
|
123
|
+
transition: all 0.2s;
|
|
124
|
+
|
|
125
|
+
&:hover {
|
|
126
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
127
|
+
color: #fff;
|
|
128
|
+
border-color: $gray-500;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
code,
|
|
133
|
+
pre,
|
|
134
|
+
div,
|
|
135
|
+
span {
|
|
136
|
+
background-color: transparent !important;
|
|
137
|
+
text-shadow: none !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
code {
|
|
141
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
|
|
142
|
+
font-size: 0.875rem !important;
|
|
143
|
+
line-height: 1.6 !important;
|
|
144
|
+
color: #f8f9fa;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|