]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-miniature/video-miniature.component.scss
Merge branch 'release/5.0.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-miniature / video-miniature.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
3@use '_miniature' as *;
63c4db6d 4
adcf9212 5$more-button-width: 40px;
743f023c 6
38a3ccc7 7.chip {
8 @include chip;
9}
10
5b0ec7cd
C
11.video-miniature {
12 font-size: 14px;
13}
14
0f7407d9
C
15.video-miniature-name {
16 @include miniature-name;
17}
501bc6c2 18
0f7407d9
C
19.video-miniature-information {
20 width: calc(100% - #{$more-button-width});
21}
501bc6c2 22
746018f6 23my-actor-avatar {
27bc9586 24 @include margin(10px, 10px, 0, 0);
f1ac6348 25}
cf78883c 26
0f7407d9
C
27.video-miniature-created-at-views {
28 font-size: 13px;
29}
501bc6c2 30
0f7407d9
C
31.video-miniature-account,
32.video-miniature-channel {
33 @include disable-default-a-behaviour;
34 @include ellipsis;
33253c1a 35
0f7407d9
C
36 display: block;
37 font-size: 13px;
38 color: pvar(--greyForegroundColor);
00a44645 39
0f7407d9
C
40 &:hover {
41 color: $grey-foreground-hover-color;
42 }
43}
adcf9212 44
0f7407d9
C
45.video-info-privacy,
46.video-info-blocked .blocked-label,
47.video-info-nsfw {
48 font-weight: $font-semibold;
49}
03e12d7c 50
0f7407d9 51.video-info-blocked {
931d3430 52 color: #ff0000;
03e12d7c 53
0f7407d9
C
54 .blocked-reason::before {
55 content: ' - ';
56 }
57}
0f4905e1 58
0f7407d9 59.video-info-nsfw {
931d3430 60 color: #ff0000;
0f7407d9 61}
e2409062 62
0f7407d9
C
63.video-actions {
64 width: $more-button-width;
65 height: 30px;
e2409062 66
0f7407d9
C
67 ::ng-deep .dropdown-root:not(.show) {
68 opacity: 0;
69 }
e2409062 70
0f7407d9
C
71 ::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root {
72 opacity: 1;
73 }
e2409062 74
0f7407d9
C
75 ::ng-deep .more-icon {
76 opacity: .6;
3a0fb65c 77
0f7407d9
C
78 &:hover {
79 opacity: 1;
80 }
81 }
82}
3a0fb65c 83
f1ac6348
C
84.video-miniature:hover {
85 ::ng-deep .video-thumbnail-actions-overlay,
86 .video-actions ::ng-deep .dropdown-root {
0f7407d9
C
87 opacity: 1 !important;
88 }
89}
3a0fb65c 90
0f7407d9
C
91// Grid mode
92// Takes all the width on mobile
93.video-miniature:not(.display-as-row) {
94 display: flex;
95 flex-direction: column;
96 padding-bottom: $video-miniature-margin-bottom;
97 width: 100%;
3a0fb65c 98
0f7407d9 99 my-video-thumbnail {
cdeddff1 100 @include block-ratio($selector: '::ng-deep .video-thumbnail');
0f7407d9 101 }
3fbba1d2 102
0f7407d9
C
103 .video-bottom {
104 display: flex;
105 width: 100%;
66615377 106 min-width: 1px;
0f7407d9 107 }
3a0fb65c 108
0f7407d9
C
109 .video-miniature-name {
110 margin-top: 10px;
111 margin-bottom: 5px;
112 }
0f4905e1 113
0f7407d9
C
114 .video-miniature-created-at-views {
115 display: block;
3a0fb65c
C
116 }
117
0f7407d9
C
118 .video-actions {
119 margin-top: 3px;
3fbba1d2
RK
120 }
121
0f7407d9 122 @media screen and (max-width: $small-view) {
e66883b3 123 width: 100%;
0f7407d9
C
124 margin-bottom: 25px;
125
126 .video-miniature-information {
127 margin: 0 10px;
128
129 width: 100%;
130 text-align: left;
131 }
e66883b3 132
0f7407d9
C
133 .video-actions {
134 margin: 0;
135 top: -3px;
e66883b3 136
0f7407d9
C
137 ::ng-deep .dropdown-root {
138 opacity: 1 !important;
e66883b3
RK
139 }
140 }
141
0f7407d9
C
142 ::ng-deep .video-thumbnail {
143 border-radius: 0;
e66883b3
RK
144 }
145 }
0f7407d9
C
146}
147
148.video-miniature.display-as-row {
149 --rowThumbnailWidth: #{$video-thumbnail-width};
150 --rowThumbnailHeight: #{$video-thumbnail-height};
151
152 display: flex;
153 flex-direction: row;
e66883b3 154
0f7407d9 155 .video-bottom {
bf64ed41 156 display: flex;
66615377 157 min-width: 1px;
0f7407d9 158 }
e2409062 159
0f7407d9 160 // We don't display avatar in row mode
f1ac6348 161 .channel-avatar {
0f7407d9
C
162 display: none;
163 }
e2409062 164
0f7407d9 165 my-video-thumbnail {
27bc9586
C
166 @include margin-right(10px);
167
0f7407d9
C
168 min-width: var(--rowThumbnailWidth);
169 max-width: var(--rowThumbnailWidth);
170 height: var(--rowThumbnailHeight);
0f7407d9 171 }
e2409062 172
0f7407d9 173 .video-miniature-name {
4429a4a6 174 @include ellipsis-multiline($video-miniature-row-name-font-size, 2);
0f7407d9
C
175 }
176
177 .video-miniature-created-at-views,
178 .video-miniature-account,
179 .video-miniature-channel {
4429a4a6 180 font-size: $video-miniature-row-info-font-size;
0f7407d9 181 }
e2409062 182
0f7407d9
C
183 .video-actions {
184 margin-top: -3px;
185 }
186}
e2409062 187
0f7407d9
C
188@include on-small-main-col {
189 .video-miniature.display-as-row {
190 --rowThumbnailWidth: #{$video-thumbnail-medium-width};
191 --rowThumbnailHeight: #{$video-thumbnail-medium-height};
192 }
193}
8dfceec4 194
0f7407d9
C
195@include on-mobile-main-col {
196 .video-miniature.display-as-row {
197 --rowThumbnailWidth: #{$video-thumbnail-small-width};
198 --rowThumbnailHeight: #{$video-thumbnail-small-height};
199
200 .video-miniature-name {
4429a4a6 201 font-size: $video-miniature-row-info-font-size;
0f7407d9
C
202 }
203
204 .video-miniature-created-at-views,
205 .video-miniature-account,
206 .video-miniature-channel {
4429a4a6 207 font-size: $video-miniature-row-mobile-info-font-size;
e2409062 208 }
501bc6c2
C
209 }
210}