aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.scss
blob: 67587a58a915bf9a115afb89f476793572beff48 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import '_variables';
@import '_mixins';
@import '_miniature';

.root {
  display: grid;
  grid-template-columns: auto 1fr;
}

.playlist-info {
  grid-column: 1;
  background-color: pvar(--submenuBackgroundColor);
  margin-left: calc(#{pvar(--horizontalMarginContent)} * -1);
  margin-top: -$sub-menu-margin-bottom;

  padding: 15px;

  display: flex;
  flex-direction: column;

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

.playlist-buttons {
  display: flex;
  margin: 30px 0 10px;

  .share-button {
    @include peertube-button;
    @include button-with-icon(17px, 3px, -1px);
    @include grey-button;
    @include apply-svg-color(pvar(--actionButtonColor));

    margin-right: 10px;
  }
}

// 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: 0;
}

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

.playlist-elements {
  grid-column: 2;
}

my-video-playlist-miniature {
  width: $video-thumbnail-width;
}

@include on-small-main-col {
  my-video-playlist-miniature {
    width: $video-thumbnail-medium-width;
  }
}

@include on-mobile-main-col {
  .root {
    display: block;
  }

  .playlist-info {
    width: calc(100% + (2 * var(--horizontalMarginContent)));
    padding-top: 20px;
    margin-bottom: 10px;
  }

  my-video-playlist-miniature,
  .playlist-buttons {
    margin-left: auto;
    margin-right: auto;
  }

  ::ng-deep my-video-playlist-element-miniature {

    .video {
      padding: 5px !important;
    }

    .position {
      margin-right: 5px !important;
    }
  }
}