@joniguerini/lume 0.0.0-stage → 1.9.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 +25 -0
- package/README.md +62 -2
- package/base.css +165 -0
- package/bin/lumeui.mjs +163 -0
- package/components/alert.css +156 -0
- package/components/banner.css +98 -0
- package/components/button.css +291 -0
- package/components/calendar.css +532 -0
- package/components/carousel.css +175 -0
- package/components/chart.css +813 -0
- package/components/chat.css +670 -0
- package/components/checkbox.css +212 -0
- package/components/chip.css +224 -0
- package/components/code.css +36 -0
- package/components/color-picker.css +192 -0
- package/components/command.css +148 -0
- package/components/content.css +211 -0
- package/components/editor.css +174 -0
- package/components/feedback.css +320 -0
- package/components/filters.css +103 -0
- package/components/form.css +455 -0
- package/components/image-viewer.css +237 -0
- package/components/layers.css +138 -0
- package/components/link.css +87 -0
- package/components/loading.css +260 -0
- package/components/menu.css +180 -0
- package/components/modal.css +209 -0
- package/components/navigation.css +507 -0
- package/components/notifications.css +186 -0
- package/components/number-field.css +52 -0
- package/components/otp.css +119 -0
- package/components/panel.css +208 -0
- package/components/picker.css +207 -0
- package/components/rating.css +143 -0
- package/components/resizable.css +173 -0
- package/components/scrollbar.css +110 -0
- package/components/select.css +477 -0
- package/components/shell.css +837 -0
- package/components/slider.css +189 -0
- package/components/sortable.css +287 -0
- package/components/surfaces.css +182 -0
- package/components/switch.css +115 -0
- package/components/table.css +228 -0
- package/components/tabs.css +190 -0
- package/components/tags.css +83 -0
- package/components/toast.css +164 -0
- package/components/toolbar.css +80 -0
- package/components/upload.css +181 -0
- package/ds.css +48 -0
- package/fonts/Geist-LICENSE.txt +92 -0
- package/fonts/Geist-Variable.woff2 +0 -0
- package/fonts/GeistSerif-Regular.woff2 +0 -0
- package/fonts/JetBrainsMono-LICENSE.txt +93 -0
- package/fonts/JetBrainsMono-Variable.woff2 +0 -0
- package/fonts.css +29 -0
- package/icons/icons.d.ts +5 -0
- package/icons/icons.js +266 -0
- package/js/back-to-top.d.ts +2 -0
- package/js/back-to-top.js +62 -0
- package/js/banner.js +87 -0
- package/js/calendar.d.ts +3 -0
- package/js/calendar.js +472 -0
- package/js/carousel.d.ts +2 -0
- package/js/carousel.js +258 -0
- package/js/charts/bar.js +361 -0
- package/js/charts/core.js +604 -0
- package/js/charts/donut.js +206 -0
- package/js/charts/figures.js +97 -0
- package/js/charts/heatmap.js +410 -0
- package/js/charts/line.js +268 -0
- package/js/charts/scatter.js +211 -0
- package/js/charts.d.ts +12 -0
- package/js/charts.js +27 -0
- package/js/code-block.d.ts +3 -0
- package/js/code-block.js +32 -0
- package/js/color-picker.d.ts +4 -0
- package/js/color-picker.js +448 -0
- package/js/command-palette.js +233 -0
- package/js/composer.js +573 -0
- package/js/context-menu.d.ts +2 -0
- package/js/context-menu.js +154 -0
- package/js/date-picker.d.ts +2 -0
- package/js/date-picker.js +430 -0
- package/js/drawer.js +48 -0
- package/js/editor.d.ts +5 -0
- package/js/editor.js +615 -0
- package/js/field-support.js +77 -0
- package/js/file-upload.d.ts +2 -0
- package/js/file-upload.js +230 -0
- package/js/filters.js +266 -0
- package/js/form.d.ts +2 -0
- package/js/form.js +409 -0
- package/js/i18n.d.ts +14 -0
- package/js/i18n.js +83 -0
- package/js/image-viewer.d.ts +4 -0
- package/js/image-viewer.js +275 -0
- package/js/menu.d.ts +4 -0
- package/js/menu.js +237 -0
- package/js/messages.js +908 -0
- package/js/modal.d.ts +7 -0
- package/js/modal.js +183 -0
- package/js/notifications.d.ts +4 -0
- package/js/notifications.js +204 -0
- package/js/number-field.d.ts +2 -0
- package/js/number-field.js +175 -0
- package/js/otp-field.d.ts +2 -0
- package/js/otp-field.js +107 -0
- package/js/pagination.d.ts +3 -0
- package/js/pagination.js +143 -0
- package/js/popover.d.ts +2 -0
- package/js/popover.js +155 -0
- package/js/progress-ring.js +48 -0
- package/js/rating.d.ts +3 -0
- package/js/rating.js +130 -0
- package/js/resizable.d.ts +2 -0
- package/js/resizable.js +311 -0
- package/js/scrollbar.d.ts +2 -0
- package/js/scrollbar.js +273 -0
- package/js/segmented.js +60 -0
- package/js/select.d.ts +3 -0
- package/js/select.js +784 -0
- package/js/shell.d.ts +6 -0
- package/js/shell.js +373 -0
- package/js/slider.d.ts +2 -0
- package/js/slider.js +89 -0
- package/js/sortable.d.ts +5 -0
- package/js/sortable.js +463 -0
- package/js/stepper.d.ts +2 -0
- package/js/stepper.js +72 -0
- package/js/tabs.js +99 -0
- package/js/tag-field.d.ts +2 -0
- package/js/tag-field.js +177 -0
- package/js/theme.d.ts +9 -0
- package/js/theme.js +114 -0
- package/js/time-picker.d.ts +2 -0
- package/js/time-picker.js +279 -0
- package/js/toast.d.ts +17 -0
- package/js/toast.js +171 -0
- package/js/toolbar.d.ts +2 -0
- package/js/toolbar.js +107 -0
- package/js/tooltip.d.ts +2 -0
- package/js/tooltip.js +208 -0
- package/js/tree.d.ts +2 -0
- package/js/tree.js +168 -0
- package/lume.css +11574 -0
- package/lume.d.ts +104 -0
- package/lume.js +67 -0
- package/package.json +66 -4
- package/react/Alert.d.ts +24 -0
- package/react/Alert.js +21 -0
- package/react/AppShell.d.ts +67 -0
- package/react/AppShell.js +94 -0
- package/react/Avatar.d.ts +39 -0
- package/react/Avatar.js +40 -0
- package/react/Badge.d.ts +17 -0
- package/react/Badge.js +10 -0
- package/react/Button.d.ts +32 -0
- package/react/Button.js +17 -0
- package/react/Calendar.d.ts +48 -0
- package/react/Calendar.js +67 -0
- package/react/Carousel.d.ts +30 -0
- package/react/Carousel.js +38 -0
- package/react/Charts.d.ts +186 -0
- package/react/Charts.js +58 -0
- package/react/Chip.d.ts +34 -0
- package/react/Chip.js +26 -0
- package/react/Choice.d.ts +72 -0
- package/react/Choice.js +51 -0
- package/react/ColorPicker.d.ts +43 -0
- package/react/ColorPicker.js +73 -0
- package/react/Content.d.ts +58 -0
- package/react/Content.js +42 -0
- package/react/Controls.d.ts +97 -0
- package/react/Controls.js +118 -0
- package/react/Editor.d.ts +28 -0
- package/react/Editor.js +57 -0
- package/react/Field.d.ts +90 -0
- package/react/Field.js +65 -0
- package/react/Form.d.ts +36 -0
- package/react/Form.js +45 -0
- package/react/Icon.d.ts +13 -0
- package/react/Icon.js +8 -0
- package/react/IconButton.d.ts +19 -0
- package/react/IconButton.js +12 -0
- package/react/ImageViewer.d.ts +20 -0
- package/react/ImageViewer.js +22 -0
- package/react/InlineAction.d.ts +15 -0
- package/react/InlineAction.js +12 -0
- package/react/Layers.d.ts +118 -0
- package/react/Layers.js +115 -0
- package/react/Link.d.ts +32 -0
- package/react/Link.js +26 -0
- package/react/Loading.d.ts +67 -0
- package/react/Loading.js +49 -0
- package/react/Navigation.d.ts +181 -0
- package/react/Navigation.js +197 -0
- package/react/Notices.d.ts +43 -0
- package/react/Notices.js +89 -0
- package/react/Panel.d.ts +57 -0
- package/react/Panel.js +33 -0
- package/react/Pickers.d.ts +83 -0
- package/react/Pickers.js +70 -0
- package/react/Rating.d.ts +39 -0
- package/react/Rating.js +41 -0
- package/react/Resizable.d.ts +44 -0
- package/react/Resizable.js +30 -0
- package/react/Select.d.ts +53 -0
- package/react/Select.js +79 -0
- package/react/Sortable.d.ts +52 -0
- package/react/Sortable.js +113 -0
- package/react/Table.d.ts +60 -0
- package/react/Table.js +34 -0
- package/react/Toolbar.d.ts +45 -0
- package/react/Toolbar.js +45 -0
- package/react/cx.d.ts +2 -0
- package/react/cx.js +5 -0
- package/react/icon-names.d.ts +1 -0
- package/react/icon-names.js +2 -0
- package/react/index.d.ts +42 -0
- package/react/index.js +52 -0
- package/react/useController.d.ts +8 -0
- package/react/useController.js +16 -0
- package/react/useLocale.d.ts +5 -0
- package/react/useLocale.js +15 -0
- package/tokens.css +739 -0
- package/tokens.js +4911 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* App shell — painéis flutuantes: sidebar recolhível + painel principal com topbar.
|
|
3
|
+
*
|
|
4
|
+
* <div class="ds-shell" data-sidebar="expanded|collapsed" data-mobile-open="true|false">
|
|
5
|
+
* <button class="ds-shell__edge" data-shell-toggle>…</button> (aba de recolher, na borda da sidebar)
|
|
6
|
+
* <div class="ds-navbar">…</div> (layout navbar: data-layout="navbar" no .ds-shell; some no celular)
|
|
7
|
+
* <aside class="ds-sidebar">…</aside>
|
|
8
|
+
* <div class="ds-shell__scrim"></div>
|
|
9
|
+
* <div class="ds-main"><div class="ds-main__scroll"><header class="ds-topbar">…</header><main class="ds-main__content">…</main></div></div>
|
|
10
|
+
* </div>
|
|
11
|
+
*
|
|
12
|
+
* Geometria: no modo recolhido, a sidebar tem 76 px e todos os ícones ficam centrados
|
|
13
|
+
* em x = 37 px (conteúdo de 74 px) — por isso nada "pula" na animação.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
.ds-shell {
|
|
17
|
+
--_gap: var(--ds-layout-frame-gap);
|
|
18
|
+
--_sidebar-w: var(--ds-layout-sidebar);
|
|
19
|
+
--_dur: var(--ds-duration-slow);
|
|
20
|
+
--_ease: var(--ds-easing-emphasized);
|
|
21
|
+
--_inset: 13px;
|
|
22
|
+
|
|
23
|
+
display: flex;
|
|
24
|
+
gap: var(--_gap);
|
|
25
|
+
height: 100dvh;
|
|
26
|
+
padding: var(--_gap);
|
|
27
|
+
background: var(--ds-color-bg-app);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ───────── Sidebar ───────── */
|
|
31
|
+
|
|
32
|
+
.ds-sidebar {
|
|
33
|
+
position: relative;
|
|
34
|
+
isolation: isolate;
|
|
35
|
+
flex: none;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
width: var(--_sidebar-w);
|
|
39
|
+
border-radius: var(--ds-radius-xl);
|
|
40
|
+
background: var(--ds-color-bg-sidebar);
|
|
41
|
+
border: 1px solid var(--ds-color-border-subtle);
|
|
42
|
+
box-shadow: var(--ds-shadow-lg);
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (min-width: 1024px) {
|
|
47
|
+
.ds-shell[data-ready] > .ds-sidebar {
|
|
48
|
+
transition: width var(--_dur) var(--_ease);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ds-sidebar__header {
|
|
53
|
+
position: relative;
|
|
54
|
+
flex: none;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
height: 76px;
|
|
58
|
+
padding-inline: 15px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Logotipo: a chama do Lume e o nome. A chama fica na coluna dos ícones (centro em x = 38 px)
|
|
62
|
+
e o nome alinha com os rótulos do menu — ao recolher, a chama não sai do lugar. */
|
|
63
|
+
.ds-brand {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 50%;
|
|
66
|
+
left: 25px;
|
|
67
|
+
translate: 0 -50%;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: var(--ds-space-150);
|
|
71
|
+
color: var(--ds-color-fg-default);
|
|
72
|
+
font: var(--ds-font-weight-regular) 1.75rem/1 var(--ds-font-family-display);
|
|
73
|
+
letter-spacing: -0.02em;
|
|
74
|
+
text-decoration: none;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
border-radius: var(--ds-radius-xs);
|
|
77
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ds-brand:hover,
|
|
81
|
+
.ds-brand[data-state="hover"] {
|
|
82
|
+
color: var(--ds-color-fg-default);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* A chama tem as cores do tema Refúgio do app: é logotipo, não segue o tema daqui */
|
|
86
|
+
.ds-brand__mark {
|
|
87
|
+
flex: none;
|
|
88
|
+
width: 24px;
|
|
89
|
+
height: 24px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ds-sidebar__toggle {
|
|
93
|
+
margin-inline-start: auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ds-sidebar__toggle-close,
|
|
97
|
+
.ds-sidebar__toggle-mark {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ds-sidebar__toggle-mark {
|
|
102
|
+
width: 28px;
|
|
103
|
+
height: 28px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Aba de recolher (desktop): presa na borda direita da sidebar, na altura do logotipo.
|
|
107
|
+
Aparece com o mouse sobre a sidebar ou com o foco; recolhida, quem expande é a chama. */
|
|
108
|
+
.ds-shell__edge {
|
|
109
|
+
display: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Busca */
|
|
113
|
+
.ds-sidebar__search {
|
|
114
|
+
flex: none;
|
|
115
|
+
padding: 0 var(--_inset) var(--ds-space-100);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* É um botão com rótulo (abre a busca ⌘K), não um campo: mantém o contorno fino dos controles com texto */
|
|
119
|
+
.ds-sidebar-search {
|
|
120
|
+
padding-inline: 12px;
|
|
121
|
+
border-color: var(--ds-color-border-control);
|
|
122
|
+
background: transparent;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ds-sidebar-search:hover,
|
|
127
|
+
.ds-sidebar-search[data-state="hover"] {
|
|
128
|
+
border-color: var(--ds-color-border-strong);
|
|
129
|
+
background: transparent;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ds-sidebar-search__kbd {
|
|
133
|
+
display: flex;
|
|
134
|
+
gap: 3px;
|
|
135
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Navegação */
|
|
139
|
+
.ds-sidebar__nav {
|
|
140
|
+
flex: 1;
|
|
141
|
+
min-height: 0;
|
|
142
|
+
padding: var(--ds-space-050) var(--_inset) var(--ds-space-400);
|
|
143
|
+
overflow-x: hidden;
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
-webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
|
|
146
|
+
mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ds-nav-list {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
gap: 2px;
|
|
153
|
+
margin: 0;
|
|
154
|
+
padding: 0;
|
|
155
|
+
list-style: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.ds-nav-item {
|
|
159
|
+
--_h: var(--ds-size-control-md);
|
|
160
|
+
position: relative;
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: 12px;
|
|
164
|
+
height: var(--_h);
|
|
165
|
+
padding-inline: 13px 12px;
|
|
166
|
+
border: 1px solid transparent;
|
|
167
|
+
border-radius: var(--ds-radius-md);
|
|
168
|
+
color: var(--ds-color-fg-muted);
|
|
169
|
+
font: var(--ds-text-label-md);
|
|
170
|
+
letter-spacing: var(--ds-text-label-md-tracking);
|
|
171
|
+
text-decoration: none;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
transition:
|
|
174
|
+
background-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
175
|
+
color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
176
|
+
border-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
177
|
+
box-shadow var(--ds-duration-base) var(--ds-easing-standard);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ds-nav-item:hover,
|
|
181
|
+
.ds-nav-item[data-state="hover"] {
|
|
182
|
+
background-color: var(--ds-color-bg-hover);
|
|
183
|
+
color: var(--ds-color-fg-default);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ds-nav-item:focus-visible,
|
|
187
|
+
.ds-nav-item[data-state="focus"] {
|
|
188
|
+
outline-offset: -2px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.ds-nav-item[aria-current="page"] {
|
|
192
|
+
background-color: var(--ds-color-bg-selected);
|
|
193
|
+
border-color: var(--ds-color-border-subtle);
|
|
194
|
+
color: var(--ds-color-fg-default);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ds-nav-item__label {
|
|
198
|
+
flex: 1;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
text-overflow: ellipsis;
|
|
202
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.ds-nav-item > .ds-dot {
|
|
206
|
+
margin-inline-end: 4px;
|
|
207
|
+
transition: translate var(--_dur) var(--_ease);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/* item principal — maior */
|
|
211
|
+
.ds-nav-item--lg {
|
|
212
|
+
--_h: var(--ds-size-control-lg);
|
|
213
|
+
gap: 14px;
|
|
214
|
+
color: var(--ds-color-fg-default);
|
|
215
|
+
font: var(--ds-text-label-lg);
|
|
216
|
+
letter-spacing: var(--ds-text-label-lg-tracking);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ds-sidebar__divider {
|
|
220
|
+
width: 56%;
|
|
221
|
+
margin: var(--ds-space-200) 13px var(--ds-space-150);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* Grupos */
|
|
225
|
+
.ds-nav-group + .ds-nav-group {
|
|
226
|
+
margin-top: var(--ds-space-100);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ds-nav-group__header {
|
|
230
|
+
position: relative;
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: space-between;
|
|
234
|
+
width: 100%;
|
|
235
|
+
height: var(--ds-size-control-md);
|
|
236
|
+
padding-inline: 13px 6px;
|
|
237
|
+
border-radius: var(--ds-radius-md);
|
|
238
|
+
color: var(--ds-color-fg-default);
|
|
239
|
+
font: var(--ds-text-heading-xs);
|
|
240
|
+
letter-spacing: var(--ds-text-heading-xs-tracking);
|
|
241
|
+
text-align: start;
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ds-nav-group__header:focus-visible,
|
|
246
|
+
.ds-nav-group__header[data-state="focus"] {
|
|
247
|
+
outline-offset: -2px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ds-nav-group__label {
|
|
251
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.ds-nav-group__toggle {
|
|
255
|
+
display: grid;
|
|
256
|
+
place-items: center;
|
|
257
|
+
width: var(--ds-size-control-xs);
|
|
258
|
+
height: var(--ds-size-control-xs);
|
|
259
|
+
border-radius: var(--ds-radius-sm);
|
|
260
|
+
background: var(--ds-color-bg-selected);
|
|
261
|
+
color: var(--ds-color-fg-subtle);
|
|
262
|
+
transition:
|
|
263
|
+
opacity var(--ds-duration-base) var(--ds-easing-standard),
|
|
264
|
+
color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
265
|
+
background-color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ds-nav-group__header:hover .ds-nav-group__toggle,
|
|
269
|
+
.ds-nav-group__header[data-state="hover"] .ds-nav-group__toggle {
|
|
270
|
+
background: var(--ds-color-bg-muted);
|
|
271
|
+
color: var(--ds-color-fg-default);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.ds-nav-group__toggle .ds-icon {
|
|
275
|
+
transition: transform var(--ds-duration-base) var(--ds-easing-emphasized);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ds-nav-group__header[aria-expanded="false"] .ds-nav-group__toggle .ds-icon {
|
|
279
|
+
transform: rotate(-90deg);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* vira um divisor curto no modo recolhido */
|
|
283
|
+
.ds-nav-group__header::after {
|
|
284
|
+
content: "";
|
|
285
|
+
position: absolute;
|
|
286
|
+
inset-inline: 14px;
|
|
287
|
+
top: 50%;
|
|
288
|
+
height: 1px;
|
|
289
|
+
background: var(--ds-color-border-default);
|
|
290
|
+
opacity: 0;
|
|
291
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Rótulo de seção dentro de um grupo */
|
|
295
|
+
.ds-nav-section {
|
|
296
|
+
padding: var(--ds-space-150) 13px var(--ds-space-050);
|
|
297
|
+
color: var(--ds-color-fg-subtle);
|
|
298
|
+
font: var(--ds-text-eyebrow);
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ds-nav-section:first-child {
|
|
303
|
+
padding-top: var(--ds-space-050);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ds-nav-group__items {
|
|
307
|
+
display: grid;
|
|
308
|
+
grid-template-rows: 1fr;
|
|
309
|
+
transition: grid-template-rows var(--_dur) var(--_ease);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.ds-nav-group__items > .ds-nav-list {
|
|
313
|
+
min-height: 0;
|
|
314
|
+
overflow: hidden;
|
|
315
|
+
padding-block: 2px 4px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ds-nav-group[data-open="false"] .ds-nav-group__items {
|
|
319
|
+
grid-template-rows: 0fr;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.ds-nav-group[data-open="false"] .ds-nav-group__items > .ds-nav-list {
|
|
323
|
+
visibility: hidden;
|
|
324
|
+
transition: visibility 0s var(--_dur);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Rodapé — cartão de conta/versão */
|
|
328
|
+
.ds-sidebar__footer {
|
|
329
|
+
flex: none;
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: column;
|
|
332
|
+
gap: var(--ds-space-100);
|
|
333
|
+
padding: var(--ds-space-100) var(--_inset) var(--_inset);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ds-account {
|
|
337
|
+
position: relative;
|
|
338
|
+
isolation: isolate;
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
gap: 12px;
|
|
342
|
+
height: 64px;
|
|
343
|
+
padding-inline: 11px 14px;
|
|
344
|
+
border-radius: var(--ds-radius-lg);
|
|
345
|
+
color: var(--ds-color-fg-default);
|
|
346
|
+
text-decoration: none;
|
|
347
|
+
white-space: nowrap;
|
|
348
|
+
transition: padding var(--_dur) var(--_ease);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.ds-account::before {
|
|
352
|
+
content: "";
|
|
353
|
+
position: absolute;
|
|
354
|
+
inset: 0;
|
|
355
|
+
z-index: -1;
|
|
356
|
+
border-radius: inherit;
|
|
357
|
+
background: var(--ds-color-bg-muted);
|
|
358
|
+
border: 1px solid var(--ds-color-border-subtle);
|
|
359
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.ds-account:hover,
|
|
363
|
+
.ds-account[data-state="hover"] {
|
|
364
|
+
color: var(--ds-color-fg-default);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* versão do cartão como botão (ex.: “Nova versão disponível”) */
|
|
368
|
+
button.ds-account {
|
|
369
|
+
width: 100%;
|
|
370
|
+
border: 0;
|
|
371
|
+
background: none;
|
|
372
|
+
font: inherit;
|
|
373
|
+
text-align: start;
|
|
374
|
+
cursor: pointer;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.ds-account:hover .ds-account__chevron,
|
|
378
|
+
.ds-account[data-state="hover"] .ds-account__chevron {
|
|
379
|
+
translate: 2px 0;
|
|
380
|
+
color: var(--ds-color-fg-default);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ds-account__text {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex: 1;
|
|
386
|
+
flex-direction: column;
|
|
387
|
+
min-width: 0;
|
|
388
|
+
transition: opacity var(--ds-duration-base) var(--ds-easing-standard);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ds-account__title {
|
|
392
|
+
font: var(--ds-text-heading-xs);
|
|
393
|
+
letter-spacing: var(--ds-text-heading-xs-tracking);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ds-account__subtitle {
|
|
397
|
+
color: var(--ds-color-fg-subtle);
|
|
398
|
+
font: var(--ds-text-caption);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.ds-account__chevron {
|
|
402
|
+
color: var(--ds-color-fg-subtle);
|
|
403
|
+
transition:
|
|
404
|
+
opacity var(--ds-duration-base) var(--ds-easing-standard),
|
|
405
|
+
translate var(--ds-duration-base) var(--ds-easing-emphasized),
|
|
406
|
+
color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* ───────── Painel principal ───────── */
|
|
410
|
+
|
|
411
|
+
.ds-main {
|
|
412
|
+
position: relative;
|
|
413
|
+
flex: 1;
|
|
414
|
+
min-width: 0;
|
|
415
|
+
display: flex;
|
|
416
|
+
flex-direction: column;
|
|
417
|
+
border-radius: var(--ds-radius-xl);
|
|
418
|
+
background: var(--ds-color-bg-canvas);
|
|
419
|
+
border: 1px solid var(--ds-color-border-subtle);
|
|
420
|
+
box-shadow: var(--ds-shadow-lg);
|
|
421
|
+
overflow: hidden;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.ds-main__scroll {
|
|
425
|
+
flex: 1;
|
|
426
|
+
min-height: 0;
|
|
427
|
+
overflow-x: hidden;
|
|
428
|
+
overflow-y: auto;
|
|
429
|
+
overscroll-behavior: contain;
|
|
430
|
+
/* a barra de rolagem começa abaixo da topbar e para antes do canto arredondado */
|
|
431
|
+
--ds-scrollbar-start: var(--ds-layout-topbar);
|
|
432
|
+
--ds-scrollbar-end: var(--ds-space-200);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ds-topbar {
|
|
436
|
+
position: sticky;
|
|
437
|
+
top: 0;
|
|
438
|
+
z-index: var(--ds-z-sticky);
|
|
439
|
+
display: flex;
|
|
440
|
+
align-items: center;
|
|
441
|
+
gap: var(--ds-space-150);
|
|
442
|
+
height: var(--ds-layout-topbar);
|
|
443
|
+
padding-inline: 28px 16px;
|
|
444
|
+
background: var(--ds-color-bg-canvas);
|
|
445
|
+
border-bottom: 1px solid transparent;
|
|
446
|
+
transition: border-color var(--ds-duration-base) var(--ds-easing-standard);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.ds-main[data-scrolled] .ds-topbar {
|
|
450
|
+
border-bottom-color: var(--ds-color-border-subtle);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/* no topo da página a topbar é transparente — a arte de fundo aparece nítida */
|
|
454
|
+
.ds-main:not([data-scrolled]) .ds-topbar {
|
|
455
|
+
background: transparent;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.ds-topbar__spacer {
|
|
459
|
+
flex: 1;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.ds-topbar__menu,
|
|
463
|
+
.ds-topbar__search {
|
|
464
|
+
display: none;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.ds-main__content {
|
|
468
|
+
--_pt: var(--ds-space-200);
|
|
469
|
+
--_px: var(--ds-layout-gutter);
|
|
470
|
+
position: relative;
|
|
471
|
+
padding: var(--_pt) var(--_px) var(--ds-space-1200);
|
|
472
|
+
outline: none;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ds-shell__scrim {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* ───────── Navbar (layout alternativo à sidebar) ─────────
|
|
480
|
+
Mesmo painel flutuante, deitado no topo: marca, os links principais, um menu por grupo e a busca.
|
|
481
|
+
No celular, os dois layouts viram a mesma gaveta (a sidebar), aberta pelo botão da topbar. */
|
|
482
|
+
|
|
483
|
+
.ds-navbar {
|
|
484
|
+
display: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.ds-navbar .ds-brand {
|
|
488
|
+
position: static;
|
|
489
|
+
translate: none;
|
|
490
|
+
margin-inline: 13px var(--ds-space-250);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.ds-navbar__nav {
|
|
494
|
+
flex: 1;
|
|
495
|
+
display: flex;
|
|
496
|
+
align-items: center;
|
|
497
|
+
gap: 2px;
|
|
498
|
+
min-width: 0;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ds-navbar__item[hidden] {
|
|
502
|
+
display: none;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.ds-navbar__item {
|
|
506
|
+
display: inline-flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
gap: var(--ds-space-050);
|
|
509
|
+
height: var(--ds-size-control-compact);
|
|
510
|
+
padding-inline: var(--ds-space-150);
|
|
511
|
+
border-radius: var(--ds-radius-md);
|
|
512
|
+
color: var(--ds-color-fg-muted);
|
|
513
|
+
font: var(--ds-text-label-md);
|
|
514
|
+
letter-spacing: var(--ds-text-label-md-tracking);
|
|
515
|
+
text-decoration: none;
|
|
516
|
+
white-space: nowrap;
|
|
517
|
+
transition:
|
|
518
|
+
background-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
519
|
+
color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.ds-navbar__item:hover,
|
|
523
|
+
.ds-navbar__item[aria-expanded="true"],
|
|
524
|
+
.ds-navbar__item[data-state="hover"] {
|
|
525
|
+
background: var(--ds-color-bg-hover);
|
|
526
|
+
color: var(--ds-color-fg-default);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ds-navbar__item[aria-current="page"],
|
|
530
|
+
.ds-navbar__item[data-current] {
|
|
531
|
+
background: var(--ds-color-bg-selected);
|
|
532
|
+
color: var(--ds-color-fg-default);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ds-navbar__item > .ds-dot {
|
|
536
|
+
margin-inline-start: 2px;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.ds-navbar__chevron {
|
|
540
|
+
display: inline-flex;
|
|
541
|
+
color: var(--ds-color-fg-subtle);
|
|
542
|
+
transition: transform var(--ds-duration-base) var(--ds-easing-emphasized);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.ds-navbar__item[aria-expanded="true"] .ds-navbar__chevron {
|
|
546
|
+
transform: rotate(180deg);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.ds-navbar__search {
|
|
550
|
+
flex: none;
|
|
551
|
+
width: 240px;
|
|
552
|
+
margin-inline-start: auto;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* sem espaço: só o ícone. O texto continua lá para o leitor de tela */
|
|
556
|
+
.ds-navbar[data-compact] .ds-navbar__search {
|
|
557
|
+
justify-content: center;
|
|
558
|
+
width: var(--ds-size-control-md);
|
|
559
|
+
padding-inline: 0;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.ds-navbar[data-compact] .ds-navbar__search .ds-field__placeholder {
|
|
563
|
+
position: absolute;
|
|
564
|
+
width: 1px;
|
|
565
|
+
height: 1px;
|
|
566
|
+
overflow: hidden;
|
|
567
|
+
clip-path: inset(50%);
|
|
568
|
+
white-space: nowrap;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.ds-navbar[data-compact] .ds-navbar__search .ds-sidebar-search__kbd {
|
|
572
|
+
display: none;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
@media (min-width: 1024px) {
|
|
576
|
+
.ds-shell[data-layout="navbar"] {
|
|
577
|
+
flex-direction: column;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.ds-shell[data-layout="navbar"] > :is(.ds-sidebar, .ds-shell__edge) {
|
|
581
|
+
display: none;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.ds-shell[data-layout="navbar"] > .ds-main {
|
|
585
|
+
min-height: 0;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.ds-shell[data-layout="navbar"] > .ds-navbar {
|
|
589
|
+
flex: none;
|
|
590
|
+
display: flex;
|
|
591
|
+
align-items: center;
|
|
592
|
+
gap: var(--ds-space-100);
|
|
593
|
+
height: var(--ds-layout-topbar);
|
|
594
|
+
padding-inline: var(--ds-space-150);
|
|
595
|
+
border: 1px solid var(--ds-color-border-subtle);
|
|
596
|
+
border-radius: var(--ds-radius-xl);
|
|
597
|
+
background: var(--ds-color-bg-sidebar);
|
|
598
|
+
color: var(--ds-color-fg-default);
|
|
599
|
+
box-shadow: var(--ds-shadow-lg);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/* o seletor de layout só faz sentido no desktop */
|
|
604
|
+
@media (max-width: 1023.98px) {
|
|
605
|
+
.ds-topbar__layout {
|
|
606
|
+
display: none;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/* ───────── Desktop: modo recolhido ───────── */
|
|
611
|
+
|
|
612
|
+
@media (min-width: 1024px) {
|
|
613
|
+
.ds-shell__edge {
|
|
614
|
+
position: fixed;
|
|
615
|
+
z-index: 2;
|
|
616
|
+
top: calc(var(--_gap) + 39px);
|
|
617
|
+
left: calc(var(--_gap) + var(--_sidebar-w));
|
|
618
|
+
translate: -50% -50%;
|
|
619
|
+
display: grid;
|
|
620
|
+
place-items: center;
|
|
621
|
+
width: 24px;
|
|
622
|
+
height: 24px;
|
|
623
|
+
border: 1px solid var(--ds-color-border-control);
|
|
624
|
+
border-radius: var(--ds-radius-full);
|
|
625
|
+
background: var(--ds-color-bg-raised);
|
|
626
|
+
color: var(--ds-color-fg-muted);
|
|
627
|
+
opacity: 0;
|
|
628
|
+
transition:
|
|
629
|
+
opacity var(--ds-duration-fast) var(--ds-easing-standard),
|
|
630
|
+
color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
631
|
+
border-color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ds-shell:has(> .ds-sidebar:hover) > .ds-shell__edge,
|
|
635
|
+
.ds-shell__edge:hover,
|
|
636
|
+
.ds-shell__edge:focus-visible,
|
|
637
|
+
.ds-shell__edge[data-state="hover"],
|
|
638
|
+
.ds-shell__edge[data-state="focus"] {
|
|
639
|
+
opacity: 1;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.ds-shell__edge:hover,
|
|
643
|
+
.ds-shell__edge[data-state="hover"] {
|
|
644
|
+
border-color: var(--ds-color-border-strong);
|
|
645
|
+
color: var(--ds-color-fg-default);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-shell__edge {
|
|
649
|
+
visibility: hidden;
|
|
650
|
+
opacity: 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/* aberta, o botão do cabeçalho sai de cena (quem recolhe é a aba) */
|
|
654
|
+
.ds-shell:not([data-sidebar="collapsed"]) > .ds-sidebar .ds-sidebar__toggle {
|
|
655
|
+
visibility: hidden;
|
|
656
|
+
opacity: 0;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/* recolhida, ele fica no lugar da chama e mostra a chama até receber o mouse ou o foco */
|
|
660
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-sidebar__toggle {
|
|
661
|
+
position: absolute;
|
|
662
|
+
top: 16px;
|
|
663
|
+
left: 15px;
|
|
664
|
+
transition:
|
|
665
|
+
opacity var(--ds-duration-base) var(--ds-easing-standard) var(--ds-duration-fast),
|
|
666
|
+
background-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
667
|
+
border-color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-sidebar__toggle:not(:hover, :focus-visible) {
|
|
671
|
+
border-color: transparent;
|
|
672
|
+
background: transparent;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-sidebar__toggle:not(:hover, :focus-visible) .ds-sidebar__toggle-collapse {
|
|
676
|
+
display: none;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-sidebar__toggle:not(:hover, :focus-visible) .ds-sidebar__toggle-mark {
|
|
680
|
+
display: block;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ds-shell[data-sidebar="collapsed"] {
|
|
684
|
+
--_sidebar-w: var(--ds-layout-sidebar-collapsed);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar :is(
|
|
688
|
+
.ds-brand,
|
|
689
|
+
.ds-sidebar-search .ds-field__placeholder,
|
|
690
|
+
.ds-sidebar-search__kbd,
|
|
691
|
+
.ds-nav-item__label,
|
|
692
|
+
.ds-nav-group__label,
|
|
693
|
+
.ds-nav-group__toggle,
|
|
694
|
+
.ds-account__text,
|
|
695
|
+
.ds-account__chevron,
|
|
696
|
+
.ds-account::before
|
|
697
|
+
) {
|
|
698
|
+
opacity: 0;
|
|
699
|
+
pointer-events: none;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-group__header {
|
|
703
|
+
pointer-events: none;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-group__header::after {
|
|
707
|
+
opacity: 1;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-section {
|
|
711
|
+
display: none;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-group__items {
|
|
715
|
+
grid-template-rows: 1fr;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-group__items > .ds-nav-list {
|
|
719
|
+
visibility: visible;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-nav-item > .ds-dot {
|
|
723
|
+
position: absolute;
|
|
724
|
+
top: 9px;
|
|
725
|
+
left: 30px;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-account {
|
|
729
|
+
padding-inline: 3px;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.ds-shell[data-sidebar="collapsed"] > .ds-sidebar .ds-sidebar__divider {
|
|
733
|
+
width: calc(100% - 26px);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/* ───────── Mobile / tablet: gaveta ───────── */
|
|
738
|
+
|
|
739
|
+
@media (max-width: 1023.98px) {
|
|
740
|
+
.ds-shell {
|
|
741
|
+
--_gap: 8px;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.ds-sidebar {
|
|
745
|
+
position: fixed;
|
|
746
|
+
z-index: calc(var(--ds-z-overlay) + 1);
|
|
747
|
+
inset: var(--_gap) auto var(--_gap) var(--_gap);
|
|
748
|
+
width: min(var(--ds-layout-sidebar), calc(100vw - 48px));
|
|
749
|
+
box-shadow: var(--ds-shadow-2xl);
|
|
750
|
+
transform: translateX(calc(-100% - 2 * var(--_gap)));
|
|
751
|
+
visibility: hidden;
|
|
752
|
+
transition:
|
|
753
|
+
transform var(--_dur) var(--_ease),
|
|
754
|
+
visibility 0s var(--_dur);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.ds-shell[data-mobile-open="true"] > .ds-sidebar {
|
|
758
|
+
transform: none;
|
|
759
|
+
visibility: visible;
|
|
760
|
+
transition: transform var(--_dur) var(--_ease);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.ds-shell__scrim {
|
|
764
|
+
display: block;
|
|
765
|
+
position: fixed;
|
|
766
|
+
inset: 0;
|
|
767
|
+
z-index: var(--ds-z-overlay);
|
|
768
|
+
background: var(--ds-color-bg-overlay);
|
|
769
|
+
opacity: 0;
|
|
770
|
+
pointer-events: none;
|
|
771
|
+
transition: opacity var(--_dur) var(--_ease);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.ds-shell[data-mobile-open="true"] > .ds-shell__scrim {
|
|
775
|
+
opacity: 1;
|
|
776
|
+
pointer-events: auto;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.ds-sidebar__toggle-collapse {
|
|
780
|
+
display: none;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.ds-sidebar__toggle-close {
|
|
784
|
+
display: inline-flex;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
.ds-topbar {
|
|
788
|
+
padding-inline: 12px;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.ds-topbar__menu,
|
|
792
|
+
.ds-topbar__search {
|
|
793
|
+
display: inline-grid;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/* Celular: os controles da topbar têm de caber até em 320 px, sem rolar para o lado */
|
|
798
|
+
@media (max-width: 479.98px) {
|
|
799
|
+
.ds-topbar {
|
|
800
|
+
gap: var(--ds-space-100);
|
|
801
|
+
padding-inline: var(--ds-space-150);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.ds-topbar .ds-segmented__item {
|
|
805
|
+
padding-inline: var(--ds-space-050);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/* sem espaço para o caminho: sobrava só a primeira letra, e o título da página já diz onde se está */
|
|
809
|
+
.ds-topbar .ds-breadcrumb {
|
|
810
|
+
display: none;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
@media (max-width: 359.98px) {
|
|
815
|
+
.ds-topbar {
|
|
816
|
+
gap: var(--ds-space-050);
|
|
817
|
+
padding-inline: var(--ds-space-100);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.ds-topbar .ds-chip__icon {
|
|
821
|
+
display: none;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
@media (max-width: 767.98px) {
|
|
826
|
+
.ds-main__content {
|
|
827
|
+
--_pt: var(--ds-space-100);
|
|
828
|
+
--_px: var(--ds-space-200);
|
|
829
|
+
padding-bottom: var(--ds-space-800);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/* ───────── Modo demonstração (app dentro de um iframe, ?embed) ───────── */
|
|
834
|
+
|
|
835
|
+
html[data-embed] .ds-skip-link {
|
|
836
|
+
display: none;
|
|
837
|
+
}
|