]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
Move to stylelint
[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 {
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 {
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;
ee79b60e 57 align-items: center;
900f7820 58 margin-left: 15px;
ee79b60e 59 }
fff77ba2 60
900f7820
C
61 .actor-counters > *:not(:last-child)::after {
62 content: '•';
63 margin: 0 10px;
64 color: pvar(--mainColor);
65 }
fff77ba2 66
900f7820 67 .description-html {
931d3430
C
68 @include fade-text(30px, pvar(--channelBackgroundColor));
69
900f7820
C
70 grid-column: 2 / 4;
71 grid-row: 2;
72
73 max-height: 80px;
74 font-size: 16px;
900f7820
C
75 }
76}
77
78my-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;
0f7407d9
C
94 min-width: $video-thumbnail-medium-width;
95 max-width: $video-thumbnail-medium-width;
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);
0f7407d9 108 padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px;
900f7820
C
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}