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