]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
830b4faf | 3 | @import '_miniature'; |
63c4db6d | 4 | |
743f023c | 5 | $more-button-width: 41px; |
5dfb7c1d | 6 | $more-margin-right: 15px; |
743f023c | 7 | |
501bc6c2 | 8 | .video-miniature { |
11dd0c2e | 9 | width: $video-miniature-width; |
e2409062 C |
10 | display: inline-flex; |
11 | flex-direction: column; | |
dc890263 | 12 | margin-bottom: $video-miniature-margin-bottom; |
e5fc7811 | 13 | height: 195px; |
0d7d2ad9 | 14 | vertical-align: top; |
501bc6c2 | 15 | |
0f4905e1 C |
16 | .video-bottom { |
17 | display: flex; | |
501bc6c2 | 18 | |
0f4905e1 | 19 | .video-miniature-information { |
743f023c | 20 | width: $video-miniature-width - $more-button-width - $more-margin-right; |
0f4905e1 | 21 | line-height: normal; |
501bc6c2 | 22 | |
0f4905e1 C |
23 | .video-miniature-name { |
24 | @include miniature-name; | |
25 | } | |
00a44645 | 26 | |
0f4905e1 C |
27 | .video-miniature-created-at-views { |
28 | display: block; | |
29 | font-size: 13px; | |
30 | } | |
03e12d7c | 31 | |
0f4905e1 C |
32 | .video-miniature-account, |
33 | .video-miniature-channel { | |
34 | @include disable-default-a-behaviour; | |
35 | @include ellipsis; | |
03e12d7c | 36 | |
0f4905e1 C |
37 | display: block; |
38 | font-size: 13px; | |
c123027f | 39 | color: var(--greyForegroundColor); |
0f4905e1 C |
40 | |
41 | &:hover { | |
42 | color: $grey-foreground-hover-color; | |
43 | } | |
03e12d7c | 44 | } |
e2409062 | 45 | |
0f4905e1 C |
46 | .video-info-privacy, |
47 | .video-info-blacklisted .blacklisted-label, | |
48 | .video-info-nsfw { | |
49 | font-weight: $font-semibold; | |
50 | } | |
e2409062 | 51 | |
0f4905e1 C |
52 | .video-info-blacklisted { |
53 | color: red; | |
e2409062 | 54 | |
0f4905e1 C |
55 | .blacklisted-reason::before { |
56 | content: ' - '; | |
57 | } | |
e2409062 | 58 | } |
e2409062 | 59 | |
0f4905e1 C |
60 | .video-info-nsfw { |
61 | color: red; | |
62 | } | |
e2409062 | 63 | } |
3a0fb65c C |
64 | |
65 | .video-actions { | |
66 | margin-top: 3px; | |
743f023c C |
67 | width: $more-button-width; |
68 | height: 30px; | |
3a0fb65c | 69 | |
03652b31 | 70 | ::ng-deep .dropdown-root:not(.show) { |
2b3f1919 | 71 | opacity: 0; |
0f4905e1 | 72 | } |
3a0fb65c | 73 | |
03652b31 | 74 | ::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root { |
2b3f1919 | 75 | opacity: 1; |
0f4905e1 | 76 | } |
3a0fb65c | 77 | |
3fbba1d2 RK |
78 | ::ng-deep .more-icon { |
79 | opacity: .6; | |
80 | ||
81 | &:hover { | |
82 | opacity: 1; | |
83 | } | |
84 | } | |
3a0fb65c C |
85 | } |
86 | ||
87 | @media screen and (max-width: $small-view) { | |
d056b019 C |
88 | .video-miniature-information { |
89 | margin: 0 10px; | |
90 | ||
91 | .video-miniature-name { | |
92 | margin-top: 0; | |
93 | } | |
3a0fb65c C |
94 | } |
95 | ||
0f4905e1 C |
96 | .video-actions { |
97 | margin: 0; | |
98 | top: -3px; | |
99 | ||
03652b31 | 100 | ::ng-deep .dropdown-root { |
743f023c | 101 | opacity: 1 !important; |
0f4905e1 | 102 | } |
3a0fb65c C |
103 | } |
104 | } | |
105 | } | |
106 | ||
3fbba1d2 RK |
107 | &:hover ::ng-deep .video-thumbnail .video-thumbnail-actions-overlay, |
108 | &:hover .video-bottom .video-actions ::ng-deep .dropdown-root { | |
109 | opacity: 1; | |
110 | } | |
111 | ||
e2409062 C |
112 | &.display-as-row { |
113 | flex-direction: row; | |
114 | margin-bottom: 0; | |
115 | height: auto; | |
bf64ed41 RK |
116 | display: flex; |
117 | flex-grow: 1; | |
e2409062 C |
118 | |
119 | my-video-thumbnail { | |
120 | margin-right: 10px; | |
121 | } | |
122 | ||
0f4905e1 C |
123 | .video-bottom { |
124 | .video-miniature-information { | |
dd570a34 C |
125 | @media screen and (min-width: $small-view) { |
126 | width: auto; | |
127 | min-width: 500px; | |
128 | } | |
0f4905e1 C |
129 | |
130 | .video-miniature-name { | |
131 | @include ellipsis-multiline(1.3em, 2); | |
132 | ||
133 | margin-top: 2px; | |
134 | margin-bottom: 5px; | |
135 | } | |
136 | ||
137 | .video-miniature-created-at-views, | |
138 | .video-miniature-account, | |
139 | .video-miniature-channel { | |
140 | font-size: 14px; | |
141 | width: fit-content; | |
142 | } | |
143 | ||
144 | .video-info-privacy { | |
145 | margin-top: 5px; | |
146 | } | |
147 | ||
148 | .video-info-blacklisted { | |
149 | margin-top: 3px; | |
150 | } | |
e2409062 C |
151 | } |
152 | ||
0f4905e1 C |
153 | .video-actions { |
154 | margin: 0; | |
155 | top: -3px; | |
e2409062 C |
156 | } |
157 | } | |
158 | ||
159 | @media screen and (max-width: $small-view) { | |
160 | flex-direction: column; | |
161 | height: auto; | |
162 | ||
163 | my-video-thumbnail { | |
164 | margin-right: 0; | |
165 | } | |
8dfceec4 C |
166 | |
167 | .video-miniature-information { | |
168 | min-width: initial; | |
169 | } | |
e2409062 | 170 | } |
501bc6c2 C |
171 | } |
172 | } |