@import '_mixins';
@import '_miniature';
-$more-button-width: 41px;
+$more-button-width: 40px;
$more-margin-right: 15px;
.video-miniature {
- width: $video-miniature-width;
display: inline-flex;
flex-direction: column;
- margin-bottom: $video-miniature-margin-bottom;
- height: 195px;
+ padding-bottom: $video-miniature-margin-bottom;
vertical-align: top;
.video-bottom {
width: $video-miniature-width - $more-button-width - $more-margin-right;
line-height: normal;
+ .avatar {
+ margin: 10px 10px 0 0;
+
+ img {
+ @include avatar(40px);
+ }
+ }
+
.video-miniature-name {
@include miniature-name;
}
+ .video-miniature-meta {
+ width: calc(100% + #{$more-button-width});
+ overflow: hidden;
+ }
+
.video-miniature-created-at-views {
display: block;
font-size: 13px;
display: block;
font-size: 13px;
- color: var(--greyForegroundColor);
+ color: pvar(--greyForegroundColor);
&:hover {
color: $grey-foreground-hover-color;
}
.video-info-privacy,
- .video-info-blacklisted .blacklisted-label,
+ .video-info-blocked .blocked-label,
.video-info-nsfw {
font-weight: $font-semibold;
}
- .video-info-blacklisted {
+ .video-info-blocked {
color: red;
- .blacklisted-reason::before {
+ .blocked-reason::before {
content: ' - ';
}
}
@media screen and (max-width: $small-view) {
.video-miniature-information {
margin: 0 10px;
-
- .video-miniature-name {
- margin-top: 0;
- }
}
.video-actions {
opacity: 1;
}
+ &.fit-width {
+ width: 100%;
+
+ .video-bottom {
+ width: 100% !important;
+
+ .video-miniature-information {
+ width: calc(100% - #{$more-button-width}) !important;
+ }
+ }
+
+ my-video-thumbnail {
+ @include large-screen-ratio($selector: '::ng-deep .video-thumbnail');
+ }
+ }
+
&.display-as-row {
flex-direction: row;
- margin-bottom: 0;
+ padding-bottom: 0;
height: auto;
display: flex;
flex-grow: 1;
.video-miniature-created-at-views,
.video-miniature-account,
.video-miniature-channel {
- font-size: 14px;
+ font-size: 95%;
width: fit-content;
}
margin-top: 5px;
}
- .video-info-blacklisted {
+ .video-info-blocked {
margin-top: 3px;
}
}