]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Better view counter
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
CommitLineData
e31f6ad6 1#video-container {
e56b20f5 2 width: 100%;
e31f6ad6 3 height: 100%;
e56b20f5
C
4}
5
9c89a45c
C
6#video-not-found {
7 height: 300px;
8 line-height: 300px;
9 margin-top: 50px;
10 text-align: center;
11 font-weight: bold;
12}
13
cb11e775 14.embed-responsive {
9ced64e0 15 height: 500px;
1f0215a9
C
16
17 @media screen and (max-width: 600px) {
18 height: 300px;
19 }
cb11e775 20}
da932efc 21
9ced64e0
C
22#torrent-info {
23 font-size: 10px;
a64668c0
C
24 margin-top: 10px;
25 text-align: center;
9ced64e0
C
26
27 div {
a64668c0
C
28 min-width: 60px;
29 }
30}
31
d1992b93 32#video-info {
09223546
C
33 .video-name-views {
34 font-weight: bold;
35 font-size: 18px;
e02573ad
C
36 min-height: $video-watch-title-height;
37 display: flex;
38 align-items: center;
897ec54d
C
39
40 .video-name {
41 padding-left: $video-watch-info-padding-left;
42 }
d1992b93 43
09223546
C
44 .video-views {
45 text-align: right;
897ec54d
C
46 // Keep a symmetry with the video name
47 padding-right: $video-watch-info-padding-left
d1992b93 48 }
3eeeb87f 49
09223546 50 }
d1992b93 51
09223546 52 .video-small-blocks {
ea9f487b 53 height: $video-watch-info-height;
09223546
C
54 color: $video-watch-info-color;
55 border-color: $video-watch-border-color;
56 border-width: 1px 0px;
57 border-style: solid;
58
59 .video-small-block {
60 height: $video-watch-info-height;
61 display: flex;
62 flex-direction: column;
63 justify-content: center;
64 text-align: center;
65
66 a {
67 cursor: pointer;
68 transition: color 0.3s;
3eeeb87f
C
69 white-space: nowrap;
70 overflow: hidden;
71 text-overflow: ellipsis;
09223546
C
72
73 &, &:hover {
74 color: inherit;
75 text-decoration:none;
76 }
d38b8281 77
09223546
C
78 &:hover {
79 color: #000 !important;
80 }
4e1b0973
C
81
82 &:hover > .glyphicon {
83 opacity: 1 !important;
84 }
d38b8281
C
85 }
86
09223546
C
87 .option .glyphicon {
88 font-size: 22px;
89 color: inherit;
4e1b0973 90 opacity: 0.15;
09223546 91 margin-bottom: 10px;
4e1b0973 92 transition: opacity 0.3s;
d38b8281
C
93 }
94
09223546
C
95 .video-small-block-text {
96 font-size: 15px;
97 font-weight: bold;
d38b8281
C
98 }
99 }
100
09223546
C
101 .video-small-block:not(:last-child) {
102 border-width: 0 1px 0 0;
103 border-color: $video-watch-border-color;
104 border-style: solid;
d1992b93 105 }
4f8c0eb0 106
1e1265b3 107 .video-small-block-account, .video-small-block-more {
4e1b0973
C
108 a.option {
109 display: block;
110
111 .glyphicon {
112 display: block;
113 }
114 }
4f8c0eb0 115 }
d1992b93 116
09223546
C
117 .video-small-block-share, .video-small-block-more {
118 a.option {
119 display: block;
d1992b93 120
09223546
C
121 .glyphicon {
122 display: block;
123 }
124 }
d1992b93
C
125 }
126
09223546
C
127 .video-small-block-more .video-small-block-dropdown {
128 position: relative;
129
130 .dropdown-item .glyphicon {
131 margin-right: 5px;
132 }
d1992b93 133 }
d1992b93 134
09223546 135 .video-small-block-rating {
d1992b93 136
09223546
C
137 .video-small-block-like {
138 margin-bottom: 10px;
139 }
05a9feaa 140
09223546
C
141 .video-small-block-text {
142 vertical-align: top;
143 }
d1992b93 144
09223546
C
145 .glyphicon {
146 font-size: 18px;
147 margin: 0 10px 0 0;
4e1b0973 148 opacity: 0.3;
09223546 149 }
6e07c3de 150
09223546
C
151 .interactive {
152 cursor: pointer;
4e1b0973 153 transition: opacity, color 0.3s;
09223546
C
154
155 &.activated, &:hover {
4e1b0973 156 opacity: 1;
09223546
C
157 color: #000;
158 }
159 }
6e07c3de
C
160 }
161 }
162
09223546
C
163 .video-details {
164 margin-top: 30px;
d07137b9 165
09223546 166 .video-details-date-description {
897ec54d 167 padding-left: $video-watch-info-padding-left;
d1992b93 168
80958c78
C
169 .description-loading {
170 display: inline-block;
171 }
172
09223546
C
173 .video-details-date {
174 font-weight: bold;
175 margin-bottom: 30px;
176 }
2de96f4d
C
177
178 .video-details-description-more {
179 cursor: pointer;
180 margin-top: 15px;
181 font-weight: bold;
182 color: #acaeb7;
183
184 .glyphicon {
185 position: relative;
186 top: 2px;
187 }
188 }
09223546
C
189 }
190
191 .video-details-attributes {
d1992b93 192 font-weight: bold;
09223546
C
193 font-size: 12px;
194
e02573ad
C
195 .video-details-attribute {
196 display: flex;
197
198 .video-details-attribute-label {
199 color: $video-watch-info-color;
200 flex-basis: 60px;
201 flex-grow: 0;
202 flex-shrink: 0;
203 margin-right: 5px;
204 }
09223546 205 }
d1992b93 206 }
8ce9e815
C
207
208 .video-details-tags {
e02573ad
C
209 display: flex;
210 flex-wrap: wrap;
8ce9e815
C
211
212 a {
e02573ad 213 margin: 0 3px 3px 0;
8ce9e815
C
214 font-size: 11px;
215 }
216 }
d1992b93 217 }
3eeeb87f 218
3eeeb87f
C
219 @media screen and (max-width: 800px) {
220 .video-name-views {
221 .video-name {
222 padding-left: 5px;
223 padding-right: 0px;
224 }
225
226 .video-views {
227 padding-left: 0px;
228 padding-right: 5px;
229 }
230 }
231
232 .video-small-blocks {
233 a, .video-small-block-text {
234 font-size: 13px !important;
235 }
236
237 .glyphicon {
238 font-size: 18px !important;
239 }
240
1e1265b3 241 .video-small-block-account {
3eeeb87f 242 padding-left: 10px;
a01f107b 243 padding-right: 10px;
3eeeb87f
C
244 }
245 }
246
247 .video-details {
248 .video-details-date-description {
249 padding-left: 10px;
250 font-size: 13px !important;
251 }
252
253 .video-details-attributes {
254 font-size: 11px !important;
255
256 .video-details-attribute-label {
257 width: 50px;
258 }
259 }
260 }
261 }
a01f107b
C
262
263 @media screen and (max-width: 500px) {
264 .video-name-views {
265 font-size: 16px !important;
266 }
267
268 // Keep the same hierarchy than max-width: 800px
269 .video-small-blocks {
270 a, .video-small-block-text {
271 font-size: 10px !important;
272 }
273
1e1265b3 274 .video-small-block-account {
a01f107b
C
275 padding-left: 5px;
276 padding-right: 5px;
277 }
278 }
279
280 .video-details {
281 .video-details-date-description {
282 margin-bottom: 30px;
283 width: 100%;
284
285 .video-details-date {
286 margin-bottom: 15px;
287 }
288 }
289
290 .video-details-attributes {
291 padding-left: 10px;
292 padding-right: 10px;
293 }
294 }
295 }
d1992b93 296}