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

88 lines
1.9 KiB
SCSS
Raw Normal View History

2019-05-07 04:35:04 +02:00
$cover-z-index: 0;
$metadata-z-index: 1;
2019-05-13 08:05:38 +02:00
.channel-cover {
2019-05-07 04:35:04 +02:00
background-image: linear-gradient(to right, $lbry-indigo-4, $lbry-cyan-5 80%);
display: flex;
align-items: flex-end;
box-sizing: content-box;
color: $lbry-white;
}
2019-05-13 08:05:38 +02:00
.channel-cover__custom {
2019-05-07 04:35:04 +02:00
z-index: $cover-z-index;
align-self: flex-start;
position: absolute;
object-fit: cover;
2019-05-11 21:06:22 +02:00
filter: brightness(60%);
2019-05-07 04:35:04 +02:00
}
2019-05-13 08:05:38 +02:00
.channel-cover,
.channel-cover__custom {
2019-05-07 04:35:04 +02:00
height: var(--cover-photo-height);
width: 100%;
}
2019-05-11 21:06:22 +02:00
.channel-thumbnail {
2019-05-07 04:35:04 +02:00
position: absolute;
2019-05-11 21:06:22 +02:00
display: flex;
2019-05-07 04:35:04 +02:00
left: var(--spacing-main-padding);
height: var(--channel-thumbnail-size);
width: var(--channel-thumbnail-size);
background-size: cover;
box-shadow: 0px 8px 40px -3px $lbry-black;
}
2019-05-11 21:06:22 +02:00
.channel-thumbnail__custom {
2019-05-07 04:35:04 +02:00
width: 100%;
object-fit: cover;
}
2019-05-07 04:35:04 +02:00
2019-05-11 21:06:22 +02:00
.channel-thumbnail__default {
width: 80%;
height: 80%;
margin-left: auto;
margin-right: auto;
align-self: flex-end;
margin-bottom: -1px;
}
.channel-thumbnail,
.channel-thumbnail__custom {
2019-05-07 04:35:04 +02:00
border-radius: var(--card-radius);
}
2019-05-11 21:06:22 +02:00
.channel-thumbnail__default--1 {
background-color: $lbry-indigo-3;
}
.channel-thumbnail__default--2 {
background-color: $lbry-orange-2;
}
.channel-thumbnail__default--3 {
background-color: $lbry-blue-3;
}
.channel-thumbnail__default--4 {
background-color: $lbry-red-1;
}
2019-05-07 04:35:04 +02: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
margin-left: calc(var(--channel-thumbnail-size) + var(--spacing-main-padding));
padding-left: var(--spacing-vertical-large);
padding-bottom: var(--spacing-vertical-medium);
}
.channel__title {
font-size: 3rem;
font-weight: 800;
}
.channel__url {
font-size: 1.2rem;
margin-top: -0.25rem;
2019-05-11 21:06:22 +02:00
color: rgba($lbry-white, 0.75);
2019-05-07 04:35:04 +02:00
}