invidious-copy-2022-08-14/assets/css/channel.css

211 lines
3.4 KiB
CSS
Raw Normal View History

#channel-banner-container {
margin-bottom: 1em;
}
#banner {
display: flex;
flex-direction: column-reverse;
height: calc(100vw / 6.2 - 1px);
2021-04-17 11:10:18 +00:00
background-size: cover;
background-position: center;
}
#link-holder {
display: flex;
background: rgba(0, 0, 0, 0.3);
align-self: flex-end;
margin: 15px;
padding: 12px;
}
@media screen and (max-width: 640px) {
#link-holder {
display: none;
}
#about-content-container > * {
margin-bottom: 25px;
}
}
@media screen and (min-width: 640px) {
#about-content-container > * {
margin-bottom: 50px;
}
}
#link-widget-primary {
margin-right: 1.5em;
}
.link-widget-link {
margin-right: 10px;
}
.link-widget-link:last-child {
margin-right: 0;
}
.link-widget-link img, #external-links img {
vertical-align: sub;
width: 20px;
height: 20px;
}
#link-widget-primary a {
color: white !important;
}
#link-widget-primary a:hover {
color: #e1e1e1 !important;
}
2021-04-18 03:09:28 +00:00
2021-04-18 03:09:28 +00:00
/* Featured channels page */
.channel-section details {
margin: 20px;
}
.channel-section details summary {
margin-bottom: 20px;
}
.channel-section details summary::marker {
font-size: 1.3em;
}
.category-heading {
user-select: none;
display: inline;
}
2021-05-24 16:39:49 +00:00
.category-contents .channel-profile {
2021-04-18 03:09:28 +00:00
text-align: center;
}
/* Due to space constraints we'll make the special large featured channel display
only show up when the screen is wide enough */
@media screen and (min-width: 600px) {
.large-featured-channel.channel-profile {
/* We don't want the following attribute for large featured channels*/
text-align: initial;
margin: initial;
display: flex;
}
.large-featured-channel.channel-profile img {
margin: 20% 0;
}
.large-featured-channel .featured-channel-about {
margin-left: 2em;
}
.large-featured-channel .featured-channel-title {
font-size: 1.2em;
margin-bottom: 10px
}
.large-featured-channel .featured-channel-description {
margin-top: 10px;
font-weight: normal;
}
}
/* Replicate the look for a normal featured channel */
@media screen and (max-width: 600px) {
.large-featured-channel .seperator, .large-featured-channel .featured-channel-description {
display: none
}
.large-featured-channel .featured-channel-metadata:last-child {
display: block;
margin-top: 1em;
}
}
.trailer-metadata {
margin-left: 15px;
font-size: 12px;
2021-05-24 16:39:49 +00:00
}
.trailer-title {
font-size: 15px;
}
.trailer-metadata .read-more {
line-height: 20px;
text-transform: uppercase;
font-size: 13px;
}
.trailer-description {
overflow: hidden;
max-height: 150px;
line-height: 20px;
margin-top: 20px;
2021-05-24 16:39:49 +00:00
}
@media (prefers-color-scheme: dark) {
.no-theme .trailer-metadata {
color: rgb(232, 230, 227);
}
2021-06-24 17:04:35 +00:00
.no-theme .trailer-timestamp {
2021-05-24 16:39:49 +00:00
color: gray;
}
}
.no-theme .trailer-metadata {
color: rgb(232, 230, 227);
}
2021-06-24 17:04:35 +00:00
.no-theme .trailer-timestamp {
2021-05-24 16:39:49 +00:00
color: gray;
}
@media (prefers-color-scheme: light) {
2021-06-24 17:04:35 +00:00
.no-theme .trailer-metadata {
2021-05-24 16:39:49 +00:00
color: black;
}
2021-06-24 17:04:35 +00:00
.no-theme .trailer-timestamp {
2021-05-24 16:39:49 +00:00
color: rgb(127, 127, 127);
}
}
2021-06-24 17:04:35 +00:00
.light-theme .trailer-metadata {
2021-05-24 16:39:49 +00:00
color: black;
}
2021-06-24 17:04:35 +00:00
.light-theme .trailer-timestamp {
2021-05-24 16:39:49 +00:00
color: rgb(127, 127, 127);
}
2021-06-24 17:57:45 +00:00
#content-navigation {
display: flex;
}
@media screen and (max-width: 640px) {
/* Center sorting options when screen is less than 640px*/
#sort-options {
margin-right: auto;
}
/* Hide channel description on mobile */
#channel-description-container {
display: none
}
2021-06-24 17:57:45 +00:00
}