@ternarytech-io/gears-ui 0.2.1 → 0.3.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/README.md +162 -161
- package/package.json +113 -111
- package/src/components/TAccentPicker.vue +41 -41
- package/src/components/TChart.vue +188 -0
- package/src/components/TContainerPicker.vue +22 -22
- package/src/components/TDataGrid.vue +41 -0
- package/src/components/TDataGridItem.vue +23 -0
- package/src/components/TDensityPicker.vue +19 -19
- package/src/components/TEditableTable.vue +203 -0
- package/src/components/TFontPicker.vue +23 -23
- package/src/components/TNavPositionPicker.vue +22 -22
- package/src/components/TRadiusPicker.vue +21 -21
- package/src/components/TScaledFrame.vue +36 -36
- package/src/components/TShell.vue +82 -72
- package/src/components/TSortableTree.vue +73 -73
- package/src/components/TSortableTreeList.vue +60 -60
- package/src/components/TSparkline.vue +34 -0
- package/src/components/TStatCard.vue +56 -26
- package/src/components/TTable.vue +138 -134
- package/src/components/TThemeBasePicker.vue +22 -22
- package/src/components/sortableTree.ts +19 -19
- package/src/index.ts +227 -215
- package/src/plugins/charts.ts +4 -0
- package/src/plugins/index.ts +55 -52
- package/src/styles/gears.css +666 -625
- package/src/theme.ts +50 -45
- package/src/types.ts +38 -1
package/src/styles/gears.css
CHANGED
|
@@ -1,625 +1,666 @@
|
|
|
1
|
-
/* Gears UI: Tabler (with its theme settings), the Tabler Icons webfont (self-hosted: a Gears server may have no internet),
|
|
2
|
-
and the Gears palette and the few classes Tabler doesn't have. Import it once in the app's entry. */
|
|
3
|
-
@import '@tabler/core/dist/css/tabler.min.css';
|
|
4
|
-
@import '@tabler/core/dist/css/tabler-themes.min.css';
|
|
5
|
-
@import '@tabler/icons-webfont/dist/tabler-icons.min.css';
|
|
6
|
-
|
|
7
|
-
/* The palette: primary #3673d1, darkest black #1c1d1d. Tabler builds its shades, subtle
|
|
8
|
-
backgrounds and focus rings from these, in both themes (light-dark() picks the side). */
|
|
9
|
-
:root {
|
|
10
|
-
--tblr-primary: #3673d1;
|
|
11
|
-
--tblr-primary-rgb: 54, 115, 209;
|
|
12
|
-
--tblr-link-color: light-dark(#3673d1, #5c90de);
|
|
13
|
-
--tblr-link-hover-color: light-dark(#2b5fae, #8bb2e9);
|
|
14
|
-
--tblr-font-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
15
|
-
--tblr-font-monospace: ui-monospace, 'Cascadia Code', Consolas, monospace;
|
|
16
|
-
--tblr-border-radius: 0.5rem;
|
|
17
|
-
|
|
18
|
-
/* Pages are a shade off white (darkest black in the dark theme); cards sit on them. */
|
|
19
|
-
--tblr-body-bg: light-dark(#f6f7f9, #1c1d1d);
|
|
20
|
-
--tblr-bg-surface: light-dark(#fff, #232525);
|
|
21
|
-
--tblr-bg-surface-secondary: light-dark(#f6f7f9, #1c1d1d);
|
|
22
|
-
--tblr-bg-surface-dark: #1c1d1d;
|
|
23
|
-
--tblr-border-color: light-dark(#e3e6eb, #2f3232);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* The sidebar is dark in both themes, in the darkest black. */
|
|
27
|
-
.navbar-vertical[data-bs-theme=dark] {
|
|
28
|
-
--tblr-navbar-bg: #1c1d1d;
|
|
29
|
-
--tblr-bg-surface: #1c1d1d;
|
|
30
|
-
--tblr-navbar-border-color: #2f3232;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* An extra-small button size, under Tabler's btn-sm. */
|
|
34
|
-
.btn-xs {
|
|
35
|
-
--tblr-btn-padding-y: 0.125rem;
|
|
36
|
-
--tblr-btn-padding-x: 0.375rem;
|
|
37
|
-
--tblr-btn-font-size: 0.75rem;
|
|
38
|
-
--tblr-btn-icon-size: 0.875rem;
|
|
39
|
-
--tblr-btn-line-height: 1.25rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Soft buttons: tinted, like Tabler's `-lt` backgrounds, with hover and active shades. */
|
|
43
|
-
.btn-soft {
|
|
44
|
-
--tblr-btn-color: var(--t-tint);
|
|
45
|
-
--tblr-btn-bg: color-mix(in oklab, var(--t-tint) 12%, transparent);
|
|
46
|
-
--tblr-btn-border-color: transparent;
|
|
47
|
-
--tblr-btn-hover-color: var(--t-tint);
|
|
48
|
-
--tblr-btn-hover-bg: color-mix(in oklab, var(--t-tint) 20%, transparent);
|
|
49
|
-
--tblr-btn-hover-border-color: transparent;
|
|
50
|
-
--tblr-btn-active-color: var(--t-tint);
|
|
51
|
-
--tblr-btn-active-bg: color-mix(in oklab, var(--t-tint) 28%, transparent);
|
|
52
|
-
--tblr-btn-active-border-color: transparent;
|
|
53
|
-
--tblr-btn-icon-color: var(--t-tint);
|
|
54
|
-
}
|
|
55
|
-
.btn-soft-primary { --t-tint: var(--tblr-primary); }
|
|
56
|
-
.btn-soft-secondary { --t-tint: var(--tblr-secondary); }
|
|
57
|
-
.btn-soft-success { --t-tint: var(--tblr-success); }
|
|
58
|
-
.btn-soft-warning { --t-tint: var(--tblr-warning); }
|
|
59
|
-
.btn-soft-danger { --t-tint: var(--tblr-danger); }
|
|
60
|
-
.btn-soft-info { --t-tint: var(--tblr-info); }
|
|
61
|
-
|
|
62
|
-
/* Icons from the webfont take the size of the text around them unless told otherwise. */
|
|
63
|
-
.ti.icon { line-height: 1; vertical-align: -0.125em; }
|
|
64
|
-
.ti-spin { animation: t-spin 1s linear infinite; }
|
|
65
|
-
@keyframes t-spin { to { transform: rotate(360deg); } }
|
|
66
|
-
|
|
67
|
-
/* The sidebar's fold toggle: a small circle on the sidebar's edge, in the sidebar's colors (its
|
|
68
|
-
background, its border, and its menu icons' color), so it suits a dark sidebar or a light one. */
|
|
69
|
-
.t-fold-toggle {
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 1.375rem;
|
|
72
|
-
inset-inline-end: -12px;
|
|
73
|
-
z-index: 1031;
|
|
74
|
-
place-items: center;
|
|
75
|
-
width: 24px;
|
|
76
|
-
height: 24px;
|
|
77
|
-
padding: 0;
|
|
78
|
-
color: color-mix(in oklab, var(--tblr-navbar-color, var(--tblr-body-color)) 70%, transparent);
|
|
79
|
-
background: var(--tblr-navbar-bg, var(--tblr-bg-surface));
|
|
80
|
-
border: 1px solid var(--tblr-navbar-border-color, var(--tblr-border-color));
|
|
81
|
-
border-radius: 50%;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
.t-fold-toggle:hover { color: var(--tblr-navbar-hover-color, var(--tblr-body-color)); border-color: color-mix(in oklab, var(--tblr-navbar-color, var(--tblr-body-color)) 45%, transparent); }
|
|
85
|
-
.t-fold-toggle:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
|
|
86
|
-
.t-fold-toggle .ti { font-size: 14px; width: 14px; height: 14px; line-height: 14px; vertical-align: 0; }
|
|
87
|
-
|
|
88
|
-
/* The top bar beside the sidebar keeps clear of the fold toggle on the sidebar's edge. */
|
|
89
|
-
@media (min-width: 992px) {
|
|
90
|
-
.t-topbar > .container-fluid { padding-inline-start: 1.75rem; }
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* A page that fills the height under the top bar and scrolls inside its own panels. */
|
|
94
|
-
.t-fill {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
min-height: 0;
|
|
98
|
-
flex: 1 1 auto;
|
|
99
|
-
}
|
|
100
|
-
/* The shell is at least the window's height; a filling page takes what the top bar leaves (its
|
|
101
|
-
basis is 0, so it never grows the page past the window) and scrolls inside. */
|
|
102
|
-
.t-shell { min-height: 100svh; }
|
|
103
|
-
.t-page-fill { flex: 1 1 0; overflow: hidden; }
|
|
104
|
-
|
|
105
|
-
/* A work section: a secondary panel on the left and a large work area. */
|
|
106
|
-
.t-section {
|
|
107
|
-
display: flex;
|
|
108
|
-
flex: 1 1 auto;
|
|
109
|
-
min-height: 0;
|
|
110
|
-
}
|
|
111
|
-
.t-section-panel {
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
width: 16rem;
|
|
115
|
-
flex-shrink: 0;
|
|
116
|
-
background: var(--tblr-bg-surface);
|
|
117
|
-
border-inline-end: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
118
|
-
}
|
|
119
|
-
.t-section-panel-header {
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: space-between;
|
|
123
|
-
gap: 0.25rem;
|
|
124
|
-
height: 3rem;
|
|
125
|
-
flex-shrink: 0;
|
|
126
|
-
padding-inline: 1rem 0.5rem;
|
|
127
|
-
border-bottom: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
128
|
-
}
|
|
129
|
-
.t-section-work {
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
flex: 1 1 auto;
|
|
133
|
-
gap: 0.75rem;
|
|
134
|
-
min-width: 0;
|
|
135
|
-
min-height: 0;
|
|
136
|
-
padding: 1rem;
|
|
137
|
-
}
|
|
138
|
-
@media (max-width: 767.98px) {
|
|
139
|
-
.t-section-panel { display: none; }
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* Log output: monospaced, on a slightly sunken surface. */
|
|
143
|
-
.t-log {
|
|
144
|
-
overflow: auto;
|
|
145
|
-
padding: 0.75rem;
|
|
146
|
-
margin: 0;
|
|
147
|
-
font-family: var(--tblr-font-monospace);
|
|
148
|
-
font-size: 0.75rem;
|
|
149
|
-
line-height: 1.25rem;
|
|
150
|
-
white-space: pre-wrap;
|
|
151
|
-
overflow-wrap: anywhere;
|
|
152
|
-
/* Tabler gives a pre light text, for its dark background; this one sits on the surface. */
|
|
153
|
-
color: var(--tblr-body-color);
|
|
154
|
-
background: var(--tblr-bg-surface-secondary);
|
|
155
|
-
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
156
|
-
border-radius: var(--tblr-border-radius);
|
|
157
|
-
}
|
|
158
|
-
.t-log-line { display: flex; gap: 0.75rem; }
|
|
159
|
-
.t-log-time { flex-shrink: 0; color: var(--tblr-tertiary-color); user-select: none; }
|
|
160
|
-
|
|
161
|
-
/* A stat card's tinted icon square. */
|
|
162
|
-
.t-stat-icon {
|
|
163
|
-
display: grid;
|
|
164
|
-
place-items: center;
|
|
165
|
-
width: 2.5rem;
|
|
166
|
-
height: 2.5rem;
|
|
167
|
-
flex-shrink: 0;
|
|
168
|
-
border-radius: var(--tblr-border-radius);
|
|
169
|
-
font-size: 1.25rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/* A small segmented switch (Tabler has one size). */
|
|
173
|
-
.nav-segmented-sm {
|
|
174
|
-
--tblr-nav-height: 2rem;
|
|
175
|
-
--tblr-nav-link-padding-x: 0.625rem;
|
|
176
|
-
--tblr-nav-link-icon-size: 1rem;
|
|
177
|
-
font-size: 0.8125rem;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* A dropdown joined to the controls before or after it in a TFieldGroup (a split Save button). */
|
|
181
|
-
.input-group > .dropdown:not(:first-child) .btn {
|
|
182
|
-
margin-inline-start: calc(-1 * var(--tblr-border-width));
|
|
183
|
-
border-start-start-radius: 0;
|
|
184
|
-
border-end-start-radius: 0;
|
|
185
|
-
}
|
|
186
|
-
.input-group > .dropdown:not(:last-child) .btn {
|
|
187
|
-
border-start-end-radius: 0;
|
|
188
|
-
border-end-end-radius: 0;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/*
|
|
192
|
-
* A sortable header's button. Tabler's inherits the cell's background color, but a cell shows its
|
|
193
|
-
* color through a box shadow, so in dark mode the button painted a box of a different shade.
|
|
194
|
-
*/
|
|
195
|
-
.table-sort { background: transparent; }
|
|
196
|
-
|
|
197
|
-
/* TAdvancedTable: a heading with its filter icon at the right, and the filter opened under it. */
|
|
198
|
-
.t-table-heading { display: flex; align-items: center; gap: 0.25rem; }
|
|
199
|
-
/* The label takes the room, aligned as the column is (start, center or end). */
|
|
200
|
-
.t-table-heading-label { flex: 1 1 auto; min-width: 0; }
|
|
201
|
-
.t-table-heading .table-sort { width: auto; margin: 0; padding: 0; }
|
|
202
|
-
.t-table-heading .t-table-filter-toggle { flex-shrink: 0; margin-block: -0.25rem; }
|
|
203
|
-
.t-table-filter {
|
|
204
|
-
display: flex;
|
|
205
|
-
align-items: center;
|
|
206
|
-
gap: 0.25rem;
|
|
207
|
-
min-width: 15rem;
|
|
208
|
-
margin-top: 0.375rem;
|
|
209
|
-
font-weight: var(--tblr-font-weight-normal);
|
|
210
|
-
text-transform: none;
|
|
211
|
-
letter-spacing: normal;
|
|
212
|
-
}
|
|
213
|
-
.t-table-filter > select { flex: 0 0 7.5rem; }
|
|
214
|
-
.t-table-filter > div { flex: 1 1 auto; min-width: 5rem; }
|
|
215
|
-
|
|
216
|
-
/* A table whose header stays in view while it scrolls in its container. */
|
|
217
|
-
.t-table-sticky {
|
|
218
|
-
min-height: 0;
|
|
219
|
-
overflow: auto;
|
|
220
|
-
}
|
|
221
|
-
.t-table-sticky thead th {
|
|
222
|
-
position: sticky;
|
|
223
|
-
top: 0;
|
|
224
|
-
z-index: 1;
|
|
225
|
-
background-color: var(--tblr-bg-surface);
|
|
226
|
-
box-shadow: inset 0 -1px 0 var(--tblr-border-color);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/* Code editor (TCodeEditor): Monaco fills the box; the box has the input's border. */
|
|
230
|
-
.t-code-editor {
|
|
231
|
-
position: relative;
|
|
232
|
-
min-height: 10rem;
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
235
|
-
border-radius: var(--tblr-border-radius);
|
|
236
|
-
}
|
|
237
|
-
.t-code-editor-flush {
|
|
238
|
-
border: 0;
|
|
239
|
-
border-radius: 0;
|
|
240
|
-
}
|
|
241
|
-
.t-code-editor-host,
|
|
242
|
-
.t-code-editor-loading {
|
|
243
|
-
position: absolute;
|
|
244
|
-
inset: 0;
|
|
245
|
-
}
|
|
246
|
-
.t-code-editor-loading {
|
|
247
|
-
display: grid;
|
|
248
|
-
place-items: center;
|
|
249
|
-
background: var(--tblr-bg-surface);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/* Splitter (TSplitter): two flex-column panes and a handle with a grip. */
|
|
253
|
-
.t-splitter {
|
|
254
|
-
display: flex;
|
|
255
|
-
flex: 1 1 auto;
|
|
256
|
-
min-width: 0;
|
|
257
|
-
min-height: 0;
|
|
258
|
-
}
|
|
259
|
-
.t-splitter-vertical { flex-direction: column; }
|
|
260
|
-
.t-splitter-pane {
|
|
261
|
-
display: flex;
|
|
262
|
-
flex-direction: column;
|
|
263
|
-
flex: 0 0 auto;
|
|
264
|
-
min-width: 0;
|
|
265
|
-
min-height: 0;
|
|
266
|
-
overflow: hidden;
|
|
267
|
-
}
|
|
268
|
-
.t-splitter-pane-end { flex: 1 1 0; }
|
|
269
|
-
.t-splitter-handle {
|
|
270
|
-
display: flex;
|
|
271
|
-
flex-shrink: 0;
|
|
272
|
-
align-items: center;
|
|
273
|
-
justify-content: center;
|
|
274
|
-
outline: none;
|
|
275
|
-
touch-action: none;
|
|
276
|
-
}
|
|
277
|
-
.t-splitter-horizontal > .t-splitter-handle { width: 0.75rem; cursor: col-resize; }
|
|
278
|
-
.t-splitter-vertical > .t-splitter-handle { height: 0.75rem; cursor: row-resize; }
|
|
279
|
-
.t-splitter-grip {
|
|
280
|
-
border-radius: 1rem;
|
|
281
|
-
background: var(--tblr-border-color);
|
|
282
|
-
transition: background-color 0.15s;
|
|
283
|
-
}
|
|
284
|
-
.t-splitter-horizontal .t-splitter-grip { width: 0.25rem; height: 3rem; }
|
|
285
|
-
.t-splitter-vertical .t-splitter-grip { width: 3rem; height: 0.25rem; }
|
|
286
|
-
.t-splitter-handle:hover .t-splitter-grip,
|
|
287
|
-
.t-splitter-handle:focus-visible .t-splitter-grip,
|
|
288
|
-
.t-splitter-dragging .t-splitter-grip { background: var(--tblr-primary); }
|
|
289
|
-
.t-splitter-dragging { user-select: none; }
|
|
290
|
-
|
|
291
|
-
/* Select menu (TSelectMenu). */
|
|
292
|
-
.t-select-menu-panel { min-width: 14rem; max-width: 100vw; }
|
|
293
|
-
.t-select-menu-items { max-height: 16rem; overflow-y: auto; padding-block: 0.25rem; }
|
|
294
|
-
.t-select-menu-items .dropdown-item { display: flex; align-items: center; }
|
|
295
|
-
|
|
296
|
-
/* Tags input (TInputTags). */
|
|
297
|
-
.t-tags {
|
|
298
|
-
display: flex;
|
|
299
|
-
flex-wrap: wrap;
|
|
300
|
-
align-items: center;
|
|
301
|
-
gap: 0.25rem;
|
|
302
|
-
height: auto;
|
|
303
|
-
cursor: text;
|
|
304
|
-
}
|
|
305
|
-
.t-tags.disabled { background: var(--tblr-bg-surface-secondary); cursor: default; }
|
|
306
|
-
.t-tag { display: inline-flex; align-items: center; gap: 0.25rem; }
|
|
307
|
-
.t-tag .btn-close { width: 0.5rem; height: 0.5rem; padding: 0; background-size: 0.5rem; }
|
|
308
|
-
.t-tags-input {
|
|
309
|
-
flex: 1 1 4rem;
|
|
310
|
-
min-width: 4rem;
|
|
311
|
-
padding: 0;
|
|
312
|
-
color: inherit;
|
|
313
|
-
background: transparent;
|
|
314
|
-
border: 0;
|
|
315
|
-
outline: 0;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/* Panel list (TPanelList): compact items in a section's side panel. */
|
|
319
|
-
.t-panel-list { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem; }
|
|
320
|
-
.t-panel-list-heading {
|
|
321
|
-
padding: 0.5rem 0.5rem 0.25rem;
|
|
322
|
-
font-size: 0.6875rem;
|
|
323
|
-
font-weight: var(--tblr-font-weight-semibold);
|
|
324
|
-
letter-spacing: 0.06em;
|
|
325
|
-
text-transform: uppercase;
|
|
326
|
-
color: var(--tblr-tertiary-color);
|
|
327
|
-
}
|
|
328
|
-
.t-panel-list-empty { margin: 0; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--tblr-secondary-color); }
|
|
329
|
-
.t-panel-list-item {
|
|
330
|
-
display: flex;
|
|
331
|
-
align-items: center;
|
|
332
|
-
gap: 0.5rem;
|
|
333
|
-
width: 100%;
|
|
334
|
-
padding: 0.375rem 0.5rem;
|
|
335
|
-
font-size: 0.875rem;
|
|
336
|
-
color: inherit;
|
|
337
|
-
text-align: start;
|
|
338
|
-
background: transparent;
|
|
339
|
-
border: 0;
|
|
340
|
-
border-radius: var(--tblr-border-radius);
|
|
341
|
-
}
|
|
342
|
-
.t-panel-list-item:hover { background: color-mix(in oklab, var(--tblr-body-color) 6%, transparent); }
|
|
343
|
-
.t-panel-list-item.active { color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 10%, transparent); }
|
|
344
|
-
.t-panel-list-item.invalid { color: var(--tblr-danger); }
|
|
345
|
-
.t-panel-list-icon { flex-shrink: 0; opacity: 0.7; }
|
|
346
|
-
.t-panel-list-trailing { flex-shrink: 0; font-size: 0.625rem; text-transform: uppercase; color: var(--tblr-secondary-color); }
|
|
347
|
-
|
|
348
|
-
/* Color picker (TColorPicker): the color beside the value. */
|
|
349
|
-
.t-color-swatch {
|
|
350
|
-
display: block;
|
|
351
|
-
width: 1.75rem;
|
|
352
|
-
height: 100%;
|
|
353
|
-
min-height: 1.5rem;
|
|
354
|
-
border-radius: calc(var(--tblr-border-radius) - 2px);
|
|
355
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
356
|
-
background-image: none;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/* Range slider (TRangeSlider): room for the handles, and above them for tooltips. */
|
|
360
|
-
.t-range-slider { margin: 0.75rem 0.5rem; }
|
|
361
|
-
.t-range-slider-tooltips { margin-top: 2.75rem; }
|
|
362
|
-
|
|
363
|
-
/* Sortable (TSortable): handles show they can be dragged. */
|
|
364
|
-
.t-sortable .sortable-handle { cursor: grab; touch-action: none; }
|
|
365
|
-
.t-sortable:not(.t-sortable-handles) > * { cursor: grab; }
|
|
366
|
-
|
|
367
|
-
/* The rich text editor (TRichEditor) keeps its corners with the inputs'. */
|
|
368
|
-
.t-rich-editor .tox-hugerte { border-radius: var(--tblr-border-radius); }
|
|
369
|
-
|
|
370
|
-
/* Copy button (TCopyButton): Tabler's clipboard plugin hides one label and shows the other. */
|
|
371
|
-
.t-copy-part { display: inline-flex; align-items: center; }
|
|
372
|
-
.t-copy-part[hidden] { display: none; }
|
|
373
|
-
|
|
374
|
-
/* Command palette (TCommandPalette): a search field, grouped results and key hints. */
|
|
375
|
-
.t-command { margin: calc(-1 * var(--tblr-modal-padding, 1.5rem)); }
|
|
376
|
-
.t-command .input-icon { border-bottom: var(--tblr-border-width) solid var(--tblr-border-color); }
|
|
377
|
-
.t-command .form-control:focus { box-shadow: none; }
|
|
378
|
-
.t-command-list { max-height: min(24rem, 60vh); overflow-y: auto; padding: 0.5rem; }
|
|
379
|
-
.t-command-group {
|
|
380
|
-
padding: 0.5rem 0.75rem 0.25rem;
|
|
381
|
-
font-size: 0.6875rem;
|
|
382
|
-
font-weight: var(--tblr-font-weight-semibold);
|
|
383
|
-
letter-spacing: 0.06em;
|
|
384
|
-
text-transform: uppercase;
|
|
385
|
-
color: var(--tblr-tertiary-color);
|
|
386
|
-
}
|
|
387
|
-
.t-command-item {
|
|
388
|
-
display: flex;
|
|
389
|
-
align-items: center;
|
|
390
|
-
gap: 0.625rem;
|
|
391
|
-
width: 100%;
|
|
392
|
-
padding: 0.5rem 0.75rem;
|
|
393
|
-
color: inherit;
|
|
394
|
-
text-align: start;
|
|
395
|
-
background: transparent;
|
|
396
|
-
border: 0;
|
|
397
|
-
border-radius: var(--tblr-border-radius);
|
|
398
|
-
}
|
|
399
|
-
.t-command-item.active { color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 10%, transparent); }
|
|
400
|
-
.t-command-footer {
|
|
401
|
-
display: flex;
|
|
402
|
-
gap: 1rem;
|
|
403
|
-
padding: 0.5rem 1rem;
|
|
404
|
-
font-size: 0.75rem;
|
|
405
|
-
color: var(--tblr-secondary-color);
|
|
406
|
-
border-top: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/* Search button (TSearchButton): looks like a search field. */
|
|
410
|
-
.t-search-button {
|
|
411
|
-
display: inline-flex;
|
|
412
|
-
align-items: center;
|
|
413
|
-
gap: 0.5rem;
|
|
414
|
-
width: 14rem;
|
|
415
|
-
height: 2.25rem;
|
|
416
|
-
padding: 0 0.5rem 0 0.75rem;
|
|
417
|
-
font-size: 0.875rem;
|
|
418
|
-
color: inherit;
|
|
419
|
-
background: var(--tblr-bg-forms, var(--tblr-bg-surface));
|
|
420
|
-
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
421
|
-
border-radius: var(--tblr-border-radius);
|
|
422
|
-
}
|
|
423
|
-
.t-search-button:hover { border-color: color-mix(in oklab, var(--tblr-primary) 40%, var(--tblr-border-color)); }
|
|
424
|
-
.t-search-button kbd, .t-command-footer kbd {
|
|
425
|
-
padding: 0.0625rem 0.375rem;
|
|
426
|
-
font-size: 0.6875rem;
|
|
427
|
-
color: var(--tblr-secondary-color);
|
|
428
|
-
background: var(--tblr-bg-surface-secondary);
|
|
429
|
-
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
430
|
-
box-shadow: none;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/* File upload (TFileUpload): a dashed area to drop files on or click. */
|
|
434
|
-
.t-file-upload-area {
|
|
435
|
-
display: flex;
|
|
436
|
-
flex-direction: column;
|
|
437
|
-
align-items: center;
|
|
438
|
-
gap: 0.25rem;
|
|
439
|
-
padding: 1.5rem 1rem;
|
|
440
|
-
text-align: center;
|
|
441
|
-
cursor: pointer;
|
|
442
|
-
background: var(--tblr-bg-surface);
|
|
443
|
-
border: 1px dashed var(--tblr-border-color);
|
|
444
|
-
border-radius: var(--tblr-border-radius);
|
|
445
|
-
transition: border-color 0.15s, background-color 0.15s;
|
|
446
|
-
}
|
|
447
|
-
.t-file-upload-area:hover,
|
|
448
|
-
.t-file-upload-area.over { border-color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 5%, var(--tblr-bg-surface)); }
|
|
449
|
-
.t-file-upload-area:focus-within { box-shadow: 0 0 0 0.25rem var(--tblr-focus-ring-color); }
|
|
450
|
-
.t-file-upload-area.is-invalid { border-color: var(--tblr-danger); }
|
|
451
|
-
.t-file-upload-area.disabled { cursor: default; opacity: 0.6; }
|
|
452
|
-
|
|
453
|
-
/* Toasts (TToaster): slide in from the side, and a colored edge for success and errors. */
|
|
454
|
-
.t-toast { min-width: 18rem; }
|
|
455
|
-
.t-toast-enter-active, .t-toast-leave-active { transition: opacity 0.2s, transform 0.2s; }
|
|
456
|
-
.t-toast-enter-from, .t-toast-leave-to { opacity: 0; transform: translateX(1rem); }
|
|
457
|
-
|
|
458
|
-
/* Tiles (TRadioGroup variant="tiles"): a picture of each choice, its label under it, and a radio
|
|
459
|
-
dot in the corner. The selected tile has a primary border. */
|
|
460
|
-
.t-radio-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--t-tile-width, 7rem), 1fr)); gap: 0.75rem; }
|
|
461
|
-
.t-radio-tile {
|
|
462
|
-
position: relative;
|
|
463
|
-
display: flex;
|
|
464
|
-
flex-direction: column;
|
|
465
|
-
gap: 0.375rem;
|
|
466
|
-
padding: 0.5rem;
|
|
467
|
-
cursor: pointer;
|
|
468
|
-
border: 1px solid var(--tblr-border-color);
|
|
469
|
-
border-radius: var(--tblr-border-radius);
|
|
470
|
-
transition: border-color 0.15s, background-color 0.15s;
|
|
471
|
-
}
|
|
472
|
-
.t-radio-tile:hover { border-color: color-mix(in oklab, var(--tblr-primary) 50%, var(--tblr-border-color)); }
|
|
473
|
-
.t-radio-tile.active { border-color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 6%, transparent); }
|
|
474
|
-
.t-radio-tile.disabled { cursor: default; opacity: 0.55; }
|
|
475
|
-
.t-radio-tile-input { position: absolute; opacity: 0; pointer-events: none; }
|
|
476
|
-
.t-radio-tile:has(.t-radio-tile-input:focus-visible) { box-shadow: 0 0 0 0.25rem var(--tblr-focus-ring-color); }
|
|
477
|
-
.t-radio-tile-check {
|
|
478
|
-
position: absolute;
|
|
479
|
-
top: 0.375rem;
|
|
480
|
-
left: 0.375rem;
|
|
481
|
-
z-index: 1;
|
|
482
|
-
width: 1rem;
|
|
483
|
-
height: 1rem;
|
|
484
|
-
border-radius: 50%;
|
|
485
|
-
background: var(--tblr-bg-surface);
|
|
486
|
-
border: 1px solid var(--tblr-border-color);
|
|
487
|
-
}
|
|
488
|
-
.t-radio-tile.active .t-radio-tile-check { background: var(--tblr-primary); border-color: var(--tblr-primary); box-shadow: inset 0 0 0 0.25rem var(--tblr-primary), inset 0 0 0 0.5rem var(--tblr-primary-fg, #fff); }
|
|
489
|
-
.t-radio-tile-preview {
|
|
490
|
-
display: flex;
|
|
491
|
-
align-items: center;
|
|
492
|
-
justify-content: center;
|
|
493
|
-
min-height: 4.5rem;
|
|
494
|
-
overflow: hidden;
|
|
495
|
-
color: var(--tblr-secondary-color);
|
|
496
|
-
background: var(--tblr-bg-surface-secondary);
|
|
497
|
-
border-radius: var(--tblr-border-radius-sm);
|
|
498
|
-
}
|
|
499
|
-
.t-radio-tile.active .t-radio-tile-preview { color: var(--tblr-body-color); }
|
|
500
|
-
.t-radio-tile-label { font-size: 0.8125rem; color: var(--tblr-secondary-color); }
|
|
501
|
-
.t-radio-tile.active .t-radio-tile-label { color: var(--tblr-body-color); font-weight: var(--tblr-font-weight-medium); }
|
|
502
|
-
|
|
503
|
-
/* Theme previews: what each theme choice looks like. */
|
|
504
|
-
.t-theme-font { font-size: 2rem; line-height: 1; }
|
|
505
|
-
.t-theme-radius { width:
|
|
506
|
-
.t-theme-swatches { display: flex; gap: 3px; }
|
|
507
|
-
.t-theme-swatches span { width: 0.75rem; height: 1rem; border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tblr-body-color) 15%, transparent); }
|
|
508
|
-
.t-accent-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
509
|
-
.t-accent-custom { position: relative; }
|
|
510
|
-
.t-accent-custom .form-colorinput-color { background: var(--tblr-bg-surface-secondary); border: 1px dashed var(--tblr-border-color); }
|
|
511
|
-
.t-accent-custom.active .form-colorinput-color { border: 0; box-shadow: 0 0 0 2px var(--tblr-bg-surface), 0 0 0 4px var(--tblr-primary); }
|
|
512
|
-
.t-accent-custom-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
|
513
|
-
|
|
514
|
-
/* A theme scope (TThemeScope): Tabler's theme settings for part of a page, such as a preview of an
|
|
515
|
-
application. Tabler works out radii, the primary's shades and (in the dark theme) the surfaces
|
|
516
|
-
once, at the root, and the Gears palette sets its own surfaces there; they're worked out again
|
|
517
|
-
here from the scope's base grays, as Tabler's defaults do, so they follow the scope's settings. */
|
|
518
|
-
.t-theme-scope {
|
|
519
|
-
--tblr-body-bg: light-dark(var(--tblr-gray-50), var(--tblr-gray-900));
|
|
520
|
-
--tblr-body-color: light-dark(var(--tblr-gray-700), var(--tblr-gray-200));
|
|
521
|
-
--tblr-secondary-color: color-mix(in oklab, var(--tblr-body-color) 75%, transparent);
|
|
522
|
-
--tblr-secondary: light-dark(var(--tblr-gray-500), var(--tblr-gray-400));
|
|
523
|
-
--tblr-muted: light-dark(var(--tblr-gray-500), var(--tblr-gray-400));
|
|
524
|
-
--tblr-bg-surface: light-dark(var(--tblr-white), var(--tblr-gray-800));
|
|
525
|
-
--tblr-bg-surface-secondary: light-dark(var(--tblr-gray-50), var(--tblr-gray-900));
|
|
526
|
-
--tblr-bg-surface-dark: var(--tblr-gray-900);
|
|
527
|
-
--tblr-bg-forms: light-dark(var(--tblr-bg-surface), var(--tblr-gray-900));
|
|
528
|
-
--tblr-border-color: light-dark(var(--tblr-gray-200), var(--tblr-gray-700));
|
|
529
|
-
--tblr-disabled-color: color-mix(in oklab, var(--tblr-body-color) 40%, transparent);
|
|
530
|
-
--tblr-border-radius-0: calc(0 * var(--tblr-border-radius-scale, 1));
|
|
531
|
-
--tblr-border-radius-xs: calc(2px * var(--tblr-border-radius-scale, 1));
|
|
532
|
-
--tblr-border-radius-sm: calc(4px * var(--tblr-border-radius-scale, 1));
|
|
533
|
-
--tblr-border-radius-md: calc(6px * var(--tblr-border-radius-scale, 1));
|
|
534
|
-
--tblr-border-radius-lg: calc(8px * var(--tblr-border-radius-scale, 1));
|
|
535
|
-
--tblr-border-radius-xl: calc(1rem * var(--tblr-border-radius-scale, 1));
|
|
536
|
-
--tblr-border-radius-xxl: calc(2rem * var(--tblr-border-radius-scale, 1));
|
|
537
|
-
--tblr-border-radius: var(--tblr-border-radius-md);
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
--tblr-
|
|
541
|
-
--tblr-
|
|
542
|
-
--tblr-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
.t-
|
|
562
|
-
|
|
563
|
-
/*
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
.t-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
.
|
|
593
|
-
.
|
|
594
|
-
.
|
|
595
|
-
.
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
.
|
|
600
|
-
.
|
|
601
|
-
.
|
|
602
|
-
.
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
.
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
.t-
|
|
612
|
-
.t-
|
|
613
|
-
.t-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
.t-
|
|
618
|
-
.t-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
.t-
|
|
1
|
+
/* Gears UI: Tabler (with its theme settings), the Tabler Icons webfont (self-hosted: a Gears server may have no internet),
|
|
2
|
+
and the Gears palette and the few classes Tabler doesn't have. Import it once in the app's entry. */
|
|
3
|
+
@import '@tabler/core/dist/css/tabler.min.css';
|
|
4
|
+
@import '@tabler/core/dist/css/tabler-themes.min.css';
|
|
5
|
+
@import '@tabler/icons-webfont/dist/tabler-icons.min.css';
|
|
6
|
+
|
|
7
|
+
/* The palette: primary #3673d1, darkest black #1c1d1d. Tabler builds its shades, subtle
|
|
8
|
+
backgrounds and focus rings from these, in both themes (light-dark() picks the side). */
|
|
9
|
+
:root {
|
|
10
|
+
--tblr-primary: #3673d1;
|
|
11
|
+
--tblr-primary-rgb: 54, 115, 209;
|
|
12
|
+
--tblr-link-color: light-dark(#3673d1, #5c90de);
|
|
13
|
+
--tblr-link-hover-color: light-dark(#2b5fae, #8bb2e9);
|
|
14
|
+
--tblr-font-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
15
|
+
--tblr-font-monospace: ui-monospace, 'Cascadia Code', Consolas, monospace;
|
|
16
|
+
--tblr-border-radius: 0.5rem;
|
|
17
|
+
|
|
18
|
+
/* Pages are a shade off white (darkest black in the dark theme); cards sit on them. */
|
|
19
|
+
--tblr-body-bg: light-dark(#f6f7f9, #1c1d1d);
|
|
20
|
+
--tblr-bg-surface: light-dark(#fff, #232525);
|
|
21
|
+
--tblr-bg-surface-secondary: light-dark(#f6f7f9, #1c1d1d);
|
|
22
|
+
--tblr-bg-surface-dark: #1c1d1d;
|
|
23
|
+
--tblr-border-color: light-dark(#e3e6eb, #2f3232);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* The sidebar is dark in both themes, in the darkest black. */
|
|
27
|
+
.navbar-vertical[data-bs-theme=dark] {
|
|
28
|
+
--tblr-navbar-bg: #1c1d1d;
|
|
29
|
+
--tblr-bg-surface: #1c1d1d;
|
|
30
|
+
--tblr-navbar-border-color: #2f3232;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* An extra-small button size, under Tabler's btn-sm. */
|
|
34
|
+
.btn-xs {
|
|
35
|
+
--tblr-btn-padding-y: 0.125rem;
|
|
36
|
+
--tblr-btn-padding-x: 0.375rem;
|
|
37
|
+
--tblr-btn-font-size: 0.75rem;
|
|
38
|
+
--tblr-btn-icon-size: 0.875rem;
|
|
39
|
+
--tblr-btn-line-height: 1.25rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Soft buttons: tinted, like Tabler's `-lt` backgrounds, with hover and active shades. */
|
|
43
|
+
.btn-soft {
|
|
44
|
+
--tblr-btn-color: var(--t-tint);
|
|
45
|
+
--tblr-btn-bg: color-mix(in oklab, var(--t-tint) 12%, transparent);
|
|
46
|
+
--tblr-btn-border-color: transparent;
|
|
47
|
+
--tblr-btn-hover-color: var(--t-tint);
|
|
48
|
+
--tblr-btn-hover-bg: color-mix(in oklab, var(--t-tint) 20%, transparent);
|
|
49
|
+
--tblr-btn-hover-border-color: transparent;
|
|
50
|
+
--tblr-btn-active-color: var(--t-tint);
|
|
51
|
+
--tblr-btn-active-bg: color-mix(in oklab, var(--t-tint) 28%, transparent);
|
|
52
|
+
--tblr-btn-active-border-color: transparent;
|
|
53
|
+
--tblr-btn-icon-color: var(--t-tint);
|
|
54
|
+
}
|
|
55
|
+
.btn-soft-primary { --t-tint: var(--tblr-primary); }
|
|
56
|
+
.btn-soft-secondary { --t-tint: var(--tblr-secondary); }
|
|
57
|
+
.btn-soft-success { --t-tint: var(--tblr-success); }
|
|
58
|
+
.btn-soft-warning { --t-tint: var(--tblr-warning); }
|
|
59
|
+
.btn-soft-danger { --t-tint: var(--tblr-danger); }
|
|
60
|
+
.btn-soft-info { --t-tint: var(--tblr-info); }
|
|
61
|
+
|
|
62
|
+
/* Icons from the webfont take the size of the text around them unless told otherwise. */
|
|
63
|
+
.ti.icon { line-height: 1; vertical-align: -0.125em; }
|
|
64
|
+
.ti-spin { animation: t-spin 1s linear infinite; }
|
|
65
|
+
@keyframes t-spin { to { transform: rotate(360deg); } }
|
|
66
|
+
|
|
67
|
+
/* The sidebar's fold toggle: a small circle on the sidebar's edge, in the sidebar's colors (its
|
|
68
|
+
background, its border, and its menu icons' color), so it suits a dark sidebar or a light one. */
|
|
69
|
+
.t-fold-toggle {
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 1.375rem;
|
|
72
|
+
inset-inline-end: -12px;
|
|
73
|
+
z-index: 1031;
|
|
74
|
+
place-items: center;
|
|
75
|
+
width: 24px;
|
|
76
|
+
height: 24px;
|
|
77
|
+
padding: 0;
|
|
78
|
+
color: color-mix(in oklab, var(--tblr-navbar-color, var(--tblr-body-color)) 70%, transparent);
|
|
79
|
+
background: var(--tblr-navbar-bg, var(--tblr-bg-surface));
|
|
80
|
+
border: 1px solid var(--tblr-navbar-border-color, var(--tblr-border-color));
|
|
81
|
+
border-radius: 50%;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
.t-fold-toggle:hover { color: var(--tblr-navbar-hover-color, var(--tblr-body-color)); border-color: color-mix(in oklab, var(--tblr-navbar-color, var(--tblr-body-color)) 45%, transparent); }
|
|
85
|
+
.t-fold-toggle:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; }
|
|
86
|
+
.t-fold-toggle .ti { font-size: 14px; width: 14px; height: 14px; line-height: 14px; vertical-align: 0; }
|
|
87
|
+
|
|
88
|
+
/* The top bar beside the sidebar keeps clear of the fold toggle on the sidebar's edge. */
|
|
89
|
+
@media (min-width: 992px) {
|
|
90
|
+
.t-topbar > .container-fluid { padding-inline-start: 1.75rem; }
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* A page that fills the height under the top bar and scrolls inside its own panels. */
|
|
94
|
+
.t-fill {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
min-height: 0;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
}
|
|
100
|
+
/* The shell is at least the window's height; a filling page takes what the top bar leaves (its
|
|
101
|
+
basis is 0, so it never grows the page past the window) and scrolls inside. */
|
|
102
|
+
.t-shell { min-height: 100svh; }
|
|
103
|
+
.t-page-fill { flex: 1 1 0; overflow: hidden; }
|
|
104
|
+
|
|
105
|
+
/* A work section: a secondary panel on the left and a large work area. */
|
|
106
|
+
.t-section {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex: 1 1 auto;
|
|
109
|
+
min-height: 0;
|
|
110
|
+
}
|
|
111
|
+
.t-section-panel {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
width: 16rem;
|
|
115
|
+
flex-shrink: 0;
|
|
116
|
+
background: var(--tblr-bg-surface);
|
|
117
|
+
border-inline-end: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
118
|
+
}
|
|
119
|
+
.t-section-panel-header {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
gap: 0.25rem;
|
|
124
|
+
height: 3rem;
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
padding-inline: 1rem 0.5rem;
|
|
127
|
+
border-bottom: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
128
|
+
}
|
|
129
|
+
.t-section-work {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
flex: 1 1 auto;
|
|
133
|
+
gap: 0.75rem;
|
|
134
|
+
min-width: 0;
|
|
135
|
+
min-height: 0;
|
|
136
|
+
padding: 1rem;
|
|
137
|
+
}
|
|
138
|
+
@media (max-width: 767.98px) {
|
|
139
|
+
.t-section-panel { display: none; }
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Log output: monospaced, on a slightly sunken surface. */
|
|
143
|
+
.t-log {
|
|
144
|
+
overflow: auto;
|
|
145
|
+
padding: 0.75rem;
|
|
146
|
+
margin: 0;
|
|
147
|
+
font-family: var(--tblr-font-monospace);
|
|
148
|
+
font-size: 0.75rem;
|
|
149
|
+
line-height: 1.25rem;
|
|
150
|
+
white-space: pre-wrap;
|
|
151
|
+
overflow-wrap: anywhere;
|
|
152
|
+
/* Tabler gives a pre light text, for its dark background; this one sits on the surface. */
|
|
153
|
+
color: var(--tblr-body-color);
|
|
154
|
+
background: var(--tblr-bg-surface-secondary);
|
|
155
|
+
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
156
|
+
border-radius: var(--tblr-border-radius);
|
|
157
|
+
}
|
|
158
|
+
.t-log-line { display: flex; gap: 0.75rem; }
|
|
159
|
+
.t-log-time { flex-shrink: 0; color: var(--tblr-tertiary-color); user-select: none; }
|
|
160
|
+
|
|
161
|
+
/* A stat card's tinted icon square. */
|
|
162
|
+
.t-stat-icon {
|
|
163
|
+
display: grid;
|
|
164
|
+
place-items: center;
|
|
165
|
+
width: 2.5rem;
|
|
166
|
+
height: 2.5rem;
|
|
167
|
+
flex-shrink: 0;
|
|
168
|
+
border-radius: var(--tblr-border-radius);
|
|
169
|
+
font-size: 1.25rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* A small segmented switch (Tabler has one size). */
|
|
173
|
+
.nav-segmented-sm {
|
|
174
|
+
--tblr-nav-height: 2rem;
|
|
175
|
+
--tblr-nav-link-padding-x: 0.625rem;
|
|
176
|
+
--tblr-nav-link-icon-size: 1rem;
|
|
177
|
+
font-size: 0.8125rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* A dropdown joined to the controls before or after it in a TFieldGroup (a split Save button). */
|
|
181
|
+
.input-group > .dropdown:not(:first-child) .btn {
|
|
182
|
+
margin-inline-start: calc(-1 * var(--tblr-border-width));
|
|
183
|
+
border-start-start-radius: 0;
|
|
184
|
+
border-end-start-radius: 0;
|
|
185
|
+
}
|
|
186
|
+
.input-group > .dropdown:not(:last-child) .btn {
|
|
187
|
+
border-start-end-radius: 0;
|
|
188
|
+
border-end-end-radius: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/*
|
|
192
|
+
* A sortable header's button. Tabler's inherits the cell's background color, but a cell shows its
|
|
193
|
+
* color through a box shadow, so in dark mode the button painted a box of a different shade.
|
|
194
|
+
*/
|
|
195
|
+
.table-sort { background: transparent; }
|
|
196
|
+
|
|
197
|
+
/* TAdvancedTable: a heading with its filter icon at the right, and the filter opened under it. */
|
|
198
|
+
.t-table-heading { display: flex; align-items: center; gap: 0.25rem; }
|
|
199
|
+
/* The label takes the room, aligned as the column is (start, center or end). */
|
|
200
|
+
.t-table-heading-label { flex: 1 1 auto; min-width: 0; }
|
|
201
|
+
.t-table-heading .table-sort { width: auto; margin: 0; padding: 0; }
|
|
202
|
+
.t-table-heading .t-table-filter-toggle { flex-shrink: 0; margin-block: -0.25rem; }
|
|
203
|
+
.t-table-filter {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
gap: 0.25rem;
|
|
207
|
+
min-width: 15rem;
|
|
208
|
+
margin-top: 0.375rem;
|
|
209
|
+
font-weight: var(--tblr-font-weight-normal);
|
|
210
|
+
text-transform: none;
|
|
211
|
+
letter-spacing: normal;
|
|
212
|
+
}
|
|
213
|
+
.t-table-filter > select { flex: 0 0 7.5rem; }
|
|
214
|
+
.t-table-filter > div { flex: 1 1 auto; min-width: 5rem; }
|
|
215
|
+
|
|
216
|
+
/* A table whose header stays in view while it scrolls in its container. */
|
|
217
|
+
.t-table-sticky {
|
|
218
|
+
min-height: 0;
|
|
219
|
+
overflow: auto;
|
|
220
|
+
}
|
|
221
|
+
.t-table-sticky thead th {
|
|
222
|
+
position: sticky;
|
|
223
|
+
top: 0;
|
|
224
|
+
z-index: 1;
|
|
225
|
+
background-color: var(--tblr-bg-surface);
|
|
226
|
+
box-shadow: inset 0 -1px 0 var(--tblr-border-color);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Code editor (TCodeEditor): Monaco fills the box; the box has the input's border. */
|
|
230
|
+
.t-code-editor {
|
|
231
|
+
position: relative;
|
|
232
|
+
min-height: 10rem;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
235
|
+
border-radius: var(--tblr-border-radius);
|
|
236
|
+
}
|
|
237
|
+
.t-code-editor-flush {
|
|
238
|
+
border: 0;
|
|
239
|
+
border-radius: 0;
|
|
240
|
+
}
|
|
241
|
+
.t-code-editor-host,
|
|
242
|
+
.t-code-editor-loading {
|
|
243
|
+
position: absolute;
|
|
244
|
+
inset: 0;
|
|
245
|
+
}
|
|
246
|
+
.t-code-editor-loading {
|
|
247
|
+
display: grid;
|
|
248
|
+
place-items: center;
|
|
249
|
+
background: var(--tblr-bg-surface);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* Splitter (TSplitter): two flex-column panes and a handle with a grip. */
|
|
253
|
+
.t-splitter {
|
|
254
|
+
display: flex;
|
|
255
|
+
flex: 1 1 auto;
|
|
256
|
+
min-width: 0;
|
|
257
|
+
min-height: 0;
|
|
258
|
+
}
|
|
259
|
+
.t-splitter-vertical { flex-direction: column; }
|
|
260
|
+
.t-splitter-pane {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-direction: column;
|
|
263
|
+
flex: 0 0 auto;
|
|
264
|
+
min-width: 0;
|
|
265
|
+
min-height: 0;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
}
|
|
268
|
+
.t-splitter-pane-end { flex: 1 1 0; }
|
|
269
|
+
.t-splitter-handle {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-shrink: 0;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
outline: none;
|
|
275
|
+
touch-action: none;
|
|
276
|
+
}
|
|
277
|
+
.t-splitter-horizontal > .t-splitter-handle { width: 0.75rem; cursor: col-resize; }
|
|
278
|
+
.t-splitter-vertical > .t-splitter-handle { height: 0.75rem; cursor: row-resize; }
|
|
279
|
+
.t-splitter-grip {
|
|
280
|
+
border-radius: 1rem;
|
|
281
|
+
background: var(--tblr-border-color);
|
|
282
|
+
transition: background-color 0.15s;
|
|
283
|
+
}
|
|
284
|
+
.t-splitter-horizontal .t-splitter-grip { width: 0.25rem; height: 3rem; }
|
|
285
|
+
.t-splitter-vertical .t-splitter-grip { width: 3rem; height: 0.25rem; }
|
|
286
|
+
.t-splitter-handle:hover .t-splitter-grip,
|
|
287
|
+
.t-splitter-handle:focus-visible .t-splitter-grip,
|
|
288
|
+
.t-splitter-dragging .t-splitter-grip { background: var(--tblr-primary); }
|
|
289
|
+
.t-splitter-dragging { user-select: none; }
|
|
290
|
+
|
|
291
|
+
/* Select menu (TSelectMenu). */
|
|
292
|
+
.t-select-menu-panel { min-width: 14rem; max-width: 100vw; }
|
|
293
|
+
.t-select-menu-items { max-height: 16rem; overflow-y: auto; padding-block: 0.25rem; }
|
|
294
|
+
.t-select-menu-items .dropdown-item { display: flex; align-items: center; }
|
|
295
|
+
|
|
296
|
+
/* Tags input (TInputTags). */
|
|
297
|
+
.t-tags {
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-wrap: wrap;
|
|
300
|
+
align-items: center;
|
|
301
|
+
gap: 0.25rem;
|
|
302
|
+
height: auto;
|
|
303
|
+
cursor: text;
|
|
304
|
+
}
|
|
305
|
+
.t-tags.disabled { background: var(--tblr-bg-surface-secondary); cursor: default; }
|
|
306
|
+
.t-tag { display: inline-flex; align-items: center; gap: 0.25rem; }
|
|
307
|
+
.t-tag .btn-close { width: 0.5rem; height: 0.5rem; padding: 0; background-size: 0.5rem; }
|
|
308
|
+
.t-tags-input {
|
|
309
|
+
flex: 1 1 4rem;
|
|
310
|
+
min-width: 4rem;
|
|
311
|
+
padding: 0;
|
|
312
|
+
color: inherit;
|
|
313
|
+
background: transparent;
|
|
314
|
+
border: 0;
|
|
315
|
+
outline: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Panel list (TPanelList): compact items in a section's side panel. */
|
|
319
|
+
.t-panel-list { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem; }
|
|
320
|
+
.t-panel-list-heading {
|
|
321
|
+
padding: 0.5rem 0.5rem 0.25rem;
|
|
322
|
+
font-size: 0.6875rem;
|
|
323
|
+
font-weight: var(--tblr-font-weight-semibold);
|
|
324
|
+
letter-spacing: 0.06em;
|
|
325
|
+
text-transform: uppercase;
|
|
326
|
+
color: var(--tblr-tertiary-color);
|
|
327
|
+
}
|
|
328
|
+
.t-panel-list-empty { margin: 0; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--tblr-secondary-color); }
|
|
329
|
+
.t-panel-list-item {
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
gap: 0.5rem;
|
|
333
|
+
width: 100%;
|
|
334
|
+
padding: 0.375rem 0.5rem;
|
|
335
|
+
font-size: 0.875rem;
|
|
336
|
+
color: inherit;
|
|
337
|
+
text-align: start;
|
|
338
|
+
background: transparent;
|
|
339
|
+
border: 0;
|
|
340
|
+
border-radius: var(--tblr-border-radius);
|
|
341
|
+
}
|
|
342
|
+
.t-panel-list-item:hover { background: color-mix(in oklab, var(--tblr-body-color) 6%, transparent); }
|
|
343
|
+
.t-panel-list-item.active { color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 10%, transparent); }
|
|
344
|
+
.t-panel-list-item.invalid { color: var(--tblr-danger); }
|
|
345
|
+
.t-panel-list-icon { flex-shrink: 0; opacity: 0.7; }
|
|
346
|
+
.t-panel-list-trailing { flex-shrink: 0; font-size: 0.625rem; text-transform: uppercase; color: var(--tblr-secondary-color); }
|
|
347
|
+
|
|
348
|
+
/* Color picker (TColorPicker): the color beside the value. */
|
|
349
|
+
.t-color-swatch {
|
|
350
|
+
display: block;
|
|
351
|
+
width: 1.75rem;
|
|
352
|
+
height: 100%;
|
|
353
|
+
min-height: 1.5rem;
|
|
354
|
+
border-radius: calc(var(--tblr-border-radius) - 2px);
|
|
355
|
+
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
356
|
+
background-image: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* Range slider (TRangeSlider): room for the handles, and above them for tooltips. */
|
|
360
|
+
.t-range-slider { margin: 0.75rem 0.5rem; }
|
|
361
|
+
.t-range-slider-tooltips { margin-top: 2.75rem; }
|
|
362
|
+
|
|
363
|
+
/* Sortable (TSortable): handles show they can be dragged. */
|
|
364
|
+
.t-sortable .sortable-handle { cursor: grab; touch-action: none; }
|
|
365
|
+
.t-sortable:not(.t-sortable-handles) > * { cursor: grab; }
|
|
366
|
+
|
|
367
|
+
/* The rich text editor (TRichEditor) keeps its corners with the inputs'. */
|
|
368
|
+
.t-rich-editor .tox-hugerte { border-radius: var(--tblr-border-radius); }
|
|
369
|
+
|
|
370
|
+
/* Copy button (TCopyButton): Tabler's clipboard plugin hides one label and shows the other. */
|
|
371
|
+
.t-copy-part { display: inline-flex; align-items: center; }
|
|
372
|
+
.t-copy-part[hidden] { display: none; }
|
|
373
|
+
|
|
374
|
+
/* Command palette (TCommandPalette): a search field, grouped results and key hints. */
|
|
375
|
+
.t-command { margin: calc(-1 * var(--tblr-modal-padding, 1.5rem)); }
|
|
376
|
+
.t-command .input-icon { border-bottom: var(--tblr-border-width) solid var(--tblr-border-color); }
|
|
377
|
+
.t-command .form-control:focus { box-shadow: none; }
|
|
378
|
+
.t-command-list { max-height: min(24rem, 60vh); overflow-y: auto; padding: 0.5rem; }
|
|
379
|
+
.t-command-group {
|
|
380
|
+
padding: 0.5rem 0.75rem 0.25rem;
|
|
381
|
+
font-size: 0.6875rem;
|
|
382
|
+
font-weight: var(--tblr-font-weight-semibold);
|
|
383
|
+
letter-spacing: 0.06em;
|
|
384
|
+
text-transform: uppercase;
|
|
385
|
+
color: var(--tblr-tertiary-color);
|
|
386
|
+
}
|
|
387
|
+
.t-command-item {
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: 0.625rem;
|
|
391
|
+
width: 100%;
|
|
392
|
+
padding: 0.5rem 0.75rem;
|
|
393
|
+
color: inherit;
|
|
394
|
+
text-align: start;
|
|
395
|
+
background: transparent;
|
|
396
|
+
border: 0;
|
|
397
|
+
border-radius: var(--tblr-border-radius);
|
|
398
|
+
}
|
|
399
|
+
.t-command-item.active { color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 10%, transparent); }
|
|
400
|
+
.t-command-footer {
|
|
401
|
+
display: flex;
|
|
402
|
+
gap: 1rem;
|
|
403
|
+
padding: 0.5rem 1rem;
|
|
404
|
+
font-size: 0.75rem;
|
|
405
|
+
color: var(--tblr-secondary-color);
|
|
406
|
+
border-top: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* Search button (TSearchButton): looks like a search field. */
|
|
410
|
+
.t-search-button {
|
|
411
|
+
display: inline-flex;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: 0.5rem;
|
|
414
|
+
width: 14rem;
|
|
415
|
+
height: 2.25rem;
|
|
416
|
+
padding: 0 0.5rem 0 0.75rem;
|
|
417
|
+
font-size: 0.875rem;
|
|
418
|
+
color: inherit;
|
|
419
|
+
background: var(--tblr-bg-forms, var(--tblr-bg-surface));
|
|
420
|
+
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
421
|
+
border-radius: var(--tblr-border-radius);
|
|
422
|
+
}
|
|
423
|
+
.t-search-button:hover { border-color: color-mix(in oklab, var(--tblr-primary) 40%, var(--tblr-border-color)); }
|
|
424
|
+
.t-search-button kbd, .t-command-footer kbd {
|
|
425
|
+
padding: 0.0625rem 0.375rem;
|
|
426
|
+
font-size: 0.6875rem;
|
|
427
|
+
color: var(--tblr-secondary-color);
|
|
428
|
+
background: var(--tblr-bg-surface-secondary);
|
|
429
|
+
border: var(--tblr-border-width) solid var(--tblr-border-color);
|
|
430
|
+
box-shadow: none;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* File upload (TFileUpload): a dashed area to drop files on or click. */
|
|
434
|
+
.t-file-upload-area {
|
|
435
|
+
display: flex;
|
|
436
|
+
flex-direction: column;
|
|
437
|
+
align-items: center;
|
|
438
|
+
gap: 0.25rem;
|
|
439
|
+
padding: 1.5rem 1rem;
|
|
440
|
+
text-align: center;
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
background: var(--tblr-bg-surface);
|
|
443
|
+
border: 1px dashed var(--tblr-border-color);
|
|
444
|
+
border-radius: var(--tblr-border-radius);
|
|
445
|
+
transition: border-color 0.15s, background-color 0.15s;
|
|
446
|
+
}
|
|
447
|
+
.t-file-upload-area:hover,
|
|
448
|
+
.t-file-upload-area.over { border-color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 5%, var(--tblr-bg-surface)); }
|
|
449
|
+
.t-file-upload-area:focus-within { box-shadow: 0 0 0 0.25rem var(--tblr-focus-ring-color); }
|
|
450
|
+
.t-file-upload-area.is-invalid { border-color: var(--tblr-danger); }
|
|
451
|
+
.t-file-upload-area.disabled { cursor: default; opacity: 0.6; }
|
|
452
|
+
|
|
453
|
+
/* Toasts (TToaster): slide in from the side, and a colored edge for success and errors. */
|
|
454
|
+
.t-toast { min-width: 18rem; }
|
|
455
|
+
.t-toast-enter-active, .t-toast-leave-active { transition: opacity 0.2s, transform 0.2s; }
|
|
456
|
+
.t-toast-enter-from, .t-toast-leave-to { opacity: 0; transform: translateX(1rem); }
|
|
457
|
+
|
|
458
|
+
/* Tiles (TRadioGroup variant="tiles"): a picture of each choice, its label under it, and a radio
|
|
459
|
+
dot in the corner. The selected tile has a primary border. */
|
|
460
|
+
.t-radio-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--t-tile-width, 7rem), 1fr)); gap: 0.75rem; }
|
|
461
|
+
.t-radio-tile {
|
|
462
|
+
position: relative;
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: column;
|
|
465
|
+
gap: 0.375rem;
|
|
466
|
+
padding: 0.5rem;
|
|
467
|
+
cursor: pointer;
|
|
468
|
+
border: 1px solid var(--tblr-border-color);
|
|
469
|
+
border-radius: var(--tblr-border-radius);
|
|
470
|
+
transition: border-color 0.15s, background-color 0.15s;
|
|
471
|
+
}
|
|
472
|
+
.t-radio-tile:hover { border-color: color-mix(in oklab, var(--tblr-primary) 50%, var(--tblr-border-color)); }
|
|
473
|
+
.t-radio-tile.active { border-color: var(--tblr-primary); background: color-mix(in oklab, var(--tblr-primary) 6%, transparent); }
|
|
474
|
+
.t-radio-tile.disabled { cursor: default; opacity: 0.55; }
|
|
475
|
+
.t-radio-tile-input { position: absolute; opacity: 0; pointer-events: none; }
|
|
476
|
+
.t-radio-tile:has(.t-radio-tile-input:focus-visible) { box-shadow: 0 0 0 0.25rem var(--tblr-focus-ring-color); }
|
|
477
|
+
.t-radio-tile-check {
|
|
478
|
+
position: absolute;
|
|
479
|
+
top: 0.375rem;
|
|
480
|
+
left: 0.375rem;
|
|
481
|
+
z-index: 1;
|
|
482
|
+
width: 1rem;
|
|
483
|
+
height: 1rem;
|
|
484
|
+
border-radius: 50%;
|
|
485
|
+
background: var(--tblr-bg-surface);
|
|
486
|
+
border: 1px solid var(--tblr-border-color);
|
|
487
|
+
}
|
|
488
|
+
.t-radio-tile.active .t-radio-tile-check { background: var(--tblr-primary); border-color: var(--tblr-primary); box-shadow: inset 0 0 0 0.25rem var(--tblr-primary), inset 0 0 0 0.5rem var(--tblr-primary-fg, #fff); }
|
|
489
|
+
.t-radio-tile-preview {
|
|
490
|
+
display: flex;
|
|
491
|
+
align-items: center;
|
|
492
|
+
justify-content: center;
|
|
493
|
+
min-height: 4.5rem;
|
|
494
|
+
overflow: hidden;
|
|
495
|
+
color: var(--tblr-secondary-color);
|
|
496
|
+
background: var(--tblr-bg-surface-secondary);
|
|
497
|
+
border-radius: var(--tblr-border-radius-sm);
|
|
498
|
+
}
|
|
499
|
+
.t-radio-tile.active .t-radio-tile-preview { color: var(--tblr-body-color); }
|
|
500
|
+
.t-radio-tile-label { font-size: 0.8125rem; color: var(--tblr-secondary-color); }
|
|
501
|
+
.t-radio-tile.active .t-radio-tile-label { color: var(--tblr-body-color); font-weight: var(--tblr-font-weight-medium); }
|
|
502
|
+
|
|
503
|
+
/* Theme previews: what each theme choice looks like. */
|
|
504
|
+
.t-theme-font { font-size: 2rem; line-height: 1; }
|
|
505
|
+
.t-theme-radius { width: 3rem; height: 2.25rem; background: var(--tblr-primary); opacity: 0.85; }
|
|
506
|
+
.t-theme-swatches { display: flex; gap: 3px; }
|
|
507
|
+
.t-theme-swatches span { width: 0.75rem; height: 1rem; border-radius: 2px; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tblr-body-color) 15%, transparent); }
|
|
508
|
+
.t-accent-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
509
|
+
.t-accent-custom { position: relative; }
|
|
510
|
+
.t-accent-custom .form-colorinput-color { background: var(--tblr-bg-surface-secondary); border: 1px dashed var(--tblr-border-color); }
|
|
511
|
+
.t-accent-custom.active .form-colorinput-color { border: 0; box-shadow: 0 0 0 2px var(--tblr-bg-surface), 0 0 0 4px var(--tblr-primary); }
|
|
512
|
+
.t-accent-custom-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
|
|
513
|
+
|
|
514
|
+
/* A theme scope (TThemeScope): Tabler's theme settings for part of a page, such as a preview of an
|
|
515
|
+
application. Tabler works out radii, the primary's shades and (in the dark theme) the surfaces
|
|
516
|
+
once, at the root, and the Gears palette sets its own surfaces there; they're worked out again
|
|
517
|
+
here from the scope's base grays, as Tabler's defaults do, so they follow the scope's settings. */
|
|
518
|
+
.t-theme-scope {
|
|
519
|
+
--tblr-body-bg: light-dark(var(--tblr-gray-50), var(--tblr-gray-900));
|
|
520
|
+
--tblr-body-color: light-dark(var(--tblr-gray-700), var(--tblr-gray-200));
|
|
521
|
+
--tblr-secondary-color: color-mix(in oklab, var(--tblr-body-color) 75%, transparent);
|
|
522
|
+
--tblr-secondary: light-dark(var(--tblr-gray-500), var(--tblr-gray-400));
|
|
523
|
+
--tblr-muted: light-dark(var(--tblr-gray-500), var(--tblr-gray-400));
|
|
524
|
+
--tblr-bg-surface: light-dark(var(--tblr-white), var(--tblr-gray-800));
|
|
525
|
+
--tblr-bg-surface-secondary: light-dark(var(--tblr-gray-50), var(--tblr-gray-900));
|
|
526
|
+
--tblr-bg-surface-dark: var(--tblr-gray-900);
|
|
527
|
+
--tblr-bg-forms: light-dark(var(--tblr-bg-surface), var(--tblr-gray-900));
|
|
528
|
+
--tblr-border-color: light-dark(var(--tblr-gray-200), var(--tblr-gray-700));
|
|
529
|
+
--tblr-disabled-color: color-mix(in oklab, var(--tblr-body-color) 40%, transparent);
|
|
530
|
+
--tblr-border-radius-0: calc(0 * var(--tblr-border-radius-scale, 1));
|
|
531
|
+
--tblr-border-radius-xs: calc(2px * var(--tblr-border-radius-scale, 1));
|
|
532
|
+
--tblr-border-radius-sm: calc(4px * var(--tblr-border-radius-scale, 1));
|
|
533
|
+
--tblr-border-radius-md: calc(6px * var(--tblr-border-radius-scale, 1));
|
|
534
|
+
--tblr-border-radius-lg: calc(8px * var(--tblr-border-radius-scale, 1));
|
|
535
|
+
--tblr-border-radius-xl: calc(1rem * var(--tblr-border-radius-scale, 1));
|
|
536
|
+
--tblr-border-radius-xxl: calc(2rem * var(--tblr-border-radius-scale, 1));
|
|
537
|
+
--tblr-border-radius: var(--tblr-border-radius-md);
|
|
538
|
+
/* Fields of every size take the theme's radius. (Tabler declares these once at the root, and
|
|
539
|
+
gives small and large fields its sm and lg radius.) */
|
|
540
|
+
--tblr-btn-input-border-radius: var(--tblr-border-radius);
|
|
541
|
+
--tblr-btn-input-sm-border-radius: var(--tblr-border-radius);
|
|
542
|
+
--tblr-btn-input-lg-border-radius: var(--tblr-border-radius);
|
|
543
|
+
--tblr-primary-darken: oklch(from var(--tblr-primary) calc(l - 0.06) c h);
|
|
544
|
+
--tblr-primary-lt: color-mix(in oklab, var(--tblr-primary) 10%, transparent);
|
|
545
|
+
--tblr-control-checked-bg: var(--tblr-primary);
|
|
546
|
+
--tblr-link-color: light-dark(var(--tblr-primary), color-mix(in oklab, var(--tblr-white) 40%, var(--tblr-primary)));
|
|
547
|
+
--tblr-link-hover-color: light-dark(color-mix(in oklab, var(--tblr-black) 20%, var(--tblr-link-color)), color-mix(in oklab, var(--tblr-white) 20%, var(--tblr-link-color)));
|
|
548
|
+
font-family: var(--tblr-body-font-family);
|
|
549
|
+
color: var(--tblr-body-color);
|
|
550
|
+
background: var(--tblr-body-bg);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/* A theme scope's corner radius (data-bs-theme-radius): the base radius becomes one of Tabler's sizes,
|
|
554
|
+
0, xs (2px), sm (4px), md (6px, Tabler's own), lg (8px) or xl (1rem), by setting the scale that puts
|
|
555
|
+
md there, so every other corner (cards, badges, fields) follows in proportion. */
|
|
556
|
+
.t-theme-scope[data-bs-theme-radius="0"] { --tblr-border-radius-scale: 0; }
|
|
557
|
+
.t-theme-scope[data-bs-theme-radius="0.5"] { --tblr-border-radius-scale: calc(2 / 6); }
|
|
558
|
+
.t-theme-scope[data-bs-theme-radius="1"] { --tblr-border-radius-scale: calc(4 / 6); }
|
|
559
|
+
.t-theme-scope[data-bs-theme-radius="1.5"] { --tblr-border-radius-scale: 1; }
|
|
560
|
+
.t-theme-scope[data-bs-theme-radius="2"] { --tblr-border-radius-scale: calc(8 / 6); }
|
|
561
|
+
.t-theme-scope[data-bs-theme-radius="2.5"] { --tblr-border-radius-scale: calc(16 / 6); }
|
|
562
|
+
|
|
563
|
+
/* Buttons of every size take the theme's radius too, as fields do. */
|
|
564
|
+
.t-theme-scope :is(.btn-sm, .btn-group-sm > .btn, .btn-lg, .btn-group-lg > .btn, .btn-xl, .btn-group-xl > .btn, .btn-xs) {
|
|
565
|
+
--tblr-btn-border-radius: var(--tblr-border-radius);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/* Image upload (TImageUpload): the image beside what the area takes. */
|
|
569
|
+
.t-image-upload-area { flex-direction: row; justify-content: flex-start; gap: 1rem; padding: 1rem; text-align: start; }
|
|
570
|
+
.t-image-upload-preview {
|
|
571
|
+
display: flex;
|
|
572
|
+
flex-shrink: 0;
|
|
573
|
+
align-items: center;
|
|
574
|
+
justify-content: center;
|
|
575
|
+
width: 4.5rem;
|
|
576
|
+
height: 4.5rem;
|
|
577
|
+
overflow: hidden;
|
|
578
|
+
background: var(--tblr-bg-surface-secondary);
|
|
579
|
+
border-radius: var(--tblr-border-radius);
|
|
580
|
+
}
|
|
581
|
+
.t-image-upload-preview img { width: 100%; height: 100%; object-fit: contain; }
|
|
582
|
+
|
|
583
|
+
/* Density (TThemeScope's theme.density, or data-t-density on any element): the padding inside
|
|
584
|
+
cards, tables, buttons and fields, and the page's gaps (--t-gap, for layouts to use).
|
|
585
|
+
Comfortable is Tabler's own spacing. Each density stops at a nested density (an App Builder
|
|
586
|
+
preview inside a compact Studio keeps its own), so the rules are scoped "to" the next one, and
|
|
587
|
+
every density sets the variables it inherits. */
|
|
588
|
+
[data-t-density] { --t-gap: 1rem; --tblr-page-padding-y: var(--tblr-spacer-4); }
|
|
589
|
+
[data-t-density=compact] { --t-gap: 0.625rem; --tblr-page-padding-y: 0.75rem; }
|
|
590
|
+
[data-t-density=spacious] { --t-gap: 1.5rem; --tblr-page-padding-y: 2rem; }
|
|
591
|
+
@scope ([data-t-density=compact]) to ([data-t-density]) {
|
|
592
|
+
:scope .card { --tblr-card-spacer-y: 0.75rem; --tblr-card-spacer-x: 0.875rem; --tblr-card-cap-padding-y: 0.625rem; --tblr-card-cap-padding-x: 0.875rem; --tblr-card-title-spacer-y: 0.625rem; }
|
|
593
|
+
:scope .table:not(.table-sm) > :not(caption) > * > * { padding: 0.375rem 0.625rem; }
|
|
594
|
+
:scope .btn:not(.btn-sm, .btn-lg, .btn-xs, .btn-icon) { --tblr-btn-padding-y: 0.3125rem; --tblr-btn-padding-x: 0.75rem; }
|
|
595
|
+
:scope :is(.form-control, .form-select):not(.form-control-sm, .form-select-sm, .form-control-lg, .form-select-lg) { --tblr-control-padding-y: 0.3125rem; --tblr-control-padding-x: 0.625rem; }
|
|
596
|
+
:scope .navbar-vertical .nav-link { padding-block: 0.3125rem; }
|
|
597
|
+
}
|
|
598
|
+
@scope ([data-t-density=spacious]) to ([data-t-density]) {
|
|
599
|
+
:scope .card { --tblr-card-spacer-y: 1.75rem; --tblr-card-spacer-x: 1.75rem; --tblr-card-cap-padding-y: 1.5rem; --tblr-card-cap-padding-x: 1.75rem; --tblr-card-title-spacer-y: 1.5rem; }
|
|
600
|
+
:scope .table:not(.table-sm) > :not(caption) > * > * { padding: 1rem 1.25rem; }
|
|
601
|
+
:scope .btn:not(.btn-sm, .btn-lg, .btn-xs, .btn-icon) { --tblr-btn-padding-y: 0.75rem; --tblr-btn-padding-x: 1.375rem; }
|
|
602
|
+
:scope :is(.form-control, .form-select):not(.form-control-sm, .form-select-sm, .form-control-lg, .form-select-lg) { --tblr-control-padding-y: 0.75rem; --tblr-control-padding-x: 1.125rem; }
|
|
603
|
+
:scope .navbar-vertical .nav-link { padding-block: 0.75rem; }
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* Layout sketches (TNavPositionPicker, TContainerPicker, TDensityPicker): a page drawn in a tile. */
|
|
607
|
+
.t-sketch { display: flex; gap: 3px; width: 5.5rem; height: 3.5rem; padding: 3px; border-radius: 4px; }
|
|
608
|
+
.t-sketch-top { flex-direction: column; }
|
|
609
|
+
.t-sketch-nav { flex-shrink: 0; border-radius: 2px; background: color-mix(in oklab, var(--tblr-body-color) 35%, transparent); }
|
|
610
|
+
.t-sketch-left .t-sketch-nav { width: 0.875rem; }
|
|
611
|
+
.t-sketch-top .t-sketch-nav { height: 0.5rem; }
|
|
612
|
+
.t-sketch-page { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 3px; border-radius: 2px; background: var(--tblr-bg-surface); }
|
|
613
|
+
.t-sketch-page span { height: 0.375rem; border-radius: 1px; background: color-mix(in oklab, var(--tblr-body-color) 15%, transparent); }
|
|
614
|
+
.t-sketch-page span:first-child { width: 60%; background: var(--tblr-primary); opacity: 0.7; }
|
|
615
|
+
.t-sketch-boxed { padding: 3px 0.75rem; background: color-mix(in oklab, var(--tblr-body-color) 18%, transparent); }
|
|
616
|
+
.t-sketch-rows { display: flex; flex-direction: column; justify-content: center; width: 5.5rem; height: 3.5rem; }
|
|
617
|
+
.t-sketch-rows span { height: 0.3125rem; border-radius: 1px; background: color-mix(in oklab, var(--tblr-body-color) 25%, transparent); }
|
|
618
|
+
.t-sketch-compact { gap: 2px; }
|
|
619
|
+
.t-sketch-comfortable { gap: 5px; }
|
|
620
|
+
.t-sketch-spacious { gap: 9px; }
|
|
621
|
+
.t-sketch-rows span:first-child { background: var(--tblr-primary); opacity: 0.7; }
|
|
622
|
+
|
|
623
|
+
/* An application's frame (TAppLayout). The sidebar follows the theme (the Studio's is always
|
|
624
|
+
dark); a floating top bar sits apart from the page's edges, rounded, with a shadow. */
|
|
625
|
+
.t-app { min-height: 100%; display: flex; flex-direction: column; }
|
|
626
|
+
.t-app > .page { flex: 1; width: 100%; }
|
|
627
|
+
.t-app-logo { width: 2rem; height: 2rem; object-fit: contain; border-radius: var(--tblr-border-radius-sm); }
|
|
628
|
+
.t-app .navbar-brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-weight: var(--tblr-font-weight-bold); }
|
|
629
|
+
/* Tabler spreads a vertical navbar's brand across it; keep the name beside the logo. */
|
|
630
|
+
.t-app .t-app-sidebar.navbar-vertical .navbar-brand { justify-content: flex-start; }
|
|
631
|
+
.t-app-floating { margin: var(--t-gap, 1rem) var(--t-gap, 1rem) 0; border: var(--tblr-border-width) solid var(--tblr-border-color); border-radius: var(--tblr-border-radius-lg); box-shadow: var(--tblr-shadow-card, 0 4px 16px rgba(0, 0, 0, 0.08)); }
|
|
632
|
+
.t-app-floating.sticky-top { top: var(--t-gap, 1rem); }
|
|
633
|
+
.layout-boxed .t-app-floating { margin-inline: 0; }
|
|
634
|
+
|
|
635
|
+
/* A scaled frame (TScaledFrame): a whole screen, scaled down to fit. The screen is the containing
|
|
636
|
+
block for fixed parts, so a fixed sidebar stays in the frame. */
|
|
637
|
+
.t-scaled-frame { position: relative; height: 100%; min-height: 0; overflow: hidden; }
|
|
638
|
+
.t-scaled-screen { position: absolute; top: 0; left: 0; overflow: hidden; transform-origin: top left; }
|
|
639
|
+
.t-scaled-scroll { height: 100%; overflow: auto; }
|
|
640
|
+
|
|
641
|
+
/* A sortable tree (TSortableTree): children indented under their item. While something is dragged,
|
|
642
|
+
each empty child list opens to a dashed slot, to drop into. */
|
|
643
|
+
.t-tree-children { margin-inline-start: 1.75rem; }
|
|
644
|
+
.t-tree-dragging .t-tree-children.t-tree-empty {
|
|
645
|
+
min-height: 0.875rem;
|
|
646
|
+
margin-block: 2px;
|
|
647
|
+
border: 1px dashed color-mix(in oklab, var(--tblr-primary) 45%, var(--tblr-border-color));
|
|
648
|
+
border-radius: var(--tblr-border-radius-sm);
|
|
649
|
+
}
|
|
650
|
+
.t-tree .sortable-ghost { opacity: 0.4; }
|
|
651
|
+
.t-tree .sortable-chosen > :first-child { background: color-mix(in oklab, var(--tblr-primary) 6%, transparent); }
|
|
652
|
+
|
|
653
|
+
/* Editable table (TEditableTable): the search beside the title; the selection in the footer. */
|
|
654
|
+
.t-editable-table-search { width: 14rem; max-width: 100%; }
|
|
655
|
+
.t-editable-table-footer { min-height: 2rem; }
|
|
656
|
+
/* The whole cell edits: a hint of a field on hover. */
|
|
657
|
+
.t-cell-clickable { cursor: text; }
|
|
658
|
+
.t-cell-clickable:hover { box-shadow: inset 0 0 0 1px var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); }
|
|
659
|
+
.t-editable-table-editable:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 2px; border-radius: 2px; }
|
|
660
|
+
.t-editable-table-editor { min-width: 8rem; margin-block: -0.25rem; }
|
|
661
|
+
|
|
662
|
+
/* Charts (TChart) and sparklines: a chart keeps its height while ApexCharts loads; a stat card's
|
|
663
|
+
sparkline spans the card. */
|
|
664
|
+
.t-chart { min-height: 1px; }
|
|
665
|
+
.t-stat-sparkline { display: block; width: 100%; }
|
|
666
|
+
.t-stat-sparkline svg { width: 100%; height: 2.25rem; }
|