transition: color 0.2s;
font-weight: $font-semibold;
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
margin-top: 10px;
margin-bottom: 5px;
width: inherit;
height: inherit;
opacity: 0;
- background-color: rgba(0, 0, 0, 0.7);
+ background-color: rgba(0, 0, 0, 0.3);
&, .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);
+ @include play-icon($play-overlay-width, $play-overlay-height);
}
}
}
&.focus-visible {
- box-shadow: 0 0 0 2px var(--mainColor);
+ box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
+ outline: none;
}
img {
}
@mixin thumbnail-size-component ($width, $height) {
- /deep/ .video-thumbnail {
+ ::ng-deep .video-thumbnail {
width: $width;
height: $height;
}
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;
- text-align: left;
-
- span {
- width: 100%;
- }
- }
-
- .video-thumbnail {
- margin: 0 -15px 10px -15px;
- width: 100vw;
- height: calc(100vw / #{$video-thumbnail-ratio});
- border-radius: 0;
-
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
-}
-
@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 {
+ border-top: none !important;
+ }
}
.section-title {
font-size: 24px;
font-weight: $font-semibold;
- margin-bottom: 30px;
+ padding-top: 15px;
+ margin-bottom: 15px;
+ display: flex;
+ justify-content: space-between;
+
+ &:not(h2) {
+ border-top: 1px solid $separator-border-color;
+ }
a {
&:hover, &:focus:not(.focus-visible), &:active {
outline: none;
}
- color: var(--mainForegroundColor);
+ color: pvar(--mainForegroundColor);
}
}
align-items: center;
img {
- @include avatar(28px);
+ @include channel-avatar(28px);
margin-right: 8px;
}
}
.followers {
- color: $grey-foreground-color;
+ color: pvar(--greyForegroundColor);
font-weight: normal;
font-size: 14px;
margin-left: 10px;
}
}
+ .show-more {
+ position: relative;
+ top: -5px;
+ display: inline-block;
+ font-size: 16px;
+ text-transform: uppercase;
+ color: pvar(--greyForegroundColor);
+ margin-bottom: 10px;
+ font-weight: $font-semibold;
+ text-decoration: none;
+ }
+
@media screen and (max-width: $mobile-view) {
max-height: initial;
overflow: initial;
- @include video-miniature-small-screen;
-
.section-title {
font-size: 17px;
+ margin-left: 10px;
}
}
}
-@mixin adapt-margin-content-width {
- width: $video-miniature-width * 6;
- margin: auto !important;
+// Use margin by default, or padding if $margin is false
+@mixin fluid-videos-miniature-margins ($margin: true, $min-margin: 0) {
+ --fluidVideosMiniatureMargins: #{pvar(--horizontalMarginContent)};
- @media screen and (max-width: 1800px) {
- width: $video-miniature-width * 5;
+ @if $margin {
+ margin-left: var(--fluidVideosMiniatureMargins) !important;
+ margin-right: var(--fluidVideosMiniatureMargins) !important;
+ } @else {
+ padding-left: var(--fluidVideosMiniatureMargins) !important;
+ padding-right: var(--fluidVideosMiniatureMargins) !important;
}
- @media screen and (max-width: 1800px - $video-miniature-width) {
- width: $video-miniature-width * 4;
- }
+ @media screen and (max-width: $mobile-view) {
+ --fluidVideosMiniatureMargins: $min-margin;
- @media screen and (max-width: 1800px - (2* $video-miniature-width)) {
- width: $video-miniature-width * 3;
+ width: auto;
}
+}
- @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
- width: $video-miniature-width * 2;
- }
+@mixin fluid-videos-miniature-layout {
+ @include fluid-videos-miniature-margins;
- @media screen and (max-width: 500px) {
- width: auto;
- margin: 0 !important;
+ @media screen and (max-width: $mobile-view) {
+ .videos {
+ text-align: center;
+
+ ::ng-deep .video-miniature {
+ padding-right: 0;
+ height: auto;
+ width: 100%;
+ margin-bottom: 25px;
+
+ .video-miniature-information {
+ width: 100% !important;
+ text-align: left;
+ span {
+ width: 100%;
+ }
+ }
+
+ .video-thumbnail {
+ border-radius: 0;
+ }
+ }
+ }
+ }
+
+ @media screen and (min-width: $mobile-view) {
.videos {
- @include video-miniature-small-screen;
+ --miniature-min-width: #{$video-thumbnail-width - 15px};
+ --miniature-max-width: #{$video-thumbnail-width};
+
+ display: grid;
+ column-gap: 5px;
+ grid-template-columns: repeat(
+ auto-fill,
+ minmax(
+ var(--miniature-min-width),
+ 1fr
+ )
+ );
+
+ @media screen and (min-width: #{breakpoint(fhd)}) {
+ column-gap: 1%;
+ --miniature-min-width: #{$video-thumbnail-width};
+ }
+
+ .video-wrapper {
+ margin: 0 auto;
+ width: 100%;
+
+ my-video-miniature {
+ display: block;
+ min-width: var(--miniature-min-width);
+ max-width: var(--miniature-max-width);
+ }
+ }
}
}
}