]>
Commit | Line | Data |
---|---|---|
d3e91a5f C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
c8487f3f | 3 | @import '_miniature'; |
d3e91a5f | 4 | |
c8487f3f | 5 | .margin-content { |
900f7820 | 6 | @include fluid-videos-miniature-margins; |
d3e91a5f C |
7 | } |
8 | ||
900f7820 C |
9 | .channel { |
10 | max-width: $max-channels-width; | |
11 | background-color: pvar(--channelBackgroundColor); | |
12 | padding: 15px; | |
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 | ||
30 | .avatar-link { | |
31 | grid-column: 1; | |
32 | grid-row: 1 / 3; | |
33 | margin-right: 30px; | |
34 | } | |
35 | ||
36 | img { | |
37 | @include channel-avatar(75px); | |
38 | } | |
39 | ||
40 | a { | |
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 C |
69 | .description-html { |
70 | grid-column: 2 / 4; | |
71 | grid-row: 2; | |
72 | ||
73 | max-height: 80px; | |
74 | font-size: 16px; | |
75 | ||
76 | @include fade-text(30px, pvar(--channelBackgroundColor)); | |
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; | |
fff77ba2 | 96 | } |
bfbd9128 | 97 | |
900f7820 C |
98 | .no-results { |
99 | height: auto; | |
bfbd9128 | 100 | } |
c8487f3f | 101 | } |
fff77ba2 | 102 | |
900f7820 C |
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-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 | ||
4682468d | 122 | @media screen and (max-width: $mobile-view) { |
900f7820 C |
123 | .channel-avatar-row { |
124 | grid-template-columns: auto auto auto 1fr; | |
125 | ||
126 | .avatar-link { | |
127 | grid-row: 1 / 4; | |
128 | } | |
129 | ||
130 | h2 { | |
131 | font-size: 16px; | |
132 | } | |
133 | ||
134 | .actor-counters { | |
135 | margin: 0; | |
136 | font-size: 13px; | |
137 | grid-row: 2; | |
138 | grid-column: 2 / 4; | |
139 | } | |
140 | ||
141 | .description-html { | |
142 | grid-row: 3; | |
143 | font-size: 14px; | |
4682468d K |
144 | } |
145 | } | |
900f7820 C |
146 | |
147 | .show-channel a { | |
148 | @include peertube-button-link; | |
149 | @include orange-button-inverted; | |
150 | } | |
151 | ||
152 | .videos { | |
153 | display: none; | |
154 | } | |
155 | ||
156 | my-subscribe-button, | |
157 | .button-show-channel { | |
158 | grid-column: 1 / 4; | |
159 | grid-row: 3; | |
160 | margin-top: 15px; | |
161 | } | |
162 | ||
163 | my-subscribe-button { | |
164 | justify-self: start; | |
165 | } | |
166 | ||
167 | .button-show-channel { | |
168 | display: block; | |
169 | justify-self: end; | |
170 | } | |
4682468d | 171 | } |