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