@import '_mixins';
@import '_miniature';
-.videos {
- .video {
- display: flex;
- align-items: center;
- padding: 10px;
- border-bottom: 1px solid $separator-border-color;
-
- &:hover {
- background-color: rgba(0, 0, 0, 0.05);
+.playlist-info {
+ background-color: pvar(--submenuColor);
+ margin-left: -15px;
+ margin-top: -$sub-menu-margin-bottom;
- .more {
- display: block;
- }
- }
+ padding: $sub-menu-margin-bottom 0 -15px 0;
- .position {
- font-weight: $font-semibold;
- margin-right: 10px;
- color: $grey-foreground-color;
- }
+ display: flex;
+ justify-content: center;
- my-video-thumbnail {
- display: flex; // Avoids an issue with line-height that adds space below the element
- margin-right: 10px;
+ /* fix ellipsis dots background color */
+ ::ng-deep .miniature-name::after {
+ background-color: pvar(--submenuColor) !important;
+ }
+}
- /deep/ .video-thumbnail {
- @include miniature-thumbnail(130px, 72px);
- }
- }
+// Thanks Angular CDK <3 https://material.angular.io/cdk/drag-drop/examples
+.cdk-drag-preview {
+ box-sizing: border-box;
+ border-radius: 4px;
+ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14),
+ 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+}
- .video-info {
- display: flex;
- flex-direction: column;
+.cdk-drag-placeholder {
+ opacity: 0;
+}
- a {
- @include disable-default-a-behaviour;
+.cdk-drag-animating {
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
+}
- color: var(--mainForegroundColor);
- }
+.video:last-child {
+ border: none;
+}
- .video-info-name {
- font-size: 18px;
- font-weight: $font-semibold;
- }
+.videos.cdk-drop-list-dragging .video:not(.cdk-drag-placeholder) {
+ transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
+}
- .video-info-account, .video-info-timestamp {
- color: $grey-foreground-color;
- }
- }
+@media screen and (max-width: $small-view) {
+ .playlist-info {
+ margin-top: -$sub-menu-margin-bottom-small-view;
+ }
+}
+@media not all and (hover: hover) and (pointer: fine) {
+ .video {
.more {
- justify-self: flex-end;
- margin-left: auto;
- cursor: pointer;
- display: none;
-
- &.show {
- display: block;
- }
-
- .icon-more {
- @include apply-svg-color($grey-foreground-color);
-
- &::after {
- border: none;
- }
- }
-
- .dropdown-item {
- @include dropdown-with-icon-item;
- }
-
- .timestamp-options {
- padding-top: 0;
- padding-left: 35px;
- margin-bottom: 15px;
-
- > div {
- display: flex;
- align-items: center;
- }
-
- input {
- @include peertube-button;
- @include orange-button;
-
- margin-top: 10px;
- }
- }
+ opacity: 1;
}
}
}