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