]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/video/video-thumbnail.component.scss
Add background placeholder for thumbnails
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-thumbnail.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 .video-thumbnail {
5 display: inline-block;
6 position: relative;
7 border-radius: 4px;
8 overflow: hidden;
9 width: $video-thumbnail-width;
10 height: $video-thumbnail-height;
11 background-color: #ececec;
12
13 &:hover {
14 text-decoration: none !important;
15 }
16
17 img {
18 width: $video-thumbnail-width;
19 height: $video-thumbnail-height;
20
21 &.blur-filter {
22 filter: blur(5px);
23 transform : scale(1.03);
24 }
25 }
26
27 .video-thumbnail-overlay {
28 position: absolute;
29 right: 5px;
30 bottom: 5px;
31 display: inline-block;
32 background-color: rgba(0, 0, 0, 0.7);
33 color: #fff;
34 font-size: 12px;
35 font-weight: $font-bold;
36 border-radius: 3px;
37 padding: 0 5px;
38 }
39 }