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