]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/video/video-miniature.component.scss
Merge branch 'release/2.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.scss
1 @import '_variables';
2 @import '_mixins';
3 @import '_miniature';
4
5 $more-button-width: 41px;
6 $more-margin-right: 15px;
7
8 .video-miniature {
9 width: $video-miniature-width;
10 display: inline-flex;
11 flex-direction: column;
12 margin-bottom: $video-miniature-margin-bottom;
13 height: 195px;
14 vertical-align: top;
15
16 .video-bottom {
17 display: flex;
18
19 .video-miniature-information {
20 width: $video-miniature-width - $more-button-width - $more-margin-right;
21 line-height: normal;
22
23 .video-miniature-name {
24 @include miniature-name;
25 }
26
27 .video-miniature-created-at-views {
28 display: block;
29 font-size: 13px;
30 }
31
32 .video-miniature-account,
33 .video-miniature-channel {
34 @include disable-default-a-behaviour;
35 @include ellipsis;
36
37 display: block;
38 font-size: 13px;
39 color: var(--greyForegroundColor);
40
41 &:hover {
42 color: $grey-foreground-hover-color;
43 }
44 }
45
46 .video-info-privacy,
47 .video-info-blacklisted .blacklisted-label,
48 .video-info-nsfw {
49 font-weight: $font-semibold;
50 }
51
52 .video-info-blacklisted {
53 color: red;
54
55 .blacklisted-reason::before {
56 content: ' - ';
57 }
58 }
59
60 .video-info-nsfw {
61 color: red;
62 }
63 }
64
65 .video-actions {
66 margin-top: 3px;
67 width: $more-button-width;
68 height: 30px;
69
70 ::ng-deep .dropdown-root:not(.show) {
71 opacity: 0;
72 }
73
74 ::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root {
75 opacity: 1;
76 }
77
78 ::ng-deep .more-icon {
79 opacity: .6;
80
81 &:hover {
82 opacity: 1;
83 }
84 }
85 }
86
87 @media screen and (max-width: $small-view) {
88 .video-miniature-information {
89 margin: 0 10px;
90
91 .video-miniature-name {
92 margin-top: 0;
93 }
94 }
95
96 .video-actions {
97 margin: 0;
98 top: -3px;
99
100 ::ng-deep .dropdown-root {
101 opacity: 1 !important;
102 }
103 }
104 }
105 }
106
107 &:hover ::ng-deep .video-thumbnail .video-thumbnail-actions-overlay,
108 &:hover .video-bottom .video-actions ::ng-deep .dropdown-root {
109 opacity: 1;
110 }
111
112 &.display-as-row {
113 flex-direction: row;
114 margin-bottom: 0;
115 height: auto;
116 display: flex;
117 flex-grow: 1;
118
119 my-video-thumbnail {
120 margin-right: 10px;
121 }
122
123 .video-bottom {
124 .video-miniature-information {
125 @media screen and (min-width: $small-view) {
126 width: auto;
127 min-width: 500px;
128 }
129
130 .video-miniature-name {
131 @include ellipsis-multiline(1.3em, 2);
132
133 margin-top: 2px;
134 margin-bottom: 5px;
135 }
136
137 .video-miniature-created-at-views,
138 .video-miniature-account,
139 .video-miniature-channel {
140 font-size: 14px;
141 width: fit-content;
142 }
143
144 .video-info-privacy {
145 margin-top: 5px;
146 }
147
148 .video-info-blacklisted {
149 margin-top: 3px;
150 }
151 }
152
153 .video-actions {
154 margin: 0;
155 top: -3px;
156 }
157 }
158
159 @media screen and (max-width: $small-view) {
160 flex-direction: column;
161 height: auto;
162
163 my-video-thumbnail {
164 margin-right: 0;
165 }
166
167 .video-miniature-information {
168 min-width: initial;
169 }
170 }
171 }
172 }