@hearthsound/design 0.1.1 → 0.1.3

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.
@@ -13,6 +13,9 @@
13
13
 
14
14
  .hs-card {
15
15
  position: relative;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 8px;
16
19
  padding: 8px;
17
20
  margin: -8px;
18
21
  border-radius: var(--hs-radius-card);
@@ -182,6 +185,8 @@
182
185
  }
183
186
 
184
187
  .hs-mosaic img {
188
+ /* The tiles are spliced edge to edge; only the whole mosaic is rounded. */
189
+ border-radius: 0;
185
190
  width: 100%;
186
191
  height: 100%;
187
192
  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: 17px;
55
+ letter-spacing: 0.04em;
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);
@@ -99,7 +103,8 @@
99
103
  }
100
104
 
101
105
  .hs-setting-row--nested {
102
- padding-left: 32px;
106
+ /* fc2-diff: nested rows line up with their parent; no extra indent. */
107
+ padding-left: 16px;
103
108
  }
104
109
 
105
110
  .hs-setting-row--interactive:hover {
@@ -124,10 +129,14 @@
124
129
  }
125
130
 
126
131
  .hs-setting-row[aria-disabled='true'] {
127
- opacity: 0.4;
128
132
  pointer-events: none;
129
133
  }
130
134
 
135
+ /* The contents dim, not the row, so its hairline keeps the separator colour. */
136
+ .hs-setting-row[aria-disabled='true'] > * {
137
+ opacity: 0.4;
138
+ }
139
+
131
140
  @media (prefers-reduced-motion: reduce) {
132
141
  .hs-setting-row,
133
142
  .hs-setting-row--expander > .hs-setting-row__icon:last-child {
@@ -10,14 +10,15 @@
10
10
  */
11
11
 
12
12
  .hs-segmented {
13
+ position: relative;
13
14
  display: flex;
14
15
  gap: 0;
15
- margin: 0 14px 12px;
16
+ margin: 0;
16
17
  padding: 3px;
17
18
  background: var(--hs-control-tone);
18
19
  border-radius: var(--hs-radius-full);
19
20
  width: max-content;
20
- max-width: calc(100% - 28px);
21
+ max-width: 100%;
21
22
  overflow-x: auto;
22
23
  }
23
24
 
@@ -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.3",
4
4
  "license": "MIT",
5
5
  "description": "Design language of Hearthsound: tokens, fonts, icons and component styles",
6
6
  "repository": {