]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss
Prevent layout shift in videos list
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-playlist / video-add-to-playlist.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
f0a39880 3
93d54cc7
C
4.header,
5.dropdown-item,
6.input-container {
54e78847 7 padding: 8px 24px;
93d54cc7 8}
f0a39880 9
b75410b8
C
10.dropdown-item:active {
11 color: inherit;
12}
13
93d54cc7
C
14.header {
15 min-width: 240px;
f0a39880
C
16 margin-bottom: 10px;
17 border-bottom: 1px solid $separator-border-color;
18
19 .first-row {
20 display: flex;
21 align-items: center;
22
23 .title {
24 font-size: 18px;
25 flex-grow: 1;
26 }
f0a39880
C
27 }
28}
29
223b24e6
RK
30.playlists {
31 max-height: 180px;
32 overflow-y: auto;
33}
34
f0a39880 35.playlist {
07098c33
C
36 padding: 0;
37
38 > .primary-row {
39 padding: 8px 10px 8px 24px;
40 }
41
42 > .optional-rows {
27bc9586 43 @include padding-left(24px);
07098c33 44 }
e79df4ee
C
45
46 &.has-optional-row:hover {
47 background-color: inherit;
48 }
49}
50
5b0ec7cd 51.primary-row {
e79df4ee 52 display: flex;
f0a39880
C
53
54 my-peertube-checkbox {
27bc9586 55 @include margin-right(10px);
5b0ec7cd 56
54e78847 57 align-self: center;
f0a39880
C
58 }
59
60 .display-name {
61 display: flex;
62 align-items: flex-end;
e79df4ee
C
63 flex-grow: 1;
64 margin: 0;
65 font-weight: $font-regular;
66 cursor: pointer;
67 }
68
69 .optional-row-icon {
70 display: flex;
71 align-items: center;
72 font-size: 14px;
73 cursor: pointer;
74
75 my-global-icon {
76 @include apply-svg-color(#333);
27bc9586 77 @include margin-right(0);
e79df4ee
C
78
79 width: 19px;
80 height: 19px;
e79df4ee
C
81 }
82 }
e79df4ee
C
83}
84
85.optional-rows {
5b0ec7cd
C
86 display: grid;
87 grid-template-columns: 35px 80px 80px;
88 row-gap: 3px;
89 column-gap: 10px;
90 align-items: center;
e79df4ee
C
91
92 my-peertube-checkbox {
5b0ec7cd 93 @include margin-left(auto);
e79df4ee
C
94 }
95
5b0ec7cd 96 .header-label {
e79df4ee
C
97 font-size: 13px;
98 color: pvar(--greyForegroundColor);
5b0ec7cd 99 padding-left: 2px;
f0a39880 100
5b0ec7cd
C
101 &:nth-child(1) {
102 grid-column: 2;
103 }
27bc9586 104
5b0ec7cd
C
105 &:nth-child(2) {
106 grid-column: 3;
f0a39880
C
107 }
108 }
109}
110
111.new-playlist-button,
112.new-playlist-block {
113 padding-top: 10px;
f0a39880
C
114 border-top: 1px solid $separator-border-color;
115}
116
931d3430 117.new-playlist-button {
f0a39880
C
118 cursor: pointer;
119
120 my-global-icon {
121 @include apply-svg-color(#333);
27bc9586 122 @include margin-right(4px);
f0a39880
C
123
124 position: relative;
125 left: -1px;
126 top: -1px;
f0a39880
C
127 width: 21px;
128 height: 21px;
129 }
130}
131
132input[type=text] {
133 @include peertube-input-text(200px);
134
135 display: block;
136}
137
138input[type=submit] {
139 @include peertube-button;
140 @include orange-button;
141}