-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
111 lines (97 loc) · 1.7 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background: #EEE9E9;
}
.fa {
cursor: pointer;
}
video {
width: 100%;
height: 100%;
}
.togglebar {
width: 100%;
height: 20px;
background: #000;
position: absolute;
top: -100%;
left: 0;
transition: .4s;
}
.togglebar .showname {
text-align: center;
color: #fff;
font-size: 14px;
font-family: sans-serif;
line-height: 20px;
}
.player:hover .togglebar {
top: 0;
}
.player:hover .controls {
bottom: 0;
}
.audio-style {
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
transition: .4s;
border: 2px solid #fff;
border-top-color: #f74e4e;
border-bottom-color: #f5711a;
animation: spin .5s ease-in forwards infinite;
box-shadow: 2px 0 10px #000;
}
@keyframes spin {
from {
transform: translate(-50%, -50%);
}
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}
.player {
width: 96%;
margin: 50px auto;
position: relative;
height: 300px;
box-shadow: 2px 4px 10px #000;
background: #fff;
overflow: hidden;
}
.player #fileInput,
input {
display: none;
}
.preview {
width: 100%;
height: 100%;
}
.player .controls {
position: absolute;
bottom: 0;
left: 0;
background: #000;
height: 40px;
margin: 20px 0 0 0;
width: 100%;
transition: .4s;
}
.player .controls .control-icons {
text-align: center;
line-height: 40px;
font-size: 1.4em;
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
}