aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.scss
blob: 3f2c345d2592c9aaa660bd8dd2a56e426765b988 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@import '_variables';
@import '_mixins';
@import '_miniature';

.playlist-info {
  background-color: pvar(--submenuColor);
  margin-left: -15px;
  margin-top: -$sub-menu-margin-bottom;

  padding: $sub-menu-margin-bottom 0 -15px 0;

  display: flex;
  justify-content: center;

  /* fix ellipsis dots background color */
  ::ng-deep .miniature-name::after {
    background-color: pvar(--submenuColor) !important;
  }
}

// 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);
}

.cdk-drag-placeholder {
  opacity: 0;
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.video:last-child {
  border: none;
}

.videos.cdk-drop-list-dragging .video:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

@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 {
      opacity: 1;
    }
  }
}