selects.scss 2.38 KB
Newer Older
1
/** Select2 selectbox style override **/
2
.select2-container, .select2-container.select2-drop-above {
3
  .select2-choice {
4
    background: #FFF;
5
    border-color: #DDD;
6
    height: 42px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
    padding: 8px $gl-padding;
8
    font-size: $gl-font-size;
9
    line-height: 1.42857143;
10

11
    @include border-radius(2px);
12 13 14

    .select2-arrow {
      background: #FFF;
15
      border-left: none;
16
      padding-top: 5px;
17
    }
18
  }
19
}
20

21 22 23 24 25 26 27 28
.select2-container .select2-choice, .select2-container.select2-drop-above .select2-choice{
  color: #7f8fa4;
  border: 1px solid #e7e9ed;
}

.select2-drop {
  @include box-shadow(rgba(76, 86, 103, 0.247059) 0px 0px 1px 0px, rgba(31, 37, 50, 0.317647) 0px 2px 18px 0px);
  @include border-radius (0px);
29 30

  padding: 16px;
31 32 33 34
  border: none !important;
}

.select2-results .select2-result-label {
35
  padding: 9px;
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
}

.select2-drop{
  color: #7f8fa4;
}

.select2-highlighted {
  background: #3084bb !important;
}

.select2-results li.select2-result-with-children > .select2-result-label {
  font-weight: 600;
  color: #313236;
}


52
.select2-container-multi .select2-choices {
53
  @include border-radius(2px);
54
  border-color: #CCC;
55 56 57
}

.select2-container-multi .select2-choices .select2-search-field input {
58
  padding: 8px 14px;
59 60 61 62 63
  font-size: 13px;
  line-height: 18px;
  height: auto;
}

64
.select2-drop-active {
65
  border: 1px solid #BBB !important;
66
  margin-top: 4px;
67
  font-size: 13px;
68

69 70 71 72
  &.select2-drop-above {
    margin-bottom: 8px;
  }

73 74 75 76 77
  .select2-search input {
    background: #fafafa;
    border-color: #DDD;
  }

78 79 80
  .select2-results {
    max-height: 350px;
    .select2-highlighted {
81
      background: $gl-primary;
82
    }
83
  }
84 85
}

86 87
.select2-container {
  width: 100% !important;
88 89
}

90 91
/** Branch/tag selector **/
.project-refs-form .select2-container {
92
  width: 160px !important;
93
}
94

95 96
.ajax-users-dropdown, .ajax-project-users-dropdown {
  .select2-search {
97
    padding-top: 2px;
98
  }
99
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
100 101 102 103 104 105 106 107 108 109 110 111 112

.ajax-users-select {
  width: 400px;

  &.input-large {
    width: 210px;
  }

  &.input-clamp {
    max-width: 100%;
  }
}

113 114 115 116 117 118 119 120 121 122 123 124
.group-result {
  .group-image {
    float: left;
  }
  .group-name {
    font-weight: bold;
  }
  .group-path {
    color: #999;
  }
}

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
.user-result {
  .user-image {
    float: left;
  }
  .user-name {
  }
}

.namespace-result {
  .namespace-kind {
    color: #AAA;
    font-weight: normal;
  }
  .namespace-path {
    margin-left: 10px;
    font-weight: bolder;
  }
}
143 144

.ajax-users-dropdown {
145
  min-width: 250px !important;
146
}