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