]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.scss
Fix broken views on mobile and small screens (#2671)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-playlists / my-account-video-playlist-elements.component.scss
1 @import '_variables';
2 @import '_mixins';
3 @import '_miniature';
4
5 .playlist-info {
6 background-color: var(--submenuColor);
7 margin-left: -15px;
8 margin-top: -$sub-menu-margin-bottom;
9
10 padding: $sub-menu-margin-bottom 0 -15px 0;
11
12 display: flex;
13 justify-content: center;
14
15 /* fix ellipsis dots background color */
16 ::ng-deep .miniature-name::after {
17 background-color: var(--submenuColor) !important;
18 }
19 }
20
21 // Thanks Angular CDK <3 https://material.angular.io/cdk/drag-drop/examples
22 .cdk-drag-preview {
23 box-sizing: border-box;
24 border-radius: 4px;
25 box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
26 0 8px 10px 1px rgba(0, 0, 0, 0.14),
27 0 3px 14px 2px rgba(0, 0, 0, 0.12);
28 }
29
30 .cdk-drag-placeholder {
31 opacity: 0;
32 }
33
34 .cdk-drag-animating {
35 transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
36 }
37
38 .video:last-child {
39 border: none;
40 }
41
42 .videos.cdk-drop-list-dragging .video:not(.cdk-drag-placeholder) {
43 transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
44 }
45
46 @media screen and (max-width: $small-view) {
47 .playlist-info {
48 margin-top: -$sub-menu-margin-bottom-small-view;
49 }
50 }