@hearthsound/design 0.1.1 → 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.
@@ -182,6 +182,8 @@
182
182
  }
183
183
 
184
184
  .hs-mosaic img {
185
+ /* The tiles are spliced edge to edge; only the whole mosaic is rounded. */
186
+ border-radius: 0;
185
187
  width: 100%;
186
188
  height: 100%;
187
189
  min-height: 0;
@@ -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
  }
@@ -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 {
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearthsound/design",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "description": "Design language of Hearthsound: tokens, fonts, icons and component styles",
6
6
  "repository": {