aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-videos/my-videos.component.scss
blob: 57473896b7f6e48d66ad2d2cdbf39ddab9394a8e (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
123
@import '_variables';
@import '_mixins';

input[type=text] {
  @include peertube-input-text(300px);
}

h1 {
  display: flex;
  justify-content: space-between;

  .button-link {
    @include peertube-button-link;
    @include grey-button;
    @include button-with-icon(18px, 3px, -1px);

    &:not(:last-child) {
      margin-right: 10px;
    }
  }
}

.action-button-delete-selection {
  display: inline-block;

  @include peertube-button;
  @include orange-button;
  @include button-with-icon(21px);

  my-global-icon {
    @include apply-svg-color(#fff);
  }
}

::ng-deep {
  .video {
    flex-wrap: wrap;
  }

  .action-button span {
    white-space: nowrap;
  }

  .video-miniature {
    &.display-as-row {
      // width: min-content !important;
      width: 100% !important;

      .video-bottom .video-miniature-information {
        width: max-content !important;
        min-width: unset !important;
      }
    }

    .video-bottom {
      max-width: 350px;
    }
  }
}

.action-button {
  display: flex;
  margin-left: 55px;
  margin-top: 10px;
  align-self: flex-end;
}

my-edit-button {
  margin-right: 10px;
}

@media screen and (max-width: $small-view) {
  h1 {
    flex-direction: column;

    > span,
    .button-link {
      margin-bottom: 10px;
    }
  }

  .action-button {
    flex-direction: column;
    align-self: center;
    align-items: center;
    margin-left: 0px;
  }

  my-edit-button {
    margin: 15px 0 5px 0;
    width: 100%;
    text-align: center;

    ::ng-deep {
      .action-button {
        /* same width than a.video-thumbnail */
        width: $video-thumbnail-width;
      }
    }
  }

  ::ng-deep {
    .video-miniature {
      align-items: center;

      .video-bottom,
      .video-bottom .video-miniature-information {
        /* same width than a.video-thumbnail */
        max-width: $video-thumbnail-width !important;
      }
    }
  }
}

@media screen and (max-width: $mobile-view) {
  .videos-header {
    flex-direction: column;

    input[type=text] {
      width: 100% !important;
    }
  }
}