]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
830b4faf | 3 | @import '_miniature'; |
63c4db6d | 4 | |
743f023c C |
5 | $more-button-width: 41px; |
6 | $more-margin-right: 10px; | |
7 | ||
501bc6c2 | 8 | .video-miniature { |
11dd0c2e | 9 | width: $video-miniature-width; |
e2409062 C |
10 | display: inline-flex; |
11 | flex-direction: column; | |
9bf9d2a5 | 12 | margin-bottom: 30px; |
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; | |
39 | color: $grey-foreground-color; | |
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 | margin-right: $more-margin-right; |
68 | width: $more-button-width; | |
69 | height: 30px; | |
3a0fb65c | 70 | |
0f4905e1 | 71 | /deep/ .dropdown-root:not(.show) { |
2b3f1919 | 72 | opacity: 0; |
0f4905e1 | 73 | } |
3a0fb65c | 74 | |
0f4905e1 | 75 | /deep/ .playlist-dropdown.show + my-action-dropdown .dropdown-root { |
2b3f1919 | 76 | opacity: 1; |
0f4905e1 | 77 | } |
3a0fb65c C |
78 | } |
79 | ||
0f4905e1 | 80 | &:hover .video-actions /deep/ .dropdown-root { |
2b3f1919 | 81 | opacity: 1; |
3a0fb65c C |
82 | } |
83 | ||
84 | @media screen and (max-width: $small-view) { | |
0f4905e1 C |
85 | .video-miniature-information .video-miniature-name { |
86 | margin-top: 0; | |
3a0fb65c C |
87 | } |
88 | ||
0f4905e1 C |
89 | .video-actions { |
90 | margin: 0; | |
91 | top: -3px; | |
92 | ||
93 | /deep/ .dropdown-root { | |
743f023c | 94 | opacity: 1 !important; |
0f4905e1 | 95 | } |
3a0fb65c C |
96 | } |
97 | } | |
98 | } | |
99 | ||
e2409062 C |
100 | &.display-as-row { |
101 | flex-direction: row; | |
102 | margin-bottom: 0; | |
103 | height: auto; | |
104 | width: 100%; | |
105 | ||
106 | my-video-thumbnail { | |
107 | margin-right: 10px; | |
108 | } | |
109 | ||
0f4905e1 C |
110 | .video-bottom { |
111 | .video-miniature-information { | |
112 | width: auto; | |
113 | min-width: 500px; | |
114 | ||
115 | .video-miniature-name { | |
116 | @include ellipsis-multiline(1.3em, 2); | |
117 | ||
118 | margin-top: 2px; | |
119 | margin-bottom: 5px; | |
120 | } | |
121 | ||
122 | .video-miniature-created-at-views, | |
123 | .video-miniature-account, | |
124 | .video-miniature-channel { | |
125 | font-size: 14px; | |
126 | width: fit-content; | |
127 | } | |
128 | ||
129 | .video-info-privacy { | |
130 | margin-top: 5px; | |
131 | } | |
132 | ||
133 | .video-info-blacklisted { | |
134 | margin-top: 3px; | |
135 | } | |
e2409062 C |
136 | } |
137 | ||
0f4905e1 C |
138 | .video-actions { |
139 | margin: 0; | |
140 | top: -3px; | |
e2409062 C |
141 | } |
142 | } | |
143 | ||
144 | @media screen and (max-width: $small-view) { | |
145 | flex-direction: column; | |
146 | height: auto; | |
147 | ||
148 | my-video-thumbnail { | |
149 | margin-right: 0; | |
150 | } | |
8dfceec4 C |
151 | |
152 | .video-miniature-information { | |
153 | min-width: initial; | |
154 | } | |
e2409062 | 155 | } |
501bc6c2 C |
156 | } |
157 | } |