]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
Help button must not send the parent form
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / account-video-channels / account-video-channels.component.scss
CommitLineData
8cbc40b2
C
1@use 'sass:math';
2@use '_variables' as *;
3@use '_mixins' as *;
4@use '_miniature' as *;
d3e91a5f 5
c8487f3f 6.margin-content {
0f7407d9 7 @include grid-videos-miniature-margins;
d3e91a5f
C
8}
9
900f7820 10.channel {
4158e67c
W
11 @include padding(1.75rem);
12 @include margin(2rem, 0);
f9b8e5c4 13
900f7820
C
14 max-width: $max-channels-width;
15 background-color: pvar(--channelBackgroundColor);
ee79b60e 16
900f7820
C
17 display: grid;
18 grid-template-columns: 1fr auto;
19 grid-template-rows: auto auto;
20 column-gap: 15px;
21}
22
23.channel-avatar-row {
24 grid-column: 1;
25 grid-row: 1;
26
27 display: grid;
28 grid-template-columns: auto auto 1fr;
29 grid-template-rows: auto 1fr;
30
746018f6 31 my-actor-avatar {
27bc9586 32 @include margin-right(15px);
746018f6 33
900f7820
C
34 grid-column: 1;
35 grid-row: 1 / 3;
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;
900f7820
C
47 }
48
49 .actor-counters {
27bc9586 50 @include margin-left(15px);
61cbafc1 51 @include actor-counters;
27bc9586 52
900f7820
C
53 grid-row: 1;
54 grid-column: 3;
900f7820 55 }
fff77ba2 56
900f7820 57 .description-html {
931d3430
C
58 @include fade-text(30px, pvar(--channelBackgroundColor));
59
900f7820
C
60 grid-column: 2 / 4;
61 grid-row: 2;
62
63 max-height: 80px;
900f7820
C
64 }
65}
66
67my-subscribe-button {
68 grid-row: 1;
69 grid-column: 2;
70}
71
72.videos {
73 display: flex;
74 grid-column: 1 / 3;
75 grid-row: 2;
900f7820
C
76
77 position: relative;
900f7820
C
78
79 my-video-miniature {
27bc9586 80 @include margin-right(15px);
61cbafc1 81
0f7407d9
C
82 min-width: $video-thumbnail-medium-width;
83 max-width: $video-thumbnail-medium-width;
fff77ba2 84 }
bfbd9128 85
c8487f3f 86}
fff77ba2 87
52ebda26 88.videos-overflow-workaround {
f9b8e5c4
W
89 @include margin-top(2rem);
90
52ebda26
C
91 overflow-x: hidden;
92}
93
900f7820
C
94.miniature-show-channel {
95 height: 100%;
96 position: absolute;
97 right: 0;
98 background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px);
8cbc40b2 99 padding: (math.div($video-thumbnail-medium-height, 2) - 10px) 15px 0 60px;
900f7820
C
100 z-index: z(miniature) + 1;
101
102 a {
103 color: pvar(--mainColor);
900f7820
C
104 font-weight: $font-semibold;
105 }
106}
107
108.button-show-channel {
109 display: none;
110}
111
02cb75c7 112@include on-small-main-col {
900f7820
C
113 .channel-avatar-row {
114 grid-template-columns: auto auto auto 1fr;
115
116 .avatar-link {
117 grid-row: 1 / 4;
118 }
119
900f7820
C
120 .actor-counters {
121 margin: 0;
122 font-size: 13px;
123 grid-row: 2;
124 grid-column: 2 / 4;
125 }
126
127 .description-html {
128 grid-row: 3;
129 font-size: 14px;
4682468d
K
130 }
131 }
900f7820
C
132
133 .show-channel a {
134 @include peertube-button-link;
135 @include orange-button-inverted;
136 }
137
138 .videos {
139 display: none;
140 }
141
142 my-subscribe-button,
143 .button-show-channel {
144 grid-column: 1 / 4;
145 grid-row: 3;
146 margin-top: 15px;
147 }
148
149 my-subscribe-button {
150 justify-self: start;
151 }
152
153 .button-show-channel {
154 display: block;
155 justify-self: end;
156 }
4682468d 157}