-
Notifications
You must be signed in to change notification settings - Fork 1
/
player.css
104 lines (92 loc) · 2.18 KB
/
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
darkgrey: rgb(30, 30, 30);
lightgrey: rgb(70, 70, 70);
lightblue: rgb(50, 170, 220);
*/
#player {
background-color: rgb(30, 30, 30);
display: inline-block;
/*Ensuring that user can't select the player*/
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
/* for all images */
img {
background-color: rgb(70, 70, 70);
}
img:hover {
background-color: rgb(50, 170, 220);
}
img, #pbar-container, #sbar-container {
cursor: pointer;
}
#video-container {
width: 640px;
height: 360px;
position: relative;
}
video {
height: 100%;
width: 100%;
}
#screen {
height: 100%;
width: 100%;
line-height: 360px;
text-align: center;
position: absolute;
z-index: 1 !important;
background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
}
#screen img{
vertical-align: middle;
}
#pbar-container {
margin-top: 2px;
padding-bottom: 2px;
background-color: rgb(70, 70, 70);
}
#pbar{
height: 5px;
width: 0%;
background-color: rgb(50, 170, 220);
}
#buttons-container {
height: 50px;
}
/* Accessing all the direct children of the buttons container */
#buttons-container > * {
display: inline-block;
height: 100%;
vertical-align: middle;
/*outline: 1px solid red;*/
margin: 0 10px;
}
#time-field {
color: rgb(50, 170, 220);
cursor: default;
/*We can now ensure that the text appears in the middle*/
line-height: 50px;
}
#sound-button {
margin-right: 0;
}
#sbar-container{
width: 100px;
height: 5px;
background-color: rgb(70, 70, 70);
margin-left: 0;
}
#sbar {
height: 100%;
width: 100%;
background-color: rgb(50, 170, 220);
}
#fullscreen-button {
float: right;
}