-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube_player.css
85 lines (78 loc) · 1.81 KB
/
youtube_player.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
.youtube-player {
position: relative;
/*padding-bottom: 56.23%;*/
/* Use 75% for 4:3 videos */
overflow: hidden;
max-width: 100%;
min-width: 200px;
min-height: 200px;
background: #000;
}
.youtube-player iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background: transparent;
}
.youtube-player img {
bottom: 0;
display: block;
left: 0;
margin: auto;
max-width: 100%;
width: 100%;
position: absolute;
right: 0;
top: 0;
border: none;
height: auto;
cursor: pointer;
-webkit-transition: .4s all;
-moz-transition: .4s all;
transition: .4s all;
}
.youtube-player img:hover {
-webkit-filter: brightness(75%);
}
.youtube-player .title {
left: 2%;
top: 2%;
position: absolute;
color: white;
font-family:Sans-Serif;
font-weight:bold;
}
.youtube-player .name {
left: 2%;
bottom: 2%;
position: absolute;
color: white;
font-family:Sans-Serif;
font-weight:bold;
}
.youtube-player .thumb {
height: 32px;
width: 32px;
right: 2%;
bottom: 2%;
position: absolute;
background: solid black;
background-size: 32px;
cursor: pointer;
}
.youtube-player .play {
height: 64px;
width: 64px;
left: 50%;
top: 50%;
margin-left: -36px;
margin-top: -36px;
position: absolute;
/* comment out the background attribute if you don't want a play button */
background: url("yt_play_icon.png") no-repeat;
background-size: contain;
cursor: pointer;
}