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