-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (97 loc) · 1.87 KB
/
style.css
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
105
106
107
108
109
110
111
112
113
114
115
116
html, body, #content {
margin: 0;
padding: 0;
background: linear-gradient(113deg, hsla(297, 20%, 18%, 1), hsla(241, 44%, 13%, 1));
color: #e4e1e5;
font-family: sans-serif;
height: 100vh;
}
footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
padding: 1em 0;
display: flex;
justify-content: center;
}
footer a {
text-decoration: none;
color: #958a99;
font-size: 0.8rem;
margin: 0 1em;
}
#content {
display: flex;
align-items: center;
justify-content: center;
}
@media only screen and (max-width: 600px) {
#content {
flex-direction: column;
}
}
.record:hover {
box-shadow: 4px 4px 11px 1px #0000009e;
}
.record {
display: grid;
box-shadow: 2px 2px 11px 1px #0000009e;
width: 100vw;
max-width: 450px;
transition: box-shadow, max-width 0.6s ease;
margin: 0 1em;
}
.record.active, .record:hover {
max-width: 500px;
}
div.overlay {
transition: opacity 0.2s ease;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.record.active.playing div.overlay, .record div.overlay {
opacity: 0;
}
div.overlay > div {
width: calc(100% - 2 * 1em);
padding: 1em;
}
.record.active div.overlay {
opacity: 1;
}
.record:hover div.overlay, .record.active:hover div.overlay {
opacity: 1;
}
.record img, div.overlay {
grid-column: 1;
grid-row: 1;
width: 100%;
}
.record > div.overlay:first-of-type {
background: #0000008a;
}
.overlay.play {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 10;
}
.record h1, h2, h3 {
justify-self: flex-start;
align-self: center;
margin-bottom: 0;
margin-top: 0;
}
audio {
display: none;
}
.playbar {
display: flex;
justify-content: space-between;
}
.overlay.play .playstate {
font-size: 60px;
}