blob: f6f2925f03c035d621273b4fffd42a7373ee2492 (
plain) (
tree)
|
|
@import '_variables';
@import '_mixins';
@import '_miniature';
$more-button-width: 40px;
.video-miniature-name {
@include miniature-name;
}
.video-miniature-information {
width: calc(100% - #{$more-button-width});
}
my-account-avatar,
.channel-avatar {
margin: 10px 10px 0 0;
}
.channel-avatar img{
@include channel-avatar(40px);
}
.video-miniature-created-at-views {
font-size: 13px;
}
.video-miniature-account,
.video-miniature-channel {
@include disable-default-a-behaviour;
@include ellipsis;
display: block;
font-size: 13px;
color: pvar(--greyForegroundColor);
&:hover {
color: $grey-foreground-hover-color;
}
}
.video-info-privacy,
.video-info-blocked .blocked-label,
.video-info-nsfw {
font-weight: $font-semibold;
}
.video-info-blocked {
color: red;
.blocked-reason::before {
content: ' - ';
}
}
.video-info-nsfw {
color: red;
}
.video-actions {
width: $more-button-width;
height: 30px;
::ng-deep .dropdown-root:not(.show) {
opacity: 0;
}
::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root {
opacity: 1;
}
::ng-deep .more-icon {
opacity: .6;
&:hover {
opacity: 1;
}
}
}
.video-miniature:hover {
::ng-deep .video-thumbnail-actions-overlay,
.video-actions ::ng-deep .dropdown-root {
opacity: 1 !important;
}
}
// Grid mode
// Takes all the width on mobile
.video-miniature:not(.display-as-row) {
display: flex;
flex-direction: column;
padding-bottom: $video-miniature-margin-bottom;
width: 100%;
my-video-thumbnail {
@include block-ratio($selector: '::ng-deep .video-thumbnail');
}
.video-bottom {
display: flex;
width: 100%;
}
.video-miniature-name {
margin-top: 10px;
margin-bottom: 5px;
}
.video-miniature-created-at-views {
display: block;
}
.video-actions {
margin-top: 3px;
}
@media screen and (max-width: $small-view) {
width: 100%;
margin-bottom: 25px;
.video-miniature-information {
margin: 0 10px;
width: 100%;
text-align: left;
}
.video-actions {
margin: 0;
top: -3px;
::ng-deep .dropdown-root {
opacity: 1 !important;
}
}
::ng-deep .video-thumbnail {
border-radius: 0;
}
}
}
.video-miniature.display-as-row {
--rowThumbnailWidth: #{$video-thumbnail-width};
--rowThumbnailHeight: #{$video-thumbnail-height};
display: flex;
flex-direction: row;
.video-bottom {
display: flex;
}
// We don't display avatar in row mode
.channel-avatar {
display: none;
}
my-video-thumbnail {
min-width: var(--rowThumbnailWidth);
max-width: var(--rowThumbnailWidth);
height: var(--rowThumbnailHeight);
margin-right: 10px;
}
.video-miniature-name {
@include ellipsis-multiline($video-miniature-row-name-font-size, 2);
}
.video-miniature-created-at-views,
.video-miniature-account,
.video-miniature-channel {
font-size: $video-miniature-row-info-font-size;
}
.video-actions {
margin-top: -3px;
}
}
@include on-small-main-col {
.video-miniature.display-as-row {
--rowThumbnailWidth: #{$video-thumbnail-medium-width};
--rowThumbnailHeight: #{$video-thumbnail-medium-height};
}
}
@include on-mobile-main-col {
.video-miniature.display-as-row {
--rowThumbnailWidth: #{$video-thumbnail-small-width};
--rowThumbnailHeight: #{$video-thumbnail-small-height};
.video-miniature-name {
font-size: $video-miniature-row-info-font-size;
}
.video-miniature-created-at-views,
.video-miniature-account,
.video-miniature-channel {
font-size: $video-miniature-row-mobile-info-font-size;
}
}
}
|