]>
Commit | Line | Data |
---|---|---|
1 | @use '_variables' as *; | |
2 | @use '_mixins' as *; | |
3 | @use '_miniature' as *; | |
4 | ||
5 | .miniature { | |
6 | display: inline-block; | |
7 | width: 100%; | |
8 | ||
9 | &.no-videos:not(.to-manage) { | |
10 | a { | |
11 | cursor: default !important; | |
12 | } | |
13 | } | |
14 | ||
15 | &.to-manage, | |
16 | &.no-videos { | |
17 | .play-overlay { | |
18 | display: none; | |
19 | } | |
20 | } | |
21 | } | |
22 | ||
23 | .miniature-thumbnail { | |
24 | @include miniature-thumbnail; | |
25 | ||
26 | .miniature-playlist-info-overlay { | |
27 | @include static-thumbnail-overlay; | |
28 | ||
29 | position: absolute; | |
30 | right: 0; | |
31 | bottom: 0; | |
32 | height: 100%; | |
33 | padding: 0 10px; | |
34 | display: flex; | |
35 | align-items: center; | |
36 | font-size: 14px; | |
37 | font-weight: $font-semibold; | |
38 | } | |
39 | } | |
40 | ||
41 | .miniature-info { | |
42 | ||
43 | .miniature-name { | |
44 | @include miniature-name; | |
45 | ||
46 | margin-top: 10px; | |
47 | margin-bottom: 5px; | |
48 | } | |
49 | ||
50 | .by { | |
51 | @include disable-default-a-behaviour; | |
52 | ||
53 | display: block; | |
54 | color: pvar(--greyForegroundColor); | |
55 | } | |
56 | ||
57 | .privacy-date { | |
58 | margin-top: 5px; | |
59 | font-size: 13px; | |
60 | ||
61 | .video-info-privacy { | |
62 | font-weight: $font-semibold; | |
63 | ||
64 | &::after { | |
65 | content: '-'; | |
66 | margin: 0 3px; | |
67 | } | |
68 | } | |
69 | } | |
70 | ||
71 | .video-info-description { | |
72 | margin-top: 10px; | |
73 | color: pvar(--greyForegroundColor); | |
74 | } | |
75 | } | |
76 | ||
77 | .miniature:not(.display-as-row) { | |
78 | ||
79 | .miniature-thumbnail { | |
80 | @include block-ratio($selector: '::ng-deep a'); | |
81 | ||
82 | margin-top: 10px; | |
83 | margin-bottom: 5px; | |
84 | } | |
85 | } | |
86 | ||
87 | .miniature.display-as-row { | |
88 | --rowThumbnailWidth: #{$video-thumbnail-width}; | |
89 | --rowThumbnailHeight: #{$video-thumbnail-height}; | |
90 | ||
91 | display: flex; | |
92 | ||
93 | .miniature-thumbnail { | |
94 | @include margin-right(10px); | |
95 | ||
96 | width: var(--rowThumbnailWidth); | |
97 | height: var(--rowThumbnailHeight); | |
98 | } | |
99 | } | |
100 | ||
101 | @include on-small-main-col { | |
102 | .miniature.display-as-row { | |
103 | --rowThumbnailWidth: #{$video-thumbnail-medium-width}; | |
104 | --rowThumbnailHeight: #{$video-thumbnail-medium-height}; | |
105 | } | |
106 | } | |
107 | ||
108 | @include on-mobile-main-col { | |
109 | .miniature.display-as-row { | |
110 | --rowThumbnailWidth: #{$video-thumbnail-small-width}; | |
111 | --rowThumbnailHeight: #{$video-thumbnail-small-height}; | |
112 | } | |
113 | } |