]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss
Remove avatarUrl from models
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-playlist / video-playlist-element-miniature.component.scss
CommitLineData
e2f01c47
C
1@import '_variables';
2@import '_mixins';
3@import '_miniature';
4
bfbd9128
C
5$thumbnail-width: 130px;
6$thumbnail-height: 72px;
7
72675ebe 8my-video-thumbnail {
bfbd9128
C
9 @include thumbnail-size-component($thumbnail-width, $thumbnail-height);
10}
72675ebe 11
bfbd9128
C
12.fake-thumbnail {
13 width: $thumbnail-width;
14 height: $thumbnail-height;
15 background-color: #ececec;
16}
17
18my-video-thumbnail,
19.fake-thumbnail {
72675ebe
C
20 display: flex; // Avoids an issue with line-height that adds space below the element
21 margin-right: 10px;
22}
23
e2f01c47 24.video {
2d0d756e
C
25 display: grid;
26 grid-template-columns: 1fr auto;
e66883b3 27 background-color: pvar(--mainBackgroundColor);
e2f01c47
C
28 padding: 10px;
29 border-bottom: 1px solid $separator-border-color;
30
2d0d756e
C
31 .more {
32 display: flex;
33 }
34
e2f01c47
C
35 &:hover {
36 background-color: rgba(0, 0, 0, 0.05);
37
38 .more {
3143ae17 39 opacity: 1;
e2f01c47
C
40 }
41 }
42
70afd522 43 @media not all and (hover: hover) and (pointer: fine) {
44 .more {
45 opacity: 1 !important;
46 }
47 }
48
e2f01c47
C
49 &.playing {
50 background-color: rgba(0, 0, 0, 0.02);
51 }
52
53 a {
54 @include disable-default-a-behaviour;
55
e66883b3 56 color: pvar(--mainForegroundColor);
e2f01c47 57 display: flex;
3143ae17 58 min-width: 0;
e2f01c47
C
59 align-items: center;
60 cursor: pointer;
e2f01c47
C
61
62 .position {
63 font-weight: $font-semibold;
64 margin-right: 10px;
e66883b3 65 color: pvar(--greyForegroundColor);
bce47964 66 min-width: 25px;
e2f01c47
C
67
68 my-global-icon {
e66883b3 69 @include apply-svg-color(pvar(--greyForegroundColor));
e2f01c47
C
70
71 width: 17px;
72 position: relative;
73 left: -2px;
74 }
75 }
76
e2f01c47
C
77 .video-info {
78 display: flex;
79 flex-direction: column;
3143ae17 80 align-self: flex-start;
e2f01c47
C
81 min-width: 0;
82
83 a {
bce47964 84 width: auto;
e2f01c47
C
85 }
86
e2f01c47 87 .video-info-account, .video-info-timestamp {
e66883b3 88 color: pvar(--greyForegroundColor);
e2f01c47
C
89 }
90 }
91 }
92
bfbd9128
C
93 .video-info-name {
94 font-size: 18px;
95 font-weight: $font-semibold;
96 display: inline-block;
97
98 @include ellipsis;
99 }
100
bedf0e60 101 .more, my-edit-button {
e2f01c47
C
102 justify-self: flex-end;
103 margin-left: auto;
104 cursor: pointer;
c5407d70 105 min-width: 24px;
bedf0e60 106 }
107
108 .more {
109 opacity: 0;
e2f01c47
C
110
111 &.show {
3143ae17 112 opacity: 1;
e2f01c47
C
113 }
114
115 .icon-more {
e66883b3 116 @include apply-svg-color(pvar(--greyForegroundColor));
e2f01c47
C
117
118 display: flex;
119
120 &::after {
121 border: none;
122 }
123 }
da2516fd
C
124 }
125}
e2f01c47 126
da2516fd 127.dropdown-menu {
e2f01c47 128
da2516fd
C
129 .dropdown-item {
130 @include dropdown-with-icon-item;
e2f01c47 131
da2516fd
C
132 cursor: pointer;
133 }
e2f01c47 134
da2516fd
C
135 .timestamp-options {
136 padding-top: 0;
137 padding-left: 35px;
138 margin-bottom: 15px;
e2f01c47 139
da2516fd
C
140 > div {
141 display: flex;
142 align-items: center;
143 margin-bottom: 5px;
144 }
145
146 my-peertube-checkbox {
147 margin-right: 5px;
148 }
149
150 input {
151 @include peertube-button;
152 @include orange-button;
153
154 margin-top: 10px;
e2f01c47
C
155 }
156 }
157}
bedf0e60 158
159@mixin more-dropdown-control {
160 .video {
161 my-edit-button {
162 display: none;
163
164 + .more {
165 display: inline-flex;
166 }
167 }
168 }
169}
170
171@mixin edit-button-control {
172 .video {
173 my-edit-button {
174 display: none;
175 }
176
177 &.playing {
178 my-edit-button {
179 display: inline-flex;
180 height: max-content;
2d0d756e 181 margin: auto;
bedf0e60 182 }
183 }
184
185 my-edit-button + .more {
186 display: none;
187 }
188 }
189}
190
191@mixin edit-button-in-mobile-view {
192 .video {
193 my-edit-button {
194 ::ng-deep .action-button-edit {
195 padding: 0 13px;
196
197 .button-label {
198 display: none;
199 }
200 }
201 }
202 }
203}
204
205@media screen and (min-width: $small-view) {
206 :host-context(.expanded) {
207 @include more-dropdown-control();
208 }
209}
210
211@media screen and (max-width: $small-view) {
212 :host-context(.expanded) {
213 @include edit-button-control();
214 }
215}
216
217@media screen and (max-width: $mobile-view) {
218 :host-context(.expanded) {
219 @include edit-button-in-mobile-view();
220 }
221}
222
223@media screen and (min-width: #{$small-view + $menu-width}) {
224 :host-context(.main-col:not(.expanded)) {
225 @include more-dropdown-control();
226 }
227}
228
229@media screen and (max-width: #{$small-view + $menu-width}) {
230 :host-context(.main-col:not(.expanded)) {
231 @include edit-button-control();
232 }
233}
234
235@media screen and (max-width: #{$mobile-view + $menu-width}) {
236 :host-context(.main-col:not(.expanded)) {
237 @include edit-button-in-mobile-view();
238 }
239}