]>
Commit | Line | Data |
---|---|---|
1 | @use 'sass:math'; | |
2 | @use '_variables' as *; | |
3 | @use '_mixins' as *; | |
4 | @use '_miniature' as *; | |
5 | ||
6 | .margin-content { | |
7 | @include grid-videos-miniature-margins; | |
8 | } | |
9 | ||
10 | .channel { | |
11 | max-width: $max-channels-width; | |
12 | background-color: pvar(--channelBackgroundColor); | |
13 | padding: 30px; | |
14 | ||
15 | margin: 30px 0; | |
16 | ||
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 | ||
31 | my-actor-avatar { | |
32 | @include margin-right(15px); | |
33 | ||
34 | grid-column: 1; | |
35 | grid-row: 1 / 3; | |
36 | } | |
37 | ||
38 | a { | |
39 | @include peertube-word-wrap; | |
40 | ||
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 { | |
54 | @include margin-left(15px); | |
55 | @include actor-counters; | |
56 | ||
57 | grid-row: 1; | |
58 | grid-column: 3; | |
59 | } | |
60 | ||
61 | .description-html { | |
62 | @include fade-text(30px, pvar(--channelBackgroundColor)); | |
63 | ||
64 | grid-column: 2 / 4; | |
65 | grid-row: 2; | |
66 | ||
67 | max-height: 80px; | |
68 | } | |
69 | } | |
70 | ||
71 | my-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 | ||
81 | position: relative; | |
82 | ||
83 | my-video-miniature { | |
84 | @include margin-right(15px); | |
85 | ||
86 | min-width: $video-thumbnail-medium-width; | |
87 | max-width: $video-thumbnail-medium-width; | |
88 | } | |
89 | ||
90 | .no-results { | |
91 | height: auto; | |
92 | } | |
93 | } | |
94 | ||
95 | .videos-overflow-workaround { | |
96 | margin-top: 30px; | |
97 | overflow-x: hidden; | |
98 | } | |
99 | ||
100 | .miniature-show-channel { | |
101 | height: 100%; | |
102 | position: absolute; | |
103 | right: 0; | |
104 | background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px); | |
105 | padding: (math.div($video-thumbnail-medium-height, 2) - 10px) 15px 0 60px; | |
106 | z-index: z(miniature) + 1; | |
107 | ||
108 | a { | |
109 | color: pvar(--mainColor); | |
110 | font-weight: $font-semibold; | |
111 | } | |
112 | } | |
113 | ||
114 | .button-show-channel { | |
115 | display: none; | |
116 | } | |
117 | ||
118 | @include on-small-main-col { | |
119 | .channel { | |
120 | padding: 15px; | |
121 | } | |
122 | ||
123 | .channel-avatar-row { | |
124 | grid-template-columns: auto auto auto 1fr; | |
125 | ||
126 | .avatar-link { | |
127 | grid-row: 1 / 4; | |
128 | } | |
129 | ||
130 | .actor-counters { | |
131 | margin: 0; | |
132 | font-size: 13px; | |
133 | grid-row: 2; | |
134 | grid-column: 2 / 4; | |
135 | } | |
136 | ||
137 | .description-html { | |
138 | grid-row: 3; | |
139 | font-size: 14px; | |
140 | } | |
141 | } | |
142 | ||
143 | .show-channel a { | |
144 | @include peertube-button-link; | |
145 | @include orange-button-inverted; | |
146 | } | |
147 | ||
148 | .videos { | |
149 | display: none; | |
150 | } | |
151 | ||
152 | my-subscribe-button, | |
153 | .button-show-channel { | |
154 | grid-column: 1 / 4; | |
155 | grid-row: 3; | |
156 | margin-top: 15px; | |
157 | } | |
158 | ||
159 | my-subscribe-button { | |
160 | justify-self: start; | |
161 | } | |
162 | ||
163 | .button-show-channel { | |
164 | display: block; | |
165 | justify-self: end; | |
166 | } | |
167 | } |