aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-history/my-account-history.component.scss
blob: e7c6863f1a0e533a1ab3fdf6a018919195e47474 (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
@import '_variables';
@import '_mixins';

.no-history {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  font-weight: $font-semibold;
  font-size: 16px;
}

.top-buttons {
  margin-bottom: 20px;
  display: flex;

  .history-switch {
    display: flex;
    flex-grow: 1;

    label {
      margin: 0 0 0 5px;
    }
  }

  .delete-history {
    font-size: 15px;

    button {
      @include peertube-button;
      @include grey-button;
    }
  }
}

.video {
  @include row-blocks;

  my-video-thumbnail {
    margin-right: 10px;
  }

  .video-info {
    flex-grow: 1;

    .video-info-name {
      @include disable-default-a-behaviour;

      color: var(--mainForegroundColor);
      display: block;
      width: fit-content;
      font-size: 18px;
      font-weight: $font-semibold;
    }

    .video-info-date-views {
      font-size: 14px;
    }

    .video-info-account {
      @include disable-default-a-behaviour;

      display: block;
      width: fit-content;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      color: $grey-foreground-color;

      &:hover {
        color: $grey-foreground-hover-color;
      }
    }
  }
}

@media screen and (max-width: $small-view) {
  .video {
    flex-direction: column;
    height: auto;
    text-align: center;

    .video-info-name {
      margin: auto;
    }

    input[type=checkbox] {
      display: none;
    }

    my-video-thumbnail {
      margin-right: 0;
    }

    .video-buttons {
      margin-top: 10px;
    }
  }
}