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