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