@dataengineeringformachinelearning/viking-ui 1.0.2 → 3.0.0-alpha.2
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/README.md +180 -41
- package/dist/deml-components.css +1122 -0
- package/dist/design-tokens.css +688 -0
- package/dist/elements/button/viking-button.d.ts +14 -0
- package/dist/elements/card/viking-card.d.ts +8 -0
- package/dist/elements/core/dom.d.ts +4 -0
- package/dist/elements/core/styles.d.ts +2 -0
- package/dist/elements/modal/viking-modal.d.ts +15 -0
- package/dist/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/dist/fonts/inter/InterVariable.woff2 +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4051 -0
- package/dist/lib/core/brand-icons.d.ts +29 -0
- package/dist/lib/core/icons.d.ts +132 -0
- package/dist/lib/core/integration-brand-icons.d.ts +18 -0
- package/dist/lib/core/lucide-paths.generated.d.ts +90 -0
- package/dist/lib/site-drakkar/site-drakkar.config.d.ts +50 -0
- package/dist/lib/site-drakkar/suite-search-items.d.ts +17 -0
- package/dist/viking-components.css +1837 -0
- package/dist/viking-tokens.json +318 -0
- package/dist/viking-ui-elements.js +1750 -0
- package/dist/viking-ui.css +1 -0
- package/dist/web/badge/viking-badge-wc.d.ts +28 -0
- package/dist/web/button/viking-button-wc.d.ts +28 -0
- package/dist/web/callout/viking-callout-wc.d.ts +27 -0
- package/dist/web/card/viking-card-wc.d.ts +29 -0
- package/dist/web/core/base.d.ts +12 -0
- package/dist/web/core/dom.d.ts +11 -0
- package/dist/web/core/icons-inline.d.ts +7 -0
- package/dist/web/core/styles.d.ts +12 -0
- package/dist/web/core/types.d.ts +10 -0
- package/dist/web/field/viking-field-wc.d.ts +32 -0
- package/dist/web/index.d.ts +15 -0
- package/dist/web/input/viking-input-wc.d.ts +32 -0
- package/dist/web/modal/viking-modal-wc.d.ts +50 -0
- package/dist/web/search-palette/viking-search-palette-wc.d.ts +64 -0
- package/dist/web/select/viking-select-wc.d.ts +48 -0
- package/dist/web/suite-header/viking-suite-header-wc.d.ts +36 -0
- package/dist/web/suite-search-palette/viking-suite-search-palette-wc.d.ts +39 -0
- package/dist/web/theme-toggle/viking-theme-toggle-wc.d.ts +19 -0
- package/dist/web/types.d.ts +40 -0
- package/dist/web-components/index.d.ts +1 -0
- package/dist/web-components.js +1750 -0
- package/dist/widget.js +1182 -0
- package/package.json +89 -30
- package/src/assets/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/src/assets/fonts/inter/InterVariable.woff2 +0 -0
- package/src/elements/button/viking-button.ts +201 -0
- package/src/elements/card/viking-card.ts +60 -0
- package/src/elements/core/dom.ts +33 -0
- package/src/elements/core/styles.ts +28 -0
- package/src/elements/modal/viking-modal.ts +154 -0
- package/src/index.ts +1 -0
- package/src/lib/core/brand-icons.ts +62 -0
- package/src/lib/core/icons.ts +206 -0
- package/src/lib/core/integration-brand-icons.ts +77 -0
- package/src/lib/core/lucide-paths.generated.ts +130 -0
- package/src/lib/site-drakkar/site-drakkar.config.ts +295 -0
- package/src/lib/site-drakkar/suite-search-items.ts +246 -0
- package/src/styles/_buttons.scss +301 -0
- package/src/styles/_component-primitives.scss +183 -0
- package/src/styles/_drakkar-buttons.scss +85 -0
- package/src/styles/_fonts.scss +22 -0
- package/src/styles/_forms.scss +66 -0
- package/src/styles/_input.scss +106 -0
- package/src/styles/_layout-enforcement.scss +166 -0
- package/src/styles/_layout-rhythm.scss +158 -0
- package/src/styles/_legacy-aliases.scss +212 -0
- package/src/styles/_series-colors.scss +24 -0
- package/src/styles/_static-primitives.scss +857 -0
- package/src/styles/_typography.scss +87 -0
- package/src/styles/_variables.scss +527 -0
- package/src/styles/components/a11y.scss +90 -0
- package/src/styles/components/badges.scss +102 -0
- package/src/styles/components/extracted-utilities.scss +459 -0
- package/src/styles/components/footer.scss +155 -0
- package/src/styles/components/icon-heading.scss +47 -0
- package/src/styles/components/icon-inline.scss +78 -0
- package/src/styles/components/layout.scss +59 -0
- package/src/styles/components/utilities.scss +131 -0
- package/src/styles/components/viking-inspired.scss +204 -0
- package/src/styles/components/whitepaper-cta.scss +130 -0
- package/src/styles/components-bundle.scss +9 -0
- package/src/styles/components.scss +175 -0
- package/src/styles/deml-components.scss +10 -0
- package/src/styles/index.scss +8 -0
- package/src/styles/layout-shell.scss +39 -11
- package/src/styles/page-shell.scss +663 -33
- package/src/styles/static-navbar.scss +862 -146
- package/src/styles/surfaces/backend.scss +142 -0
- package/src/styles/surfaces/docs-global.scss +73 -0
- package/src/styles/surfaces/docs-shell.scss +412 -0
- package/src/styles/surfaces/docs-showcase.scss +1051 -0
- package/src/styles/surfaces/marketing-cta.scss +62 -0
- package/src/styles/surfaces/marketing-docs-bento.scss +67 -0
- package/src/styles/surfaces/marketing-global.scss +748 -0
- package/src/styles/surfaces/marketing-landing.scss +1260 -0
- package/src/styles/surfaces/marketing-publication.scss +535 -0
- package/src/styles/surfaces/marketing-theme.scss +14 -0
- package/src/styles/surfaces/swagger-ui.scss +921 -0
- package/src/styles/tokens-export.scss +18 -0
- package/src/styles/tokens.scss +5 -0
- package/src/styles/viking-ui-bundle.scss +20 -2
- package/src/styles/viking-ui.scss +213 -51
- package/src/tokens/viking-tokens.json +318 -0
- package/src/web/badge/viking-badge-wc.ts +116 -0
- package/src/web/button/viking-button-wc.ts +165 -0
- package/src/web/callout/viking-callout-wc.ts +105 -0
- package/src/web/card/viking-card-wc.ts +66 -0
- package/src/web/core/base.ts +56 -0
- package/src/web/core/dom.ts +53 -0
- package/src/web/core/icons-inline.ts +44 -0
- package/src/web/core/styles.ts +1138 -0
- package/src/web/core/types.ts +19 -0
- package/src/web/field/viking-field-wc.ts +154 -0
- package/src/web/index.ts +73 -0
- package/src/web/input/viking-input-wc.ts +211 -0
- package/src/web/modal/viking-modal-wc.ts +187 -0
- package/src/web/search-palette/viking-search-palette-wc.ts +494 -0
- package/src/web/select/viking-select-wc.ts +218 -0
- package/src/web/suite-header/viking-suite-header-wc.ts +714 -0
- package/src/web/suite-search-palette/viking-suite-search-palette-wc.ts +234 -0
- package/src/web/theme-toggle/viking-theme-toggle-wc.ts +139 -0
- package/src/web/types.ts +37 -0
- package/src/web-components/index.ts +1 -0
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +0 -6114
- package/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +0 -1
- package/types/dataengineeringformachinelearning-viking-ui.d.ts +0 -1397
- package/viking.manifest.json +0 -238
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
|
|
2
|
+
// Shared tokens, navbar, footer, page shell: /assets/viking-ui.css (@deml/viking-ui)
|
|
3
|
+
|
|
4
|
+
// ====================== LEAFLET ======================
|
|
5
|
+
|
|
6
|
+
pre[class*='language-'] {
|
|
7
|
+
background-color: var(--viking-charcoal-900) !important;
|
|
8
|
+
border: 1px solid var(--border);
|
|
9
|
+
border-radius: var(--border-radius-md);
|
|
10
|
+
padding: var(--space-3);
|
|
11
|
+
margin: var(--space-4) 0;
|
|
12
|
+
box-shadow: none;
|
|
13
|
+
tab-size: 4;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
code[class*='language-'] {
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
line-height: 1.65;
|
|
19
|
+
color: var(--white) !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Inter variable font loaded via viking-ui.css (self-hosted woff2).
|
|
23
|
+
|
|
24
|
+
// ====================== GLOBAL LAYOUT ======================
|
|
25
|
+
*,
|
|
26
|
+
::before,
|
|
27
|
+
::after {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
pre,
|
|
32
|
+
pre code {
|
|
33
|
+
white-space: pre-wrap !important;
|
|
34
|
+
word-wrap: break-word !important;
|
|
35
|
+
word-break: break-word !important;
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
html,
|
|
40
|
+
body {
|
|
41
|
+
height: 100%;
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
overflow-x: hidden; /* Guarantee no horizontal overflow */
|
|
45
|
+
max-width: 100vw;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
app-root {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
min-height: 100vh;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body {
|
|
55
|
+
background-color: var(--bg-color);
|
|
56
|
+
color: var(--text-color);
|
|
57
|
+
font-family: var(--viking-font-family);
|
|
58
|
+
font-size: var(--base-font-size, 16px);
|
|
59
|
+
line-height: 1.65;
|
|
60
|
+
-webkit-font-smoothing: antialiased;
|
|
61
|
+
-moz-osx-font-smoothing: grayscale;
|
|
62
|
+
transition:
|
|
63
|
+
background-color 0.3s,
|
|
64
|
+
color 0.3s;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
html[data-theme='light'] body {
|
|
68
|
+
background-color: var(--bg-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ====================== TYPOGRAPHY & READABILITY ======================
|
|
72
|
+
p {
|
|
73
|
+
margin-bottom: var(--space-3);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h1,
|
|
77
|
+
h2,
|
|
78
|
+
h3,
|
|
79
|
+
h4,
|
|
80
|
+
h5,
|
|
81
|
+
h6 {
|
|
82
|
+
line-height: 1.25;
|
|
83
|
+
margin-top: var(--space-4);
|
|
84
|
+
margin-bottom: var(--space-2);
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
letter-spacing: var(--header-letter-spacing);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
h1 {
|
|
90
|
+
font-size: clamp(1.75rem, 5vw, 2.5rem);
|
|
91
|
+
}
|
|
92
|
+
h2 {
|
|
93
|
+
font-size: clamp(1.5rem, 4vw, 2rem);
|
|
94
|
+
}
|
|
95
|
+
h3 {
|
|
96
|
+
font-size: 1.5rem;
|
|
97
|
+
letter-spacing: 0.05em;
|
|
98
|
+
text-transform: uppercase;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
ul,
|
|
102
|
+
ol {
|
|
103
|
+
margin-bottom: var(--space-3);
|
|
104
|
+
padding-left: var(--space-3);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
li {
|
|
108
|
+
margin-bottom: var(--space-1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
a:not(.viking-button):not(.viking-btn):not(.cta-button):not(.nav-item):not(.nav-btn):not(.auth-btn):not(.mobile-auth-btn):not(.mobile-nav-btn):not(.integration-link):not(.integration-logo-item) {
|
|
112
|
+
color: var(--link-color);
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
border-bottom: 1px solid transparent; /* Prevents layout shift */
|
|
116
|
+
box-shadow: none !important;
|
|
117
|
+
text-shadow: none !important;
|
|
118
|
+
transition:
|
|
119
|
+
border-bottom-color 0.2s ease,
|
|
120
|
+
color 0.2s ease;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
a:not(.viking-button):not(.viking-btn):not(.cta-button):not(.nav-item):not(.nav-btn):not(.auth-btn):not(.mobile-auth-btn):not(.mobile-nav-btn):not(.integration-link):not(.integration-logo-item):hover,
|
|
124
|
+
a:not(.viking-button):not(.viking-btn):not(.cta-button):not(.nav-item):not(.nav-btn):not(.auth-btn):not(.mobile-auth-btn):not(.mobile-nav-btn):not(.integration-link):not(.integration-logo-item):focus-visible {
|
|
125
|
+
color: var(--link-hover-color);
|
|
126
|
+
text-decoration: none;
|
|
127
|
+
border-bottom-color: var(--link-hover-color); /* WCAG requirement: non-color hover indicator */
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ====================== INLINE CODE ======================
|
|
131
|
+
:not(pre) > code {
|
|
132
|
+
background-color: var(--color-dark-grey-btn-bg);
|
|
133
|
+
padding: 0.1em 0.35em;
|
|
134
|
+
border-radius: 4px;
|
|
135
|
+
font-size: 0.875em;
|
|
136
|
+
line-height: inherit;
|
|
137
|
+
color: var(--text-muted);
|
|
138
|
+
white-space: normal;
|
|
139
|
+
vertical-align: baseline;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ====================== MARKDOWN COMPONENT ======================
|
|
143
|
+
app-page {
|
|
144
|
+
display: block;
|
|
145
|
+
margin-top: 24px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
main.main {
|
|
149
|
+
padding: var(--viking-space-2);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (min-width: 481px) {
|
|
153
|
+
main.main {
|
|
154
|
+
padding: var(--viking-space-8) var(--viking-space-3);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (min-width: 768px) {
|
|
159
|
+
main.main {
|
|
160
|
+
padding: var(--viking-space-9) var(--viking-space-4);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Global Layout Containers (Moved from app.scss for ViewEncapsulation) */
|
|
165
|
+
.landing-container-global {
|
|
166
|
+
position: relative;
|
|
167
|
+
min-height: calc(100vh - 64px);
|
|
168
|
+
display: flex;
|
|
169
|
+
flex-direction: column;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
padding: 16px;
|
|
173
|
+
margin-top: -64px;
|
|
174
|
+
padding-top: 72px;
|
|
175
|
+
width: 100%;
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
|
|
178
|
+
@media (min-width: 768px) {
|
|
179
|
+
padding: 32px;
|
|
180
|
+
padding-top: 72px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.dashboard-container {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
flex: 1;
|
|
188
|
+
justify-content: flex-start;
|
|
189
|
+
padding-top: 16px;
|
|
190
|
+
padding-bottom: 16px;
|
|
191
|
+
width: 100%;
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
|
|
194
|
+
@media (min-width: 768px) {
|
|
195
|
+
padding-top: 72px;
|
|
196
|
+
padding-bottom: 72px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.page-content {
|
|
201
|
+
position: relative;
|
|
202
|
+
z-index: 10;
|
|
203
|
+
width: 100%;
|
|
204
|
+
max-width: var(--container-max-width);
|
|
205
|
+
padding: 16px;
|
|
206
|
+
margin: 0 auto;
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
background-color: var(--card-bg);
|
|
209
|
+
border: 1px solid var(--border);
|
|
210
|
+
border-radius: var(--border-radius-lg);
|
|
211
|
+
box-shadow: var(--shadow-sm);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media (min-width: 768px) {
|
|
215
|
+
.page-content {
|
|
216
|
+
padding: 56px;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.dashboard-content-area {
|
|
221
|
+
flex: 1;
|
|
222
|
+
padding: var(--viking-space-3, 24px) 0 var(--viking-space-4, 32px);
|
|
223
|
+
position: relative;
|
|
224
|
+
z-index: 1;
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
|
|
227
|
+
@media (min-width: 768px) {
|
|
228
|
+
padding-top: var(--viking-space-4, 32px);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.content-wrapper {
|
|
233
|
+
max-width: var(--container-max-width, 1260px);
|
|
234
|
+
margin: 0 auto;
|
|
235
|
+
width: 100%;
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
gap: var(--grid-gap);
|
|
239
|
+
|
|
240
|
+
&.full-width {
|
|
241
|
+
max-width: 100%;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// ====================== GLOBAL ERROR TOAST ======================
|
|
246
|
+
#global-error-toast {
|
|
247
|
+
position: fixed;
|
|
248
|
+
bottom: 24px;
|
|
249
|
+
right: 24px;
|
|
250
|
+
z-index: 99999;
|
|
251
|
+
font-family: var(--viking-font-family);
|
|
252
|
+
max-width: 400px;
|
|
253
|
+
animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
254
|
+
|
|
255
|
+
/* Default Dark Theme variables */
|
|
256
|
+
--toast-bg: var(--color-surface);
|
|
257
|
+
--toast-border: 1px solid var(--color-error);
|
|
258
|
+
--toast-text: var(--color-error);
|
|
259
|
+
--toast-title: var(--color-on-surface);
|
|
260
|
+
--toast-icon: var(--color-error);
|
|
261
|
+
--toast-close: var(--text-muted);
|
|
262
|
+
--toast-close-hover: var(--color-error);
|
|
263
|
+
--toast-shadow: var(--shadow-hover);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
html[data-theme='light'] #global-error-toast {
|
|
267
|
+
/* Light Theme variables */
|
|
268
|
+
--toast-bg: var(--color-surface);
|
|
269
|
+
--toast-border: 1px solid var(--color-error);
|
|
270
|
+
--toast-text: var(--color-error);
|
|
271
|
+
--toast-title: var(--color-on-surface);
|
|
272
|
+
--toast-icon: var(--color-error);
|
|
273
|
+
--toast-close: var(--text-muted);
|
|
274
|
+
--toast-close-hover: var(--color-error);
|
|
275
|
+
--toast-shadow: var(--shadow-hover);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
#global-error-toast .toast-container {
|
|
279
|
+
background: var(--toast-bg);
|
|
280
|
+
border: var(--toast-border);
|
|
281
|
+
color: var(--toast-text);
|
|
282
|
+
padding: 16px 16px;
|
|
283
|
+
border-radius: var(--border-radius-md);
|
|
284
|
+
box-shadow: var(--toast-shadow);
|
|
285
|
+
display: flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
gap: 8px;
|
|
288
|
+
transition: all 0.3s ease;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
#global-error-toast .toast-icon {
|
|
292
|
+
width: 16px;
|
|
293
|
+
height: 16px;
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
color: var(--toast-icon);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
#global-error-toast .toast-content {
|
|
299
|
+
flex-grow: 1;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
#global-error-toast .toast-title {
|
|
303
|
+
display: block;
|
|
304
|
+
font-size: var(--ui-font-size, 14px);
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
margin-bottom: 0px;
|
|
307
|
+
color: var(--toast-title);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
#global-error-toast .toast-message {
|
|
311
|
+
font-size: var(--base-font-size, 16px);
|
|
312
|
+
opacity: 0.9;
|
|
313
|
+
line-height: 1.4;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
#global-error-toast .toast-close {
|
|
317
|
+
background: none;
|
|
318
|
+
border: none;
|
|
319
|
+
color: var(--toast-close);
|
|
320
|
+
cursor: pointer;
|
|
321
|
+
font-size: 20px;
|
|
322
|
+
line-height: 1;
|
|
323
|
+
padding: 0 8px;
|
|
324
|
+
margin-left: 8px;
|
|
325
|
+
opacity: 0.7;
|
|
326
|
+
transition:
|
|
327
|
+
opacity 0.2s,
|
|
328
|
+
color 0.2s;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
#global-error-toast .toast-close:hover {
|
|
332
|
+
opacity: 1;
|
|
333
|
+
color: var(--toast-close-hover);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
@keyframes slideIn {
|
|
337
|
+
from {
|
|
338
|
+
transform: translateY(24px) scale(0.95);
|
|
339
|
+
opacity: 0;
|
|
340
|
+
}
|
|
341
|
+
to {
|
|
342
|
+
transform: translateY(0) scale(1);
|
|
343
|
+
opacity: 1;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Error/Offline State */
|
|
348
|
+
.status-error-state {
|
|
349
|
+
display: flex;
|
|
350
|
+
flex-direction: column;
|
|
351
|
+
align-items: center;
|
|
352
|
+
justify-content: center;
|
|
353
|
+
text-align: center;
|
|
354
|
+
padding: 32px 24px;
|
|
355
|
+
background: var(--viking-surface);
|
|
356
|
+
border: 1px solid var(--border);
|
|
357
|
+
border-radius: var(--border-radius-lg);
|
|
358
|
+
position: relative;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
box-shadow: var(--shadow-sm);
|
|
361
|
+
margin-top: 32px;
|
|
362
|
+
|
|
363
|
+
@media (min-width: 601px) {
|
|
364
|
+
padding: 72px 32px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.error-state-icon {
|
|
368
|
+
font-size: 72px;
|
|
369
|
+
width: 72px;
|
|
370
|
+
height: 72px;
|
|
371
|
+
color: var(--text-muted);
|
|
372
|
+
margin-bottom: 24px;
|
|
373
|
+
opacity: 0.6;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.error-title {
|
|
377
|
+
margin: 0 0 8px;
|
|
378
|
+
font-size: 1.5rem;
|
|
379
|
+
font-weight: 700;
|
|
380
|
+
color: var(--text-color);
|
|
381
|
+
letter-spacing: -0.01em;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.error-subtitle {
|
|
385
|
+
margin: 0 0 32px;
|
|
386
|
+
font-size: 1rem;
|
|
387
|
+
line-height: 1.6;
|
|
388
|
+
color: var(--text-muted);
|
|
389
|
+
max-width: 416px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.retry-btn {
|
|
393
|
+
font-weight: 700 !important;
|
|
394
|
+
padding: 8px 24px !important;
|
|
395
|
+
border-radius: var(--border-radius-sm) !important;
|
|
396
|
+
box-shadow: var(--shadow-sm) !important;
|
|
397
|
+
transition: all 0.2s ease !important;
|
|
398
|
+
|
|
399
|
+
&:hover {
|
|
400
|
+
transform: translateY(-2px);
|
|
401
|
+
box-shadow: var(--shadow-md) !important;
|
|
402
|
+
opacity: 0.95;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.btn-spinner {
|
|
408
|
+
display: inline-block;
|
|
409
|
+
width: 16px;
|
|
410
|
+
height: 16px;
|
|
411
|
+
border: 2px solid color-mix(in srgb, var(--viking-white) 30%, transparent);
|
|
412
|
+
border-radius: 50%;
|
|
413
|
+
border-top-color: currentColor;
|
|
414
|
+
animation: spin 0.8s linear infinite;
|
|
415
|
+
vertical-align: middle;
|
|
416
|
+
margin-right: 8px;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
@keyframes spin {
|
|
420
|
+
to {
|
|
421
|
+
transform: rotate(360deg);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// Eliminate border-radius on elements that only have single-sided borders (top, bottom, left, or right)
|
|
426
|
+
// to avoid curved corners on straight dividing lines.
|
|
427
|
+
.hud-header,
|
|
428
|
+
.panel-header,
|
|
429
|
+
.filter-bar,
|
|
430
|
+
.telemetry-bar,
|
|
431
|
+
.video-flat-info,
|
|
432
|
+
.sidebar-brand,
|
|
433
|
+
.sidebar-footer,
|
|
434
|
+
.dashboard-sidebar,
|
|
435
|
+
.vuln-profile-header,
|
|
436
|
+
.page-content:not([style*='border']) {
|
|
437
|
+
border-radius: 0 !important;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// ====================== HUD HEADER STYLING ======================
|
|
441
|
+
.hud-header {
|
|
442
|
+
display: flex;
|
|
443
|
+
justify-content: space-between;
|
|
444
|
+
align-items: center;
|
|
445
|
+
padding-top: 8px;
|
|
446
|
+
padding-bottom: 16px;
|
|
447
|
+
border-bottom: 1px solid var(--border-layout);
|
|
448
|
+
margin-bottom: 24px;
|
|
449
|
+
flex-wrap: wrap;
|
|
450
|
+
gap: 16px;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.hud-brand {
|
|
454
|
+
display: flex;
|
|
455
|
+
align-items: center;
|
|
456
|
+
gap: 16px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.hud-title {
|
|
460
|
+
font-family: var(--viking-font-family-mono);
|
|
461
|
+
font-size: 1.25rem;
|
|
462
|
+
font-weight: 800;
|
|
463
|
+
letter-spacing: 0.1em;
|
|
464
|
+
margin: 0;
|
|
465
|
+
color: var(--text-color);
|
|
466
|
+
text-transform: uppercase;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.hud-subtitle {
|
|
470
|
+
font-size: 1rem;
|
|
471
|
+
color: var(--text-muted);
|
|
472
|
+
margin: 8px 0 0 0;
|
|
473
|
+
font-family: var(--viking-font-family-mono);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* Hide floating invisible reCAPTCHA badge globally */
|
|
477
|
+
.grecaptcha-badge {
|
|
478
|
+
visibility: hidden !important;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* Ensure Google reCAPTCHA challenge iframe and its parent containers are always on top of Angular Material dialogs */
|
|
482
|
+
.grecaptcha-bubble-holder,
|
|
483
|
+
div.grecaptcha-bubble-holder,
|
|
484
|
+
#recaptcha-container,
|
|
485
|
+
#firebase-recaptcha-container,
|
|
486
|
+
iframe[src*='recaptcha'],
|
|
487
|
+
iframe[src*='google.com/recaptcha'],
|
|
488
|
+
body > div[style*='z-index']:has(iframe[src*='recaptcha']),
|
|
489
|
+
body > div[style*='z-index']:has(iframe[src*='google.com/recaptcha']),
|
|
490
|
+
body > div:has(iframe[src*='recaptcha']),
|
|
491
|
+
body > div:has(iframe[src*='google.com/recaptcha']),
|
|
492
|
+
body > div:has(iframe[title*='recaptcha']),
|
|
493
|
+
body > div:has(iframe[title*='reCAPTCHA']),
|
|
494
|
+
div[style*='z-index']:has(iframe[src*='recaptcha']),
|
|
495
|
+
div[style*='z-index']:has(iframe[src*='google.com/recaptcha']) {
|
|
496
|
+
z-index: 2000000000 !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// ====================== SECTION TAGS ======================
|
|
500
|
+
.section-tag-row {
|
|
501
|
+
display: flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
gap: 8px;
|
|
504
|
+
margin-bottom: 8px;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.section-tag {
|
|
508
|
+
font-family: var(--viking-font-family-mono);
|
|
509
|
+
font-size: 1rem;
|
|
510
|
+
font-weight: 800;
|
|
511
|
+
color: var(--color-primary);
|
|
512
|
+
letter-spacing: 0.15em;
|
|
513
|
+
text-transform: uppercase;
|
|
514
|
+
margin-bottom: 0;
|
|
515
|
+
display: inline-block;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// ====================== SLEEK PLATFORM CONSOLE SCROLLBARS ======================
|
|
519
|
+
::-webkit-scrollbar {
|
|
520
|
+
width: 8px;
|
|
521
|
+
height: 8px;
|
|
522
|
+
}
|
|
523
|
+
::-webkit-scrollbar-track {
|
|
524
|
+
background: var(--color-background);
|
|
525
|
+
}
|
|
526
|
+
::-webkit-scrollbar-thumb {
|
|
527
|
+
background: var(--color-primary);
|
|
528
|
+
border-radius: var(--viking-radius-pill, 999px);
|
|
529
|
+
}
|
|
530
|
+
::-webkit-scrollbar-thumb:hover {
|
|
531
|
+
background: var(--color-primary-container);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/* Machined surfaces + status pulse live in viking-ui.css (_layout-rhythm.scss) */
|
|
535
|
+
|
|
536
|
+
/* ====================== SHARED DASHBOARD SHELL (marketing pages) ====================== */
|
|
537
|
+
.dashboard-page-container {
|
|
538
|
+
display: block;
|
|
539
|
+
width: 100%;
|
|
540
|
+
min-height: calc(100vh - var(--navbar-height, 64px));
|
|
541
|
+
background-color: var(--bg-color);
|
|
542
|
+
color: var(--text-color);
|
|
543
|
+
overflow-x: hidden;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.dashboard-layout {
|
|
547
|
+
position: relative;
|
|
548
|
+
z-index: 1;
|
|
549
|
+
display: flex;
|
|
550
|
+
flex-direction: column;
|
|
551
|
+
width: 100%;
|
|
552
|
+
min-height: calc(100vh - var(--navbar-height, 64px));
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.dashboard-main {
|
|
556
|
+
flex: 1;
|
|
557
|
+
display: flex;
|
|
558
|
+
flex-direction: column;
|
|
559
|
+
min-width: 0;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.mobile-chapter-select {
|
|
563
|
+
display: block;
|
|
564
|
+
width: 100%;
|
|
565
|
+
margin-bottom: 16px;
|
|
566
|
+
|
|
567
|
+
select {
|
|
568
|
+
width: 100%;
|
|
569
|
+
min-height: 44px;
|
|
570
|
+
padding: 10px 12px;
|
|
571
|
+
border-radius: var(--border-radius-md);
|
|
572
|
+
border: 1px solid var(--border);
|
|
573
|
+
background: var(--viking-surface);
|
|
574
|
+
color: var(--text-color);
|
|
575
|
+
font: inherit;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.dashboard-sidebar {
|
|
580
|
+
display: none;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
@media (min-width: 901px) {
|
|
584
|
+
.dashboard-layout {
|
|
585
|
+
flex-direction: row;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.dashboard-sidebar {
|
|
589
|
+
display: block;
|
|
590
|
+
width: 280px;
|
|
591
|
+
flex-shrink: 0;
|
|
592
|
+
border-right: 1px solid var(--border);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.mobile-chapter-select {
|
|
596
|
+
display: none;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* ====================== RESPONSIVE GRID SYSTEM ====================== */
|
|
601
|
+
.grid-layout {
|
|
602
|
+
display: grid;
|
|
603
|
+
grid-template-columns: 1fr;
|
|
604
|
+
gap: var(--grid-gap);
|
|
605
|
+
width: 100%;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
@media (min-width: 600px) {
|
|
609
|
+
.grid-layout {
|
|
610
|
+
grid-template-columns: repeat(2, 1fr);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
@media (min-width: 768px) {
|
|
615
|
+
.grid-layout {
|
|
616
|
+
grid-template-columns: repeat(12, 1fr);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.col-span-1 {
|
|
621
|
+
grid-column: span 1;
|
|
622
|
+
}
|
|
623
|
+
.col-span-2 {
|
|
624
|
+
grid-column: span 2;
|
|
625
|
+
}
|
|
626
|
+
.col-span-3 {
|
|
627
|
+
grid-column: span 3;
|
|
628
|
+
}
|
|
629
|
+
.col-span-4 {
|
|
630
|
+
grid-column: span 4;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
@media (min-width: 768px) {
|
|
634
|
+
.col-span-md-1 {
|
|
635
|
+
grid-column: span 1;
|
|
636
|
+
}
|
|
637
|
+
.col-span-md-2 {
|
|
638
|
+
grid-column: span 2;
|
|
639
|
+
}
|
|
640
|
+
.col-span-md-3 {
|
|
641
|
+
grid-column: span 3;
|
|
642
|
+
}
|
|
643
|
+
.col-span-md-4 {
|
|
644
|
+
grid-column: span 4;
|
|
645
|
+
}
|
|
646
|
+
.col-span-md-5 {
|
|
647
|
+
grid-column: span 5;
|
|
648
|
+
}
|
|
649
|
+
.col-span-md-6 {
|
|
650
|
+
grid-column: span 6;
|
|
651
|
+
}
|
|
652
|
+
.col-span-md-7 {
|
|
653
|
+
grid-column: span 7;
|
|
654
|
+
}
|
|
655
|
+
.col-span-md-8 {
|
|
656
|
+
grid-column: span 8;
|
|
657
|
+
}
|
|
658
|
+
.col-span-md-9 {
|
|
659
|
+
grid-column: span 9;
|
|
660
|
+
}
|
|
661
|
+
.col-span-md-10 {
|
|
662
|
+
grid-column: span 10;
|
|
663
|
+
}
|
|
664
|
+
.col-span-md-11 {
|
|
665
|
+
grid-column: span 11;
|
|
666
|
+
}
|
|
667
|
+
.col-span-md-12 {
|
|
668
|
+
grid-column: span 12;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// ====================== CUSTOM BRANDED SELECT STYLING ======================
|
|
673
|
+
/* Enable customization for all select elements and their pickers */
|
|
674
|
+
select,
|
|
675
|
+
select::picker(select) {
|
|
676
|
+
appearance: base-select;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/* Style the visible trigger button */
|
|
680
|
+
select {
|
|
681
|
+
font-family: var(--viking-font-family);
|
|
682
|
+
background-color: var(--card-bg);
|
|
683
|
+
color: var(--text-color);
|
|
684
|
+
border: 1px solid var(--text-muted); /* WCAG 3:1 contrast for input borders */
|
|
685
|
+
border-radius: var(--border-radius-md, 8px);
|
|
686
|
+
padding: 16px 16px;
|
|
687
|
+
font-size: 1rem;
|
|
688
|
+
cursor: pointer;
|
|
689
|
+
transition:
|
|
690
|
+
border-color 0.2s ease,
|
|
691
|
+
box-shadow 0.2s ease;
|
|
692
|
+
display: flex;
|
|
693
|
+
align-items: center;
|
|
694
|
+
justify-content: space-between;
|
|
695
|
+
gap: 16px;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
select:hover {
|
|
699
|
+
border-color: var(--color-primary);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* Style the dropdown options list */
|
|
703
|
+
select::picker(select) {
|
|
704
|
+
font-family: var(--viking-font-family);
|
|
705
|
+
background-color: var(--card-bg);
|
|
706
|
+
color: var(--text-color);
|
|
707
|
+
border: 1px solid var(--text-muted);
|
|
708
|
+
border-radius: var(--border-radius-md, 8px);
|
|
709
|
+
padding: 8px;
|
|
710
|
+
box-shadow: var(--shadow-md);
|
|
711
|
+
box-sizing: border-box;
|
|
712
|
+
margin: 0;
|
|
713
|
+
width: anchor-size(width);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* Customize internal part colors to match text */
|
|
717
|
+
select::picker-icon {
|
|
718
|
+
color: var(--text-color); /* WCAG compliance for icon */
|
|
719
|
+
margin-left: 16px; /* Spacing around the caret */
|
|
720
|
+
margin-right: 0px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
select option::checkmark {
|
|
724
|
+
color: var(--color-primary);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/* Style individual options and hover effects */
|
|
728
|
+
select option {
|
|
729
|
+
padding: 8px 16px;
|
|
730
|
+
border-radius: var(--border-radius-sm, 4px);
|
|
731
|
+
color: var(--text-color);
|
|
732
|
+
cursor: pointer;
|
|
733
|
+
transition: background-color 0.2s ease;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
select option:hover,
|
|
737
|
+
select option:focus {
|
|
738
|
+
background-color: var(--hover-color);
|
|
739
|
+
color: var(--color-on-primary); /* Ensure white text on primary hover background */
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
select option:checked {
|
|
743
|
+
background-color: var(--color-primary-container);
|
|
744
|
+
color: var(--color-on-primary-container);
|
|
745
|
+
font-weight: 600;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
// Algolia site search styles live in viking-ui static-navbar.scss (synced via viking-ui.css).
|