aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/search/search.component.scss
blob: f70d4bf8708b846961f088f59c2629c68ccb9b56 (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
@import '_variables';
@import '_mixins';

.no-result {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: $font-semibold;
}

.search-result {
  margin: 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 {

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

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

    .results-filter {
      // Animation when we show/hide the filters
      transition: max-height 0.3s;
      display: block !important;
      overflow: hidden !important;
      max-height: 0;

      &.show {
        max-height: 800px;
      }
    }
  }

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

    &.video {

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

      .video-info {
        flex-grow: 1;

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

          color: #000;
          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: #585858;

          &:hover {
            color: #303030;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 800px) {
  .entry {
    flex-direction: column;
    height: auto;
    text-align: center;

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

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