]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/standalone/videos/embed.scss
Speedup embed first paint
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.scss
CommitLineData
7bfd1b1e
C
1@import '_variables';
2@import '_mixins';
202e7223
C
3@import '~video.js/dist/video-js.css';
4@import '~videojs-dock/dist/videojs-dock.css';
2a19a1e4
C
5
6$assets-path: '../../assets/';
b335ccec 7@import '../../sass/player/index';
202e7223 8
d4f3fea6
C
9[hidden] {
10 display: none !important;
11}
12
13body {
14 font-family: $main-fonts;
15 font-weight: $font-regular;
16 color: #000;
17}
18
202e7223
C
19video {
20 width: 99%;
21}
22
23/* fill the entire space */
24html, body {
25 height: 100%;
26 margin: 0;
33d78552 27 background-color: #000;
202e7223
C
28}
29
86f278cb 30.video-js.vjs-peertube-skin {
202e7223
C
31 width: 100%;
32 height: 100%;
3d09cdbf 33 overflow: hidden;
202e7223 34
86f278cb
C
35 .vjs-poster {
36 background-size: 100% auto;
37 }
9e6b41cc 38
86f278cb
C
39 @media screen and (max-width: 350px) {
40 .vjs-play-control {
41 padding: 0 5px !important;
42 width: 25px !important;
43 }
44
45 .vjs-volume-control {
46 display: none !important;
47 }
48
49 .vjs-volume-panel {
50 width: 26px !important;
86f278cb
C
51 }
52
53 .vjs-peertube-link {
54 padding: 0;
55 }
9e6b41cc 56 }
202e7223 57}
d4f3fea6
C
58
59#error-block {
60 display: none;
61
62 flex-direction: column;
63 align-content: center;
64 justify-content: center;
65 text-align: center;
d4f3fea6
C
66 width: 100%;
67 height: 100%;
68 color: white;
69 box-sizing: border-box;
70 font-family: sans-serif;
71
72 #error-title {
73 font-size: 45px;
74 margin-bottom: 5px;
75 }
76
77 #error-content {
78 font-size: 24px;
79 }
80}
81
3f9c4955
C
82#placeholder-preview {
83 position: absolute;
84 top: 0;
85 left: 0;
86 background-size: 100% auto;
87 width: 100%;
88 height: 100%;
89 background-position: 50% 50%;
90}
91
d4f3fea6
C
92@media screen and (max-width: 300px) {
93 #error-block {
94 font-size: 36px;
95
96 #error-content {
97 font-size: 14px;
98 }
99 }
100}
101