2019-03-06 14:36:44 +00:00
|
|
|
@import '_variables';
|
|
|
|
@import '_mixins';
|
|
|
|
|
|
|
|
@mixin miniature-name {
|
2019-04-03 12:18:23 +00:00
|
|
|
@include ellipsis-multiline(1.1em, 2);
|
2019-04-03 11:51:02 +00:00
|
|
|
|
2019-03-06 14:36:44 +00:00
|
|
|
transition: color 0.2s;
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
color: var(--mainForegroundColor);
|
2019-04-03 12:18:23 +00:00
|
|
|
margin-top: 10px;
|
2019-03-06 14:36:44 +00:00
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.blur-filter {
|
|
|
|
filter: blur(3px);
|
|
|
|
padding-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$play-overlay-transition: 0.2s ease;
|
|
|
|
$play-overlay-height: 26px;
|
|
|
|
$play-overlay-width: 18px;
|
|
|
|
|
2019-03-13 13:18:58 +00:00
|
|
|
@mixin miniature-thumbnail {
|
2019-03-06 14:36:44 +00:00
|
|
|
@include disable-outline;
|
|
|
|
|
2019-04-03 12:18:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-03-06 14:36:44 +00:00
|
|
|
position: relative;
|
|
|
|
border-radius: 3px;
|
|
|
|
overflow: hidden;
|
2019-03-13 13:18:58 +00:00
|
|
|
width: $video-thumbnail-width;
|
|
|
|
height: $video-thumbnail-height;
|
2019-03-06 14:36:44 +00:00
|
|
|
background-color: #ececec;
|
|
|
|
transition: filter $play-overlay-transition;
|
|
|
|
|
|
|
|
.play-overlay {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
|
2019-03-11 15:23:33 +00:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2019-03-06 14:36:44 +00:00
|
|
|
opacity: 0;
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
|
|
|
|
&, .icon {
|
|
|
|
transition: all $play-overlay-transition;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%) scale(0.5);
|
|
|
|
|
|
|
|
border-top: ($play-overlay-height / 2) solid transparent;
|
|
|
|
border-bottom: ($play-overlay-height / 2) solid transparent;
|
|
|
|
|
|
|
|
border-left: $play-overlay-width solid rgba(255, 255, 255, 0.95);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none !important;
|
|
|
|
|
|
|
|
.play-overlay {
|
|
|
|
opacity: 1;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
transform: translate(-50%, -50%) scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.focus-visible {
|
|
|
|
box-shadow: 0 0 0 2px var(--mainColor);
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
2019-03-11 15:23:33 +00:00
|
|
|
width: inherit;
|
|
|
|
height: inherit;
|
2019-03-06 14:36:44 +00:00
|
|
|
|
|
|
|
&.blur-filter {
|
2019-04-17 22:10:57 +00:00
|
|
|
filter: blur(20px);
|
2019-03-06 14:36:44 +00:00
|
|
|
transform : scale(1.03);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-13 13:18:58 +00:00
|
|
|
@mixin thumbnail-size-component ($width, $height) {
|
|
|
|
/deep/ .video-thumbnail {
|
|
|
|
width: $width;
|
|
|
|
height: $height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-06 14:36:44 +00:00
|
|
|
@mixin static-thumbnail-overlay {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin video-miniature-small-screen {
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
/deep/ .video-miniature {
|
|
|
|
padding-right: 0;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
.video-miniature-information {
|
|
|
|
width: 100% !important;
|
2019-04-03 11:25:52 +00:00
|
|
|
text-align: left;
|
2019-03-06 14:36:44 +00:00
|
|
|
|
|
|
|
span {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.video-thumbnail {
|
2019-04-03 12:18:23 +00:00
|
|
|
margin: 0 -15px 10px -15px;
|
|
|
|
width: 100vw;
|
|
|
|
height: calc(100vw / #{$video-thumbnail-ratio});
|
2019-04-25 08:06:30 +00:00
|
|
|
border-radius: 0;
|
2019-03-06 14:36:44 +00:00
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
2019-04-03 12:18:23 +00:00
|
|
|
height: 100%;
|
2019-03-06 14:36:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-29 14:45:59 +00:00
|
|
|
|
|
|
|
@mixin miniature-rows {
|
|
|
|
max-height: 540px; // 2 rows max
|
|
|
|
overflow: hidden;
|
|
|
|
padding-top: 10px;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding-top: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
my-video-miniature {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section-title {
|
|
|
|
font-size: 24px;
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
margin-bottom: 30px;
|
2019-05-29 14:57:43 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-05-29 14:45:59 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
&:hover, &:focus:not(.focus-visible), &:active {
|
|
|
|
text-decoration: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
color: var(--mainForegroundColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.channel {
|
|
|
|
.section-title {
|
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
width: fit-content;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
img {
|
|
|
|
@include avatar(28px);
|
|
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.followers {
|
|
|
|
color: $grey-foreground-color;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 14px;
|
|
|
|
margin-left: 10px;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: $mobile-view) {
|
|
|
|
max-height: initial;
|
|
|
|
overflow: initial;
|
|
|
|
|
|
|
|
@include video-miniature-small-screen;
|
|
|
|
|
|
|
|
.section-title {
|
|
|
|
font-size: 17px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin adapt-margin-content-width {
|
|
|
|
width: $video-miniature-width * 6;
|
|
|
|
margin: auto !important;
|
|
|
|
|
|
|
|
@media screen and (max-width: 1800px) {
|
|
|
|
width: $video-miniature-width * 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1800px - $video-miniature-width) {
|
|
|
|
width: $video-miniature-width * 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1800px - (2* $video-miniature-width)) {
|
|
|
|
width: $video-miniature-width * 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1800px - (3* $video-miniature-width)) {
|
|
|
|
width: $video-miniature-width * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 500px) {
|
|
|
|
width: auto;
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
|
|
.videos {
|
|
|
|
@include video-miniature-small-screen;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|