selects.scss 1.2 KB
Newer Older
1
/** Chosen.js selectbox style override **/
2
.chosen-container {
3 4
  min-width: 100px;

5
  .chosen-single {
6
    height: 26px;
7 8 9 10
    background: #EEE !important;
    border: 1px solid #DDD !important;
    @include box-shadow(none !important);
    @include border-radius(4px !important);
11 12
  }

13 14
  .chosen-results li.highlighted {
    background: #29b;
D
Dmitriy Zaporozhets 已提交
15 16
  }

17 18 19 20
  .chosen-drop {
    margin-top: 10px;
    border: 1px solid #DDD !important;
    @include border-radius(4px !important);
21
  }
D
Dmitriy Zaporozhets 已提交
22

23
  .chosen-search input {
D
Dmitriy Zaporozhets 已提交
24
    border: 1px solid #CCC !important;
25
    @include box-shadow(none !important);
D
Dmitriy Zaporozhets 已提交
26 27
  }
}
28 29 30

/** Select2 styling **/
.select2-container .select2-choice {
D
Dmitriy Zaporozhets 已提交
31
  @include bg-light-gray-gradient;
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
}

.select2-container .select2-choice div {
  border: none;
  background: none;
}

.select2-drop {
  padding-top: 8px;
}

.select2-no-results, .select2-searching {
  padding: 7px;
  color: #666;
}
47 48 49 50 51 52 53 54

.chosen-container .chosen-single div b {
  background-position-y: 0px !important;
}

.chosen-container .chosen-drop .chosen-search input {
  background-position-y: -24px !important;
}
55 56 57 58

.chosen-compact {
  max-width: 170px !important;
}
D
Dmitriy Zaporozhets 已提交
59

60 61 62 63 64 65 66 67
select {
  &.chosen {
    min-width: 200px;
  }

  &.chosen-sm {
    min-width: 100px;
  }
D
Dmitriy Zaporozhets 已提交
68
}