@itkeazco/graphite 0.0.0-stage → 1.3.0
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/CHANGELOG.md +68 -0
- package/README.md +271 -2
- package/bin/graphite.js +94 -0
- package/dist/fonts.css +2 -0
- package/dist/icon-sets/phosphor-bold.json +1 -0
- package/dist/icon-sets/phosphor-light.json +1 -0
- package/dist/icon-sets/phosphor-regular.json +1 -0
- package/dist/icon-sets/tabler.json +1 -0
- package/dist/index.css +5 -0
- package/dist/index.d.ts +658 -0
- package/dist/index.js +2227 -0
- package/dist/layers.css +866 -0
- package/dist/neutrals.css +572 -0
- package/dist/styles.css +655 -0
- package/dist/tokens.css +824 -0
- package/dist/tokens.d.ts +35 -0
- package/dist/tokens.js +2 -0
- package/dist/tokens.json +884 -0
- package/dist/typography.css +26 -0
- package/package.json +90 -4
- package/rules/graphite.mdc +100 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
@import "./layers.css";
|
|
2
|
+
/* ---------- Base ---------- */
|
|
3
|
+
.gt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
4
|
+
.gt-icon { flex: none; display: block; }
|
|
5
|
+
/* The hidden attribute always wins over a Graphite display rule (e.g. a swapped show/hide icon). */
|
|
6
|
+
:where([class*="gt-"])[hidden] { display: none !important; }
|
|
7
|
+
.gt-btn, .gt-iconbtn, .gt-seg, .gt-slider, .gt-switch, .gt-check, .gt-radio, .gt-rgroup, .gt-chip, .gt-field, .gt-row, .gt-badge, .gt-avatar, .gt-kbd, .gt-progress, .gt-tip, .gt-toast, .gt-panel, .gt-stage, .gt-dialog, .gt-inline, .gt-card, .gt-divider, .gt-chart, .gt-stat, .gt-cp, .gt-popover {
|
|
8
|
+
font-family: var(--font-sans); -webkit-font-smoothing: antialiased; box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
/* Shared focus state */
|
|
11
|
+
.gt-btn:focus-visible, .gt-btn.is-focus, .gt-iconbtn:focus-visible, .gt-iconbtn.is-focus, .gt-seg__opt:focus-visible, .gt-seg__opt.is-focus,
|
|
12
|
+
.gt-slider:focus-visible, .gt-slider.is-focus, .gt-switch:focus-visible, .gt-switch.is-focus,
|
|
13
|
+
.gt-chip:focus-visible, .gt-chip.is-focus, .gt-toast__action:focus-visible,
|
|
14
|
+
.gt-check input:focus-visible + .gt-check__box, .gt-check.is-focus .gt-check__box,
|
|
15
|
+
.gt-rdot:focus-visible, .gt-radio-item.is-focus .gt-rdot, .gt-radio:has(.gt-rdot:focus-visible), .gt-radio.is-focus,
|
|
16
|
+
.gt-row--action:focus-visible, .gt-row.is-focus {
|
|
17
|
+
outline: var(--focus-width) solid var(--color-border-focus-primary); outline-offset: var(--focus-offset);
|
|
18
|
+
}
|
|
19
|
+
/* Shared disabled state */
|
|
20
|
+
.gt-btn:disabled, .gt-btn.is-disabled, .gt-iconbtn:disabled, .gt-iconbtn.is-disabled, .gt-switch:disabled, .gt-switch.is-disabled,
|
|
21
|
+
.gt-slider.is-disabled, .gt-check.is-disabled, .gt-radio.is-disabled, .gt-radio-item.is-disabled, .gt-chip:disabled, .gt-chip.is-disabled, .gt-field.is-disabled, .gt-seg.is-disabled {
|
|
22
|
+
opacity: var(--opacity-disabled); cursor: not-allowed; pointer-events: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* ---------- Button ---------- */
|
|
26
|
+
.gt-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--button-gap); border: 1px solid transparent; border-radius: var(--button-radius); font-size: var(--button-font-size); line-height: var(--button-line-height); font-weight: var(--button-font-weight); cursor: pointer; white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
|
|
27
|
+
.gt-btn:active, .gt-btn.is-pressed { transform: scale(var(--scale-pressed)); }
|
|
28
|
+
.gt-btn--xs { height: var(--button-height-xs); padding: 0 var(--button-padding-x-xs); font-size: var(--button-font-size-sm); gap: var(--space-4); }
|
|
29
|
+
.gt-btn--tertiary { background: transparent; color: var(--button-ghost-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
|
30
|
+
.gt-btn--tertiary:hover, .gt-btn--tertiary.is-hover { background: var(--button-ghost-bg-hover); }
|
|
31
|
+
.gt-btn--tertiary:active, .gt-btn--tertiary.is-pressed { background: var(--button-ghost-bg-pressed); }
|
|
32
|
+
.gt-btn--sm { height: var(--button-height-sm); padding: 0 var(--button-padding-x-sm); font-size: var(--button-font-size-sm); }
|
|
33
|
+
.gt-btn--md { height: var(--button-height-md); padding: 0 var(--button-padding-x-md); }
|
|
34
|
+
.gt-btn--lg { height: var(--button-height-lg); padding: 0 var(--button-padding-x-lg); font-size: var(--button-font-size-lg); }
|
|
35
|
+
.gt-btn--block { display: flex; width: 100%; }
|
|
36
|
+
.gt-btn--primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
|
|
37
|
+
.gt-btn--primary:hover, .gt-btn--primary.is-hover { background: var(--button-primary-bg-hover); }
|
|
38
|
+
.gt-btn--primary:active, .gt-btn--primary.is-pressed { background: var(--button-primary-bg-pressed); }
|
|
39
|
+
.gt-btn--secondary, .gt-btn--danger { background: var(--button-secondary-bg); color: var(--button-secondary-fg); border-color: var(--button-secondary-border); }
|
|
40
|
+
.gt-btn--danger { color: var(--button-danger-fg); }
|
|
41
|
+
.gt-btn--secondary:hover, .gt-btn--secondary.is-hover, .gt-btn--danger:hover, .gt-btn--danger.is-hover { background: var(--button-secondary-bg-hover); border-color: var(--button-secondary-border-hover); }
|
|
42
|
+
.gt-btn--secondary:active, .gt-btn--secondary.is-pressed, .gt-btn--danger:active, .gt-btn--danger.is-pressed { background: var(--button-secondary-bg-pressed); }
|
|
43
|
+
.gt-btn--soft { background: var(--button-soft-bg); color: var(--button-soft-fg); }
|
|
44
|
+
.gt-btn--soft:hover, .gt-btn--soft.is-hover { background: var(--button-soft-bg-hover); }
|
|
45
|
+
.gt-btn--soft:active, .gt-btn--soft.is-pressed { background: var(--button-soft-bg-pressed); }
|
|
46
|
+
.gt-btn--ghost { background: transparent; color: var(--button-ghost-fg); }
|
|
47
|
+
.gt-btn--ghost:hover, .gt-btn--ghost.is-hover { background: var(--button-ghost-bg-hover); }
|
|
48
|
+
.gt-btn--ghost:active, .gt-btn--ghost.is-pressed { background: var(--button-ghost-bg-pressed); }
|
|
49
|
+
.gt-btn--overlay { background: var(--button-overlay-bg); color: var(--button-overlay-fg); border-color: transparent; }
|
|
50
|
+
.gt-btn--overlay:hover, .gt-btn--overlay.is-hover { background: var(--button-overlay-bg-hover); }
|
|
51
|
+
.gt-btn--overlay:active, .gt-btn--overlay.is-pressed { background: var(--button-overlay-bg-pressed); }
|
|
52
|
+
.gt-btn.is-loading { pointer-events: none; }
|
|
53
|
+
.gt-btn.is-loading > :not(.gt-spinner) { visibility: hidden; }
|
|
54
|
+
.gt-spinner { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: gt-spin var(--duration-spin) linear infinite; }
|
|
55
|
+
@keyframes gt-spin { to { transform: rotate(360deg); } }
|
|
56
|
+
|
|
57
|
+
/* ---------- IconButton ---------- */
|
|
58
|
+
.gt-iconbtn:not(.gt-btn) { display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--icon-button-radius); background: transparent; color: var(--icon-button-fg); cursor: pointer; padding: 0; transition: background-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
|
|
59
|
+
/* Icon-only Button: same height, radius, colours and press as Button, square. */
|
|
60
|
+
.gt-btn.gt-btn--icon { padding: 0; width: auto; aspect-ratio: 1; gap: 0; border-radius: var(--icon-button-radius); }
|
|
61
|
+
.gt-btn--icon.gt-btn--secondary { border-color: var(--icon-button-outline-border); }
|
|
62
|
+
.gt-btn--icon.gt-btn--secondary:hover, .gt-btn--icon.gt-btn--secondary.is-hover { border-color: var(--color-border-default-primary); }
|
|
63
|
+
.gt-btn--icon.gt-btn--ghost { color: var(--icon-button-fg); }
|
|
64
|
+
.gt-btn--icon.is-active { background: var(--button-ghost-bg-pressed); }
|
|
65
|
+
.gt-iconbtn--sm { width: var(--icon-button-size-sm); height: var(--icon-button-size-sm); }
|
|
66
|
+
.gt-iconbtn--md { width: var(--icon-button-size-md); height: var(--icon-button-size-md); }
|
|
67
|
+
.gt-iconbtn--lg { width: var(--icon-button-size-lg); height: var(--icon-button-size-lg); }
|
|
68
|
+
.gt-iconbtn:not(.gt-btn):hover, .gt-iconbtn:not(.gt-btn).is-hover { background: var(--icon-button-bg-hover); }
|
|
69
|
+
.gt-iconbtn:not(.gt-btn):active, .gt-iconbtn:not(.gt-btn).is-pressed { background: var(--icon-button-bg-pressed); transform: scale(var(--scale-pressed)); }
|
|
70
|
+
.gt-iconbtn:not(.gt-btn).is-active { background: var(--icon-button-bg-selected); }
|
|
71
|
+
.gt-iconbtn--solid { background: var(--icon-button-solid-bg); box-shadow: var(--icon-button-solid-shadow); }
|
|
72
|
+
.gt-iconbtn--solid:hover, .gt-iconbtn--solid.is-hover { background: var(--icon-button-solid-bg); box-shadow: var(--icon-button-solid-shadow-hover); }
|
|
73
|
+
.gt-iconbtn--outline { border-color: var(--icon-button-outline-border); background: var(--icon-button-solid-bg); }
|
|
74
|
+
.gt-iconbtn--outline:hover, .gt-iconbtn--outline.is-hover { background: var(--icon-button-bg-hover); }
|
|
75
|
+
|
|
76
|
+
/* ---------- SegmentedControl ---------- */
|
|
77
|
+
.gt-seg { display: inline-flex; padding: var(--segmented-track-padding); gap: 2px; background: var(--segmented-track-bg); border-radius: var(--segmented-radius); }
|
|
78
|
+
.gt-seg__opt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--segmented-fg); border-radius: var(--segmented-option-radius); font-family: var(--font-sans); font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); cursor: pointer; transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
|
|
79
|
+
.gt-seg--md .gt-seg__opt { height: calc(var(--control-md) - 2 * var(--segmented-track-padding)); padding: 0 var(--inset-button); }
|
|
80
|
+
.gt-seg--sm .gt-seg__opt { height: calc(var(--control-sm) - 2 * var(--segmented-track-padding)); padding: 0 var(--inset-control); font-size: var(--type-caption-size); }
|
|
81
|
+
.gt-seg--lg .gt-seg__opt { height: calc(var(--control-lg) - 2 * var(--segmented-track-padding)); padding: 0 var(--inset-button); }
|
|
82
|
+
.gt-seg--block { display: flex; width: 100%; }
|
|
83
|
+
.gt-seg--block .gt-seg__opt { flex: 1 1 0; min-width: 0; }
|
|
84
|
+
.gt-seg__opt.is-icon { padding: 0; aspect-ratio: 1.15; }
|
|
85
|
+
.gt-seg__opt:hover, .gt-seg__opt.is-hover { color: var(--segmented-fg-hover); background: var(--segmented-bg-hover); }
|
|
86
|
+
.gt-seg__opt.is-on { background: var(--segmented-thumb-bg); color: var(--segmented-thumb-fg); box-shadow: var(--segmented-thumb-shadow); }
|
|
87
|
+
|
|
88
|
+
/* ---------- SliderField ---------- */
|
|
89
|
+
.gt-slider { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--slider-height); padding: 0 var(--slider-padding-x); border-radius: var(--slider-radius); background: var(--slider-track-bg); color: var(--slider-fg); overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; }
|
|
90
|
+
.gt-slider__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto; background: var(--slider-fill-bg); transition: width var(--slider-fill-duration) linear, background-color var(--duration-fast) var(--ease-out); }
|
|
91
|
+
.gt-slider:hover .gt-slider__fill, .gt-slider.is-hover .gt-slider__fill { background: var(--slider-fill-bg-hover); }
|
|
92
|
+
.gt-slider.is-dragging .gt-slider__fill, .gt-slider.is-pressed .gt-slider__fill { background: var(--slider-fill-bg-pressed); transition: none; }
|
|
93
|
+
.gt-slider__label, .gt-slider__value { position: relative; font-size: var(--slider-font-size); line-height: var(--slider-line-height); }
|
|
94
|
+
.gt-slider__label { font-weight: var(--slider-label-weight); }
|
|
95
|
+
.gt-slider__value { font-weight: var(--slider-value-weight); font-variant-numeric: tabular-nums; }
|
|
96
|
+
|
|
97
|
+
@keyframes gt-blink { 50% { opacity: .35; } }
|
|
98
|
+
|
|
99
|
+
/* ---------- Switch ---------- */
|
|
100
|
+
/* Hit area grows to 24px (WCAG 2.5.8) without changing the drawn track */
|
|
101
|
+
.gt-switch::after { content: ""; position: absolute; inset: min(0px, calc((var(--switch-height) - 24px) / 2)) min(0px, calc((var(--switch-width) - 24px) / 2)); }
|
|
102
|
+
.gt-switch { position: relative; width: var(--switch-width); height: var(--switch-height); flex: none; padding: 0; border: 0; border-radius: var(--switch-radius); background: var(--switch-track-bg); cursor: pointer; transition: background-color var(--duration-base) var(--ease-out); }
|
|
103
|
+
.gt-switch:hover, .gt-switch.is-hover { background: var(--switch-track-bg-hover); }
|
|
104
|
+
.gt-switch__thumb { position: absolute; inset-block-start: var(--switch-thumb-inset); inset-inline-start: var(--switch-thumb-inset); width: var(--switch-thumb-size); height: var(--switch-thumb-size); border-radius: var(--switch-thumb-radius); background: var(--switch-thumb-bg); box-shadow: var(--switch-thumb-shadow); transition: inset-inline-start var(--switch-thumb-duration) var(--ease-spring), width var(--duration-fast) var(--ease-out); }
|
|
105
|
+
.gt-switch:active .gt-switch__thumb, .gt-switch.is-pressed .gt-switch__thumb { width: calc(var(--switch-thumb-size) + var(--switch-thumb-grow)); }
|
|
106
|
+
.gt-switch.is-on { background: var(--switch-track-bg-on); }
|
|
107
|
+
.gt-switch.is-on:hover, .gt-switch.is-on.is-hover { background: var(--switch-track-bg-on-hover); }
|
|
108
|
+
.gt-switch.is-on .gt-switch__thumb { inset-inline-start: calc(var(--switch-thumb-inset) + var(--switch-thumb-travel)); background: var(--switch-thumb-bg-on); }
|
|
109
|
+
.gt-switch.is-on:active .gt-switch__thumb, .gt-switch.is-on.is-pressed .gt-switch__thumb { inset-inline-start: calc(var(--switch-thumb-inset) + var(--switch-thumb-travel-pressed)); }
|
|
110
|
+
.gt-switch--sm { width: var(--switch-width-sm); height: var(--switch-height-sm); }
|
|
111
|
+
.gt-switch--sm .gt-switch__thumb { width: var(--switch-thumb-size-sm); height: var(--switch-thumb-size-sm); }
|
|
112
|
+
.gt-switch--sm:active .gt-switch__thumb, .gt-switch--sm.is-pressed .gt-switch__thumb { width: calc(var(--switch-thumb-size-sm) + var(--switch-thumb-grow)); }
|
|
113
|
+
.gt-switch--sm.is-on .gt-switch__thumb { inset-inline-start: calc(var(--switch-thumb-inset) + var(--switch-thumb-travel-sm)); }
|
|
114
|
+
.gt-inline { display: inline-flex; align-items: center; gap: var(--gap-inline); }
|
|
115
|
+
.gt-inline__label { color: var(--switch-label); cursor: pointer; }
|
|
116
|
+
|
|
117
|
+
/* ---------- Checkbox ---------- */
|
|
118
|
+
.gt-check { position: relative; display: inline-flex; align-items: flex-start; gap: var(--gap-inline); padding-block: max(0px, calc((24px - var(--type-body-leading)) / 2)); cursor: pointer; }
|
|
119
|
+
.gt-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
|
|
120
|
+
.gt-check__box { --icon-stroke: var(--checkbox-icon-stroke); box-sizing: border-box; margin-block-start: max(0px, calc((var(--type-body-leading) - var(--checkbox-size)) / 2)); width: var(--checkbox-size); height: var(--checkbox-size); flex: none; display: grid; place-items: center; border-radius: var(--checkbox-radius); background: var(--checkbox-bg); border: var(--checkbox-border-width) solid var(--checkbox-border); color: transparent; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
|
|
121
|
+
.gt-check__box svg { width: calc(var(--checkbox-size) * .75); height: calc(var(--checkbox-size) * .75); }
|
|
122
|
+
.gt-check:hover .gt-check__box, .gt-check.is-hover .gt-check__box { border-color: var(--checkbox-border-hover); }
|
|
123
|
+
.gt-check:active .gt-check__box, .gt-check.is-pressed .gt-check__box { transform: scale(var(--checkbox-scale-pressed)); }
|
|
124
|
+
.gt-check input:checked + .gt-check__box, .gt-check input:indeterminate + .gt-check__box { background: var(--checkbox-bg-checked); border-color: var(--checkbox-bg-checked); color: var(--checkbox-fg-checked); }
|
|
125
|
+
.gt-check:hover input:checked + .gt-check__box, .gt-check.is-hover input:checked + .gt-check__box { background: var(--checkbox-bg-checked-hover); border-color: var(--checkbox-bg-checked-hover); }
|
|
126
|
+
.gt-check__text { display: flex; flex-direction: column; gap: var(--checkbox-label-gap); }
|
|
127
|
+
.gt-check__label { color: var(--checkbox-label); font-size: var(--type-body-size); line-height: var(--type-body-leading); }
|
|
128
|
+
.gt-check__desc { color: var(--checkbox-desc); }
|
|
129
|
+
|
|
130
|
+
/* ---------- Radio (shared dot) ---------- */
|
|
131
|
+
.gt-rdot { -webkit-appearance: none; appearance: none; margin: 0; margin-block-start: max(0px, calc((var(--type-body-leading) - var(--radio-size)) / 2)); box-sizing: border-box; flex: none; width: var(--radio-size); height: var(--radio-size); border-radius: 50%; border: 1.5px solid var(--radio-border); background: var(--radio-bg); display: grid; place-content: center; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
|
|
132
|
+
.gt-rdot::before { content: ""; width: var(--radio-dot-size); height: var(--radio-dot-size); border-radius: 50%; background: var(--radio-dot); transform: scale(0); transition: transform var(--duration-base) var(--ease-spring); }
|
|
133
|
+
.gt-rdot:checked { background: var(--radio-bg-checked); border-color: var(--radio-bg-checked); }
|
|
134
|
+
.gt-rdot:checked::before { transform: scale(1); }
|
|
135
|
+
.gt-radio-item:hover .gt-rdot:not(:checked), .gt-radio-item.is-hover .gt-rdot:not(:checked), .gt-radio:hover .gt-rdot:not(:checked), .gt-radio.is-hover .gt-rdot:not(:checked) { border-color: var(--radio-border-hover); }
|
|
136
|
+
.gt-radio-item:hover .gt-rdot:checked, .gt-radio-item.is-hover .gt-rdot:checked, .gt-radio:hover .gt-rdot:checked, .gt-radio.is-hover .gt-rdot:checked { background: var(--radio-bg-checked-hover); border-color: var(--radio-bg-checked-hover); }
|
|
137
|
+
.gt-radio-item:active .gt-rdot, .gt-radio-item.is-pressed .gt-rdot, .gt-radio:active .gt-rdot, .gt-radio.is-pressed .gt-rdot { transform: scale(var(--radio-scale-pressed)); }
|
|
138
|
+
.gt-rgroup.is-error .gt-rdot:not(:checked) { border-color: var(--radio-border-error); }
|
|
139
|
+
.gt-rdot:disabled { cursor: not-allowed; }
|
|
140
|
+
|
|
141
|
+
/* ---------- RadioGroup ---------- */
|
|
142
|
+
.gt-rgroup { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap-control); }
|
|
143
|
+
.gt-rgroup__legend { padding: 0; margin-bottom: var(--gap-control); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); }
|
|
144
|
+
.gt-rgroup__legend.is-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
145
|
+
.gt-rgroup__req { color: var(--color-text-default-secondary); font-weight: var(--type-body-weight); margin-inline-start: 4px; }
|
|
146
|
+
.gt-rgroup__list { display: flex; flex-direction: column; gap: var(--radio-group-gap); }
|
|
147
|
+
.gt-rgroup--row .gt-rgroup__list { flex-direction: row; flex-wrap: wrap; gap: var(--radio-group-gap) var(--gap-group); }
|
|
148
|
+
.gt-rgroup__hint { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
149
|
+
.gt-rgroup.is-error .gt-rgroup__hint { color: var(--color-text-danger-primary); }
|
|
150
|
+
.gt-radio-item { display: inline-flex; align-items: flex-start; gap: var(--radio-gap); padding-block: max(0px, calc((24px - var(--type-body-leading)) / 2)); cursor: pointer; }
|
|
151
|
+
|
|
152
|
+
.gt-radio-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
153
|
+
.gt-radio-item__label { font-size: var(--type-body-size); line-height: var(--type-body-leading); color: var(--color-text-default-primary); }
|
|
154
|
+
.gt-radio-item__desc { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
155
|
+
|
|
156
|
+
/* ---------- RadioCards ---------- */
|
|
157
|
+
.gt-radios { display: flex; flex-direction: column; gap: var(--gap-control); }
|
|
158
|
+
.gt-radio { position: relative; display: flex; gap: var(--radio-gap); align-items: flex-start; padding: var(--radio-card-padding); border-radius: var(--radio-card-radius); background: var(--radio-card-bg); border: 1.5px solid var(--radio-card-border, transparent); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
|
|
159
|
+
.gt-radio:hover, .gt-radio.is-hover { background: var(--radio-card-bg-hover); border-color: var(--radio-card-border-hover, transparent); }
|
|
160
|
+
.gt-radio:has(.gt-rdot:checked), .gt-radio.is-on { background: var(--radio-card-bg-selected); border-color: var(--radio-card-border-selected); }
|
|
161
|
+
.gt-radio .gt-rdot:focus-visible { outline: none; }
|
|
162
|
+
.gt-rgroup.is-error .gt-radio:not(.is-on) { border-color: var(--radio-card-border-error); }
|
|
163
|
+
.gt-radio__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
164
|
+
.gt-radio__title { display: inline-flex; align-items: center; gap: var(--gap-control); font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); }
|
|
165
|
+
.gt-radio__desc { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
166
|
+
|
|
167
|
+
/* ---------- ChipGroup ---------- */
|
|
168
|
+
.gt-chips { display: flex; flex-wrap: wrap; gap: var(--gap-control); }
|
|
169
|
+
.gt-chip { --icon-stroke: var(--chip-icon-stroke); display: inline-flex; align-items: center; gap: var(--chip-gap); height: var(--chip-height); padding: 0 var(--chip-padding-x); border-radius: var(--chip-radius); border: 1px solid var(--chip-border); background: var(--chip-bg); color: var(--chip-fg); font-family: var(--font-sans); font-size: var(--chip-font-size); line-height: var(--chip-line-height); font-weight: var(--chip-font-weight); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
|
|
170
|
+
.gt-chip:hover, .gt-chip.is-hover { background: var(--chip-bg-hover); border-color: var(--chip-border-hover); }
|
|
171
|
+
.gt-chip:active, .gt-chip.is-pressed { background: var(--chip-bg-pressed); transform: scale(var(--scale-pressed)); }
|
|
172
|
+
.gt-chip.is-on { background: var(--chip-bg-selected); border-color: var(--chip-bg-selected); color: var(--chip-fg-selected); }
|
|
173
|
+
.gt-chip.is-on:hover, .gt-chip.is-on.is-hover { background: var(--chip-bg-selected-hover); border-color: var(--chip-bg-selected-hover); }
|
|
174
|
+
|
|
175
|
+
/* ---------- Field: Input, Textarea, Select ---------- */
|
|
176
|
+
.gt-field { display: flex; flex-direction: column; gap: var(--field-gap); min-width: 0; }
|
|
177
|
+
.gt-field__label { display: inline-flex; align-items: baseline; gap: var(--gap-control); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); font-weight: var(--type-label-weight); color: var(--field-label); }
|
|
178
|
+
.gt-field__opt { font-weight: var(--type-body-weight); color: var(--field-hint); }
|
|
179
|
+
.gt-field__hint { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--field-hint); }
|
|
180
|
+
.gt-field.is-error .gt-field__hint { color: var(--field-error); }
|
|
181
|
+
.gt-input, .gt-select, .gt-textarea { position: relative; display: flex; border-radius: var(--field-radius); background: var(--field-bg); border: 1px solid var(--field-border); color: var(--field-icon); transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
|
|
182
|
+
.gt-input, .gt-select { box-sizing: border-box; align-items: center; gap: var(--gap-control); height: var(--field-height); padding: 0 var(--field-padding-x); }
|
|
183
|
+
.gt-textarea { box-sizing: border-box; }
|
|
184
|
+
.gt-input:hover, .gt-select:hover, .gt-textarea:hover, .gt-field.is-hover .gt-input, .gt-field.is-hover .gt-select, .gt-field.is-hover .gt-textarea { background: var(--field-bg-hover); border-color: var(--field-border-hover); }
|
|
185
|
+
.gt-input:focus-within, .gt-select:focus-within, .gt-textarea:focus-within, .gt-field.is-focus .gt-input, .gt-field.is-focus .gt-select, .gt-field.is-focus .gt-textarea { background: var(--field-bg-focus); border-color: var(--field-border-focus); box-shadow: inset 0 0 0 1px var(--field-halo-focus); }
|
|
186
|
+
.gt-field.is-error .gt-input, .gt-field.is-error .gt-textarea, .gt-field.is-error .gt-select { border-color: var(--field-border-error); }
|
|
187
|
+
.gt-input input, .gt-select select { align-self: stretch; } /* the whole field height is the hit target */
|
|
188
|
+
.gt-input input, .gt-select select, .gt-textarea textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--field-fg); font: var(--field-font-weight) var(--field-font-size)/var(--field-line-height) var(--font-sans); padding: 0; }
|
|
189
|
+
.gt-input input::placeholder, .gt-textarea textarea::placeholder { color: var(--field-placeholder); }
|
|
190
|
+
.gt-input__suffix { flex: none; }
|
|
191
|
+
.gt-select select { appearance: none; -webkit-appearance: none; height: 100%; cursor: pointer; padding-inline-end: var(--gap-group); }
|
|
192
|
+
.gt-select .gt-icon { position: absolute; inset-inline-end: var(--field-padding-x); pointer-events: none; }
|
|
193
|
+
.gt-textarea { flex-direction: column; padding: var(--field-padding-x); }
|
|
194
|
+
.gt-textarea textarea { resize: vertical; min-height: 72px; }
|
|
195
|
+
.gt-textarea__count { align-self: flex-end; margin-top: var(--gap-tight); font-family: var(--font-sans); font-size: var(--type-micro-size); line-height: var(--type-micro-leading); font-weight: var(--type-body-weight); color: var(--field-hint); font-variant-numeric: tabular-nums; }
|
|
196
|
+
.gt-field.is-over .gt-textarea__count { color: var(--field-error); }
|
|
197
|
+
|
|
198
|
+
/* ---------- SettingRow ---------- */
|
|
199
|
+
.gt-row { display: flex; align-items: center; gap: var(--gap-inline); padding: var(--inset-control) 0; }
|
|
200
|
+
.gt-row + .gt-row { border-top: var(--divider-size) solid var(--row-divider); }
|
|
201
|
+
.gt-row__icon { width: var(--control-md); height: var(--control-md); flex: none; display: grid; place-items: center; border-radius: var(--radius-field); background: var(--row-icon-bg); color: var(--color-text-default-primary); }
|
|
202
|
+
.gt-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
203
|
+
.gt-row__title { font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); }
|
|
204
|
+
.gt-row__desc { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
205
|
+
.gt-row__control { flex: none; display: flex; align-items: center; gap: var(--gap-control); }
|
|
206
|
+
.gt-row--action .gt-row__control { color: var(--color-text-default-secondary); }
|
|
207
|
+
.gt-row__chevron { color: var(--color-text-default-secondary); }
|
|
208
|
+
:dir(rtl) .gt-row__chevron { transform: scaleX(-1); }
|
|
209
|
+
.gt-row__lead { flex: none; display: grid; place-items: center; }
|
|
210
|
+
.gt-row.is-disabled .gt-row__text, .gt-row.is-disabled .gt-row__icon, .gt-row.is-disabled .gt-row__lead { opacity: var(--opacity-disabled); }
|
|
211
|
+
button.gt-row, a.gt-row { width: 100%; margin: 0; border: 0; background: transparent; color: inherit; text-align: start; font: inherit; cursor: pointer; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out); }
|
|
212
|
+
/* Action rows bleed their hover past the text edge, so titles stay aligned with the content around them. */
|
|
213
|
+
.gt-row--action { padding-inline: var(--space-8); margin-inline: calc(-1 * var(--space-8)); border-radius: var(--radius-field); }
|
|
214
|
+
button.gt-row--action, a.gt-row--action { width: calc(100% + 2 * var(--space-8)); margin-inline: calc(-1 * var(--space-8)); }
|
|
215
|
+
.gt-row--action:hover, .gt-row.is-hover { background: var(--row-bg-hover); }
|
|
216
|
+
.gt-row--action:active, .gt-row.is-pressed { background: var(--row-bg-pressed); }
|
|
217
|
+
button.gt-row:disabled { cursor: not-allowed; }
|
|
218
|
+
|
|
219
|
+
/* ---------- Card ---------- */
|
|
220
|
+
.gt-card { display: flex; flex-direction: column; gap: var(--card-gap); min-width: 0; padding: var(--card-padding); border-radius: var(--card-radius); background: var(--card-bg); border: var(--card-border-width) solid var(--card-border); color: var(--card-fg); }
|
|
221
|
+
.gt-card--elevated { border-color: transparent; box-shadow: var(--card-shadow); }
|
|
222
|
+
.gt-card__head { display: flex; flex-direction: column; gap: var(--card-title-gap); }
|
|
223
|
+
.gt-card__title { margin: 0; }
|
|
224
|
+
.gt-card__desc { margin: 0; }
|
|
225
|
+
.gt-card__body { display: flex; flex-direction: column; min-width: 0; }
|
|
226
|
+
.gt-card__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--gap-control); }
|
|
227
|
+
|
|
228
|
+
/* ---------- Divider ---------- */
|
|
229
|
+
.gt-divider { display: block; width: 100%; height: 0; margin: 0; padding: 0; border: 0; border-top: var(--divider-size) solid var(--divider-color); background: none; }
|
|
230
|
+
.gt-divider:not(.gt-divider--vertical) { margin-block: var(--gap-inline); }
|
|
231
|
+
.gt-divider--inset:not(.gt-divider--vertical) { width: auto; margin-inline: var(--divider-inset); }
|
|
232
|
+
.gt-divider--vertical { display: block; width: 0; height: auto; align-self: stretch; min-height: var(--control-md); border-top: 0; border-inline-start: var(--divider-size) solid var(--divider-color); }
|
|
233
|
+
|
|
234
|
+
/* ---------- Badge, Avatar, Kbd, Progress ---------- */
|
|
235
|
+
.gt-badge { display: inline-flex; align-items: center; gap: 4px; height: var(--badge-height); padding: 0 var(--gap-control); border-radius: var(--radius-control); font-family: var(--font-sans); font-size: var(--type-micro-size); line-height: var(--type-micro-leading); font-weight: var(--type-micro-weight); white-space: nowrap; color: var(--color-text-default-primary); }
|
|
236
|
+
.gt-badge--neutral { background: var(--badge-neutral-bg); }
|
|
237
|
+
.gt-badge--solid { background: var(--badge-solid-bg); color: var(--badge-solid-fg); }
|
|
238
|
+
.gt-badge--outline { background: var(--badge-outline-bg); border: 1px solid var(--badge-outline-border); color: var(--badge-outline-fg); }
|
|
239
|
+
.gt-badge--success { background: var(--badge-success-bg); color: var(--badge-success-fg); box-shadow: inset 0 0 0 1px var(--badge-success-border); }
|
|
240
|
+
.gt-badge--warning { background: var(--badge-warning-bg); color: var(--badge-warning-fg); box-shadow: inset 0 0 0 1px var(--badge-warning-border); }
|
|
241
|
+
.gt-badge--danger { background: var(--badge-danger-bg); color: var(--badge-danger-fg); box-shadow: inset 0 0 0 1px var(--badge-danger-border); }
|
|
242
|
+
.gt-badge--info { background: var(--badge-info-bg); color: var(--badge-info-fg); box-shadow: inset 0 0 0 1px var(--badge-info-border); }
|
|
243
|
+
.gt-badge--live { background: var(--badge-live-bg); box-shadow: var(--shadow-raised); }
|
|
244
|
+
.gt-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--badge-live-dot); animation: gt-blink var(--duration-blink) ease-in-out infinite; }
|
|
245
|
+
.gt-badge .gt-badge__dot.gt-badge__dot--static { width: 6px; height: 6px; background: var(--badge-dot, var(--color-text-default-secondary)); animation: none; }
|
|
246
|
+
.gt-badge--success { --badge-dot: var(--color-bg-success-primary); }
|
|
247
|
+
.gt-badge--warning { --badge-dot: var(--color-bg-warning-primary); }
|
|
248
|
+
.gt-badge--danger { --badge-dot: var(--color-bg-danger-primary); }
|
|
249
|
+
.gt-badge--info { --badge-dot: var(--color-bg-info-primary); }
|
|
250
|
+
.gt-badge.gt-badge--sm { height: var(--badge-height-sm); padding: 0 var(--badge-padding-sm); }
|
|
251
|
+
.gt-badge.gt-badge--lg { height: var(--badge-height-lg); padding: 0 var(--badge-padding-lg); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); }
|
|
252
|
+
.gt-badge--neutral.gt-badge--bold { background: var(--badge-neutral-bg-bold); color: var(--badge-neutral-fg-bold); }
|
|
253
|
+
.gt-badge--success.gt-badge--bold { background: var(--badge-success-bg-bold); color: var(--badge-success-fg-bold); box-shadow: none; }
|
|
254
|
+
.gt-badge--warning.gt-badge--bold { background: var(--badge-warning-bg-bold); color: var(--badge-warning-fg-bold); box-shadow: none; }
|
|
255
|
+
.gt-badge--danger.gt-badge--bold { background: var(--badge-danger-bg-bold); color: var(--badge-danger-fg-bold); box-shadow: none; }
|
|
256
|
+
.gt-badge--info.gt-badge--bold { background: var(--badge-info-bg-bold); color: var(--badge-info-fg-bold); box-shadow: none; }
|
|
257
|
+
.gt-avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-fg); font-weight: var(--type-label-weight); }
|
|
258
|
+
.gt-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
|
|
259
|
+
.gt-avatar--sm { width: 24px; height: 24px; font-size: var(--avatar-font-size-sm); }
|
|
260
|
+
.gt-avatar--md { width: 32px; height: 32px; font-size: var(--avatar-font-size-md); }
|
|
261
|
+
.gt-avatar--lg { width: 44px; height: 44px; font-size: var(--avatar-font-size-lg); }
|
|
262
|
+
.gt-avatar__status { position: absolute; inset-inline-end: -1px; inset-block-end: -1px; width: 30%; height: 30%; border-radius: 50%; border: 2px solid var(--color-bg-surface-primary); background: var(--color-border-default-secondary-hover); }
|
|
263
|
+
.gt-avatar__status--online { background: var(--color-bg-success-primary); }
|
|
264
|
+
.gt-avatar__status--live, .gt-avatar__status--recording { background: var(--color-bg-live-primary); }
|
|
265
|
+
.gt-kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--radius-checkbox); background: var(--kbd-bg); border: 1px solid var(--kbd-border); box-shadow: 0 1px 0 var(--kbd-border); font-family: var(--font-sans); font-size: var(--kbd-font-size); line-height: var(--kbd-line-height); font-weight: var(--kbd-font-weight); color: var(--kbd-fg); }
|
|
266
|
+
.gt-progress { display: flex; flex-direction: column; gap: var(--gap-control); width: 100%; }
|
|
267
|
+
.gt-progress__head { display: flex; justify-content: space-between; font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-primary); }
|
|
268
|
+
.gt-progress__val { color: var(--color-text-default-secondary); font-variant-numeric: tabular-nums; }
|
|
269
|
+
.gt-progress__track { position: relative; height: var(--progress-height); border-radius: var(--radius-control); background: var(--progress-track); overflow: hidden; }
|
|
270
|
+
.gt-progress__bar { height: 100%; border-radius: inherit; background: var(--progress-bar); transition: width var(--duration-slow) var(--ease-out); }
|
|
271
|
+
.gt-progress.is-indeterminate .gt-progress__bar { width: 35% !important; animation: gt-indet var(--duration-blink) var(--ease-out) infinite; }
|
|
272
|
+
:dir(rtl) .gt-progress.is-indeterminate .gt-progress__bar { animation-name: gt-indet-rtl; }
|
|
273
|
+
.gt-progress.is-error .gt-progress__bar { background: var(--color-bg-danger-primary); }
|
|
274
|
+
.gt-progress.is-error .gt-progress__val { color: var(--color-text-danger-primary); }
|
|
275
|
+
@keyframes gt-indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
|
|
276
|
+
@keyframes gt-indet-rtl { from { transform: translateX(100%); } to { transform: translateX(-300%); } }
|
|
277
|
+
|
|
278
|
+
/* ---------- Tooltip ---------- */
|
|
279
|
+
.gt-tip { position: relative; display: inline-flex; }
|
|
280
|
+
.gt-tip__bubble { position: absolute; inset-inline-start: 50%; inset-block-end: calc(100% + var(--gap-control)); translate: -50% 2px; display: inline-flex; align-items: center; gap: var(--gap-control); padding: var(--space-8) var(--space-12); border-radius: var(--tooltip-radius); background: var(--tooltip-bg); color: var(--tooltip-fg); font-family: var(--font-sans); font-size: var(--type-micro-size); line-height: var(--type-micro-leading); font-weight: var(--type-micro-weight); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--duration-fast) var(--ease-out), translate var(--duration-fast) var(--ease-out); z-index: 10; }
|
|
281
|
+
.gt-tip--bottom.gt-tip__bubble { inset-block-end: auto; inset-block-start: calc(100% + var(--gap-control)); }
|
|
282
|
+
.gt-tip__bubble.is-open { opacity: 1; translate: -50% 0; }
|
|
283
|
+
:dir(rtl) .gt-tip__bubble { translate: 50% 2px; }
|
|
284
|
+
:dir(rtl) .gt-tip__bubble.is-open { translate: 50% 0; }
|
|
285
|
+
.gt-tip__bubble .gt-kbd { background: transparent; border-color: var(--color-text-inverse-secondary); box-shadow: none; color: var(--tooltip-fg); height: 16px; }
|
|
286
|
+
|
|
287
|
+
/* ---------- Toast ---------- */
|
|
288
|
+
.gt-toast { display: inline-flex; align-items: center; gap: var(--gap-inline); min-height: 44px; padding-block: var(--gap-control); padding-inline-start: var(--inset-button); padding-inline-end: var(--gap-control); border-radius: var(--radius-control); background: var(--toast-bg); color: var(--color-text-default-primary); box-shadow: var(--toast-shadow); border: 1px solid var(--toast-border); font-size: var(--type-body-size); line-height: var(--type-body-leading); }
|
|
289
|
+
.gt-toast__icon { --icon-stroke: var(--toast-icon-stroke); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; flex: none; background: var(--toast-icon-bg); color: var(--color-text-default-primary); }
|
|
290
|
+
.gt-toast--success .gt-toast__icon { background: var(--toast-success-bg); color: var(--toast-success-fg); }
|
|
291
|
+
.gt-toast--error .gt-toast__icon { background: var(--toast-error-bg); color: var(--toast-error-fg); }
|
|
292
|
+
.gt-toast--warning .gt-toast__icon { background: var(--toast-warning-bg); color: var(--toast-warning-fg); }
|
|
293
|
+
.gt-toast--info .gt-toast__icon { background: var(--toast-info-bg); color: var(--toast-info-fg); }
|
|
294
|
+
.gt-toast__msg { flex: 1; padding-inline-end: var(--gap-control); }
|
|
295
|
+
.gt-toast__action { border: 0; background: var(--button-soft-bg); color: var(--button-soft-fg); height: var(--control-sm); padding: 0 var(--inset-control); border-radius: var(--radius-control); font-family: var(--font-sans); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); font-weight: var(--type-label-weight); cursor: pointer; }
|
|
296
|
+
.gt-toast__action:hover { background: var(--button-soft-bg-hover); }
|
|
297
|
+
.gt-toast__action:active { background: var(--button-soft-bg-pressed); }
|
|
298
|
+
|
|
299
|
+
/* ---------- Panel ---------- */
|
|
300
|
+
.gt-panel { display: flex; flex-direction: column; gap: var(--panel-gap); width: var(--panel-width); max-width: 100%; padding: var(--panel-padding); border-radius: var(--panel-radius); background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--color-text-default-primary); }
|
|
301
|
+
.gt-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-inline); }
|
|
302
|
+
.gt-panel__head .gt-iconbtn { margin-block-start: -8px; margin-inline-end: -8px; margin-block-end: 0; margin-inline-start: 0; }
|
|
303
|
+
.gt-panel__title { margin: 0; font-size: var(--type-title-size); line-height: var(--type-title-leading); font-weight: var(--type-title-weight); letter-spacing: var(--type-title-tracking); }
|
|
304
|
+
.gt-panel__sub { margin: 2px 0 0; font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
305
|
+
.gt-panel__body { display: flex; flex-direction: column; gap: var(--gap-control); flex: 1; }
|
|
306
|
+
.gt-panel__foot { display: flex; flex-direction: column; gap: var(--gap-control); }
|
|
307
|
+
.gt-ctrl { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-inline); min-height: var(--control-md); font-size: var(--type-body-size); line-height: var(--type-body-leading); }
|
|
308
|
+
.gt-gap { height: var(--gap-inline); }
|
|
309
|
+
|
|
310
|
+
/* ---------- Stage ---------- */
|
|
311
|
+
.gt-stage { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: var(--stage-padding); border-radius: var(--stage-radius); background: var(--stage-bg); color: var(--color-text-default-primary); }
|
|
312
|
+
.gt-stage__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--gap-control); }
|
|
313
|
+
.gt-stage__tools { display: flex; align-items: center; gap: var(--gap-tight); }
|
|
314
|
+
.gt-stage__center { flex: 1; display: grid; place-items: center; padding: var(--inset-press) var(--inset-button); }
|
|
315
|
+
.gt-stage__corner { position: absolute; inset-inline-end: var(--stage-padding); inset-block-end: var(--stage-padding); }
|
|
316
|
+
|
|
317
|
+
/* ---------- Dialog ---------- */
|
|
318
|
+
.gt-scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--inset-button); background: var(--dialog-scrim); }
|
|
319
|
+
.gt-scrim--inline { position: relative; inset: auto; z-index: auto; min-height: 260px; border-radius: var(--radius-container); }
|
|
320
|
+
.gt-dialog { width: var(--dialog-width); max-width: 100%; display: flex; flex-direction: column; gap: var(--gap-inline); padding: var(--inset-container); border-radius: var(--dialog-radius); background: var(--dialog-bg); color: var(--color-text-default-primary); box-shadow: var(--dialog-shadow); }
|
|
321
|
+
.gt-dialog--md { width: var(--dialog-width-md); }
|
|
322
|
+
.gt-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gap-inline); }
|
|
323
|
+
.gt-dialog__head .gt-iconbtn { margin-block-start: -4px; margin-inline-end: -4px; margin-block-end: 0; margin-inline-start: 0; }
|
|
324
|
+
.gt-dialog__title { margin: 0; font-family: var(--font-display); font-size: var(--type-title-size); line-height: var(--type-title-leading); font-weight: var(--type-title-weight); letter-spacing: var(--type-title-tracking); }
|
|
325
|
+
.gt-dialog__desc { margin: 0; font-size: var(--type-body-size); line-height: var(--type-body-leading); color: var(--color-text-default-secondary); }
|
|
326
|
+
.gt-dialog__actions { display: flex; justify-content: flex-end; gap: var(--gap-control); margin-top: var(--gap-control); }
|
|
327
|
+
|
|
328
|
+
@media (prefers-reduced-motion: reduce) {
|
|
329
|
+
.gt-btn, .gt-iconbtn, .gt-switch__thumb, .gt-seg__opt, .gt-tip__bubble, .gt-chip, .gt-radio, .gt-check__box, .gt-rdot, .gt-rdot::before, .gt-row--action { transition: none !important; }
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* ---------- Screen-reader only ---------- */
|
|
333
|
+
.gt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
334
|
+
|
|
335
|
+
/* ---------- Charts ---------- */
|
|
336
|
+
.gt-chart { position: relative; min-width: 0; color: var(--color-text-default-primary); font-variant-numeric: tabular-nums; }
|
|
337
|
+
.gt-chart__grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
|
|
338
|
+
.gt-chart__guide { stroke: var(--chart-guide); stroke-width: 1; stroke-dasharray: 3 3; }
|
|
339
|
+
.gt-chart__tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: var(--space-8) var(--space-12); border-radius: var(--chart-tip-radius); background: var(--chart-tip-bg); color: var(--chart-tip-fg); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-floating); }
|
|
340
|
+
.gt-chart__tip strong { font-weight: 600; font-size: var(--type-body-size); }
|
|
341
|
+
.gt-chart__tip span { opacity: .72; }
|
|
342
|
+
.gt-chart__yaxis { position: relative; flex: none; width: 44px; }
|
|
343
|
+
.gt-chart__yaxis span { position: absolute; inset-inline-end: 8px; transform: translateY(-50%); font-size: var(--type-micro-size); line-height: 1; color: var(--chart-axis); white-space: nowrap; }
|
|
344
|
+
.gt-chart__xaxis { position: relative; height: 24px; margin-inline-start: 44px; }
|
|
345
|
+
.gt-chart__xaxis span { position: absolute; top: 8px; transform: translateX(-50%); font-size: var(--type-micro-size); line-height: 1; color: var(--chart-axis); white-space: nowrap; }
|
|
346
|
+
.gt-chart__xaxis span:first-child { transform: none; }
|
|
347
|
+
.gt-chart__xaxis span:last-child { transform: translateX(-100%); }
|
|
348
|
+
[dir="rtl"] .gt-chart__xaxis span { transform: translateX(50%); }
|
|
349
|
+
|
|
350
|
+
.gt-spark { display: block; flex: none; overflow: visible; color: var(--chart-line); }
|
|
351
|
+
.gt-spark--success { color: var(--chart-success); }
|
|
352
|
+
.gt-spark--danger { color: var(--chart-danger); }
|
|
353
|
+
.gt-spark--muted { color: var(--chart-axis); }
|
|
354
|
+
.gt-spark__line { fill: none; stroke: currentColor; stroke-width: var(--chart-spark-width); stroke-linecap: round; stroke-linejoin: round; }
|
|
355
|
+
|
|
356
|
+
.gt-linechart__frame { display: flex; }
|
|
357
|
+
.gt-linechart__plot { position: relative; flex: 1; min-width: 0; border-radius: var(--radius-checkbox); outline: none; touch-action: pan-y; }
|
|
358
|
+
.gt-linechart__plot:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--color-border-focus-primary); outline-offset: 4px; }
|
|
359
|
+
.gt-linechart__plot svg { display: block; overflow: visible; cursor: crosshair; }
|
|
360
|
+
.gt-linechart__line { fill: none; stroke: var(--chart-line); stroke-width: var(--chart-line-width); stroke-linecap: round; stroke-linejoin: round; }
|
|
361
|
+
.gt-linechart__compare { fill: none; stroke: var(--chart-compare); stroke-width: 1.5; stroke-dasharray: 4 4; }
|
|
362
|
+
.gt-linechart__dot { fill: var(--color-bg-surface-primary); stroke: var(--chart-line); stroke-width: 2.5; }
|
|
363
|
+
|
|
364
|
+
.gt-barchart__bars { display: flex; align-items: flex-end; gap: 8px; padding-top: 28px; box-sizing: content-box; }
|
|
365
|
+
.gt-barchart__col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--chart-bar-radius); }
|
|
366
|
+
.gt-barchart__col:focus-visible { outline: 2px solid var(--color-border-focus-primary); outline-offset: 3px; }
|
|
367
|
+
.gt-barchart__bar { position: relative; width: 100%; max-width: var(--chart-bar-max, 24px); border-radius: var(--chart-bar-radius) var(--chart-bar-radius) 0 0; background: var(--chart-bar); transition: background-color var(--duration-fast) var(--ease-out), height var(--duration-base) var(--ease-out); }
|
|
368
|
+
.gt-barchart__col:hover .gt-barchart__bar { background: var(--chart-bar-hover); }
|
|
369
|
+
.gt-barchart__col.is-selected .gt-barchart__bar { background: var(--chart-bar-selected); }
|
|
370
|
+
.gt-barchart__value { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: var(--type-caption-size); line-height: 1; font-weight: 600; color: var(--color-text-default-primary); white-space: nowrap; }
|
|
371
|
+
.gt-barchart__labels { display: flex; gap: 8px; margin-top: 8px; }
|
|
372
|
+
.gt-barchart__labels span { flex: 1; min-width: 0; text-align: center; font-size: var(--type-micro-size); line-height: 1.2; color: var(--chart-axis); overflow: hidden; text-overflow: ellipsis; }
|
|
373
|
+
.gt-barchart__labels span.is-selected { color: var(--color-text-default-primary); font-weight: 600; }
|
|
374
|
+
|
|
375
|
+
.gt-donut { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-group); }
|
|
376
|
+
.gt-donut__ring { position: relative; flex: none; }
|
|
377
|
+
.gt-donut__ring svg { display: block; }
|
|
378
|
+
.gt-donut__seg { transition: opacity var(--duration-fast) var(--ease-out); }
|
|
379
|
+
.gt-donut__seg.is-dim { opacity: .28; }
|
|
380
|
+
.gt-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 24px; }
|
|
381
|
+
.gt-donut__label { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
382
|
+
.gt-donut__total { font-family: var(--font-display); font-size: var(--type-title-size); line-height: var(--type-title-leading); font-weight: var(--type-title-weight); }
|
|
383
|
+
.gt-donut__legend { flex: 1; min-width: 180px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
|
|
384
|
+
.gt-donut__legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.2em; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-checkbox); font-size: var(--type-body-size); line-height: var(--type-body-leading); }
|
|
385
|
+
.gt-donut__legend li.is-active { background: var(--color-bg-neutral-secondary); }
|
|
386
|
+
.gt-donut__dot { width: 8px; height: 8px; border-radius: 2px; }
|
|
387
|
+
.gt-donut__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
388
|
+
.gt-donut__val { font-weight: 500; }
|
|
389
|
+
.gt-donut__pct { text-align: end; color: var(--color-text-default-secondary); }
|
|
390
|
+
|
|
391
|
+
/* ---------- Stat ---------- */
|
|
392
|
+
.gt-stat { display: flex; flex-direction: column; gap: var(--stat-gap); min-width: 0; font-variant-numeric: tabular-nums; }
|
|
393
|
+
.gt-stat__label { display: flex; align-items: center; gap: 8px; font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--stat-label); }
|
|
394
|
+
.gt-stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap-inline); }
|
|
395
|
+
.gt-stat__value { min-width: 0; font-family: var(--font-display); font-size: var(--type-title-size); line-height: var(--type-title-leading); font-weight: var(--type-title-weight); color: var(--stat-value); }
|
|
396
|
+
.gt-stat--lg .gt-stat__value { font-weight: var(--type-display-weight); font-size: var(--type-display-size); line-height: var(--type-display-leading); letter-spacing: -0.02em; }
|
|
397
|
+
.gt-stat__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--type-caption-size); line-height: var(--type-caption-leading); }
|
|
398
|
+
.gt-stat__delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-full); font-weight: 600; }
|
|
399
|
+
.gt-stat__delta.is-good { color: var(--stat-delta-good-fg); background: var(--stat-delta-good-bg); }
|
|
400
|
+
.gt-stat__delta.is-bad { color: var(--stat-delta-bad-fg); background: var(--stat-delta-bad-bg); }
|
|
401
|
+
.gt-stat__delta.is-flat { color: var(--stat-delta-flat-fg); background: var(--stat-delta-flat-bg); }
|
|
402
|
+
.gt-stat__note { color: var(--stat-label); }
|
|
403
|
+
@media (prefers-reduced-motion: reduce) { .gt-barchart__bar, .gt-donut__seg { transition: none; } }
|
|
404
|
+
|
|
405
|
+
/* ---------- ColorPicker ---------- */
|
|
406
|
+
.gt-cp { display: flex; flex-direction: column; gap: var(--cp-gap); width: var(--cp-width); max-width: 100%; color: var(--color-text-default-primary); }
|
|
407
|
+
.gt-cp__modes { width: 100%; }
|
|
408
|
+
.gt-cp__modes .gt-seg__opt { flex: 1 1 0; }
|
|
409
|
+
.gt-cp__area { position: relative; aspect-ratio: 1; border-radius: var(--cp-area-radius); cursor: crosshair; touch-action: none; outline: none;
|
|
410
|
+
background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); box-shadow: inset 0 0 0 1px var(--cp-inner-border); }
|
|
411
|
+
[dir="rtl"] .gt-cp__area { background-image: linear-gradient(to top, #000, transparent), linear-gradient(to left, #fff, transparent); }
|
|
412
|
+
.gt-cp__area:focus-visible, .gt-cp__track:focus-visible { outline: 2px solid var(--color-border-focus-primary); outline-offset: 2px; }
|
|
413
|
+
.gt-cp__thumb { position: absolute; top: 50%; width: var(--cp-thumb-size); height: var(--cp-thumb-size); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.25); transform: translate(-50%, -50%); pointer-events: none; box-sizing: border-box; }
|
|
414
|
+
[dir="rtl"] .gt-cp__thumb { transform: translate(50%, -50%); }
|
|
415
|
+
.gt-cp__area .gt-cp__thumb { top: 0; }
|
|
416
|
+
.gt-cp__fields { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; height: var(--control-lg); border-radius: var(--cp-field-radius); background: var(--cp-field-bg); overflow: hidden; }
|
|
417
|
+
.gt-cp__fields > * + * { border-inline-start: 1px solid var(--cp-field-divider); }
|
|
418
|
+
.gt-cp__format { appearance: none; -webkit-appearance: none; border: 0; margin: 0; padding: 0 28px 0 12px; font: inherit; font-size: var(--type-body-size); color: var(--color-text-default-primary); cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
|
|
419
|
+
[dir="rtl"] .gt-cp__format { padding: 0 12px 0 28px; background-position: left 8px center; }
|
|
420
|
+
.gt-cp__value { display: flex; align-items: center; gap: 8px; padding-inline: 8px 12px; min-width: 0; }
|
|
421
|
+
.gt-cp__swatch { width: 28px; height: 28px; flex: none; border-radius: var(--radius-checkbox); background: linear-gradient(var(--gt-cp-swatch), var(--gt-cp-swatch)), repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 10px 10px; box-shadow: inset 0 0 0 1px var(--cp-inner-border); }
|
|
422
|
+
.gt-cp input { width: 100%; min-width: 0; border: 0; margin: 0; padding: 0; background: none; font: inherit; font-size: var(--type-body-size); color: var(--color-text-default-primary); font-variant-numeric: tabular-nums; outline: none; }
|
|
423
|
+
.gt-cp__value:focus-within, .gt-cp__alpha-field:focus-within, .gt-cp__format:focus-visible { box-shadow: inset 0 0 0 2px var(--color-border-focus-primary); }
|
|
424
|
+
.gt-cp__alpha-field { display: flex; align-items: center; gap: 8px; padding-inline: 12px; width: 80px; box-sizing: border-box; }
|
|
425
|
+
.gt-cp__alpha-field input { text-align: end; }
|
|
426
|
+
.gt-cp__alpha-field span { color: var(--color-text-default-secondary); }
|
|
427
|
+
.gt-cp__sliders { display: flex; align-items: center; gap: 16px; }
|
|
428
|
+
.gt-cp__dropper { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--radius-control); background: none; color: var(--color-text-default-primary); cursor: pointer; }
|
|
429
|
+
.gt-cp__dropper:hover { background: var(--color-bg-neutral-secondary); }
|
|
430
|
+
.gt-cp__dropper:focus-visible { outline: 2px solid var(--color-border-focus-primary); outline-offset: 2px; }
|
|
431
|
+
.gt-cp__tracks { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-inline: calc(var(--cp-thumb-size) / 2); }
|
|
432
|
+
.gt-cp__track { position: relative; height: var(--cp-track-height); border-radius: var(--radius-full); cursor: pointer; touch-action: none; outline: none; }
|
|
433
|
+
.gt-cp__track .gt-cp__thumb { background: transparent; }
|
|
434
|
+
.gt-cp__track--hue { background: linear-gradient(to right, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
|
|
435
|
+
.gt-cp__track--alpha { background: linear-gradient(to right, transparent, var(--gt-cp-solid)), repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
|
|
436
|
+
.gt-cp__track--angle { height: 8px; background: var(--color-bg-neutral-primary); }
|
|
437
|
+
.gt-cp__track--angle .gt-cp__thumb { width: 20px; height: 20px; background: var(--color-bg-surface-primary); }
|
|
438
|
+
[dir="rtl"] .gt-cp__track--hue { background: linear-gradient(to left, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00); }
|
|
439
|
+
[dir="rtl"] .gt-cp__track--alpha { background: linear-gradient(to left, transparent, var(--gt-cp-solid)), repeating-conic-gradient(#d4d4d4 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
|
|
440
|
+
.gt-cp__gradient { display: flex; flex-direction: column; gap: 12px; }
|
|
441
|
+
.gt-cp__stops { position: relative; height: 28px; border-radius: var(--cp-field-radius); box-shadow: inset 0 0 0 1px var(--cp-inner-border); cursor: copy; margin-inline: 12px; touch-action: none; }
|
|
442
|
+
.gt-cp__stop { position: absolute; top: 50%; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.2); transform: translate(-50%, -50%); cursor: grab; touch-action: none; }
|
|
443
|
+
[dir="rtl"] .gt-cp__stop { transform: translate(50%, -50%); }
|
|
444
|
+
.gt-cp__stop.is-on { box-shadow: 0 0 0 2px var(--color-text-default-primary), 0 2px 6px rgba(0,0,0,.25); }
|
|
445
|
+
.gt-cp__stop:focus-visible { outline: 2px solid var(--color-border-focus-primary); outline-offset: 3px; }
|
|
446
|
+
.gt-cp__angle { display: grid; grid-template-columns: auto minmax(0, 1fr) 3em; gap: 16px; align-items: center; font-size: var(--type-caption-size); color: var(--color-text-default-secondary); padding-inline-start: 2px; }
|
|
447
|
+
.gt-cp__angle output { text-align: end; color: var(--color-text-default-primary); font-variant-numeric: tabular-nums; }
|
|
448
|
+
.gt-cp__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
449
|
+
.gt-cp__chip { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px var(--cp-inner-border); }
|
|
450
|
+
.gt-cp__chip:focus-visible { outline: 2px solid var(--color-border-focus-primary); outline-offset: 2px; }
|
|
451
|
+
|
|
452
|
+
/* ---------- Popover ---------- */
|
|
453
|
+
.gt-popover { position: fixed; z-index: var(--popover-z); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: var(--popover-padding); border-radius: var(--popover-radius); background: var(--popover-bg); border: 1px solid var(--popover-border); box-shadow: var(--popover-shadow); color: var(--color-text-default-primary); animation: gt-pop-in var(--duration-fast) var(--ease-out); }
|
|
454
|
+
.gt-popover--bottom { transform-origin: top; }
|
|
455
|
+
.gt-popover--top { transform-origin: bottom; }
|
|
456
|
+
.gt-popover--right { transform-origin: left; }
|
|
457
|
+
.gt-popover--left { transform-origin: right; }
|
|
458
|
+
@keyframes gt-pop-in { from { opacity: 0; transform: scale(.97); } }
|
|
459
|
+
@media (prefers-reduced-motion: reduce) { .gt-popover { animation: none; } }
|
|
460
|
+
|
|
461
|
+
/* Stat: the sparkline wraps under the value when the card is narrow, instead of covering it. */
|
|
462
|
+
.gt-stat__row { flex-wrap: wrap; }
|
|
463
|
+
.gt-stat__value { white-space: nowrap; }
|
|
464
|
+
.gt-stat__chart { flex: none; }
|
|
465
|
+
|
|
466
|
+
/* Segment labels stay on one line. */
|
|
467
|
+
.gt-seg__opt { white-space: nowrap; }
|
|
468
|
+
|
|
469
|
+
/* ======================================================================
|
|
470
|
+
Basics matched to shadcn/ui, Atlassian and monday.com: Label, Slider,
|
|
471
|
+
Skeleton, Alert, Breadcrumb, Tabs, Accordion, Pagination, Table,
|
|
472
|
+
Sheet, DropdownMenu, plus Button link and Avatar xs.
|
|
473
|
+
====================================================================== */
|
|
474
|
+
.gt-label, .gt-range, .gt-skeleton, .gt-alert, .gt-crumbs, .gt-tabs, .gt-acc, .gt-pages, .gt-table, .gt-sheet, .gt-menu {
|
|
475
|
+
font-family: var(--font-sans); -webkit-font-smoothing: antialiased; box-sizing: border-box;
|
|
476
|
+
}
|
|
477
|
+
.gt-range:focus-visible .gt-range__thumb, .gt-tabs__tab:focus-visible, .gt-acc__trigger:focus-visible, .gt-pages__num:focus-visible,
|
|
478
|
+
.gt-crumbs__link:focus-visible, .gt-menu__item:focus-visible, .gt-tabs__panel:focus-visible {
|
|
479
|
+
outline: var(--focus-width) solid var(--color-border-focus-primary); outline-offset: var(--focus-offset);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* Button: link */
|
|
483
|
+
.gt-btn--link { height: auto; padding: 0; background: transparent; color: var(--color-text-accent-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
|
|
484
|
+
.gt-btn--link:hover { text-decoration-color: currentColor; }
|
|
485
|
+
.gt-btn--link:active { transform: none; }
|
|
486
|
+
|
|
487
|
+
/* Avatar xs */
|
|
488
|
+
.gt-avatar--xs { width: 20px; height: 20px; font-size: 10px; }
|
|
489
|
+
|
|
490
|
+
/* Label */
|
|
491
|
+
.gt-label { display: inline-flex; align-items: baseline; gap: var(--space-4); font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); }
|
|
492
|
+
.gt-label__req { color: var(--color-text-danger-primary); }
|
|
493
|
+
.gt-label__opt { color: var(--color-text-default-secondary); font-weight: 400; }
|
|
494
|
+
|
|
495
|
+
/* Slider: track, fill, thumb */
|
|
496
|
+
.gt-range { position: relative; display: flex; align-items: center; width: 100%; height: 24px; cursor: pointer; touch-action: none; user-select: none; }
|
|
497
|
+
.gt-range--sm { height: 16px; }
|
|
498
|
+
.gt-range__track { position: relative; flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--range-track); overflow: hidden; }
|
|
499
|
+
.gt-range__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--gt-range-pct); background: var(--range-fill); }
|
|
500
|
+
.gt-range__thumb { position: absolute; top: 50%; inset-inline-start: var(--gt-range-pct); width: 20px; height: 20px; margin-inline-start: -10px; transform: translateY(-50%); border-radius: var(--radius-full); background: var(--color-bg-knob-primary); box-shadow: inset 0 0 0 2px var(--range-thumb-ring), var(--shadow-raised); transition: transform var(--duration-fast) var(--ease-out); }
|
|
501
|
+
.gt-range--sm .gt-range__thumb { width: 16px; height: 16px; margin-inline-start: -8px; }
|
|
502
|
+
.gt-range:hover .gt-range__thumb { box-shadow: inset 0 0 0 2px var(--range-thumb-ring), var(--shadow-raised-hover); }
|
|
503
|
+
.gt-range.is-dragging .gt-range__thumb { transform: translateY(-50%) scale(1.1); }
|
|
504
|
+
.gt-range:focus-visible { outline: none; }
|
|
505
|
+
.gt-range.is-disabled { opacity: var(--opacity-disabled); cursor: not-allowed; pointer-events: none; }
|
|
506
|
+
|
|
507
|
+
/* Skeleton */
|
|
508
|
+
.gt-skeleton { display: block; background: var(--color-bg-neutral-secondary); position: relative; overflow: hidden; }
|
|
509
|
+
.gt-skeleton--sm { border-radius: var(--radius-4); }
|
|
510
|
+
.gt-skeleton--md { border-radius: var(--radius-8); }
|
|
511
|
+
.gt-skeleton--lg { border-radius: var(--radius-card); }
|
|
512
|
+
.gt-skeleton--full { border-radius: var(--radius-full); }
|
|
513
|
+
.gt-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-bg-surface-primary) 60%, transparent), transparent); animation: gt-shimmer 1.4s var(--ease-out) infinite; }
|
|
514
|
+
@keyframes gt-shimmer { to { transform: translateX(100%); } }
|
|
515
|
+
@media (prefers-reduced-motion: reduce) { .gt-skeleton::after { animation: none; } }
|
|
516
|
+
|
|
517
|
+
/* Alert */
|
|
518
|
+
.gt-alert { display: flex; align-items: flex-start; gap: var(--gap-inline); padding: var(--inset-control); border-radius: var(--radius-field); background: var(--color-bg-surface-primary); color: var(--color-text-default-primary); border: 1px solid var(--color-border-default-tertiary); }
|
|
519
|
+
.gt-alert__icon { flex: none; display: grid; place-items: center; height: var(--type-label-leading); color: var(--color-text-default-secondary); }
|
|
520
|
+
.gt-alert__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
|
|
521
|
+
.gt-alert__title { font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); }
|
|
522
|
+
.gt-alert__desc { font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); text-wrap: pretty; }
|
|
523
|
+
.gt-alert__action { margin-top: var(--space-4); display: flex; gap: var(--gap-control); }
|
|
524
|
+
.gt-alert__close { margin: -4px -4px -4px 0; }
|
|
525
|
+
.gt-alert--info { background: var(--color-bg-info-secondary); border-color: var(--color-border-info-primary); }
|
|
526
|
+
.gt-alert--info .gt-alert__icon { color: var(--color-text-info-primary); }
|
|
527
|
+
.gt-alert--success { background: var(--color-bg-success-secondary); border-color: var(--color-border-success-primary); }
|
|
528
|
+
.gt-alert--success .gt-alert__icon { color: var(--color-text-success-primary); }
|
|
529
|
+
.gt-alert--warning { background: var(--color-bg-warning-secondary); border-color: var(--color-border-warning-primary); }
|
|
530
|
+
.gt-alert--warning .gt-alert__icon { color: var(--color-text-warning-primary); }
|
|
531
|
+
.gt-alert--danger { background: var(--color-bg-danger-secondary); border-color: var(--color-border-danger-primary); }
|
|
532
|
+
.gt-alert--danger .gt-alert__icon { color: var(--color-text-danger-primary); }
|
|
533
|
+
|
|
534
|
+
/* Breadcrumb */
|
|
535
|
+
.gt-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
|
|
536
|
+
.gt-crumbs li { display: inline-flex; align-items: center; gap: var(--space-4); font-size: var(--type-caption-size); line-height: var(--type-caption-leading); }
|
|
537
|
+
.gt-crumbs__link { border: 0; padding: 0; background: none; font: inherit; color: var(--color-text-default-secondary); text-decoration: none; cursor: pointer; border-radius: var(--radius-4); }
|
|
538
|
+
.gt-crumbs__link:hover { color: var(--color-text-default-primary); text-decoration: underline; text-underline-offset: 3px; }
|
|
539
|
+
.gt-crumbs__current { color: var(--color-text-default-primary); font-weight: var(--type-label-weight); }
|
|
540
|
+
.gt-crumbs__sep { color: var(--color-text-default-tertiary); }
|
|
541
|
+
[dir="rtl"] .gt-crumbs__sep { transform: scaleX(-1); }
|
|
542
|
+
|
|
543
|
+
/* Tabs: line (underline) and pill (contained) */
|
|
544
|
+
.gt-tabs { display: flex; flex-direction: column; gap: var(--gap-group); min-width: 0; }
|
|
545
|
+
.gt-tabs__list { display: flex; gap: var(--space-4); overflow-x: auto; scrollbar-width: none; }
|
|
546
|
+
.gt-tabs__tab { position: relative; display: inline-flex; align-items: center; gap: var(--space-8); height: var(--control-md); padding: 0 var(--inset-control); border: 0; background: none; font: inherit; font-size: var(--type-label-size); font-weight: var(--type-label-weight); color: var(--color-text-default-secondary); white-space: nowrap; cursor: pointer; transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
|
|
547
|
+
.gt-tabs__tab:hover { color: var(--color-text-default-primary); }
|
|
548
|
+
.gt-tabs__tab.is-on { color: var(--color-text-default-primary); }
|
|
549
|
+
.gt-tabs__tab.is-on .gt-tabs__count { background: var(--color-bg-neutral-primary); color: var(--color-text-default-primary); }
|
|
550
|
+
.gt-tabs__tab:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
|
|
551
|
+
.gt-tabs__count { min-width: 20px; height: 20px; padding: 0 var(--space-8); display: inline-grid; place-items: center; border-radius: var(--radius-full); background: var(--color-bg-neutral-secondary); font-size: var(--type-micro-size, 12px); color: var(--color-text-default-secondary); font-variant-numeric: tabular-nums; }
|
|
552
|
+
.gt-tabs--line .gt-tabs__list { gap: var(--gap-inline); box-shadow: inset 0 -1px 0 var(--color-border-default-tertiary); }
|
|
553
|
+
.gt-tabs--line .gt-tabs__tab { padding: 0 var(--space-4); }
|
|
554
|
+
.gt-tabs__tab:focus-visible { outline-offset: calc(-1 * var(--focus-width)); border-radius: var(--radius-4); }
|
|
555
|
+
.gt-tabs--line .gt-tabs__tab::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--tabs-indicator, var(--color-text-default-primary)); transform: scaleX(0); transition: transform var(--duration-base) var(--ease-out); }
|
|
556
|
+
.gt-tabs--line .gt-tabs__tab.is-on::after { transform: scaleX(1); }
|
|
557
|
+
.gt-tabs--pill .gt-tabs__list { padding: var(--tabs-pill-padding); border-radius: var(--radius-control); background: var(--color-bg-neutral-secondary); align-self: flex-start; }
|
|
558
|
+
.gt-tabs--block .gt-tabs__tab { flex: 1 1 0; justify-content: center; }
|
|
559
|
+
.gt-tabs--block.gt-tabs--pill .gt-tabs__list { align-self: stretch; }
|
|
560
|
+
.gt-tabs--pill .gt-tabs__tab { height: calc(var(--control-md) - 2 * var(--tabs-pill-padding)); border-radius: var(--tabs-pill-tab-radius); }
|
|
561
|
+
.gt-tabs--pill .gt-tabs__tab.is-on { background: var(--color-bg-surface-primary); box-shadow: var(--shadow-raised); }
|
|
562
|
+
.gt-tabs__panel { min-width: 0; border-radius: var(--radius-4); }
|
|
563
|
+
/* Vertical tabs: side navigation. The list is a column at the start, the panel fills the rest. */
|
|
564
|
+
.gt-tabs--vertical { flex-direction: row; align-items: flex-start; gap: var(--gap-section); }
|
|
565
|
+
.gt-tabs--vertical .gt-tabs__list { flex-direction: column; flex: none; width: var(--tabs-vertical-width); gap: var(--space-4); overflow: visible; }
|
|
566
|
+
.gt-tabs--vertical .gt-tabs__tab { width: 100%; justify-content: flex-start; text-align: start; padding: 0 var(--inset-control); border-radius: var(--radius-control); }
|
|
567
|
+
.gt-tabs--vertical .gt-tabs__tab > span:first-of-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
568
|
+
.gt-tabs--vertical .gt-tabs__tab:hover { background: var(--color-bg-neutral-secondary); }
|
|
569
|
+
.gt-tabs--vertical .gt-tabs__panel { flex: 1 1 auto; }
|
|
570
|
+
.gt-tabs--vertical.gt-tabs--line .gt-tabs__list { gap: var(--space-4); box-shadow: inset -1px 0 0 var(--color-border-default-tertiary); padding-inline-end: var(--space-12); }
|
|
571
|
+
.gt-tabs--vertical.gt-tabs--line .gt-tabs__tab { padding: 0 var(--inset-control); }
|
|
572
|
+
.gt-tabs--vertical.gt-tabs--line .gt-tabs__tab.is-on { background: var(--color-bg-neutral-primary); }
|
|
573
|
+
.gt-tabs--vertical.gt-tabs--line .gt-tabs__tab::after { display: none; }
|
|
574
|
+
.gt-tabs--vertical.gt-tabs--pill .gt-tabs__list { align-self: flex-start; }
|
|
575
|
+
.gt-tabs--vertical.gt-tabs--pill .gt-tabs__tab:hover:not(.is-on) { background: color-mix(in oklch, var(--color-bg-surface-primary) 50%, transparent); }
|
|
576
|
+
@media (max-width: 640px) {
|
|
577
|
+
.gt-tabs--vertical { flex-direction: column; align-items: stretch; gap: var(--gap-group); }
|
|
578
|
+
.gt-tabs--vertical .gt-tabs__list { flex-direction: row; width: auto; overflow-x: auto; }
|
|
579
|
+
.gt-tabs--vertical .gt-tabs__tab { width: auto; }
|
|
580
|
+
.gt-tabs--vertical.gt-tabs--line .gt-tabs__list { box-shadow: inset 0 -1px 0 var(--color-border-default-tertiary); padding-inline-end: 0; }
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/* Accordion */
|
|
584
|
+
.gt-acc { display: flex; flex-direction: column; }
|
|
585
|
+
.gt-acc__item { border-bottom: 1px solid var(--color-border-default-tertiary); }
|
|
586
|
+
.gt-acc__heading { margin: 0; font: inherit; }
|
|
587
|
+
.gt-acc__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--gap-inline); padding: var(--inset-control) 0; border: 0; background: none; font: inherit; font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); text-align: start; cursor: pointer; border-radius: var(--radius-4); }
|
|
588
|
+
.gt-acc__trigger:hover span { text-decoration: underline; text-underline-offset: 3px; }
|
|
589
|
+
.gt-acc__trigger:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
|
|
590
|
+
.gt-acc__chev { color: var(--color-text-default-secondary); transition: transform var(--duration-base) var(--ease-out); }
|
|
591
|
+
.gt-acc__item.is-open .gt-acc__chev { transform: rotate(180deg); }
|
|
592
|
+
.gt-acc__body { padding-bottom: var(--inset-control); font-size: var(--type-body-size); line-height: var(--type-body-leading); color: var(--color-text-default-secondary); }
|
|
593
|
+
|
|
594
|
+
/* Pagination */
|
|
595
|
+
.gt-pages { display: flex; align-items: center; gap: var(--space-4); }
|
|
596
|
+
.gt-pages__num { min-width: var(--control-sm); height: var(--control-sm); padding: 0 var(--space-8); border: 0; border-radius: var(--radius-control); background: transparent; font: inherit; font-size: var(--type-label-size); font-weight: var(--type-label-weight); color: var(--color-text-default-primary); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out); }
|
|
597
|
+
.gt-pages__num:hover { background: var(--color-bg-neutral-secondary); }
|
|
598
|
+
.gt-pages__num.is-on { background: var(--color-bg-surface-primary); box-shadow: inset 0 0 0 1px var(--color-border-default-primary); cursor: default; }
|
|
599
|
+
.gt-pages__gap { min-width: var(--control-sm); text-align: center; color: var(--color-text-default-secondary); }
|
|
600
|
+
|
|
601
|
+
/* Table */
|
|
602
|
+
.gt-table { width: 100%; overflow: auto; border: 1px solid var(--color-border-default-tertiary); border-radius: var(--radius-card); background: var(--color-bg-surface-primary); }
|
|
603
|
+
.gt-table table { width: 100%; border-collapse: collapse; font-size: var(--type-body-size); line-height: var(--type-body-leading); color: var(--color-text-default-primary); }
|
|
604
|
+
.gt-table__caption { caption-side: bottom; padding: var(--inset-control); font-size: var(--type-caption-size); color: var(--color-text-default-secondary); text-align: start; }
|
|
605
|
+
.gt-table th { position: sticky; top: 0; z-index: 1; height: var(--control-md); padding: 0 var(--inset-control); background: var(--color-bg-surface-primary); border-bottom: 1px solid var(--color-border-default-tertiary); font-size: var(--type-caption-size); font-weight: var(--type-label-weight); color: var(--color-text-default-secondary); white-space: nowrap; }
|
|
606
|
+
.gt-table td { padding: var(--inset-control); border-bottom: 1px solid var(--color-border-default-tertiary); font-variant-numeric: tabular-nums; }
|
|
607
|
+
.gt-table--compact td { padding-block: var(--space-8); }
|
|
608
|
+
.gt-table tbody tr:last-child td { border-bottom: 0; }
|
|
609
|
+
.gt-table tr.is-clickable { cursor: pointer; }
|
|
610
|
+
.gt-table tbody tr:hover td { background: var(--color-bg-surface-secondary); }
|
|
611
|
+
.gt-table tr.is-selected td, .gt-table tbody tr.is-selected:hover td { background: var(--color-bg-accent-secondary); }
|
|
612
|
+
.gt-table__empty { text-align: center; color: var(--color-text-default-secondary); padding: var(--gap-section) var(--inset-control); }
|
|
613
|
+
|
|
614
|
+
/* Sheet */
|
|
615
|
+
.gt-sheet-scrim { place-items: stretch; padding: 0; animation: gt-fade-in var(--duration-base) var(--ease-out); }
|
|
616
|
+
.gt-sheet { position: fixed; display: flex; flex-direction: column; background: var(--color-bg-surface-primary); color: var(--color-text-default-primary); box-shadow: var(--shadow-floating); outline: none; }
|
|
617
|
+
.gt-sheet--right, .gt-sheet--left { top: 0; bottom: 0; width: min(100vw, var(--gt-sheet-w, 400px)); }
|
|
618
|
+
.gt-sheet--sm { --gt-sheet-w: 320px; } .gt-sheet--md { --gt-sheet-w: 400px; } .gt-sheet--lg { --gt-sheet-w: 560px; }
|
|
619
|
+
.gt-sheet--right { inset-inline-end: 0; animation: gt-sheet-in-end var(--duration-slow) var(--ease-out); }
|
|
620
|
+
.gt-sheet--left { inset-inline-start: 0; animation: gt-sheet-in-start var(--duration-slow) var(--ease-out); }
|
|
621
|
+
.gt-sheet--bottom { left: 0; right: 0; bottom: 0; max-height: 85vh; border-radius: var(--radius-container) var(--radius-container) 0 0; animation: gt-sheet-in-bottom var(--duration-slow) var(--ease-out); }
|
|
622
|
+
.gt-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-inline); padding: var(--inset-container); }
|
|
623
|
+
.gt-sheet__titles { display: flex; flex-direction: column; gap: var(--space-4); }
|
|
624
|
+
.gt-sheet__title { margin: 0; font-size: var(--type-title-size); line-height: var(--type-title-leading); font-weight: var(--type-title-weight); }
|
|
625
|
+
.gt-sheet__desc { margin: 0; font-size: var(--type-caption-size); line-height: var(--type-caption-leading); color: var(--color-text-default-secondary); }
|
|
626
|
+
.gt-sheet__body { flex: 1; overflow: auto; padding: 0 var(--inset-container) var(--inset-container); display: flex; flex-direction: column; gap: var(--gap-group); }
|
|
627
|
+
.gt-sheet__foot { display: flex; justify-content: flex-end; gap: var(--gap-control); padding: var(--inset-control) var(--inset-container); border-top: 1px solid var(--color-border-default-tertiary); }
|
|
628
|
+
@keyframes gt-fade-in { from { opacity: 0; } }
|
|
629
|
+
@keyframes gt-sheet-in-end { from { transform: translateX(100%); } }
|
|
630
|
+
@keyframes gt-sheet-in-start { from { transform: translateX(-100%); } }
|
|
631
|
+
[dir="rtl"] .gt-sheet--right { animation-name: gt-sheet-in-start; }
|
|
632
|
+
[dir="rtl"] .gt-sheet--left { animation-name: gt-sheet-in-end; }
|
|
633
|
+
@keyframes gt-sheet-in-bottom { from { transform: translateY(100%); } }
|
|
634
|
+
@media (prefers-reduced-motion: reduce) { .gt-sheet, .gt-sheet-scrim { animation: none; } }
|
|
635
|
+
|
|
636
|
+
/* Dropdown menu */
|
|
637
|
+
.gt-menu-anchor { display: inline-flex; }
|
|
638
|
+
.gt-menu { min-width: 200px; padding: var(--menu-padding); }
|
|
639
|
+
.gt-menu [role="menu"] { display: flex; flex-direction: column; outline: none; }
|
|
640
|
+
.gt-menu__item { display: flex; align-items: center; gap: var(--space-8); width: 100%; height: var(--control-sm); padding: 0 var(--space-8); border: 0; border-radius: var(--menu-item-radius); background: none; font: inherit; font-size: var(--type-caption-size, 14px); color: var(--color-text-default-primary); text-align: start; cursor: pointer; }
|
|
641
|
+
.gt-menu__item .gt-icon { color: var(--color-text-default-secondary); }
|
|
642
|
+
.gt-menu__item:hover, .gt-menu__item:focus { background: var(--color-bg-neutral-secondary); outline: none; }
|
|
643
|
+
.gt-menu__item:focus-visible { outline: none; box-shadow: inset 0 0 0 var(--focus-width) var(--color-border-focus-primary); }
|
|
644
|
+
.gt-menu__item.is-danger, .gt-menu__item.is-danger .gt-icon { color: var(--color-text-danger-primary); }
|
|
645
|
+
.gt-menu__item.is-danger:hover, .gt-menu__item.is-danger:focus { background: var(--color-bg-danger-secondary); }
|
|
646
|
+
.gt-menu__item[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; }
|
|
647
|
+
.gt-menu__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
648
|
+
.gt-menu__kbd { font-family: var(--font-sans); font-size: 12px; color: var(--color-text-default-tertiary); }
|
|
649
|
+
.gt-menu__sep { height: 1px; margin: var(--space-4) calc(-1 * var(--space-4)); background: var(--color-border-default-tertiary); }
|
|
650
|
+
.gt-menu__label { padding: var(--space-8) var(--space-8) var(--space-4); font-size: 12px; font-weight: var(--type-label-weight); color: var(--color-text-default-secondary); }
|
|
651
|
+
|
|
652
|
+
/* Button icons follow the density: 16px in a 32px button, never larger than half its height */
|
|
653
|
+
.gt-btn--sm > svg, .gt-iconbtn--sm > svg { width: var(--button-icon-size-sm); height: var(--button-icon-size-sm); }
|
|
654
|
+
.gt-btn--md > svg, .gt-iconbtn--md > svg { width: var(--button-icon-size-md); height: var(--button-icon-size-md); }
|
|
655
|
+
.gt-btn--lg > svg, .gt-iconbtn--lg > svg { width: var(--button-icon-size-lg); height: var(--button-icon-size-lg); }
|