aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/video-miniature.component.scss
blob: fdc3dc0339e6940220bbff6b9476d27bee84a865 (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
@import '_variables';
@import '_mixins';
@import '_miniature';

.video-miniature {
  width: $video-miniature-width;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 30px;
  height: 195px;
  vertical-align: top;

  .video-miniature-information {
    width: 200px;
    line-height: normal;

    .video-miniature-name {
      @include miniature-name;
    }

    .video-miniature-created-at-views {
      display: block;
      font-size: 13px;
    }

    .video-miniature-account,
    .video-miniature-channel {
      @include disable-default-a-behaviour;
      @include ellipsis;

      display: block;
      font-size: 13px;
      color: $grey-foreground-color;

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

    .video-info-privacy,
    .video-info-blacklisted .blacklisted-label,
    .video-info-nsfw {
      font-weight: $font-semibold;
    }

    .video-info-blacklisted {
      color: red;

      .blacklisted-reason::before {
        content: ' - ';
      }
    }

    .video-info-nsfw {
      color: red;
    }
  }

  &.display-as-row {
    flex-direction: row;
    margin-bottom: 0;
    height: auto;
    width: 100%;

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

    .video-miniature-information {
      width: auto;

      .video-miniature-name {
        @include ellipsis-multiline(1.3em, 2);

        margin-top: 2px;
        margin-bottom: 5px;
      }

      .video-miniature-created-at-views,
      .video-miniature-account,
      .video-miniature-channel {
        font-size: 14px;
      }

      .video-info-privacy {
        margin-top: 5px;
      }

      .video-info-blacklisted {
        margin-top: 3px;
      }
    }

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

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