]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
Added filter to sort videos by name (alphabetical order)
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / account-video-channels / account-video-channels.component.scss
CommitLineData
8cbc40b2
C
1@use 'sass:math';
2@use '_variables' as *;
3@use '_mixins' as *;
4@use '_miniature' as *;
d3e91a5f 5
c8487f3f 6.margin-content {
0f7407d9 7 @include grid-videos-miniature-margins;
d3e91a5f
C
8}
9
900f7820
C
10.channel {
11 max-width: $max-channels-width;
12 background-color: pvar(--channelBackgroundColor);
733dbc53 13 padding: 30px;
d3e91a5f 14
900f7820 15 margin: 30px 0;
ee79b60e 16
900f7820
C
17 display: grid;
18 grid-template-columns: 1fr auto;
19 grid-template-rows: auto auto;
20 column-gap: 15px;
21}
22
23.channel-avatar-row {
24 grid-column: 1;
25 grid-row: 1;
26
27 display: grid;
28 grid-template-columns: auto auto 1fr;
29 grid-template-rows: auto 1fr;
30
746018f6 31 my-actor-avatar {
27bc9586 32 @include margin-right(15px);
746018f6 33
900f7820
C
34 grid-column: 1;
35 grid-row: 1 / 3;
900f7820
C
36 }
37
38 a {
b45afe12
C
39 @include peertube-word-wrap;
40
900f7820
C
41 color: pvar(--mainForegroundColor);
42 }
43
44 h2 {
45 grid-row: 1;
46 grid-column: 2;
47 font-size: 20px;
48 line-height: 1;
49 font-weight: $font-bold;
50 margin: 0;
51 }
52
53 .actor-counters {
27bc9586 54 @include margin-left(15px);
61cbafc1 55 @include actor-counters;
27bc9586 56
900f7820
C
57 grid-row: 1;
58 grid-column: 3;
900f7820 59 }
fff77ba2 60
900f7820 61 .description-html {
931d3430
C
62 @include fade-text(30px, pvar(--channelBackgroundColor));
63
900f7820
C
64 grid-column: 2 / 4;
65 grid-row: 2;
66
67 max-height: 80px;
900f7820
C
68 }
69}
70
71my-subscribe-button {
72 grid-row: 1;
73 grid-column: 2;
74}
75
76.videos {
77 display: flex;
78 grid-column: 1 / 3;
79 grid-row: 2;
80 margin-top: 30px;
81
82 position: relative;
83 overflow: hidden;
84
85 my-video-miniature {
27bc9586 86 @include margin-right(15px);
61cbafc1 87
0f7407d9
C
88 min-width: $video-thumbnail-medium-width;
89 max-width: $video-thumbnail-medium-width;
fff77ba2 90 }
bfbd9128 91
900f7820
C
92 .no-results {
93 height: auto;
bfbd9128 94 }
c8487f3f 95}
fff77ba2 96
900f7820
C
97.miniature-show-channel {
98 height: 100%;
99 position: absolute;
100 right: 0;
101 background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px);
8cbc40b2 102 padding: (math.div($video-thumbnail-medium-height, 2) - 10px) 15px 0 60px;
900f7820
C
103 z-index: z(miniature) + 1;
104
105 a {
106 color: pvar(--mainColor);
900f7820
C
107 font-weight: $font-semibold;
108 }
109}
110
111.button-show-channel {
112 display: none;
113}
114
02cb75c7 115@include on-small-main-col {
733dbc53
C
116 .channel {
117 padding: 15px;
118 }
119
900f7820
C
120 .channel-avatar-row {
121 grid-template-columns: auto auto auto 1fr;
122
123 .avatar-link {
124 grid-row: 1 / 4;
125 }
126
900f7820
C
127 .actor-counters {
128 margin: 0;
129 font-size: 13px;
130 grid-row: 2;
131 grid-column: 2 / 4;
132 }
133
134 .description-html {
135 grid-row: 3;
136 font-size: 14px;
4682468d
K
137 }
138 }
900f7820
C
139
140 .show-channel a {
141 @include peertube-button-link;
142 @include orange-button-inverted;
143 }
144
145 .videos {
146 display: none;
147 }
148
149 my-subscribe-button,
150 .button-show-channel {
151 grid-column: 1 / 4;
152 grid-row: 3;
153 margin-top: 15px;
154 }
155
156 my-subscribe-button {
157 justify-self: start;
158 }
159
160 .button-show-channel {
161 display: block;
162 justify-self: end;
163 }
4682468d 164}