@hearthsound/design 0.1.0 → 0.1.2
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/css/components/card.css
CHANGED
package/css/components/field.css
CHANGED
|
@@ -49,6 +49,12 @@
|
|
|
49
49
|
caret-color: var(--hs-accent-text);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/* Masked passwords: larger bullets; the placeholder keeps the body size. */
|
|
53
|
+
.hs-field__input[type='password']:not(:placeholder-shown) {
|
|
54
|
+
font-size: 20px;
|
|
55
|
+
letter-spacing: 0.08em;
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
.hs-field__input::placeholder {
|
|
53
59
|
color: var(--hs-fg-muted);
|
|
54
60
|
}
|
|
@@ -128,7 +134,9 @@
|
|
|
128
134
|
/* Declared after focus: the invalid tint is not a focus treatment and stays while the
|
|
129
135
|
* field is focused or hovered. The doubled class matches the focus rule's specificity. */
|
|
130
136
|
.hs-field.hs-field--invalid,
|
|
131
|
-
.hs-field[aria-invalid='true']
|
|
137
|
+
.hs-field[aria-invalid='true'],
|
|
138
|
+
.hs-select.hs-field--invalid,
|
|
139
|
+
.hs-select[aria-invalid='true'] {
|
|
132
140
|
background: color-mix(in srgb, var(--hs-error) 12%, transparent);
|
|
133
141
|
}
|
|
134
142
|
|
package/css/components/list.css
CHANGED
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
/* ------------------------------------------------------------------ */
|
|
13
13
|
|
|
14
14
|
.hs-settings-group {
|
|
15
|
+
/* Also used on <ul>/<ol> (reorder lists): no list indent or markers. */
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
15
19
|
background: var(--hs-group-bg);
|
|
16
20
|
box-shadow: var(--hs-group-shadow);
|
|
17
21
|
border-radius: var(--hs-radius-card);
|
|
@@ -124,10 +128,14 @@
|
|
|
124
128
|
}
|
|
125
129
|
|
|
126
130
|
.hs-setting-row[aria-disabled='true'] {
|
|
127
|
-
opacity: 0.4;
|
|
128
131
|
pointer-events: none;
|
|
129
132
|
}
|
|
130
133
|
|
|
134
|
+
/* The contents dim, not the row, so its hairline keeps the separator colour. */
|
|
135
|
+
.hs-setting-row[aria-disabled='true'] > * {
|
|
136
|
+
opacity: 0.4;
|
|
137
|
+
}
|
|
138
|
+
|
|
131
139
|
@media (prefers-reduced-motion: reduce) {
|
|
132
140
|
.hs-setting-row,
|
|
133
141
|
.hs-setting-row--expander > .hs-setting-row__icon:last-child {
|
package/css/components/menu.css
CHANGED
|
@@ -126,6 +126,59 @@
|
|
|
126
126
|
box-shadow: var(--hs-focus-shadow);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/* ------------------------------------------------------------------ */
|
|
130
|
+
/* k05 A - drop-down list: the menu surface and items, check at the end */
|
|
131
|
+
/* ------------------------------------------------------------------ */
|
|
132
|
+
|
|
133
|
+
.hs-listbox {
|
|
134
|
+
background: var(--hs-popover-bg);
|
|
135
|
+
border-radius: var(--hs-radius-popover);
|
|
136
|
+
box-shadow: var(--hs-elevation-2);
|
|
137
|
+
padding: 6px;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
min-width: 200px;
|
|
140
|
+
margin: 0;
|
|
141
|
+
list-style: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.hs-option {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: 8px;
|
|
148
|
+
height: 36px;
|
|
149
|
+
padding: 0 10px;
|
|
150
|
+
border-radius: var(--hs-radius-row);
|
|
151
|
+
font: 400 14px var(--hs-font-body);
|
|
152
|
+
color: var(--hs-fg);
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
cursor: default;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.hs-option > .hs-icon {
|
|
158
|
+
width: 16px;
|
|
159
|
+
height: 16px;
|
|
160
|
+
margin-left: auto;
|
|
161
|
+
color: var(--hs-accent-text);
|
|
162
|
+
visibility: hidden;
|
|
163
|
+
flex: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.hs-option--selected > .hs-icon,
|
|
167
|
+
.hs-option[aria-selected='true'] > .hs-icon {
|
|
168
|
+
visibility: visible;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.hs-option:hover {
|
|
172
|
+
background: var(--hs-control-tone);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.hs-option--active {
|
|
176
|
+
background: var(--hs-accent-tint);
|
|
177
|
+
color: var(--hs-accent-text);
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
box-shadow: var(--hs-focus-shadow);
|
|
180
|
+
}
|
|
181
|
+
|
|
129
182
|
/* ------------------------------------------------------------------ */
|
|
130
183
|
/* k18 A - add-to-playlist submenu */
|
|
131
184
|
/* ------------------------------------------------------------------ */
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
.hs-segmented {
|
|
13
|
+
position: relative;
|
|
13
14
|
display: flex;
|
|
14
15
|
gap: 0;
|
|
15
16
|
margin: 0 14px 12px;
|
|
@@ -62,3 +63,35 @@
|
|
|
62
63
|
font-weight: 600;
|
|
63
64
|
box-shadow: var(--hs-focus-shadow);
|
|
64
65
|
}
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
* Sliding selection: with a thumb element the selected look moves between tabs.
|
|
69
|
+
* The thumb sits under the tabs; the selected tab drops its own background.
|
|
70
|
+
* Markup: <span class="hs-segmented__thumb" style="--hs-segment-x: <px>; --hs-segment-w: <px>">
|
|
71
|
+
* as the first child of the control; the client sets both from the selected tab.
|
|
72
|
+
*/
|
|
73
|
+
.hs-segmented__thumb {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 3px;
|
|
76
|
+
bottom: 3px;
|
|
77
|
+
left: 0;
|
|
78
|
+
width: var(--hs-segment-w, 0);
|
|
79
|
+
transform: translateX(var(--hs-segment-x, 0));
|
|
80
|
+
border-radius: var(--hs-radius-full);
|
|
81
|
+
background: var(--hs-segment-selected-bg);
|
|
82
|
+
box-shadow: var(--hs-elevation-1);
|
|
83
|
+
transition: transform var(--hs-duration-popover) var(--hs-ease),
|
|
84
|
+
width var(--hs-duration-popover) var(--hs-ease);
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.hs-segmented:has(.hs-segmented__thumb) .hs-segmented__tab {
|
|
89
|
+
position: relative;
|
|
90
|
+
transition: background var(--hs-duration-hover) var(--hs-ease);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.hs-segmented:has(.hs-segmented__thumb) .hs-segmented__tab--selected,
|
|
94
|
+
.hs-segmented:has(.hs-segmented__thumb) .hs-segmented__tab[aria-selected='true'] {
|
|
95
|
+
background: transparent;
|
|
96
|
+
box-shadow: none;
|
|
97
|
+
}
|