aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/search.component.scss
blob: 3343a276dc4f171ba57946d41501b05e9eaf9703 (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
136
137
138
139
140
141
@import '_variables';
@import '_mixins';

.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/search/filter.svg');
        }
      }
    }
  }

  .entry {
    display: flex;
    min-height: 130px;
    padding-bottom: 20px;
    margin-bottom: 20px;

    &.video-channel {
      img {
        $image-size: 130px;
        $margin-size: ($video-thumbnail-width - $image-size) / 2; // So we have the same width than the video miniature

        @include avatar($image-size);

        margin: 0 ($margin-size + 10) 0 $margin-size;
      }

      .video-channel-info {
        flex-grow: 1;
        width: fit-content;

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

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

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

          .video-channel-name {
            font-size: 14px;
            color: $grey-actor-name;
            margin-left: 5px;
          }
        }
      }
    }
  }
}

@media screen and (max-width: $small-view) {
  .video-channel-names {
    flex-direction: column !important;

    .video-channel-name {
      margin-left: 0 !important;
    }
  }
}

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

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

    .entry {
      flex-direction: column;
      height: auto;
      justify-content: center;
      align-items: center;
      text-align: center;

      &.video {
        .video-info-name,
        .video-info-account {
          margin: auto;
        }

        my-video-thumbnail {
          margin-right: 0 !important;

          /deep/ .video-thumbnail {
            width: 100%;
            height: auto;

            img {
              width: 100%;
              height: auto;
            }
          }
        }
      }

      &.video-channel {
        .video-channel-info .video-channel-names {
          align-items: center;
        }

        my-subscribe-button {
          margin-top: 5px;
        }
      }
    }
  }
}