This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_songs.scss
104 lines (89 loc) · 1.91 KB
/
_songs.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
section.song {
display: flex;
flex-direction: column;
margin-bottom: $huge-spacing;
}
div.song-title {
@include title-card;
text-align: center;
padding: $small-spacing;
h3 {
@include header-link-style;
}
}
div.player {
@include title-card;
padding: $song-padding;
div.scrubber {
padding-left: math.div($song-height, 2);
position: relative;
}
div.track,
div.progress {
height: $song-height;
border-bottom-right-radius: math.div($song-height, 2);
border-top-right-radius: math.div($song-height, 2);
}
div.track {
background-color: var(--background-color-alt);
}
div.progress {
background-color: var(--background-color-contrast);
}
a.button {
background: var(--button-color) url("play.svg") no-repeat center center;
border: 2px solid var(--song-progress-color);
border-radius: 50%;
box-sizing: border-box;
cursor: pointer;
display: block;
height: $song-height;
position: absolute;
width: $song-height;
z-index: 1;
}
a.button.playing {
background-image: url("pause.svg");
}
span.remaining {
bottom: 0;
box-sizing: border-box;
font-family: $ui-font-family;
font-feature-settings: "tnum";
font-size: $medium-font-size;
font-style: normal;
left: 0px;
padding-right: $medium-font-size * 0.8;
pointer-events: none;
position: absolute;
right: 0;
text-align: right;
top: $medium-font-size * 0.7;
width: 100%;
z-index: 1;
}
}
@media screen and (min-width: $max-width) {
section.song {
align-items: flex-start;
flex-direction: row;
flex-wrap: wrap;
}
div.song-title {
box-sizing: border-box;
flex-basis: $project-width;
flex-grow: 0;
flex-shrink: 0;
margin-right: $gutter;
order: 1;
}
div.player {
flex-basis: 100%;
order: 3;
}
article.description {
flex-basis: 0;
flex-grow: 1;
order: 2;
}
}