aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+search/search.component.scss
blob: a8002ba886ba0d6ab14f207bfbb9ebc1def22550 (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
124
125
126
127
128
129
130
131
132
133
134
135
@import '_variables';
@import '_mixins';

@mixin build-channel-img-size ($video-img-width) {
  $image-size: min(130px, $video-img-width);
  $margin-size: ($video-img-width - $image-size) / 2; // So we have the same width than the video miniature

  @include actor-avatar-size($image-size);

  margin: 0 $margin-size 0 $margin-size;
}

.search-result {
  padding: 40px;
}

.results-header {
  font-size: 16px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #DADADA;

  .first-line {
    display: flex;
    flex-direction: row;

    .results-counter {
      flex-grow: 1;

      .search-value {
        font-weight: $font-semibold;
      }
    }

    .results-filter-button {
      cursor: pointer;

      .icon.icon-filter {
        @include icon(20px);

        position: relative;
        top: -1px;
        margin-right: 5px;
        background-image: url('../../assets/images/feather/filter.svg');
      }
    }
  }
}

.entry {
  display: flex;
  margin-bottom: 40px;
  max-width: 800px;
}

.video-channel my-actor-avatar {
  @include build-channel-img-size($video-thumbnail-width);
}

.video-channel-info {
  flex-grow: 1;
  margin: 0 10px;
  width: fit-content;
}

.video-channel-names {
  @include disable-default-a-behaviour;

  display: flex;
  align-items: baseline;
  color: pvar(--mainForegroundColor);
  width: fit-content;
}

.video-channel-display-name {
  font-weight: $font-semibold;
  font-size: $video-miniature-row-name-font-size;
}

.video-channel-name {
  font-size: $video-miniature-row-info-font-size;
  color: pvar(--greyForegroundColor);
  margin-left: 5px;
}

// Use the same breakpoints than in video-miniature
@include on-small-main-col {
  .video-channel {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;

    my-actor-avatar {
      @include build-channel-img-size($video-thumbnail-medium-width);

      grid-column: 1;
      grid-row: 1 / -1;
    }
  }

  .video-channel-info {
    grid-column: 2;
    grid-row: 1;
  }

  my-subscribe-button {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }
}

@include on-mobile-main-col {
  .video-channel my-actor-avatar {
    @include build-channel-img-size($video-thumbnail-small-width);
  }
}

@media screen and (max-width: $mobile-view) {
  .search-result {
    padding: 20px 10px;

    .results-header {
      font-size: 15px !important;
    }
  }

  .video-channel-display-name {
    font-size: $video-miniature-row-mobile-name-font-size;
  }

  .video-channel-name {
    font-size: $video-miniature-row-mobile-info-font-size;
  }
}