-
Notifications
You must be signed in to change notification settings - Fork 1
/
playday.css
117 lines (112 loc) · 2.21 KB
/
playday.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
117
/* we're only targeting modern browsers for this exercise */
@font-face {
font-family: 'Roboto';
src: url('materialize/fonts/roboto/Roboto-Regular.woff2') format('woff2');
}
/* full-viewport layout using flexbox */
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
height: 100%;
}
/* header section holds title, description and prev/next buttons */
header {
background-color: #fff;
}
h1 {
font-weight: 300;
margin-bottom: 1rem;
}
.controls span {
cursor: pointer;
opacity: .5;
font-size: 6rem;
line-height: 4.2rem;
}
.controls span:hover {
opacity: 1;
}
/* description is 'clamped' to a single line, hover to reveal up to 3 lines */
h5 {
position: relative;
overflow: hidden;
max-height: 1.8rem;
transition: max-height 0.5s;
margin-bottom: 2.1rem;
}
h5:hover {
max-height: 5.4rem;
}
/* this pseudo-element gives us a fade-out effect when clipping descriptions */
h5::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: 15%;
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
opacity: 1;
transition: opacity 0.5s;
}
h5:hover::after {
opacity: 0;
}
.error {
padding: 1rem;
display: none;
}
/* allow the screen to grow/shrink vertically maintaining at least 400px */
.screen {
display: flex;
flex-direction: column;
flex: 1;
position: relative;
min-height: 400px;
background-color: #000;
transition: filter .25s, -webkit-filter .25s;
}
.screen iframe {
position: absolute;
width: 100%;
height: 100%;
}
/* footer section holds our playlist */
footer.page-footer {
margin-top: 0;
}
footer .container .row {
margin: 0 0 10px 0;
}
footer .row .playlist {
position: relative;
white-space: nowrap;
overflow-x: scroll;
padding: 10px 3px;
color: #f5f5f5;
font-weight: 300;
}
.thumb {
display: inline-block;
cursor: pointer;
margin-right: 10px;
}
.thumb:last-child {
margin-right: 0;
}
.thumb img {
box-sizing: content-box;
vertical-align: middle;
width: 300px;
height: 168.75px;
margin-bottom: .5rem;
border: 1px solid rgba(0, 0, 0, 0);
}
.thumb.selected img,
.thumb:hover img {
border: 1px solid #aaa;
box-shadow: 0 0 0 3px #f5f5f5, inset 0 0 0 1px #000;
}