Repository navigation
Expand file tree
/
Copy pathplayer.css
More file actions
166 lines (144 loc) · 2.71 KB
/
Copy pathplayer.css
File metadata and controls
166 lines (144 loc) · 2.71 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
body {
background: #000000;
color: #c3c3c2;
margin: 20px auto;
text-align: center;
}
section {
display: block;
max-width: 800px;
margin: 20px auto;
text-align: center;
}
.op-player {
position: relative;
--op-bg: #111827;
--op-panel: #1f2937;
--op-border: #374151;
--op-text: #f9fafb;
--op-muted: #9ca3af;
--op-accent: #2dd4bf;
display: flex;
flex-direction: column;
width: min(100%, 1089px);
overflow: hidden;
color: var(--op-text);
background: var(--op-bg);
border: 1px solid var(--op-border);
border-radius: 0.75rem;
box-shadow: 0 30px 80px -20px rgb(0 0 0 / 65%);
font: 0.75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.op-video {
display: block;
width: 100%;
height: auto;
background: #000;
}
.op-controls {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
padding: 0.625rem 1rem;
background: var(--op-panel);
border-color: var(--op-border);
}
.op-controls-header {
order: -1;
border-bottom: 1px solid var(--op-border);
}
.op-controls-footer {
border-top: 1px solid var(--op-border);
}
.op-controls-overlay {
position: absolute;
z-index: 1;
right: 0;
bottom: 0;
left: 0;
margin: 0;
border-top: 1px solid rgb(255 255 255 / 18%);
background: rgb(17 24 39 / 88%);
backdrop-filter: blur(6px);
opacity: 0;
transform: translateY(0.5rem);
transition: opacity 160ms ease, transform 160ms ease;
}
.op-player:hover .op-controls-overlay,
.op-player:focus-within .op-controls-overlay,
.op-controls-overlay:hover {
opacity: 1;
transform: translateY(0);
}
.op-controls-overlay:focus-within {
opacity: 1;
}
.op-button {
min-width: 2.75rem;
min-height: 2.75rem;
padding: 0.5rem;
color: var(--op-text);
background: transparent;
border: 1px solid transparent;
border-radius: 0.375rem;
cursor: pointer;
font: inherit;
}
.op-button:hover {
background: rgb(255 255 255 / 10%);
}
.op-button svg {
width: 1.125rem;
height: 1.125rem;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.op-button:focus-visible,
.op-seek:focus-visible {
outline: 2px solid var(--op-accent);
outline-offset: 2px;
}
.op-seek {
flex: 1 1 10rem;
accent-color: var(--op-accent);
cursor: pointer;
}
.op-status {
display: flex;
align-items: center;
gap: 0.4rem;
margin-left: auto;
white-space: nowrap;
}
.op-status-dot {
color: var(--op-accent);
}
.op-time {
color: var(--op-muted);
}
.op-status-text {
color: var(--op-accent);
font-weight: 600;
}
@media (max-width: 38rem) {
.op-status {
width: 100%;
margin-left: 0;
}
.op-seek {
order: 2;
flex-basis: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}