]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Update readme screenshot with new design
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
CommitLineData
e31f6ad6 1#video-container {
be6a4802
C
2 background-color: #000;
3 display: flex;
4 justify-content: center;
5
6 #video-element {
7 width: 888px;
8 height: 500px;
7b272fd7 9
b9828abe
C
10 @media screen and (max-width: 800px) {
11 height: auto;
12 }
13
7b272fd7
C
14 // VideoJS create an inner video player
15 video {
16 outline: 0;
b9828abe 17 position: relative !important;
7b272fd7 18 }
be6a4802 19 }
e56b20f5
C
20}
21
9c89a45c
C
22#video-not-found {
23 height: 300px;
24 line-height: 300px;
25 margin-top: 50px;
26 text-align: center;
27 font-weight: bold;
28}
29
b1fa3eba
C
30.video-bottom {
31 margin-top: 40px;
32 display: flex;
d1992b93 33
b1fa3eba
C
34 .video-info {
35 flex-grow: 1;
36 margin-right: 28px;
3eeeb87f 37
b1fa3eba
C
38 .video-info-name-actions {
39 display: flex;
40 align-items: center;
d1992b93 41
b1fa3eba
C
42 .video-info-name {
43 font-size: 27px;
44 font-weight: $font-semibold;
45 flex-grow: 1;
46 }
09223546 47
b1fa3eba
C
48 .video-info-actions {
49 .action-button {
50 @include peertube-button;
7b272fd7 51 @include grey-button;
09223546 52
b1fa3eba
C
53 font-size: 15px;
54 font-weight: $font-semibold;
b1fa3eba
C
55 display: inline-block;
56 padding: 0 10px 0 10px;
09223546 57
7b272fd7 58 .icon {
0727cab0
C
59 @include icon(21px);
60
7b272fd7
C
61 position: relative;
62 top: -2px;
63
64 &.icon-like {
65 background-image: url('../../../assets/images/video/like-grey.svg');
66 }
67
68 &.icon-dislike {
69 background-image: url('../../../assets/images/video/dislike-grey.svg');
70 }
71
72 &.icon-share {
73 background-image: url('../../../assets/images/video/share.svg');
74 }
75
76 &.icon-more {
77 background-image: url('../../../assets/images/video/more.svg');
4cc66133 78 top: -1px;
7b272fd7 79 }
b1fa3eba 80 }
d38b8281 81
7b272fd7
C
82 &.activated {
83 @include orange-button;
4e1b0973 84
7b272fd7
C
85 .icon-like {
86 background-image: url('../../../assets/images/video/like-white.svg');
87 }
d38b8281 88
7b272fd7
C
89 .icon-dislike {
90 background-image: url('../../../assets/images/video/dislike-white.svg');
91 }
b1fa3eba 92 }
7b272fd7 93 }
d38b8281 94
7b272fd7
C
95 .action-more {
96 display: inline-block;
4f8c0eb0 97
7b272fd7
C
98 .dropdown-menu .icon {
99 display: inline-block;
100 background-repeat: no-repeat;
101 background-size: contain;
102 width: 21px;
103 height: 21px;
104 vertical-align: middle;
105 margin-right: 5px;
106 position: relative;
107 top: -1px;
108
109 &.icon-download {
0727cab0 110 background-image: url('../../../assets/images/video/download-grey.svg');
7b272fd7
C
111 }
112
113 &.icon-alert {
114 background-image: url('../../../assets/images/video/alert.svg');
115 }
116
117 &.icon-blacklist {
118 background-image: url('../../../assets/images/video/eye-closed.svg');
119 }
b1fa3eba 120 }
4e1b0973
C
121 }
122 }
4f8c0eb0 123 }
d1992b93 124
6a9e1d42
C
125 .video-info-date-views-bar {
126 display: flex;
127
128 .video-info-date-views {
129 font-size: 16px;
130 margin-bottom: 10px;
131 flex-grow: 1;
132 }
133
134 .video-info-likes-dislikes-bar {
135 height: 5px;
136 width: 186px;
137 background-color: #E5E5E5;
138 margin-top: 25px;
139
140 .likes-bar {
141 height: 100%;
142 background-color: #39CC0B;
143 }
144 }
d1992b93
C
145 }
146
b1fa3eba
C
147 .video-info-channel {
148 font-weight: $font-semibold;
149 font-size: 15px;
d1992b93 150 }
d1992b93 151
b1fa3eba
C
152 .video-info-by {
153 display: flex;
154 align-items: center;
155 font-size: 13px;
09223546 156
b1fa3eba
C
157 img {
158 width: 16px;
159 height: 16px;
160 margin-left: 3px;
09223546 161 }
6e07c3de 162 }
d07137b9 163
b1fa3eba
C
164 .video-info-description {
165 margin: 20px 0;
166 font-size: 15px;
d1992b93 167
80958c78
C
168 .description-loading {
169 display: inline-block;
170 }
171
b1fa3eba 172 .video-info-description-more {
2de96f4d 173 cursor: pointer;
b1fa3eba
C
174 font-weight: $font-semibold;
175 color: #585858;
176 font-size: 14px;
2de96f4d
C
177
178 .glyphicon {
179 position: relative;
180 top: 2px;
181 }
182 }
09223546
C
183 }
184
b1fa3eba
C
185 .video-attributes {
186 .video-attribute {
187 font-size: 13px;
188 display: block;
189 margin-bottom: 12px;
3eeeb87f 190
b1fa3eba
C
191 .video-attribute-label {
192 width: 86px;
193 display: inline-block;
194 color: #585858;
195 font-weight: $font-bold;
3eeeb87f
C
196 }
197 }
198 }
41c3dfac
C
199 }
200
201 .other-videos {
202 .title-page {
203 margin-top: 0;
204 }
205
206 /deep/ .video-miniature {
207 display: flex;
208 height: 100%;
209 margin-bottom: 20px;
a01f107b 210
41c3dfac
C
211 .video-miniature-information {
212 margin-left: 10px;
213 }
214 }
a01f107b 215 }
d1992b93 216}
41c3dfac 217
b9828abe 218
20206dfb 219@media screen and (max-width: 1000px) {
b9828abe
C
220 .other-videos {
221 display: none;
222 }
20206dfb 223}
b9828abe 224
20206dfb 225@media screen and (max-width: 800px) {
b9828abe 226 .video-bottom {
20206dfb
C
227 margin: 20px 0 0 0;
228
b9828abe 229 .video-info {
20206dfb 230 margin-right: 0;
9b7d1c72 231
b9828abe
C
232 .video-info-name-actions {
233 align-items: left;
234 flex-direction: column;
235 margin-bottom: 30px;
236 }
237
238 .video-info-date-views-bar {
239 align-items: left;
240 flex-direction: column;
241 margin-bottom: 30px;
242
243 .video-info-likes-dislikes-bar {
244 margin-top: 0;
245 }
246 }
247 }
248 }
249}