mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
211 lines
2.8 KiB
SCSS
211 lines
2.8 KiB
SCSS
@import "~bootstrap/scss/functions";
|
|
@import "~bootstrap/scss/variables";
|
|
@import "~bootstrap/scss/mixins/breakpoints";
|
|
|
|
.root
|
|
{
|
|
position: relative;
|
|
|
|
&:host-context(.hoverEnabled) &:hover
|
|
{
|
|
.scrollBtn
|
|
{
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.episodes
|
|
{
|
|
display: flex;
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
overflow-x: auto;
|
|
min-width: 100%;
|
|
flex-shrink: 0;
|
|
flex-direction: row;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #999 transparent;
|
|
|
|
&::-webkit-scrollbar
|
|
{
|
|
height: 4px;
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb
|
|
{
|
|
background-color: #999;
|
|
border-radius: 90px;
|
|
|
|
&:host-context(.hoverEnabled) &:hover
|
|
{
|
|
background-color: rgb(134, 127, 127);
|
|
}
|
|
}
|
|
}
|
|
|
|
.episode
|
|
{
|
|
visibility: visible;
|
|
display: inline-block;
|
|
margin: .25rem .25rem 1.25rem;
|
|
flex-shrink: 0;
|
|
width: 55%;
|
|
outline: none;
|
|
position: relative;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
|
|
@include media-breakpoint-up(sm)
|
|
{
|
|
width: 40%;
|
|
}
|
|
|
|
@include media-breakpoint-up(md)
|
|
{
|
|
width: 33%;
|
|
}
|
|
|
|
@include media-breakpoint-up(lg)
|
|
{
|
|
width: 28%;
|
|
}
|
|
|
|
@include media-breakpoint-up(xl)
|
|
{
|
|
width: 18%;
|
|
}
|
|
|
|
|
|
> .moreBtn
|
|
{
|
|
position: absolute;
|
|
top: 2%;
|
|
right: 2%;
|
|
width: 36px;
|
|
height: 36px;
|
|
outline: none;
|
|
display: none;
|
|
z-index: 255
|
|
}
|
|
|
|
> div
|
|
{
|
|
.img
|
|
{
|
|
width: 100%;
|
|
height: 0;
|
|
padding-top: 56.25%;
|
|
background-color: #333333;
|
|
background-size: contain;
|
|
position: relative;
|
|
|
|
> .playBtn
|
|
{
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
width: 64px;
|
|
height: 64px;
|
|
outline: none;
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.title
|
|
{
|
|
padding-top: .2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.overview
|
|
{
|
|
font-weight: 300;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 4;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.subtitle
|
|
{
|
|
font-weight: 300;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
&:host-context(.hoverEnabled) &:hover, &:host-context(.hoverEnabled) &:focus
|
|
{
|
|
.moreBtn
|
|
{
|
|
display: block;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
> div
|
|
{
|
|
.img
|
|
{
|
|
outline: solid var(--accentColor);
|
|
|
|
.playBtn
|
|
{
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.title
|
|
{
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.playIcon
|
|
{
|
|
font-size: 64px;
|
|
width: 64px;
|
|
height: 64px;
|
|
line-height: 64px;
|
|
}
|
|
|
|
.scrollBtn
|
|
{
|
|
padding: 0;
|
|
outline: none;
|
|
min-width: 0;
|
|
position: absolute;
|
|
top: 20%;
|
|
bottom: 60%;
|
|
display: none;
|
|
|
|
&.leftBtn
|
|
{
|
|
left: 0;
|
|
padding-left: 10px;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
&.rightBtn
|
|
{
|
|
right: 0;
|
|
padding-right: 10px;
|
|
padding-left: 2px;
|
|
}
|
|
}
|