<div class="video-info-name">{{ video.name }}</div>
<div class="video-info-actions">
- <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" class="action-button">
- <span class="icon icon-like" title="Like this video" (click)="setLike()"></span>
+ <div
+ *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
+ class="action-button action-button-like">
+ <span class="icon icon-like" title="Like this video" ></span>
</div>
- <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" class="action-button">
- <span class="icon icon-dislike" title="Dislike this video" (click)="setDislike()"></span>
+ <div
+ *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
+ class="action-button action-button-dislike">
+ <span class="icon icon-dislike" title="Dislike this video"></span>
</div>
<div (click)="showShareModal()" class="action-button">
.video-info-actions {
min-width: 215px;
+ display: flex;
+ justify-content: end;
+
+ .action-button:not(:first-child), .action-more {
+ margin-left: 10px;
+ }
.action-button {
@include peertube-button;
}
}
- &.activated {
- @include orange-button;
+ &.action-button-like.activated {
+ background-color: #39CC0B;
.icon-like {
background-image: url('../../../assets/images/video/like-white.svg');
}
+ }
+
+ &.action-button-dislike.activated {
+ background-color: #FF0000;
.icon-dislike {
background-image: url('../../../assets/images/video/dislike-white.svg');
}
-@media screen and (max-width: 1200px) {
+@media screen and (max-width: 1300px) {
.other-videos {
display: none;
}