@atelier-ui/styles 0.3.5

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.
@@ -0,0 +1,255 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ :is(.atl-drawer, .atl-drawer-content, .atl-drawer-footer, .atl-drawer-header),
7
+ :is(.atl-drawer, .atl-drawer-content, .atl-drawer-footer, .atl-drawer-header)
8
+ * {
9
+ box-sizing: border-box;
10
+ }
11
+
12
+ /* ── Root ──────────────────────────────────────────────────────────── */
13
+ .atl-drawer {
14
+ /* The library states its own typeface (ADR-0035). Without this the component
15
+ * renders in the consuming app's font while its neighbours render Instrument
16
+ * Sans — measured: a card next to a button showed two typefaces. Declared once
17
+ * per component root, never on a descendant (ADR-0049). */
18
+ font-family: var(--ui-font-family);
19
+ /* The leading every descendant inherits. Stated here so the component keeps
20
+ its own vertical rhythm instead of adopting the consuming app's prose
21
+ leading — the defect that made the row boxes measure differently in a
22
+ Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
23
+ line-height: var(--ui-line-height-normal);
24
+ display: contents;
25
+ }
26
+
27
+ /* ── Native <dialog> base ──────────────────────────────────────────────────── */
28
+ .atl-drawer > dialog {
29
+ all: unset;
30
+ /* Restated after `all: unset`, which resets the box model too — the component's
31
+ * geometry contract has the same specificity and loses on source order, so this
32
+ * element was content-box and 2px taller than its own CSS said (ADR-0051). */
33
+ box-sizing: border-box;
34
+ /* After `all: unset`, which would otherwise reset it (ADR-0049). */
35
+ font-family: var(--ui-font-family);
36
+ position: fixed;
37
+ display: none;
38
+ flex-direction: column;
39
+ background: var(--ui-color-surface);
40
+ box-shadow: var(--ui-shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.3));
41
+ color: var(--ui-color-text);
42
+ overflow: hidden;
43
+ transition:
44
+ transform var(--ui-duration-slow) var(--ui-ease-out, ease-out),
45
+ display var(--ui-duration-slow) allow-discrete,
46
+ overlay var(--ui-duration-slow) allow-discrete;
47
+ }
48
+
49
+ .atl-drawer > dialog[open] {
50
+ display: flex;
51
+ transform: translate(0, 0) !important;
52
+ }
53
+
54
+ /* ── Backdrop ──────────────────────────────────────────────────────────────── */
55
+ .atl-drawer > dialog::backdrop {
56
+ background: var(--ui-color-overlay);
57
+ backdrop-filter: blur(2px);
58
+ transition:
59
+ opacity var(--ui-duration-slow) var(--ui-ease-out, ease-out),
60
+ display var(--ui-duration-slow) allow-discrete,
61
+ overlay var(--ui-duration-slow) allow-discrete;
62
+ }
63
+
64
+ @starting-style {
65
+ .atl-drawer > dialog[open]::backdrop {
66
+ opacity: 0;
67
+ }
68
+ }
69
+
70
+ @media (prefers-color-scheme: dark) {
71
+ .atl-drawer > dialog::backdrop {
72
+ background: var(--ui-color-overlay);
73
+ }
74
+ }
75
+
76
+ [data-theme='dark'] .atl-drawer > dialog::backdrop {
77
+ background: var(--ui-color-overlay);
78
+ }
79
+
80
+ /* ── Panel (inner wrapper) ─────────────────────────────────────────────────── */
81
+ .atl-drawer > dialog > .panel {
82
+ display: flex;
83
+ flex-direction: column;
84
+ width: 100%;
85
+ height: 100%;
86
+ overflow: hidden;
87
+ }
88
+
89
+ /* ═══════════════════════════════════════════════════════════════════════════ */
90
+ /* POSITION VARIANTS */
91
+ /* ═══════════════════════════════════════════════════════════════════════════ */
92
+
93
+ /* ── Right ─────────────────────────────────────────────────────────────────── */
94
+ .atl-drawer.position-right > dialog {
95
+ inset: 0 0 0 auto;
96
+ height: 100dvh;
97
+ transform: translateX(100%);
98
+ }
99
+
100
+ @starting-style {
101
+ .atl-drawer.position-right > dialog[open] {
102
+ transform: translateX(100%);
103
+ }
104
+ }
105
+
106
+ /* ── Left ──────────────────────────────────────────────────────────────────── */
107
+ .atl-drawer.position-left > dialog {
108
+ inset: 0 auto 0 0;
109
+ height: 100dvh;
110
+ transform: translateX(-100%);
111
+ }
112
+
113
+ @starting-style {
114
+ .atl-drawer.position-left > dialog[open] {
115
+ transform: translateX(-100%);
116
+ }
117
+ }
118
+
119
+ /* ── Top ───────────────────────────────────────────────────────────────────── */
120
+ .atl-drawer.position-top > dialog {
121
+ inset: 0 0 auto 0;
122
+ width: 100vw;
123
+ transform: translateY(-100%);
124
+ }
125
+
126
+ @starting-style {
127
+ .atl-drawer.position-top > dialog[open] {
128
+ transform: translateY(-100%);
129
+ }
130
+ }
131
+
132
+ /* ── Bottom ────────────────────────────────────────────────────────────────── */
133
+ .atl-drawer.position-bottom > dialog {
134
+ inset: auto 0 0 0;
135
+ width: 100vw;
136
+ transform: translateY(100%);
137
+ }
138
+
139
+ @starting-style {
140
+ .atl-drawer.position-bottom > dialog[open] {
141
+ transform: translateY(100%);
142
+ }
143
+ }
144
+
145
+ /* ═══════════════════════════════════════════════════════════════════════════ */
146
+ /* SIZE VARIANTS (left/right = width; top/bottom = height) */
147
+ /* ═══════════════════════════════════════════════════════════════════════════ */
148
+
149
+ /* Left / Right widths */
150
+ .atl-drawer.position-right.size-sm > dialog,
151
+ .atl-drawer.position-left.size-sm > dialog {
152
+ width: 20rem;
153
+ }
154
+
155
+ .atl-drawer.position-right.size-md > dialog,
156
+ .atl-drawer.position-left.size-md > dialog {
157
+ width: 28rem;
158
+ }
159
+
160
+ .atl-drawer.position-right.size-lg > dialog,
161
+ .atl-drawer.position-left.size-lg > dialog {
162
+ width: 40rem;
163
+ }
164
+
165
+ .atl-drawer.position-right.size-full > dialog,
166
+ .atl-drawer.position-left.size-full > dialog {
167
+ width: 100vw;
168
+ }
169
+
170
+ /* Top / Bottom heights */
171
+ .atl-drawer.position-top.size-sm > dialog,
172
+ .atl-drawer.position-bottom.size-sm > dialog {
173
+ height: 12rem;
174
+ }
175
+
176
+ .atl-drawer.position-top.size-md > dialog,
177
+ .atl-drawer.position-bottom.size-md > dialog {
178
+ height: 20rem;
179
+ }
180
+
181
+ .atl-drawer.position-top.size-lg > dialog,
182
+ .atl-drawer.position-bottom.size-lg > dialog {
183
+ height: 32rem;
184
+ }
185
+
186
+ .atl-drawer.position-top.size-full > dialog,
187
+ .atl-drawer.position-bottom.size-full > dialog {
188
+ height: 100dvh;
189
+ }
190
+
191
+ /* ═══════════════════════════════════════════════════════════════════════════ */
192
+ /* SUB-COMPONENTS */
193
+ /* ═══════════════════════════════════════════════════════════════════════════ */
194
+
195
+ .atl-drawer-header {
196
+ display: flex;
197
+ align-items: center;
198
+ justify-content: space-between;
199
+ padding: var(--ui-spacing-5) var(--ui-spacing-6);
200
+ border-bottom: var(--ui-border-width) solid var(--ui-color-border);
201
+ font-size: var(--ui-font-size-xl);
202
+ font-weight: var(--ui-font-weight-semibold);
203
+ letter-spacing: var(--ui-letter-spacing-tight);
204
+ color: var(--ui-color-text);
205
+ flex-shrink: 0;
206
+ }
207
+
208
+ .atl-drawer-content {
209
+ display: block;
210
+ padding: var(--ui-spacing-6);
211
+ overflow-y: auto;
212
+ flex: 1;
213
+ color: var(--ui-color-text);
214
+ }
215
+
216
+ .atl-drawer-footer {
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: flex-end;
220
+ gap: var(--ui-spacing-3);
221
+ padding: var(--ui-spacing-5) var(--ui-spacing-6);
222
+ border-top: var(--ui-border-width) solid var(--ui-color-border);
223
+ flex-shrink: 0;
224
+ }
225
+
226
+ /* ── Close button ──────────────────────────────────────────────────────────── */
227
+ .atl-drawer-header > .close-btn {
228
+ display: inline-flex;
229
+ align-items: center;
230
+ justify-content: center;
231
+ flex-shrink: 0;
232
+ width: var(--ui-control-height-sm);
233
+ height: var(--ui-control-height-sm);
234
+ padding: 0;
235
+ margin-left: var(--ui-spacing-3);
236
+ background: transparent;
237
+ border: none;
238
+ border-radius: var(--ui-radius-sm);
239
+ cursor: pointer;
240
+ color: var(--ui-color-text-muted);
241
+ transition:
242
+ background-color var(--ui-transition-fast),
243
+ color var(--ui-transition-fast);
244
+ line-height: 1;
245
+ }
246
+
247
+ .atl-drawer-header > .close-btn:hover {
248
+ background-color: var(--ui-color-surface-sunken);
249
+ color: var(--ui-color-text);
250
+ }
251
+
252
+ .atl-drawer-header > .close-btn:focus-visible {
253
+ outline: none;
254
+ box-shadow: var(--ui-focus-ring);
255
+ }
@@ -0,0 +1,47 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ .atl-icon,
7
+ .atl-icon * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .atl-icon {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ font-family: var(--ui-font-family);
16
+ font-weight: var(--ui-font-weight-medium);
17
+ line-height: 1;
18
+ color: currentColor;
19
+ user-select: none;
20
+ flex-shrink: 0;
21
+ }
22
+
23
+ .atl-icon.size-sm {
24
+ width: 1rem;
25
+ height: 1rem;
26
+ font-size: var(--ui-font-size-sm);
27
+ }
28
+
29
+ .atl-icon.size-md {
30
+ width: 1.25rem;
31
+ height: 1.25rem;
32
+ font-size: var(--ui-font-size-md);
33
+ }
34
+
35
+ .atl-icon.size-lg {
36
+ width: 1.5rem;
37
+ height: 1.5rem;
38
+ font-size: var(--ui-font-size-lg);
39
+ }
40
+
41
+ /* The size classes define the box; the svg fills it. Geometry is always the
42
+ * 0 0 24 24 viewBox, so every size is the same shape at a different scale. */
43
+ .atl-icon > svg {
44
+ width: 100%;
45
+ height: 100%;
46
+ display: block;
47
+ }
@@ -0,0 +1,121 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ .atl-input,
7
+ .atl-input * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .atl-input {
12
+ display: block;
13
+ font-family: var(--ui-font-family);
14
+ /* The leading every descendant inherits, stated so the component keeps its
15
+ own rhythm rather than the consuming app's prose leading (ADR-0052).
16
+ A single-line field, so tight. */
17
+ line-height: var(--ui-line-height-tight);
18
+ font-size: var(--ui-font-size-md);
19
+ }
20
+
21
+ .atl-input input {
22
+ display: block;
23
+ width: 100%;
24
+ min-height: var(--ui-control-height-md);
25
+ padding: calc(
26
+ (
27
+ var(--ui-control-height-md) - var(--ui-line-height-tight) *
28
+ var(--ui-font-size-md)
29
+ ) /
30
+ 2 - var(--ui-border-width)
31
+ )
32
+ var(--ui-spacing-4);
33
+ font-size: inherit;
34
+ font-family: inherit;
35
+ /* Control line-height, not the prose one: a single-line field has nothing to
36
+ * read across lines, and 1.5 is what made it 6px taller than a button. */
37
+ line-height: var(--ui-line-height-tight);
38
+ color: var(--ui-color-text);
39
+ background-color: var(--ui-color-input-bg);
40
+ border: var(--ui-border-width) solid var(--ui-color-input-border);
41
+ border-radius: var(--ui-radius-md);
42
+ transition:
43
+ border-color var(--ui-transition-fast),
44
+ box-shadow var(--ui-transition-fast),
45
+ background-color var(--ui-transition-fast);
46
+ outline: none;
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ .atl-input input::placeholder {
51
+ color: var(--ui-color-placeholder);
52
+ }
53
+
54
+ .atl-input input:hover:not(:disabled):not(:read-only) {
55
+ border-color: var(--ui-color-input-border-hover);
56
+ }
57
+
58
+ .atl-input input:focus {
59
+ border-color: var(--ui-color-input-border-focus);
60
+ background-color: var(--ui-color-input-bg-focus);
61
+ box-shadow: var(--ui-focus-ring);
62
+ }
63
+
64
+ .atl-input > .input-field {
65
+ position: relative;
66
+ }
67
+
68
+ /* Invalid state */
69
+ .atl-input.is-invalid input {
70
+ border-color: var(--ui-color-input-border-invalid);
71
+ padding-right: 2.25rem;
72
+ }
73
+
74
+ .atl-input.is-invalid input:focus {
75
+ border-color: var(--ui-color-input-border-invalid);
76
+ box-shadow: var(--ui-focus-ring-danger);
77
+ }
78
+
79
+ /* Non-color invalid indicator (WCAG 1.4.1). A real AtlIcon rather than a CSS
80
+ * `content: '✕'`: the glyph could not follow the icon set and Figma cannot put an
81
+ * icon instance behind a pseudo-element (ADR-0046). */
82
+ .atl-input.is-invalid > .input-field > .invalid-icon {
83
+ position: absolute;
84
+ top: 50%;
85
+ transform: translateY(-50%);
86
+ right: 0.875rem;
87
+ color: var(--ui-color-danger);
88
+ pointer-events: none;
89
+ }
90
+
91
+ /* Disabled state */
92
+ .atl-input.is-disabled {
93
+ opacity: var(--ui-opacity-disabled);
94
+ cursor: not-allowed;
95
+ }
96
+
97
+ .atl-input.is-disabled input {
98
+ cursor: not-allowed;
99
+ }
100
+
101
+ /* Readonly state */
102
+ .atl-input.is-readonly input {
103
+ background-color: var(--ui-color-surface-sunken);
104
+ /* Readonly is content, not a control: the interactive edge goes away while the
105
+ * filled surface stays. Transparent rather than removed so the 1px border keeps
106
+ * its space and the height stays exactly --ui-control-height-md (ADR-0045). */
107
+ border-color: transparent;
108
+ cursor: default;
109
+ }
110
+
111
+ /* Error messages */
112
+ .atl-input > .errors {
113
+ margin-top: var(--ui-spacing-2);
114
+ }
115
+
116
+ .atl-input > .errors > .error-message {
117
+ margin: 0;
118
+ font-size: var(--ui-font-size-sm);
119
+ color: var(--ui-color-error-text);
120
+ line-height: var(--ui-line-height-normal);
121
+ }
@@ -0,0 +1,113 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ :is(.atl-menu, .atl-menu-item, .atl-menu-separator),
7
+ :is(.atl-menu, .atl-menu-item, .atl-menu-separator) * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ /* Menu panel */
12
+ .atl-menu {
13
+ display: block;
14
+ min-width: 12rem;
15
+ padding: var(--ui-spacing-2) 0;
16
+ background: var(--ui-color-surface-raised);
17
+ border: var(--ui-border-width) solid var(--ui-color-border);
18
+ border-radius: var(--ui-radius-lg);
19
+ box-shadow: var(--ui-shadow-lg);
20
+ font-family: var(--ui-font-family);
21
+ /* The leading every descendant inherits. Stated here so the component keeps
22
+ its own vertical rhythm instead of adopting the consuming app's prose
23
+ leading — the defect that made the row boxes measure differently in a
24
+ Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
25
+ line-height: var(--ui-line-height-tight);
26
+ font-size: var(--ui-font-size-md);
27
+ color: var(--ui-color-text);
28
+ outline: none;
29
+ overflow: hidden;
30
+
31
+ /* Entry animation */
32
+ animation: atl-menu-enter var(--ui-duration-normal) var(--ui-ease-out)
33
+ forwards;
34
+ }
35
+
36
+ .atl-menu.variant-compact {
37
+ font-size: var(--ui-font-size-sm);
38
+ padding: var(--ui-spacing-1) 0;
39
+ }
40
+
41
+ .atl-menu.variant-compact .atl-menu-item {
42
+ min-height: var(--ui-control-height-sm);
43
+ /* Stated, not inherited: an inherited line-height makes the box grow with the
44
+ * text metrics, which is how three controls measured right on one machine and
45
+ * wrong on another (ADR-0048). */
46
+ line-height: var(--ui-line-height-tight);
47
+ padding: calc(
48
+ (
49
+ var(--ui-control-height-sm) - var(--ui-line-height-tight) *
50
+ var(--ui-font-size-sm)
51
+ ) /
52
+ 2
53
+ )
54
+ var(--ui-spacing-3);
55
+ }
56
+
57
+ @keyframes atl-menu-enter {
58
+ from {
59
+ opacity: 0;
60
+ transform: translateY(-4px);
61
+ }
62
+ to {
63
+ opacity: 1;
64
+ transform: translateY(0);
65
+ }
66
+ }
67
+
68
+ /* Menu item */
69
+ .atl-menu-item {
70
+ display: flex;
71
+ align-items: center;
72
+ gap: var(--ui-spacing-3);
73
+ /* Row recipe (ADR-0052): the height is stated, the block padding is zero and the
74
+ * content is centred. A row centres, a control pads — ADR-0041's derived-padding
75
+ * formula produces the wrong box here. The line-height is stated so the box does
76
+ * not follow the installed font (ADR-0048).
77
+ */
78
+ min-height: var(--ui-row-height-sm);
79
+ padding-block: 0;
80
+ padding-inline: var(--ui-spacing-4);
81
+ cursor: pointer;
82
+ color: var(--ui-color-text);
83
+ transition: background var(--ui-transition-fast);
84
+ outline: none;
85
+ border: none;
86
+ background: none;
87
+ font: inherit;
88
+ /* After `font: inherit`, which is a shorthand and resets line-height along with
89
+ * everything else. Declared above it, the row's stated line-height was silently
90
+ * erased and the box grew with the text metrics again (ADR-0052). */
91
+ line-height: var(--ui-line-height-tight);
92
+ width: 100%;
93
+ text-align: start;
94
+ }
95
+
96
+ .atl-menu-item:hover,
97
+ .atl-menu-item:focus-visible {
98
+ background: var(--ui-color-surface-sunken);
99
+ }
100
+
101
+ .atl-menu-item.is-disabled {
102
+ opacity: var(--ui-opacity-disabled);
103
+ cursor: not-allowed;
104
+ }
105
+
106
+ /* Separator */
107
+ .atl-menu-separator {
108
+ display: block;
109
+ height: 1px;
110
+ margin: var(--ui-spacing-2) 0;
111
+ background: var(--ui-color-border);
112
+ border: none;
113
+ }
@@ -0,0 +1,23 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ .atl-menu-panel,
7
+ .atl-menu-panel * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ /* Served to React and Vue only, after atl-menu.css (the shared sheet): the panel is a
12
+ * positioned wrapper inside the trigger's wrapper (AtlMenuTrigger), not a CDK overlay
13
+ * as in Angular, so the positioning rule exists only here and Angular does not load
14
+ * this file. ADR-0148 Decision 4. */
15
+
16
+ /* Trigger panel — positioned absolutely below trigger */
17
+ .atl-menu-panel {
18
+ position: absolute;
19
+ z-index: var(--ui-z-dropdown, 100);
20
+ top: calc(100% + var(--ui-spacing-2));
21
+ left: 0;
22
+ min-width: 100%;
23
+ }
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@atelier-ui/styles",
3
+ "version": "0.3.5",
4
+ "description": "Atelier component CSS — class-rooted, token-driven, shared by the Angular, React and Vue libraries",
5
+ "keywords": [
6
+ "css",
7
+ "ui",
8
+ "components",
9
+ "design-system",
10
+ "atelier-ui",
11
+ "llm"
12
+ ],
13
+ "author": "Atelier",
14
+ "license": "MIT",
15
+ "type": "module",
16
+ "sideEffects": [
17
+ "**/*.css"
18
+ ],
19
+ "exports": {
20
+ "./*.css": "./*.css",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "**/*.css",
25
+ "README.md"
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/DominikPieper/atelier-ui.git",
30
+ "directory": "libs/styles"
31
+ }
32
+ }
@@ -0,0 +1,101 @@
1
+ /* Geometry contract: every size this component states is a border-box size.
2
+ * Declared with the component rather than as a global reset, so it ships in the
3
+ * same file as the sizes it governs and no consuming app has to supply one.
4
+ * Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
5
+ * See ADR-0043. */
6
+ .atl-pagination,
7
+ .atl-pagination * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .atl-pagination {
12
+ display: block;
13
+ font-family: var(--ui-font-family);
14
+ /* The leading every descendant inherits. Stated here so the component keeps
15
+ its own vertical rhythm instead of adopting the consuming app's prose
16
+ leading — the defect that made the row boxes measure differently in a
17
+ Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
18
+ line-height: var(--ui-line-height-tight);
19
+ }
20
+
21
+ .atl-pagination .page-list {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ align-items: center;
25
+ gap: var(--ui-spacing-2);
26
+ list-style: none;
27
+ margin: 0;
28
+ padding: 0;
29
+ }
30
+
31
+ /* Page button */
32
+ .atl-pagination .page-btn {
33
+ all: unset;
34
+ /* Restated after `all: unset`, which resets the box model too — the component's
35
+ * geometry contract has the same specificity and loses on source order, so this
36
+ * element was content-box and 2px taller than its own CSS said (ADR-0051). */
37
+ box-sizing: border-box;
38
+ display: inline-flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ min-width: 2.25rem;
42
+ height: 2.25rem;
43
+ padding: 0 var(--ui-spacing-2);
44
+ border-radius: var(--ui-radius-md);
45
+ border: var(--ui-border-width) solid transparent;
46
+ background: transparent;
47
+ color: var(--ui-color-text);
48
+ font-size: var(--ui-font-size-sm);
49
+ font-weight: var(--ui-font-weight-medium);
50
+ cursor: pointer;
51
+ user-select: none;
52
+ transition:
53
+ background-color var(--ui-transition-fast),
54
+ border-color var(--ui-transition-fast),
55
+ color var(--ui-transition-fast);
56
+ }
57
+
58
+ .atl-pagination .page-btn:hover:not(:disabled) {
59
+ background-color: var(--ui-color-surface-sunken);
60
+ color: var(--ui-color-text);
61
+ }
62
+
63
+ .atl-pagination .page-btn:focus-visible {
64
+ outline: none;
65
+ box-shadow: var(--ui-focus-ring);
66
+ }
67
+
68
+ /* Active (current) page — primary fill. Weight stays the resting --ui-type-control
69
+ * medium (ADR-0074): the Figma master renders this label Medium in every state, and
70
+ * .atl-tab-group's own .is-active — the other stateful member of the same six-rule
71
+ * consumer list — changes only colour, never weight, on its current item. */
72
+ .atl-pagination .page-btn.is-active {
73
+ background-color: var(--ui-color-primary);
74
+ border-color: var(--ui-color-primary);
75
+ color: var(--ui-color-text-on-primary);
76
+ }
77
+
78
+ .atl-pagination .page-btn.is-active:hover {
79
+ background-color: var(--ui-color-primary-hover);
80
+ border-color: var(--ui-color-primary-hover);
81
+ }
82
+
83
+ /* Disabled */
84
+ .atl-pagination .page-btn.is-disabled,
85
+ .atl-pagination .page-btn:disabled {
86
+ opacity: var(--ui-opacity-disabled);
87
+ pointer-events: none;
88
+ cursor: default;
89
+ }
90
+
91
+ /* Ellipsis */
92
+ .atl-pagination .ellipsis {
93
+ display: inline-flex;
94
+ align-items: center;
95
+ justify-content: center;
96
+ min-width: 2.25rem;
97
+ height: 2.25rem;
98
+ color: var(--ui-color-text-muted);
99
+ font-size: var(--ui-font-size-sm);
100
+ user-select: none;
101
+ }