]>
Commit | Line | Data |
---|---|---|
1 | @use '_variables' as *; | |
2 | @use '_mixins' as *; | |
3 | @use '_account-channel-page' as *; | |
4 | @use '_miniature' as *; | |
5 | ||
6 | .root { | |
7 | --myGlobalTopPadding: 60px; | |
8 | --myChannelImgMargin: 30px; | |
9 | --myFontSize: 16px; | |
10 | --myGreyChannelFontSize: 16px; | |
11 | --myGreyOwnerFontSize: 14px; | |
12 | } | |
13 | ||
14 | .banner { | |
15 | @include block-ratio('img', $banner-inverted-ratio); | |
16 | } | |
17 | ||
18 | .section-label { | |
19 | @include section-label-responsive; | |
20 | } | |
21 | ||
22 | .links { | |
23 | @include grid-videos-miniature-margins; | |
24 | } | |
25 | ||
26 | .actor-info { | |
27 | min-width: 1px; | |
28 | width: 100%; | |
29 | ||
30 | > h4, | |
31 | > .actor-handle { | |
32 | @include ellipsis; | |
33 | } | |
34 | } | |
35 | ||
36 | .channel-info { | |
37 | @include grid-videos-miniature-margins(false, 15px); | |
38 | ||
39 | display: grid; | |
40 | grid-template-columns: 1fr auto; | |
41 | grid-template-rows: auto auto; | |
42 | ||
43 | background-color: pvar(--channelBackgroundColor); | |
44 | margin-bottom: 45px; | |
45 | padding-top: var(--myGlobalTopPadding); | |
46 | font-size: var(--myFontSize); | |
47 | } | |
48 | ||
49 | .channel-avatar-row { | |
50 | @include avatar-row-responsive(var(--myChannelImgMargin), var(--myGreyChannelFontSize)); | |
51 | } | |
52 | ||
53 | .support-button { | |
54 | @include button-with-icon(21px, 0, -1px); | |
55 | } | |
56 | ||
57 | .channel-description { | |
58 | grid-column: 1; | |
59 | word-break: break-word; | |
60 | padding-bottom: var(--myGlobalTopPadding); | |
61 | } | |
62 | ||
63 | .show-more { | |
64 | @include show-more-description; | |
65 | ||
66 | display: none; | |
67 | } | |
68 | ||
69 | .channel-buttons { | |
70 | display: flex; | |
71 | flex-wrap: wrap; | |
72 | ||
73 | > *:not(:last-child) { | |
74 | @include margin-right(15px); | |
75 | } | |
76 | } | |
77 | ||
78 | .channel-buttons.right { | |
79 | @include margin-left(45px); | |
80 | } | |
81 | ||
82 | // Only used by mobile | |
83 | .channel-buttons.bottom { | |
84 | display: none; | |
85 | } | |
86 | ||
87 | .owner-card { | |
88 | @include margin-left(105px); | |
89 | grid-column: 2; | |
90 | // Takes all the column | |
91 | grid-row: 1 / 3; | |
92 | place-self: end; | |
93 | } | |
94 | ||
95 | // Only used on mobile | |
96 | .bottom-owner { | |
97 | display: none; | |
98 | } | |
99 | ||
100 | .owner-block { | |
101 | background-color: pvar(--mainBackgroundColor); | |
102 | padding: 30px; | |
103 | width: 300px; | |
104 | font-size: var(--myFontSize); | |
105 | ||
106 | .avatar-row { | |
107 | display: flex; | |
108 | margin-bottom: 15px; | |
109 | ||
110 | .actor-info { | |
111 | @include margin-left(15px); | |
112 | } | |
113 | ||
114 | h4 { | |
115 | font-size: 18px; | |
116 | margin: 0; | |
117 | ||
118 | a { | |
119 | color: pvar(--mainForegroundColor); | |
120 | } | |
121 | } | |
122 | ||
123 | .actor-handle { | |
124 | font-size: var(--myGreyOwnerFontSize); | |
125 | color: pvar(--greyForegroundColor); | |
126 | } | |
127 | } | |
128 | ||
129 | .owner-description { | |
130 | @include fade-text(120px, pvar(--mainBackgroundColor)); | |
131 | ||
132 | max-height: 140px; | |
133 | word-break: break-word; | |
134 | } | |
135 | } | |
136 | ||
137 | .view-account.short { | |
138 | @include peertube-button-link; | |
139 | @include orange-button-inverted; | |
140 | ||
141 | margin-top: 30px; | |
142 | } | |
143 | ||
144 | .view-account.complete { | |
145 | display: none; | |
146 | } | |
147 | ||
148 | .copy-button { | |
149 | border: 0; | |
150 | } | |
151 | ||
152 | @media screen and (max-width: 1400px) { | |
153 | // Takes all the row width | |
154 | .channel-avatar-row { | |
155 | grid-column: 1 / 3; | |
156 | } | |
157 | ||
158 | .owner-card { | |
159 | @include margin-left(60px); | |
160 | ||
161 | grid-row: 2; | |
162 | } | |
163 | } | |
164 | ||
165 | @media screen and (max-width: 1100px) { | |
166 | .root { | |
167 | --myGlobalTopPadding: 45px; | |
168 | --myChannelImgMargin: 15px; | |
169 | } | |
170 | ||
171 | .channel-info { | |
172 | display: flex; | |
173 | flex-direction: column; | |
174 | margin-bottom: 0; | |
175 | } | |
176 | ||
177 | .channel-description:not(.expanded) { | |
178 | @include fade-text(30px, pvar(--channelBackgroundColor)); | |
179 | ||
180 | max-height: 70px; | |
181 | } | |
182 | ||
183 | .show-more { | |
184 | display: inline-block; | |
185 | } | |
186 | ||
187 | .channel-buttons.bottom { | |
188 | display: flex; | |
189 | justify-content: center; | |
190 | margin-bottom: 30px; | |
191 | } | |
192 | ||
193 | .channel-buttons.right { | |
194 | display: none; | |
195 | } | |
196 | ||
197 | .owner-card { | |
198 | display: none; | |
199 | } | |
200 | ||
201 | .bottom-owner { | |
202 | display: block; | |
203 | width: 100%; | |
204 | border-bottom: 2px solid $separator-border-color; | |
205 | padding: var(--myGlobalTopPadding) 45px; | |
206 | margin-bottom: 60px; | |
207 | } | |
208 | ||
209 | .owner-block { | |
210 | display: grid; | |
211 | width: 100%; | |
212 | padding: 0; | |
213 | ||
214 | .avatar-row { | |
215 | @include margin-right(30px); | |
216 | ||
217 | grid-column: 1; | |
218 | } | |
219 | ||
220 | .owner-description { | |
221 | @include fade-text(30px, pvar(--mainBackgroundColor)); | |
222 | ||
223 | grid-column: 2; | |
224 | max-height: 70px; | |
225 | } | |
226 | ||
227 | .view-account { | |
228 | grid-column: 2; | |
229 | } | |
230 | } | |
231 | ||
232 | .view-account.complete { | |
233 | display: block; | |
234 | text-align: end; | |
235 | margin-top: 10px; | |
236 | color: pvar(--mainColor); | |
237 | } | |
238 | ||
239 | .view-account.short { | |
240 | display: none; | |
241 | } | |
242 | } | |
243 | ||
244 | @media screen and (max-width: $mobile-view) { | |
245 | .root { | |
246 | --myGlobalTopPadding: 15px; | |
247 | --myFontSize: 14px; | |
248 | --myGreyChannelFontSize: 13px; | |
249 | --myGreyOwnerFontSize: 13px; | |
250 | } | |
251 | ||
252 | .links { | |
253 | margin: auto !important; | |
254 | width: min-content; | |
255 | } | |
256 | ||
257 | .show-more { | |
258 | margin-bottom: 30px; | |
259 | } | |
260 | ||
261 | .bottom-owner { | |
262 | padding: 15px; | |
263 | margin-bottom: 30px; | |
264 | ||
265 | .section-label { | |
266 | display: none; | |
267 | } | |
268 | } | |
269 | ||
270 | .owner-block { | |
271 | display: block; | |
272 | ||
273 | .avatar-row { | |
274 | display: flex; | |
275 | flex-direction: row-reverse; | |
276 | margin: 0; | |
277 | ||
278 | h4 { | |
279 | font-size: 16px; | |
280 | } | |
281 | ||
282 | .actor-info { | |
283 | display: flex; | |
284 | flex-direction: column; | |
285 | align-items: flex-end; | |
286 | justify-content: flex-end; | |
287 | margin-top: -5px; | |
288 | } | |
289 | ||
290 | .account-avatar { | |
291 | @include actor-avatar-size(64px); | |
292 | ||
293 | margin: -30px 0 0 15px; | |
294 | } | |
295 | } | |
296 | ||
297 | .owner-description { | |
298 | display: none; | |
299 | } | |
300 | } | |
301 | } |