-
Notifications
You must be signed in to change notification settings - Fork 904
/
Copy pathstyle.css
126 lines (116 loc) · 2.45 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
117
118
119
120
121
122
123
124
125
126
* {
margin: 0 auto;
padding: 0;
}
html {
font-size: 62.5%;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
background: rgb(86, 1, 197);
display: flex;
justify-content: center;
align-items: center;
}
.player {
width: 70rem;
overflow: hidden;
position: relative;
border-radius: 0.5rem;
box-shadow: 0 0 1rem black, 6rem 0 0 -3rem rgb(201, 199, 199),
6rem 0 1rem -3rem #111, 12rem 0 0 -7rem rgb(201, 199, 199),
12rem 0 1rem -7rem #111, 16.4rem 0 0 -10rem rgb(201, 199, 199),
16.4rem 0 1rem -10rem #111, 20.3rem 0 0 -13rem rgb(201, 199, 199),
20.3rem 0 1rem -13rem #111, 23rem 0 0 -15rem rgb(201, 199, 199),
23rem 0 1rem -15rem #111, 26rem 0 0 -17.4rem rgb(201, 199, 199),
26rem 0 0 -17.4rem #111;
transform: perspective(100px) rotateY(-2deg);
transition: all 0.5s;
transition-timing-function: cubic-bezier(0, -1, 0, 1.44);
}
.fullPlayer {
width: 100%;
height: 100%;
transform: none;
box-shadow: none;
border-radius: none;
}
.player__video {
width: 100%;
}
.player__controls {
position: absolute;
bottom: 0;
left: 0;
background: rgba(48, 48, 48, 0.733);
width: 100%;
transform: translateY(90%);
transition: all 0.2s;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
}
.player:hover > .player__controls {
transform: translateY(0);
}
.progress {
flex: 0 0 100%;
background: rgb(201, 199, 199, 0.7);
height: 1rem;
margin: 0rem auto;
position: relative;
overflow: hidden;
margin-bottom: 1rem;
}
.progress__filled {
position: absolute;
background: rgb(86, 1, 197, 0.8);
top: 0;
left: 0;
width: 0%;
height: 100%;
z-index: 2;
}
.player__button {
width: auto;
padding: 0.5rem;
height: 3rem;
border: 0.5px solid #fff;
border-radius: 0.4rem;
background: rgba(48, 48, 48, 0.733);
color: #eee;
margin: 0 0.3rem;
display: flex;
}
.player__button:active {
outline: none;
border: 0.5px solid rgba(48, 48, 48, 0.733);
background: #777;
color: #eee;
}
input[type="range"] {
-webkit-appearance: none;
background-color: transparent;
height: auto;
flex: 1;
margin: 0 0.3rem;
}
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
height: 0.3rem;
cursor: pointer;
background: #eee;
}
input[type="range"]::-webkit-slider-thumb {
height: 1.5rem;
width: 1.5rem;
background: #ffffff;
cursor: pointer;
border-radius: 0.5rem;
transform: translateY(-0.5rem);
-webkit-appearance: none;
}