summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/filters.scss
blob: d957ec64654dba4a4cdfe79142693bd275a3eadd (plain)
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
.filter-item {
  margin-right: 6px;
  vertical-align: top;

  &.reset-filters {
    padding: 7px;
  }
}

@media (min-width: $screen-sm-min) {
  .issues-filters,
  .issues_bulk_update {
    .dropdown-menu-toggle {
      width: 132px;
    }
  }
}

@media (max-width: $screen-xs-max) {
  .filter-item {
    display: block;
    margin: 0 0 10px;
  }
}

.filtered-search-container {
  display: -webkit-flex;
  display: flex;
}

.filtered-search-input-container {
  display: -webkit-flex;
  display: flex;
  position: relative;
  width: 100%;

  .form-control {
    padding-left: 25px;
    padding-right: 25px;

    &:focus ~ .fa-filter {
      color: $common-gray-dark;
    }
  }

  .fa-filter {
    position: absolute;
    top: 10px;
    left: 10px;
    color: $gray-darkest;
  }

  .fa-times {
    right: 10px;
    color: $gray-darkest;
  }

  .clear-search {
    width: 35px;
    background-color: transparent;
    border: none;
    position: absolute;
    right: 0;
    height: 100%;
    outline: none;

    &:hover .fa-times {
      color: $common-gray-dark;
    }
  }
}

.dropdown-menu .filter-dropdown-item {
  padding: 0;
}

.filter-dropdown {
  max-height: 215px;
  overflow: auto;
}

.filter-dropdown-item {
  .btn {
    border: none;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 0;

    .fa {
      width: 15px;
    }

    .dropdown-label-box {
      border-color: $white-light;
      border-style: solid;
      border-width: 1px;
      width: 17px;
      height: 17px;
    }

    &:hover,
    &:focus {
      background-color: $dropdown-hover-color;
      color: $white-light;
      text-decoration: none;

      .avatar {
        border-color: $white-light;
      }
    }
  }

  .dropdown-light-content {
    font-size: 14px;
    font-weight: 400;
  }

  .dropdown-user {
    display: -webkit-flex;
    display: flex;
  }

  .dropdown-user-details {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
  }
}

.hint-dropdown {
  width: 250px;
}

.filter-dropdown-loading {
  padding: 8px 16px;
}