]>
Commit | Line | Data |
---|---|---|
fa12eacc C |
1 | @use '_variables'; |
2 | @use '_mixins'; | |
3 | @use '_miniature'; | |
d3e91a5f | 4 | |
c8487f3f | 5 | .margin-content { |
0f7407d9 | 6 | @include grid-videos-miniature-margins; |
d3e91a5f C |
7 | } |
8 | ||
900f7820 C |
9 | .channel { |
10 | max-width: $max-channels-width; | |
11 | background-color: pvar(--channelBackgroundColor); | |
733dbc53 | 12 | padding: 30px; |
d3e91a5f | 13 | |
900f7820 | 14 | margin: 30px 0; |
ee79b60e | 15 | |
900f7820 C |
16 | display: grid; |
17 | grid-template-columns: 1fr auto; | |
18 | grid-template-rows: auto auto; | |
19 | column-gap: 15px; | |
20 | } | |
21 | ||
22 | .channel-avatar-row { | |
23 | grid-column: 1; | |
24 | grid-row: 1; | |
25 | ||
26 | display: grid; | |
27 | grid-template-columns: auto auto 1fr; | |
28 | grid-template-rows: auto 1fr; | |
29 | ||
746018f6 C |
30 | my-actor-avatar { |
31 | @include actor-avatar-size(75px); | |
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; | |
68 | font-size: 16px; | |
900f7820 C |
69 | } |
70 | } | |
71 | ||
72 | my-subscribe-button { | |
73 | grid-row: 1; | |
74 | grid-column: 2; | |
75 | } | |
76 | ||
77 | .videos { | |
78 | display: flex; | |
79 | grid-column: 1 / 3; | |
80 | grid-row: 2; | |
81 | margin-top: 30px; | |
82 | ||
83 | position: relative; | |
84 | overflow: hidden; | |
85 | ||
86 | my-video-miniature { | |
27bc9586 | 87 | @include margin-right(15px); |
61cbafc1 | 88 | |
0f7407d9 C |
89 | min-width: $video-thumbnail-medium-width; |
90 | max-width: $video-thumbnail-medium-width; | |
fff77ba2 | 91 | } |
bfbd9128 | 92 | |
900f7820 C |
93 | .no-results { |
94 | height: auto; | |
bfbd9128 | 95 | } |
c8487f3f | 96 | } |
fff77ba2 | 97 | |
900f7820 C |
98 | .miniature-show-channel { |
99 | height: 100%; | |
100 | position: absolute; | |
101 | right: 0; | |
102 | background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px); | |
0f7407d9 | 103 | padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px; |
900f7820 C |
104 | z-index: z(miniature) + 1; |
105 | ||
106 | a { | |
107 | color: pvar(--mainColor); | |
108 | font-size: 16px; | |
109 | font-weight: $font-semibold; | |
110 | } | |
111 | } | |
112 | ||
113 | .button-show-channel { | |
114 | display: none; | |
115 | } | |
116 | ||
4682468d | 117 | @media screen and (max-width: $mobile-view) { |
733dbc53 C |
118 | .channel { |
119 | padding: 15px; | |
120 | } | |
121 | ||
900f7820 C |
122 | .channel-avatar-row { |
123 | grid-template-columns: auto auto auto 1fr; | |
124 | ||
125 | .avatar-link { | |
126 | grid-row: 1 / 4; | |
127 | } | |
128 | ||
129 | h2 { | |
130 | font-size: 16px; | |
131 | } | |
132 | ||
133 | .actor-counters { | |
134 | margin: 0; | |
135 | font-size: 13px; | |
136 | grid-row: 2; | |
137 | grid-column: 2 / 4; | |
138 | } | |
139 | ||
140 | .description-html { | |
141 | grid-row: 3; | |
142 | font-size: 14px; | |
4682468d K |
143 | } |
144 | } | |
900f7820 C |
145 | |
146 | .show-channel a { | |
147 | @include peertube-button-link; | |
148 | @include orange-button-inverted; | |
149 | } | |
150 | ||
151 | .videos { | |
152 | display: none; | |
153 | } | |
154 | ||
155 | my-subscribe-button, | |
156 | .button-show-channel { | |
157 | grid-column: 1 / 4; | |
158 | grid-row: 3; | |
159 | margin-top: 15px; | |
160 | } | |
161 | ||
162 | my-subscribe-button { | |
163 | justify-self: start; | |
164 | } | |
165 | ||
166 | .button-show-channel { | |
167 | display: block; | |
168 | justify-self: end; | |
169 | } | |
4682468d | 170 | } |