lbry-desktop/ui/scss/component/_channel.scss

160 lines
3.2 KiB
SCSS
Raw Normal View History

2019-05-06 22:35:04 -04:00
$cover-z-index: 0;
$metadata-z-index: 1;
2019-05-13 02:05:38 -04:00
.channel-cover {
2019-12-18 00:27:08 -05:00
position: relative;
2019-11-22 16:13:00 -05:00
background-image: linear-gradient(to right, #637ad2, #318794 80%);
2019-05-06 22:35:04 -04:00
display: flex;
align-items: flex-end;
box-sizing: content-box;
2019-11-22 16:13:00 -05:00
color: #fff;
.button {
color: #fff;
}
}
2019-05-13 02:05:38 -04:00
.channel-cover__custom {
2019-05-06 22:35:04 -04:00
z-index: $cover-z-index;
align-self: flex-start;
position: absolute;
object-fit: cover;
2019-09-26 23:52:04 -04:00
filter: brightness(30%);
2019-05-06 22:35:04 -04:00
}
2019-05-13 02:05:38 -04:00
.channel-cover,
.channel-cover__custom {
2020-01-08 00:04:35 -05:00
min-height: var(--cover-photo-height);
2019-05-06 22:35:04 -04:00
width: 100%;
2020-01-03 11:36:15 -05:00
border-top-left-radius: var(--card-radius);
border-top-right-radius: var(--card-radius);
2020-01-08 00:04:35 -05:00
@media (max-width: $breakpoint-small) {
// Yikes
// I, Sean Yesmunt, take full responsibility for this monster
min-height: calc(var(--cover-photo-height) + 2 * var(--spacing-xlarge) + var(--spacing-medium));
}
}
2019-05-11 15:06:22 -04:00
.channel-thumbnail {
display: flex;
2019-06-27 02:18:45 -04:00
height: 5rem;
2019-07-08 21:19:46 -04:00
width: 5rem;
2019-05-06 22:35:04 -04:00
background-size: cover;
2019-06-11 14:10:58 -04:00
margin-right: var(--spacing-medium);
}
2019-12-04 13:07:40 -05:00
.channel-thumbnail--small {
height: 3rem;
width: 3rem;
}
2019-06-11 14:10:58 -04:00
.channel__thumbnail--channel-page {
position: absolute;
height: var(--channel-thumbnail-width);
width: var(--channel-thumbnail-width);
left: var(--spacing-medium);
2019-11-22 16:13:00 -05:00
top: 4rem;
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
display: none;
}
}
2019-05-11 15:06:22 -04:00
.channel-thumbnail__custom {
2019-05-06 22:35:04 -04:00
width: 100%;
object-fit: cover;
}
2019-05-06 22:35:04 -04:00
2019-05-11 15:06:22 -04:00
.channel-thumbnail__default {
width: 80%;
height: 80%;
margin-left: auto;
margin-right: auto;
align-self: flex-end;
}
.channel-thumbnail,
.channel-thumbnail__custom {
2019-05-06 22:35:04 -04:00
border-radius: var(--card-radius);
}
.channel-thumbnail__default--0 {
2019-11-22 16:13:00 -05:00
background-color: #748ffc;
2019-05-11 15:06:22 -04:00
}
2019-11-22 16:13:00 -05:00
.channel-thumbnail__default--1 {
2019-11-22 16:13:00 -05:00
background-color: #ffa855;
2019-05-11 15:06:22 -04:00
}
2019-11-22 16:13:00 -05:00
.channel-thumbnail__default--2 {
2019-11-22 16:13:00 -05:00
background-color: #339af0;
2019-05-11 15:06:22 -04:00
}
2019-11-22 16:13:00 -05:00
.channel-thumbnail__default--3 {
2019-11-22 16:13:00 -05:00
background-color: #ec8383;
2019-05-11 15:06:22 -04:00
}
2019-12-04 13:07:40 -05:00
.channel-thumbnail__default--4 {
background-color: #ccc;
}
2019-05-06 22:35:04 -04:00
.channel__primary-info {
// Ensure the profile pic/title sit ontop of the default cover background
z-index: $metadata-z-index;
// Jump over the thumbnail photo because it is absolutely positioned
// Then add normal page spacing, _then_ add the actual padding
2019-06-11 14:10:58 -04:00
padding-left: calc(var(--channel-thumbnail-width) + var(--spacing-large));
2019-09-26 23:52:04 -04:00
padding-right: var(--spacing-medium);
2019-06-11 14:10:58 -04:00
padding-bottom: var(--spacing-medium);
2019-07-14 05:34:13 +07:00
min-width: 0;
2019-09-26 23:52:04 -04:00
width: 100%;
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-small) {
padding-left: var(--spacing-medium);
}
2019-05-06 22:35:04 -04:00
}
.channel__title {
2019-11-22 16:13:00 -05:00
display: inline;
2019-07-14 05:34:13 +07:00
margin-right: var(--spacing-small);
overflow: hidden;
text-overflow: ellipsis;
2019-10-04 12:13:29 +07:00
font-size: xx-large;
2019-11-07 14:39:22 -05:00
font-weight: var(--font-weight-bold);
2019-07-02 13:54:42 -04:00
// Quick hack to get this to work
// We should have a generic style for "header with button next to it"
.button {
margin-left: var(--spacing-medium);
}
2020-01-08 00:04:35 -05:00
@media (max-width: $breakpoint-small) {
padding-top: var(--spacing-xlarge);
}
2019-05-06 22:35:04 -04:00
}
2019-09-26 23:52:04 -04:00
.channel__meta {
display: flex;
justify-content: space-between;
2019-05-06 22:35:04 -04:00
}
.channel__image--blurred {
filter: blur(16px);
}
2019-09-16 01:32:02 -04:00
.channel__quick-actions {
@extend .card__actions;
2020-01-08 00:04:35 -05:00
margin-left: var(--spacing-medium);
2019-09-16 01:32:02 -04:00
position: absolute;
top: 0;
right: var(--spacing-medium);
2019-11-22 16:13:00 -05:00
margin-top: var(--spacing-medium);
2019-09-16 01:32:02 -04:00
z-index: $metadata-z-index;
2020-01-08 00:04:35 -05:00
flex-wrap: wrap;
2019-09-16 01:32:02 -04:00
}
2020-01-21 17:38:10 -05:00
.channel-name--inline {
margin-left: var(--spacing-xsmall);
}