aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/video-filters-header.component.scss
blob: a4e51982c7ef982a959b24bb749d4d9cd7f3c676 (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
@use '_variables' as *;
@use '_mixins' as *;

.root {
  margin-bottom: 45px;
}

.first-row {
  display: flex;
  justify-content: space-between;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin-top: 25px;

  border-bottom: 1px solid $separator-border-color;

  input[type=radio] + label {
    font-weight: $font-regular;
  }

  .form-group > label:first-child {
    display: block;

    &.with-description {
      margin-bottom: 0;
    }

    &:not(.with-description) {
      margin-bottom: 10px;
    }
  }

  .form-group {
    @include margin-right(30px);
  }
}

.pastille {
  @include margin-right(15px);

  border-radius: 24px;
  padding: 4px 15px;
  margin-bottom: 15px;
  cursor: pointer;
}

.filters-toggle {
  border: 2px solid pvar(--mainForegroundColor);

  my-global-icon {
    @include margin-left(5px);
  }

  &.active my-global-icon {
    position: relative;
    top: -1px;
  }

  &:not(.active) {
    my-global-icon ::ng-deep svg {
      transform: rotate(180deg);
    }
  }
}

// Than have an icon
.filters-toggle,
.active-filter.can-remove {
  padding: 4px 11px 4px 15px;
}

.active-filter {
  background-color: pvar(--channelBackgroundColor);
  display: flex;
  align-items: center;

  &:not(.can-remove) {
    cursor: default;
  }

  &.can-remove:hover {
    opacity: 0.9;
  }

  my-global-icon {
    @include margin-left(10px);

    width: 16px;
    color: pvar(--greyForegroundColor);
  }
}

.sort {
  min-width: 250px;
  max-width: 300px;
  height: min-content;

  ::ng-deep {
    .ng-select-container {
      height: 33px !important;
    }

    .ng-value strong {
      @include margin-left(5px);
    }
  }
}

my-select-languages,
my-select-categories {
  width: 300px;
  display: inline-block;
}

.label-description {
  font-size: 12px;
  font-style: italic;
  margin-bottom: 10px;

  a {
    color: pvar(--mainColor);
  }
}

@media screen and (max-width: $small-view) {
  .first-row {
    flex-direction: column;
  }
}