]>
Commit | Line | Data |
---|---|---|
d3e91a5f C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
c8487f3f | 3 | @import '_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 C |
54 | @include margin-left(15px); |
55 | ||
900f7820 C |
56 | grid-row: 1; |
57 | grid-column: 3; | |
58 | color: pvar(--greyForegroundColor); | |
59 | font-size: 16px; | |
60 | display: flex; | |
ee79b60e C |
61 | align-items: center; |
62 | } | |
fff77ba2 | 63 | |
900f7820 C |
64 | .actor-counters > *:not(:last-child)::after { |
65 | content: '•'; | |
66 | margin: 0 10px; | |
67 | color: pvar(--mainColor); | |
68 | } | |
fff77ba2 | 69 | |
900f7820 | 70 | .description-html { |
931d3430 C |
71 | @include fade-text(30px, pvar(--channelBackgroundColor)); |
72 | ||
900f7820 C |
73 | grid-column: 2 / 4; |
74 | grid-row: 2; | |
75 | ||
76 | max-height: 80px; | |
77 | font-size: 16px; | |
900f7820 C |
78 | } |
79 | } | |
80 | ||
81 | my-subscribe-button { | |
82 | grid-row: 1; | |
83 | grid-column: 2; | |
84 | } | |
85 | ||
86 | .videos { | |
87 | display: flex; | |
88 | grid-column: 1 / 3; | |
89 | grid-row: 2; | |
90 | margin-top: 30px; | |
91 | ||
92 | position: relative; | |
93 | overflow: hidden; | |
94 | ||
95 | my-video-miniature { | |
27bc9586 | 96 | @include margin-right(15px); |
0f7407d9 C |
97 | min-width: $video-thumbnail-medium-width; |
98 | max-width: $video-thumbnail-medium-width; | |
fff77ba2 | 99 | } |
bfbd9128 | 100 | |
900f7820 C |
101 | .no-results { |
102 | height: auto; | |
bfbd9128 | 103 | } |
c8487f3f | 104 | } |
fff77ba2 | 105 | |
900f7820 C |
106 | .miniature-show-channel { |
107 | height: 100%; | |
108 | position: absolute; | |
109 | right: 0; | |
110 | background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px); | |
0f7407d9 | 111 | padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px; |
900f7820 C |
112 | z-index: z(miniature) + 1; |
113 | ||
114 | a { | |
115 | color: pvar(--mainColor); | |
116 | font-size: 16px; | |
117 | font-weight: $font-semibold; | |
118 | } | |
119 | } | |
120 | ||
121 | .button-show-channel { | |
122 | display: none; | |
123 | } | |
124 | ||
4682468d | 125 | @media screen and (max-width: $mobile-view) { |
733dbc53 C |
126 | .channel { |
127 | padding: 15px; | |
128 | } | |
129 | ||
900f7820 C |
130 | .channel-avatar-row { |
131 | grid-template-columns: auto auto auto 1fr; | |
132 | ||
133 | .avatar-link { | |
134 | grid-row: 1 / 4; | |
135 | } | |
136 | ||
137 | h2 { | |
138 | font-size: 16px; | |
139 | } | |
140 | ||
141 | .actor-counters { | |
142 | margin: 0; | |
143 | font-size: 13px; | |
144 | grid-row: 2; | |
145 | grid-column: 2 / 4; | |
146 | } | |
147 | ||
148 | .description-html { | |
149 | grid-row: 3; | |
150 | font-size: 14px; | |
4682468d K |
151 | } |
152 | } | |
900f7820 C |
153 | |
154 | .show-channel a { | |
155 | @include peertube-button-link; | |
156 | @include orange-button-inverted; | |
157 | } | |
158 | ||
159 | .videos { | |
160 | display: none; | |
161 | } | |
162 | ||
163 | my-subscribe-button, | |
164 | .button-show-channel { | |
165 | grid-column: 1 / 4; | |
166 | grid-row: 3; | |
167 | margin-top: 15px; | |
168 | } | |
169 | ||
170 | my-subscribe-button { | |
171 | justify-self: start; | |
172 | } | |
173 | ||
174 | .button-show-channel { | |
175 | display: block; | |
176 | justify-self: end; | |
177 | } | |
4682468d | 178 | } |