Skip to content

Commit 0e9ebfb

Browse files
author
Shane Osbourne
committed
compiled assets for release
1 parent 5433953 commit 0e9ebfb

File tree

13 files changed

+10626
-0
lines changed

13 files changed

+10626
-0
lines changed

build/windows/contentScope.js

Lines changed: 8695 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Loading
Lines changed: 263 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
:root {
2+
--aspect-ratio: calc(9 / 16);
3+
--toolbar-height: 56px;
4+
5+
/* Set video to take up 80vw width */
6+
--video-width: 80vw;
7+
8+
/* Calculate video height based on aspect ratio, but never exceed 80vh
9+
* for the video height, for example when using short, wide screens.
10+
*/
11+
--video-height: min(calc(var(--video-width) * var(--aspect-ratio)), 80vh);
12+
}
13+
14+
@media screen and (max-width: 1080px) {
15+
:root {
16+
--video-width: 85vw;
17+
}
18+
}
19+
20+
@media screen and (max-width: 740px) {
21+
:root {
22+
--video-width: 90vw;
23+
}
24+
}
25+
26+
.bg {
27+
background: url('img/player-bg.png');
28+
}
29+
30+
.bg {
31+
position: fixed;
32+
top: 0;
33+
bottom: 0;
34+
left: 0;
35+
right: 0;
36+
background-size: cover;
37+
opacity: 0.6;
38+
}
39+
40+
.bg::after {
41+
content: '';
42+
position: absolute;
43+
left: 0;
44+
right: 0;
45+
top: -50%;
46+
height: 100%;
47+
background: linear-gradient(0deg, rgba(0, 0, 0, 0), #101010 70%);
48+
transition: all 1s ease-out;
49+
}
50+
51+
body.faded .bg::after {
52+
top: 30%;
53+
}
54+
55+
body {
56+
color: rgba(255, 255, 255, 0.85);
57+
font-family: system-ui;
58+
font-size: 13px;
59+
line-height: 16px;
60+
letter-spacing: -0.08px;
61+
margin: 0;
62+
background: #101010;
63+
64+
/* Make it feel more like something native */
65+
-webkit-user-select: none;
66+
cursor: default;
67+
}
68+
69+
.player-container {
70+
overflow: hidden;
71+
z-index: 10;
72+
position: relative;
73+
background: black;
74+
}
75+
76+
.player-container,
77+
#player {
78+
width: var(--video-width);
79+
height: var(--video-height);
80+
max-width: 3840px;
81+
}
82+
83+
.player-error {
84+
text-align: center;
85+
line-height: var(--video-height);
86+
background: #2f2f2f;
87+
}
88+
89+
.content-hover {
90+
--content-padding: 1px;
91+
padding: var(--content-padding);
92+
width: var(--video-width);
93+
94+
/* Set margin left to be half of the remaining vw - video width */
95+
margin-left: calc(((100vw - var(--video-width)) / 2) - var(--content-padding));
96+
97+
/* Set margin-top to be half of the remaaining vh - video and toolbar height, but never less than 0px. */
98+
margin-top: max(0px, calc((100vh - (var(--video-height) + var(--toolbar-height))) / 2));
99+
position: absolute;
100+
}
101+
102+
.toolbar {
103+
background: rgba(0, 0, 0, 0.3);
104+
border-radius: 0px 0px 12px 12px;
105+
transition: all 0.5s linear;
106+
opacity: 1;
107+
margin-top: -12px;
108+
padding: 12px;
109+
padding-top: 24px;
110+
height: 32px;
111+
display: flex;
112+
}
113+
114+
@media (prefers-reduced-motion) {
115+
.toolbar {
116+
transition: none;
117+
}
118+
}
119+
120+
body.faded .toolbar {
121+
opacity: 0;
122+
margin-top: -80px;
123+
}
124+
125+
.logo {
126+
font-style: normal;
127+
font-weight: 600;
128+
color: #ffffff;
129+
display: flex;
130+
align-items: center;
131+
}
132+
133+
.dax-icon {
134+
margin-right: 5px;
135+
}
136+
137+
.info-icon-container {
138+
position: relative;
139+
display: inline-block;
140+
margin-left: 4px;
141+
}
142+
143+
.info-icon {
144+
margin-bottom: -4px;
145+
}
146+
147+
.info-icon:hover path {
148+
fill: rgba(255, 255, 255, 0.8);
149+
}
150+
151+
.info-icon-tooltip {
152+
position: absolute;
153+
background: linear-gradient(0deg, rgba(48, 48, 48, 0.35), rgba(48, 48, 48, 0.35)), rgba(33, 33, 33, 0.55);
154+
background-blend-mode: normal, luminosity;
155+
box-shadow: inset 0px 0px 1px #ffffff;
156+
filter: drop-shadow(0px 0px 1px #000000) drop-shadow(0px 0px 1px #000000) drop-shadow(0px 0px 1px #000000)
157+
drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.2));
158+
backdrop-filter: blur(76px);
159+
border-radius: 10px;
160+
width: 300px;
161+
font-weight: normal;
162+
padding: 12px;
163+
left: -162px;
164+
top: 32px;
165+
display: none;
166+
}
167+
168+
.info-icon-tooltip::after {
169+
content: '';
170+
width: 15px;
171+
height: 15px;
172+
border: 1px solid #5f5f5f;
173+
display: block;
174+
position: absolute;
175+
top: -8px;
176+
border-right: none;
177+
border-bottom: none;
178+
transform: rotate(45deg);
179+
background: #1d1d1d;
180+
left: 162px;
181+
}
182+
183+
.info-icon-tooltip.above {
184+
top: -105px;
185+
z-index: 50;
186+
}
187+
188+
.info-icon-tooltip.above::after {
189+
top: 80px;
190+
transform: rotate(225deg);
191+
}
192+
193+
.info-icon-tooltip.visible {
194+
display: block;
195+
}
196+
197+
.options {
198+
margin-left: auto;
199+
display: flex;
200+
align-items: center;
201+
}
202+
203+
.setting-container {
204+
overflow: hidden;
205+
white-space: nowrap;
206+
margin-right: 0;
207+
width: 299px;
208+
}
209+
210+
.setting-container.animatable {
211+
transition: 0.3s linear all;
212+
}
213+
214+
@media (prefers-reduced-motion) {
215+
.setting-container.animatable {
216+
transition: none
217+
}
218+
}
219+
220+
.setting-container.invisible {
221+
width: 0px;
222+
}
223+
224+
@media screen and (max-width: 760px) {
225+
.setting-container {
226+
width: calc(var(--video-width) - 370px);
227+
margin-right: 8px;
228+
text-overflow: ellipsis;
229+
}
230+
}
231+
232+
.settings-label {
233+
cursor: pointer;
234+
display: flex;
235+
align-items: center;
236+
}
237+
.settings-checkbox {
238+
margin-right: 4px;
239+
width: 14px;
240+
height: 14px;
241+
}
242+
243+
.options-button {
244+
height: 16px;
245+
padding: 8px;
246+
background: rgba(255, 255, 255, 0.18);
247+
border-radius: 8px;
248+
float: left;
249+
color: white;
250+
text-decoration: none;
251+
margin-left: 8px;
252+
font-weight: bold;
253+
text-align: center;
254+
}
255+
256+
.options-button:hover,
257+
.options-button.active {
258+
background: rgba(255, 255, 255, 0.28);
259+
}
260+
261+
.play-on-youtube img {
262+
margin-bottom: -3px;
263+
}

0 commit comments

Comments
 (0)