@hearthsound/design 0.2.0 → 0.2.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
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
|
|
44
44
|
.hs-card__cover {
|
|
45
45
|
position: relative;
|
|
46
|
+
/* Above the link, transparent to the pointer: the disc stays the only target
|
|
47
|
+
inside the cover, and a press on the disc never lands on the link. */
|
|
48
|
+
z-index: 2;
|
|
49
|
+
pointer-events: none;
|
|
46
50
|
display: block;
|
|
47
51
|
aspect-ratio: 1;
|
|
48
52
|
border-radius: var(--hs-radius-art);
|
|
@@ -121,6 +125,10 @@
|
|
|
121
125
|
transform: none;
|
|
122
126
|
}
|
|
123
127
|
|
|
128
|
+
.hs-card__play {
|
|
129
|
+
pointer-events: auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
.hs-card:active .hs-card__cover {
|
|
125
133
|
transform: scale(0.98);
|
|
126
134
|
}
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
|
|
53
53
|
.hs-home-section .hs-section-header {
|
|
54
54
|
padding: 0 24px 8px 32px;
|
|
55
|
+
/* border-box counts the padding in: 36 px line + 8 px padding (l13, k33). */
|
|
56
|
+
min-height: 44px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (max-width: 720px) {
|
|
60
|
+
.hs-home-section .hs-section-header {
|
|
61
|
+
min-height: 42px;
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
/* Desktop scroll buttons sit at the right of the header. */
|
|
@@ -65,7 +73,10 @@
|
|
|
65
73
|
grid-auto-columns: 180px;
|
|
66
74
|
gap: 28px;
|
|
67
75
|
overflow-x: auto;
|
|
68
|
-
|
|
76
|
+
/* The card's hover tile is drawn 8 px outside the cover; the scrollport
|
|
77
|
+
keeps that room so the tile is never clipped (fc5-diff). */
|
|
78
|
+
padding: 8px 32px 14px;
|
|
79
|
+
margin: -8px 0;
|
|
69
80
|
scrollbar-width: none;
|
|
70
81
|
}
|
|
71
82
|
|
|
@@ -77,10 +88,17 @@
|
|
|
77
88
|
.hs-shelf {
|
|
78
89
|
grid-auto-columns: 140px;
|
|
79
90
|
gap: 14px;
|
|
80
|
-
padding:
|
|
91
|
+
padding: 8px 14px 12px;
|
|
81
92
|
}
|
|
82
93
|
|
|
83
94
|
.hs-shelf__button {
|
|
84
95
|
display: none;
|
|
85
96
|
}
|
|
86
97
|
}
|
|
98
|
+
|
|
99
|
+
/* A shelf whose section header is flush with the page margin (the Liked
|
|
100
|
+
* shelves): the scrollport keeps only the 8 px the hover tile needs. */
|
|
101
|
+
.hs-shelf--flush {
|
|
102
|
+
padding-inline: var(--hs-space-3);
|
|
103
|
+
margin-inline: calc(-1 * var(--hs-space-3));
|
|
104
|
+
}
|
package/css/components/shell.css
CHANGED
package/css/components/track.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
column-gap: 12px;
|
|
42
42
|
align-items: center;
|
|
43
43
|
min-height: 52px;
|
|
44
|
-
padding: 0 8px 0
|
|
44
|
+
padding: 0 8px 0 var(--hs-track-row-inset);
|
|
45
45
|
border-radius: var(--hs-radius-row);
|
|
46
46
|
position: relative;
|
|
47
47
|
font: 400 14px/1.35 var(--hs-font-body);
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
.hs-track-list,
|
|
298
298
|
.hs-track-list--album,
|
|
299
299
|
.hs-track-list--no-album {
|
|
300
|
-
grid-template-columns: 40px minmax(0, 1fr) auto
|
|
300
|
+
grid-template-columns: 40px minmax(0, 1fr) auto;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.hs-track-row,
|
package/css/tokens.css
CHANGED
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
--hs-row-compact: 36px;
|
|
75
75
|
--hs-row-pad-comfortable: 12px;
|
|
76
76
|
--hs-row-pad-compact: 8px;
|
|
77
|
+
/* The row's lead inset: the art sits this far in so its hover tile may start
|
|
78
|
+
* left of it (k12, fc5b-diff). */
|
|
79
|
+
--hs-track-row-inset: 6px;
|
|
77
80
|
|
|
78
81
|
/* f09 - corner radii. */
|
|
79
82
|
--hs-radius-control: 8px;
|