]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
Channel/account page redesign feedbacks
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / account-video-channels / account-video-channels.component.scss
CommitLineData
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);
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
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
80my-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) {
733dbc53
C
123 .channel {
124 padding: 15px;
125 }
126
900f7820
C
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;
4682468d
K
148 }
149 }
900f7820
C
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 }
4682468d 175}