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