]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
3 | @use '_miniature' as *; | |
c5a1ae50 | 4 | |
0f7407d9 C |
5 | .root { |
6 | display: grid; | |
7 | grid-template-columns: auto 1fr; | |
8 | } | |
9 | ||
bce47964 | 10 | .playlist-info { |
27bc9586 C |
11 | @include margin-left(calc(#{pvar(--horizontalMarginContent)} * -1)); |
12 | ||
0f7407d9 | 13 | grid-column: 1; |
218f730c | 14 | background-color: pvar(--submenuBackgroundColor); |
bce47964 C |
15 | margin-top: -$sub-menu-margin-bottom; |
16 | ||
0f7407d9 | 17 | padding: 15px; |
bce47964 C |
18 | |
19 | display: flex; | |
82f443de | 20 | flex-direction: column; |
4682468d K |
21 | |
22 | /* fix ellipsis dots background color */ | |
23 | ::ng-deep .miniature-name::after { | |
218f730c | 24 | background-color: pvar(--submenuBackgroundColor) !important; |
4682468d | 25 | } |
bce47964 C |
26 | } |
27 | ||
82f443de | 28 | .playlist-buttons { |
931d3430 C |
29 | display: flex; |
30 | margin: 30px 0 10px; | |
82f443de C |
31 | |
32 | .share-button { | |
33 | @include peertube-button; | |
34 | @include button-with-icon(17px, 3px, -1px); | |
35 | @include grey-button; | |
36 | @include apply-svg-color(pvar(--actionButtonColor)); | |
37 | ||
27bc9586 | 38 | @include margin-right(10px); |
82f443de C |
39 | } |
40 | } | |
41 | ||
15e9d5ca C |
42 | // Thanks Angular CDK <3 https://material.angular.io/cdk/drag-drop/examples |
43 | .cdk-drag-preview { | |
44 | box-sizing: border-box; | |
45 | border-radius: 4px; | |
931d3430 C |
46 | box-shadow: |
47 | 0 5px 5px -3px rgba(0, 0, 0, 0.2), | |
48 | 0 8px 10px 1px rgba(0, 0, 0, 0.14), | |
49 | 0 3px 14px 2px rgba(0, 0, 0, 0.12); | |
15e9d5ca | 50 | } |
c5a1ae50 | 51 | |
15e9d5ca C |
52 | .cdk-drag-placeholder { |
53 | opacity: 0; | |
54 | } | |
c5a1ae50 | 55 | |
15e9d5ca C |
56 | .cdk-drag-animating { |
57 | transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); | |
58 | } | |
c5a1ae50 | 59 | |
15e9d5ca | 60 | .video:last-child { |
931d3430 | 61 | border: 0; |
15e9d5ca | 62 | } |
c5a1ae50 | 63 | |
15e9d5ca C |
64 | .videos.cdk-drop-list-dragging .video:not(.cdk-drag-placeholder) { |
65 | transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); | |
c5a1ae50 | 66 | } |
4682468d | 67 | |
0f7407d9 C |
68 | .playlist-elements { |
69 | grid-column: 2; | |
70 | } | |
71 | ||
72 | my-video-playlist-miniature { | |
73 | width: $video-thumbnail-width; | |
74 | } | |
75 | ||
76 | @include on-small-main-col { | |
77 | my-video-playlist-miniature { | |
78 | width: $video-thumbnail-medium-width; | |
79 | } | |
80 | } | |
81 | ||
82 | @include on-mobile-main-col { | |
83 | .root { | |
84 | display: block; | |
85 | } | |
86 | ||
4682468d | 87 | .playlist-info { |
0f7407d9 | 88 | width: calc(100% + (2 * var(--horizontalMarginContent))); |
10846ef6 | 89 | padding-top: 20px; |
d7941370 | 90 | margin-bottom: 10px; |
4682468d | 91 | } |
2d0d756e | 92 | |
0f7407d9 C |
93 | my-video-playlist-miniature, |
94 | .playlist-buttons { | |
27bc9586 C |
95 | @include margin-left(auto); |
96 | @include margin-right(auto); | |
2d0d756e C |
97 | } |
98 | ||
99 | ::ng-deep my-video-playlist-element-miniature { | |
100 | ||
101 | .video { | |
102 | padding: 5px !important; | |
103 | } | |
104 | ||
105 | .position { | |
27bc9586 | 106 | @include margin-right(5px !important); |
2d0d756e C |
107 | } |
108 | } | |
4682468d | 109 | } |