@import '_variables';
@import '_mixins';
+@import '_miniature';
-.row {
- justify-content: center;
+.margin-content {
+ @include grid-videos-miniature-margins;
}
-a.video-channel {
- @include disable-default-a-behaviour;
+.channel {
+ max-width: $max-channels-width;
+ background-color: pvar(--channelBackgroundColor);
+ padding: 30px;
- display: inline-block;
- text-align: center;
- color: var(--mainForegroundColor);
- margin: 10px 30px;
+ margin: 30px 0;
- img {
- @include avatar(80px);
+ display: grid;
+ grid-template-columns: 1fr auto;
+ grid-template-rows: auto auto;
+ column-gap: 15px;
+}
+
+.channel-avatar-row {
+ grid-column: 1;
+ grid-row: 1;
+
+ display: grid;
+ grid-template-columns: auto auto 1fr;
+ grid-template-rows: auto 1fr;
+
+ my-actor-avatar {
+ @include actor-avatar-size(75px);
+
+ grid-column: 1;
+ grid-row: 1 / 3;
+ margin-right: 15px;
+ }
- margin-bottom: 10px;
+ a {
+ @include peertube-word-wrap;
+
+ color: pvar(--mainForegroundColor);
}
- .video-channel-display-name {
+ h2 {
+ grid-row: 1;
+ grid-column: 2;
font-size: 20px;
+ line-height: 1;
font-weight: $font-bold;
+ margin: 0;
+ }
+
+ .actor-counters {
+ grid-row: 1;
+ grid-column: 3;
+ color: pvar(--greyForegroundColor);
+ font-size: 16px;
+ display: flex;
+ align-items: center;
+ margin-left: 15px;
+ }
+
+ .actor-counters > *:not(:last-child)::after {
+ content: '•';
+ margin: 0 10px;
+ color: pvar(--mainColor);
+ }
+
+ .description-html {
+ @include fade-text(30px, pvar(--channelBackgroundColor));
+
+ grid-column: 2 / 4;
+ grid-row: 2;
+
+ max-height: 80px;
+ font-size: 16px;
+ }
+}
+
+my-subscribe-button {
+ grid-row: 1;
+ grid-column: 2;
+}
+
+.videos {
+ display: flex;
+ grid-column: 1 / 3;
+ grid-row: 2;
+ margin-top: 30px;
+
+ position: relative;
+ overflow: hidden;
+
+ my-video-miniature {
+ margin-right: 15px;
+ min-width: $video-thumbnail-medium-width;
+ max-width: $video-thumbnail-medium-width;
+ }
+
+ .no-results {
+ height: auto;
}
+}
+
+.miniature-show-channel {
+ height: 100%;
+ position: absolute;
+ right: 0;
+ background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px);
+ padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px;
+ z-index: z(miniature) + 1;
+
+ a {
+ color: pvar(--mainColor);
+ font-size: 16px;
+ font-weight: $font-semibold;
+ }
+}
+
+.button-show-channel {
+ display: none;
+}
+
+@media screen and (max-width: $mobile-view) {
+ .channel {
+ padding: 15px;
+ }
+
+ .channel-avatar-row {
+ grid-template-columns: auto auto auto 1fr;
+
+ .avatar-link {
+ grid-row: 1 / 4;
+ }
+
+ h2 {
+ font-size: 16px;
+ }
- .video-channel-followers {
- font-size: 15px;
+ .actor-counters {
+ margin: 0;
+ font-size: 13px;
+ grid-row: 2;
+ grid-column: 2 / 4;
+ }
+
+ .description-html {
+ grid-row: 3;
+ font-size: 14px;
+ }
+ }
+
+ .show-channel a {
+ @include peertube-button-link;
+ @include orange-button-inverted;
+ }
+
+ .videos {
+ display: none;
+ }
+
+ my-subscribe-button,
+ .button-show-channel {
+ grid-column: 1 / 4;
+ grid-row: 3;
+ margin-top: 15px;
+ }
+
+ my-subscribe-button {
+ justify-self: start;
}
-}
\ No newline at end of file
+
+ .button-show-channel {
+ display: block;
+ justify-self: end;
+ }
+}