aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.scss
blob: 4ac89d08f4ebb74d18c1e1090c1fc8aaf410ab1a (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
@import '_variables';
@import '_mixins';
@import '_miniature';

.video, .cdk-drag-preview {
  display: flex;
  align-items: center;
  background-color: var(--mainBackgroundColor);
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid $separator-border-color;

  &:hover {
    background-color: rgba(0, 0, 0, 0.05);

    .more {
      display: block;
    }
  }

  .position {
    font-weight: $font-semibold;
    margin-right: 10px;
    color: $grey-foreground-color;
    min-width: 20px;
  }

  my-video-thumbnail {
    display: flex; // Avoids an issue with line-height that adds space below the element
    margin-right: 10px;

    /deep/ .video-thumbnail {
      @include miniature-thumbnail(130px, 72px);
    }
  }

  .video-info {
    display: flex;
    flex-direction: column;

    a {
      @include disable-default-a-behaviour;

      color: var(--mainForegroundColor);
    }

    .video-info-name {
      font-size: 18px;
      font-weight: $font-semibold;
    }

    .video-info-account, .video-info-timestamp {
      color: $grey-foreground-color;
    }
  }

  .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;
      }
    }
  }
}

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