@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.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @atelier-ui/styles
2
+
3
+ The component CSS of Atelier UI, written once. One file per component, rooted at
4
+ the component's own class (`.atl-button`, `.atl-badge`, `.atl-dialog`), driven by
5
+ the `--ui-*` design tokens.
6
+
7
+ ```css
8
+ @import '@atelier-ui/styles/button/atl-button.css';
9
+ ```
10
+
11
+ ## Who uses it
12
+
13
+ - **`@atelier-ui/react`** depends on this package at runtime. Its components
14
+ `import '@atelier-ui/styles/<dir>/atl-<name>.css'`, and your bundler resolves
15
+ that specifier.
16
+ - **`@atelier-ui/angular`** and **`@atelier-ui/vue`** consume it at build time
17
+ only: Angular inlines it into the component styles (`ViewEncapsulation.None`),
18
+ Vue extracts it into `index.css`. They do not depend on this package at
19
+ runtime.
20
+
21
+ You normally do not install this package yourself. The tokens (`--ui-*`) come
22
+ from your framework package, e.g. `@atelier-ui/react/styles/tokens.css`.
23
+
24
+ ## Layout
25
+
26
+ Every file is served as `@atelier-ui/styles/<dir>/atl-<name>.css`. The CSS files
27
+ are side-effectful (`"sideEffects": ["**/*.css"]`); keep them when tree-shaking.
@@ -0,0 +1,152 @@
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-accordion-group, .atl-accordion-item),
7
+ :is(.atl-accordion-group, .atl-accordion-item) * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ /* ── AccordionGroup ──────────────────────────────────────────────────────── */
12
+ .atl-accordion-group {
13
+ display: block;
14
+ font-family: var(--ui-font-family);
15
+ /* The leading every descendant inherits. Stated here so the component keeps
16
+ its own vertical rhythm instead of adopting the consuming app's prose
17
+ leading — the defect that made the row boxes measure differently in a
18
+ Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
19
+ line-height: var(--ui-line-height-normal);
20
+ color: var(--ui-color-text);
21
+ }
22
+
23
+ /* ── Default variant — shared borders between items ──────────────────────── */
24
+ .atl-accordion-group.variant-default {
25
+ border-top: var(--ui-border-width) solid var(--ui-color-border);
26
+ }
27
+
28
+ .atl-accordion-group.variant-default > .atl-accordion-item {
29
+ border-bottom: var(--ui-border-width) solid var(--ui-color-border);
30
+ }
31
+
32
+ /* ── Bordered variant — outer border + radius ────────────────────────────── */
33
+ .atl-accordion-group.variant-bordered {
34
+ border: var(--ui-border-width) solid var(--ui-color-border);
35
+ border-radius: var(--ui-radius-lg);
36
+ overflow: hidden;
37
+ }
38
+
39
+ .atl-accordion-group.variant-bordered > .atl-accordion-item:not(:last-child) {
40
+ border-bottom: var(--ui-border-width) solid var(--ui-color-border);
41
+ }
42
+
43
+ /* ── Separated variant — card-like items with gap ────────────────────────── */
44
+ .atl-accordion-group.variant-separated {
45
+ display: flex;
46
+ flex-direction: column;
47
+ gap: var(--ui-spacing-2);
48
+ }
49
+
50
+ .atl-accordion-group.variant-separated > .atl-accordion-item {
51
+ border: var(--ui-border-width) solid var(--ui-color-border);
52
+ border-radius: var(--ui-radius-lg);
53
+ overflow: hidden;
54
+ }
55
+
56
+ /* ── AccordionItem ──────────────────────────────────────────────────────────── */
57
+ .atl-accordion-item {
58
+ display: block;
59
+ }
60
+
61
+ /* ── Heading reset ─────────────────────────────────────────────────────────── */
62
+ .atl-accordion-item > .accordion-heading {
63
+ all: unset;
64
+ /* Restated after `all: unset`, which resets the box model too — the component's
65
+ * geometry contract has the same specificity and loses on source order, so this
66
+ * element was content-box and 2px taller than its own CSS said (ADR-0051). */
67
+ box-sizing: border-box;
68
+ display: block;
69
+ }
70
+
71
+ /* ── Trigger button ────────────────────────────────────────────────────────── */
72
+ .atl-accordion-item > .accordion-heading > .accordion-trigger {
73
+ all: unset;
74
+ box-sizing: border-box;
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: space-between;
78
+ gap: var(--ui-spacing-3);
79
+ width: 100%;
80
+ /* Row recipe (ADR-0052): 3.25rem was a literal that happened to clear the
81
+ prose leading. On the row ladder the trigger is a lg row, and it states
82
+ its own line-height because `all: unset` above reset that to inherit —
83
+ without it the box grows with whatever leading the page sets. */
84
+ min-height: var(--ui-row-height-lg);
85
+ padding-block: 0;
86
+ padding-inline: var(--ui-spacing-5);
87
+ line-height: var(--ui-line-height-tight);
88
+ font-size: var(--ui-font-size-md);
89
+ font-weight: var(--ui-font-weight-semibold);
90
+ color: var(--ui-color-text);
91
+ cursor: pointer;
92
+ transition: background-color var(--ui-transition-fast);
93
+ user-select: none;
94
+ }
95
+
96
+ .atl-accordion-item
97
+ > .accordion-heading
98
+ > .accordion-trigger:hover:not(.is-disabled) {
99
+ background: var(--ui-color-surface-sunken);
100
+ }
101
+
102
+ .atl-accordion-item > .accordion-heading > .accordion-trigger:focus-visible {
103
+ outline: none;
104
+ box-shadow: var(--ui-focus-ring);
105
+ position: relative;
106
+ z-index: 1;
107
+ }
108
+
109
+ .atl-accordion-item > .accordion-heading > .accordion-trigger.is-disabled {
110
+ opacity: var(--ui-opacity-disabled);
111
+ cursor: not-allowed;
112
+ }
113
+
114
+ /* ── Chevron icon ──────────────────────────────────────────────────────────── */
115
+ .atl-accordion-item > .accordion-heading > .accordion-trigger > .chevron {
116
+ flex-shrink: 0;
117
+ color: var(--ui-color-text-muted);
118
+ transition: transform var(--ui-duration-normal) var(--ui-ease-out);
119
+ }
120
+
121
+ .atl-accordion-item
122
+ > .accordion-heading
123
+ > .accordion-trigger
124
+ > .chevron.is-expanded {
125
+ transform: rotate(180deg);
126
+ }
127
+
128
+ /* ── Collapsible panel wrapper — CSS grid height animation ─────────────────── */
129
+ .atl-accordion-item > .accordion-panel-wrapper {
130
+ display: grid;
131
+ grid-template-rows: 0fr;
132
+ transition: grid-template-rows var(--ui-duration-normal) var(--ui-ease-out);
133
+ }
134
+
135
+ .atl-accordion-item > .accordion-panel-wrapper.is-expanded {
136
+ grid-template-rows: 1fr;
137
+ }
138
+
139
+ /* ── Inner panel ───────────────────────────────────────────────────────────── */
140
+ .atl-accordion-item > .accordion-panel-wrapper > .accordion-panel {
141
+ overflow: hidden;
142
+ }
143
+
144
+ .atl-accordion-item > .accordion-panel-wrapper.is-expanded > .accordion-panel {
145
+ padding: 0 var(--ui-spacing-5) var(--ui-spacing-5);
146
+ }
147
+
148
+ .atl-accordion-item
149
+ > .accordion-panel-wrapper:not(.is-expanded)
150
+ > .accordion-panel {
151
+ padding: 0 var(--ui-spacing-5);
152
+ }
@@ -0,0 +1,102 @@
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-alert,
7
+ .atl-alert * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .atl-alert {
12
+ display: flex;
13
+ align-items: flex-start;
14
+ gap: var(--ui-spacing-3);
15
+ padding: var(--ui-spacing-4) var(--ui-spacing-5);
16
+ border-radius: var(--ui-radius-lg);
17
+ border: var(--ui-border-width) solid transparent;
18
+ font: var(--ui-type-body-sm);
19
+ box-sizing: border-box;
20
+ width: 100%;
21
+ }
22
+
23
+ .atl-alert > .content {
24
+ flex: 1;
25
+ }
26
+
27
+ /* Variants — semantic-tinted bg + matching text + faint border. */
28
+ .atl-alert.variant-info {
29
+ background-color: var(--ui-color-info-bg);
30
+ color: var(--ui-color-info-text);
31
+ border-color: color-mix(in srgb, var(--ui-color-info-text) 20%, transparent);
32
+ }
33
+
34
+ .atl-alert.variant-success {
35
+ background-color: var(--ui-color-success-bg);
36
+ color: var(--ui-color-success-text);
37
+ border-color: color-mix(
38
+ in srgb,
39
+ var(--ui-color-success-text) 20%,
40
+ transparent
41
+ );
42
+ }
43
+
44
+ .atl-alert.variant-warning {
45
+ background-color: var(--ui-color-warning-bg);
46
+ color: var(--ui-color-warning-text);
47
+ border-color: color-mix(
48
+ in srgb,
49
+ var(--ui-color-warning-text) 20%,
50
+ transparent
51
+ );
52
+ }
53
+
54
+ .atl-alert.variant-danger {
55
+ background-color: var(--ui-color-danger-bg);
56
+ color: var(--ui-color-danger-text);
57
+ border-color: color-mix(
58
+ in srgb,
59
+ var(--ui-color-danger-text) 20%,
60
+ transparent
61
+ );
62
+ }
63
+
64
+ /* Dismiss button */
65
+ .atl-alert > .dismiss {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ flex-shrink: 0;
70
+ width: 1.75rem;
71
+ height: 1.75rem;
72
+ padding: 0;
73
+ background: transparent;
74
+ border: none;
75
+ border-radius: var(--ui-radius-sm);
76
+ cursor: pointer;
77
+ color: inherit;
78
+ opacity: 0.7;
79
+ transition:
80
+ opacity var(--ui-transition-fast),
81
+ background-color var(--ui-transition-fast);
82
+ line-height: 1;
83
+ }
84
+
85
+ .atl-alert > .dismiss:hover {
86
+ opacity: 1;
87
+ background-color: color-mix(in srgb, currentColor 10%, transparent);
88
+ }
89
+
90
+ .atl-alert > .dismiss:focus-visible {
91
+ outline: none;
92
+ box-shadow: var(--ui-focus-ring);
93
+ opacity: 1;
94
+ }
95
+
96
+ /* Semantic indicator glyph — non-color differentiation (WCAG 1.4.1). */
97
+ .atl-alert > .content > .variant-icon {
98
+ display: inline-block;
99
+ font-weight: var(--ui-font-weight-bold);
100
+ margin-right: 0.4em;
101
+ line-height: 1;
102
+ }
@@ -0,0 +1,181 @@
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-avatar, .atl-avatar-group),
7
+ :is(.atl-avatar, .atl-avatar-group) * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ /* === AtlAvatar === */
12
+
13
+ .atl-avatar {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ position: relative;
18
+ overflow: hidden;
19
+ flex-shrink: 0;
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-weight: var(--ui-font-weight-semibold);
27
+ background-color: color-mix(
28
+ in srgb,
29
+ var(--ui-color-primary) 12%,
30
+ var(--ui-color-surface-sunken)
31
+ );
32
+ color: var(--ui-color-primary);
33
+ user-select: none;
34
+ }
35
+
36
+ /* Sizes */
37
+ .atl-avatar.size-xs {
38
+ width: 24px;
39
+ height: 24px;
40
+ font-size: var(--ui-font-size-2xs);
41
+ }
42
+ .atl-avatar.size-sm {
43
+ width: 32px;
44
+ height: 32px;
45
+ font-size: var(--ui-font-size-xs);
46
+ }
47
+ .atl-avatar.size-md {
48
+ width: 40px;
49
+ height: 40px;
50
+ font-size: var(--ui-font-size-sm);
51
+ }
52
+ .atl-avatar.size-lg {
53
+ width: 48px;
54
+ height: 48px;
55
+ font-size: var(--ui-font-size-md);
56
+ }
57
+ .atl-avatar.size-xl {
58
+ width: 64px;
59
+ height: 64px;
60
+ font-size: var(--ui-font-size-lg);
61
+ }
62
+
63
+ /* Shapes */
64
+ .atl-avatar.shape-circle {
65
+ border-radius: var(--ui-radius-full);
66
+ }
67
+ .atl-avatar.shape-square {
68
+ border-radius: var(--ui-radius-md);
69
+ }
70
+
71
+ /* Image */
72
+ .atl-avatar > img {
73
+ width: 100%;
74
+ height: 100%;
75
+ object-fit: cover;
76
+ display: block;
77
+ }
78
+
79
+ /* Initials */
80
+ .atl-avatar > .initials {
81
+ line-height: 1;
82
+ letter-spacing: 0.02em;
83
+ }
84
+
85
+ /* Fallback icon */
86
+ .atl-avatar > .atl-icon.icon {
87
+ width: 55%;
88
+ height: 55%;
89
+ opacity: 0.6;
90
+ }
91
+
92
+ /* Status dot */
93
+ .atl-avatar > .status-dot {
94
+ position: absolute;
95
+ bottom: 0;
96
+ right: 0;
97
+ width: 25%;
98
+ height: 25%;
99
+ min-width: 6px;
100
+ min-height: 6px;
101
+ max-width: 14px;
102
+ max-height: 14px;
103
+ border-radius: var(--ui-radius-full);
104
+ border: var(--ui-border-width-thick) solid var(--ui-color-surface);
105
+ box-sizing: content-box;
106
+ }
107
+
108
+ .atl-avatar > .status-dot.status-online {
109
+ background-color: var(--ui-color-success);
110
+ }
111
+ .atl-avatar > .status-dot.status-offline {
112
+ background-color: var(--ui-color-text-muted);
113
+ }
114
+ .atl-avatar > .status-dot.status-away {
115
+ background-color: var(--ui-color-warning);
116
+ }
117
+ .atl-avatar > .status-dot.status-busy {
118
+ background-color: var(--ui-color-danger);
119
+ }
120
+
121
+ /* === AtlAvatarGroup === */
122
+
123
+ .atl-avatar-group {
124
+ /* The library states its own typeface (ADR-0035). Without this the component
125
+ * renders in the consuming app's font while its neighbours render Instrument
126
+ * Sans — measured: a card next to a button showed two typefaces. Declared once
127
+ * per component root, never on a descendant (ADR-0049). */
128
+ font-family: var(--ui-font-family);
129
+ display: inline-flex;
130
+ align-items: center;
131
+ background: none;
132
+ overflow: visible;
133
+ padding-inline-start: 4px;
134
+ }
135
+
136
+ /* Overlap ring applied to avatars inside a group */
137
+ .atl-avatar-group > .atl-avatar {
138
+ box-shadow: 0 0 0 2px var(--ui-color-surface);
139
+ margin-inline-start: -8px;
140
+ }
141
+
142
+ /* Overflow count badge */
143
+ .atl-avatar-group > .overflow-badge {
144
+ display: inline-flex;
145
+ align-items: center;
146
+ justify-content: center;
147
+ flex-shrink: 0;
148
+ background-color: var(--ui-color-surface-sunken);
149
+ color: var(--ui-color-text-muted);
150
+ border: var(--ui-border-width) solid var(--ui-color-border);
151
+ border-radius: var(--ui-radius-full);
152
+ font-weight: var(--ui-font-weight-semibold);
153
+ box-shadow: 0 0 0 2px var(--ui-color-surface);
154
+ margin-inline-start: -8px;
155
+ }
156
+
157
+ .atl-avatar-group > .overflow-badge.size-xs {
158
+ width: 24px;
159
+ height: 24px;
160
+ font-size: var(--ui-font-size-2xs);
161
+ }
162
+ .atl-avatar-group > .overflow-badge.size-sm {
163
+ width: 32px;
164
+ height: 32px;
165
+ font-size: var(--ui-font-size-xs);
166
+ }
167
+ .atl-avatar-group > .overflow-badge.size-md {
168
+ width: 40px;
169
+ height: 40px;
170
+ font-size: var(--ui-font-size-sm);
171
+ }
172
+ .atl-avatar-group > .overflow-badge.size-lg {
173
+ width: 48px;
174
+ height: 48px;
175
+ font-size: var(--ui-font-size-sm);
176
+ }
177
+ .atl-avatar-group > .overflow-badge.size-xl {
178
+ width: 64px;
179
+ height: 64px;
180
+ font-size: var(--ui-font-size-md);
181
+ }
@@ -0,0 +1,74 @@
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-badge,
7
+ .atl-badge * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .atl-badge {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ border-radius: var(--ui-radius-full);
16
+ font-family: var(--ui-font-family);
17
+ font-weight: var(--ui-font-weight-semibold);
18
+ line-height: var(--ui-line-height-tight);
19
+ white-space: nowrap;
20
+ letter-spacing: var(--ui-letter-spacing-wide);
21
+ }
22
+
23
+ /* Sizes */
24
+ .atl-badge.size-sm {
25
+ padding: 0.1875rem var(--ui-spacing-2);
26
+ font-size: var(--ui-font-size-xs);
27
+ }
28
+
29
+ .atl-badge.size-md {
30
+ padding: 0.3125rem var(--ui-spacing-3);
31
+ font-size: var(--ui-font-size-sm);
32
+ }
33
+
34
+ /* Variants */
35
+ .atl-badge.variant-default {
36
+ background-color: var(--ui-color-surface-sunken);
37
+ color: var(--ui-color-text-muted);
38
+ border: var(--ui-border-width) solid var(--ui-color-border);
39
+ }
40
+
41
+ .atl-badge.variant-success {
42
+ background-color: var(--ui-color-success-bg);
43
+ color: var(--ui-color-success-text);
44
+ border: var(--ui-border-width) solid
45
+ color-mix(in srgb, var(--ui-color-success-text) 25%, transparent);
46
+ }
47
+
48
+ .atl-badge.variant-warning {
49
+ background-color: var(--ui-color-warning-bg);
50
+ color: var(--ui-color-warning-text);
51
+ border: var(--ui-border-width) solid
52
+ color-mix(in srgb, var(--ui-color-warning-text) 25%, transparent);
53
+ }
54
+
55
+ .atl-badge.variant-danger {
56
+ background-color: var(--ui-color-danger-bg);
57
+ color: var(--ui-color-danger-text);
58
+ border: var(--ui-border-width) solid
59
+ color-mix(in srgb, var(--ui-color-danger-text) 25%, transparent);
60
+ }
61
+
62
+ .atl-badge.variant-info {
63
+ background-color: var(--ui-color-info-bg);
64
+ color: var(--ui-color-info-text);
65
+ border: var(--ui-border-width) solid
66
+ color-mix(in srgb, var(--ui-color-info-text) 25%, transparent);
67
+ }
68
+
69
+ /* Semantic indicator glyph — non-color differentiation (WCAG 1.4.1). */
70
+ .atl-badge > .variant-icon {
71
+ font-weight: var(--ui-font-weight-bold);
72
+ margin-right: 0.3em;
73
+ line-height: 1;
74
+ }
@@ -0,0 +1,109 @@
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-breadcrumb-item, .atl-breadcrumbs),
7
+ :is(.atl-breadcrumb-item, .atl-breadcrumbs) * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ /* AtlBreadcrumbs */
12
+ .atl-breadcrumbs {
13
+ display: block;
14
+ font-family: var(--ui-font-family);
15
+ /* The leading every descendant inherits. Stated here so the component keeps
16
+ its own vertical rhythm instead of adopting the consuming app's prose
17
+ leading — the defect that made the row boxes measure differently in a
18
+ Storybook page and in a docs page (ADR-0052). Single-line chrome, so tight. */
19
+ line-height: var(--ui-line-height-tight);
20
+ }
21
+
22
+ /* The list is a child of the root in React and Vue, where the root is the <nav>; in
23
+ Angular the root is the <atl-breadcrumbs> host and the <nav> sits between. */
24
+ .atl-breadcrumbs > .breadcrumbs-list,
25
+ .atl-breadcrumbs > nav > .breadcrumbs-list {
26
+ display: flex;
27
+ flex-wrap: wrap;
28
+ align-items: center;
29
+ gap: 0;
30
+ list-style: none;
31
+ margin: 0;
32
+ padding: 0;
33
+ font-size: var(--ui-font-size-sm);
34
+ color: var(--ui-color-text-muted);
35
+ }
36
+
37
+ /* AtlBreadcrumbItem */
38
+ .atl-breadcrumb-item {
39
+ display: flex;
40
+ align-items: center;
41
+ }
42
+
43
+ /* Separator — chevron, CSS-generated and decorative. The trailing `/ ''` is
44
+ the CSS Generated Content alt-text pair: an explicit empty alternative
45
+ text, which keeps the glyph out of the accessibility tree in Chromium,
46
+ Firefox and WebKit alike (verified; a bare `content: '…'` is NOT excluded
47
+ by default — it renders as its own accessible text node). See ADR-0100.
48
+ The fallback matches the component's own default ('/', not '›'): all
49
+ three adapters always set --atl-separator inline before first paint (in
50
+ SSR-rendered markup, not just post-hydration), so this value is unreached
51
+ in every documented usage — it exists only so a stray '.atl-breadcrumb-
52
+ item::after' rendered without the component (hand-authored markup that
53
+ imports the CSS but skips AtlBreadcrumbs/atl-breadcrumbs/AtlBreadcrumbs.vue)
54
+ degrades to the shipped default rather than to a glyph the spec's
55
+ `separator` option list ('/', '>') never offers. */
56
+ .atl-breadcrumb-item::after {
57
+ content: var(--atl-separator, '/') / '';
58
+ margin: 0 var(--ui-spacing-2);
59
+ color: var(--ui-color-border-hover);
60
+ font-size: var(--ui-font-size-md);
61
+ line-height: 1;
62
+ }
63
+
64
+ .atl-breadcrumb-item.is-current::after {
65
+ display: none;
66
+ }
67
+
68
+ /* Links (navigable breadcrumbs) */
69
+ .atl-breadcrumb-item > .breadcrumb-link {
70
+ color: var(--ui-color-text-muted);
71
+ text-decoration: none;
72
+ border-radius: var(--ui-radius-sm);
73
+ padding: var(--ui-spacing-1) var(--ui-spacing-2);
74
+ margin: calc(var(--ui-spacing-1) * -1) calc(var(--ui-spacing-2) * -1);
75
+ transition:
76
+ color var(--ui-transition-fast),
77
+ background-color var(--ui-transition-fast);
78
+ }
79
+
80
+ .atl-breadcrumb-item > .breadcrumb-link:hover {
81
+ color: var(--ui-color-text);
82
+ background-color: var(--ui-color-surface-sunken);
83
+ }
84
+
85
+ .atl-breadcrumb-item > .breadcrumb-link:focus-visible {
86
+ outline: none;
87
+ box-shadow: var(--ui-focus-ring);
88
+ }
89
+
90
+ /* A crumb without a link that is not the current page: plain text, in the colour
91
+ a link has at rest, regular weight, not interactive. Not `.breadcrumb-current`,
92
+ which would make it look like the current page without being it. */
93
+ .atl-breadcrumb-item > .breadcrumb-text {
94
+ color: var(--ui-color-text-muted);
95
+ }
96
+
97
+ /* Current item (plain text). Deliberately no padding: `.breadcrumb-link`'s
98
+ padding is exactly cancelled by its own negative margin (a hit/hover-area
99
+ enlargement, invisible in the flow), so its text occupies exactly the same
100
+ box a padding-less element would — measured in a real browser, both items'
101
+ rows come out the same height and the link's text starts at the same
102
+ offset within its row as this span's. Adding matching padding here would
103
+ not reproduce that; without a compensating negative margin it would make
104
+ this row taller than a link row, which is the regression this note exists
105
+ to head off. */
106
+ .atl-breadcrumb-item > .breadcrumb-current {
107
+ color: var(--ui-color-text);
108
+ font-weight: var(--ui-font-weight-semibold);
109
+ }