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