BigW Consortium Gitlab

selects.scss 1.8 KB
Newer Older
1
/** Select2 selectbox style override **/
2
.select2-container, .select2-container.select2-drop-above {
3
  .select2-choice {
4
    background: #FFF;
5 6
    border-color: #DDD;
    height: 34px;
7
    padding: 6px 14px;
8
    font-size: 14px;
9
    line-height: 1.42857143;
10 11

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

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

21
.select2-container-multi .select2-choices {
22 23
  @include border-radius(4px);
  border-color: #CCC;
24 25 26
}

.select2-container-multi .select2-choices .select2-search-field input {
27
  padding: 8px 14px;
28 29 30 31 32
  font-size: 13px;
  line-height: 18px;
  height: auto;
}

33
.select2-drop-active {
34
  border: 1px solid #BBB !important;
35
  margin-top: 4px;
36
  font-size: 13px;
37

38 39 40 41
  &.select2-drop-above {
    margin-bottom: 8px;
  }

42 43 44 45 46
  .select2-search input {
    background: #fafafa;
    border-color: #DDD;
  }

47 48 49
  .select2-results {
    max-height: 350px;
    .select2-highlighted {
50
      background: $gl-primary;
51
    }
52
  }
53 54
}

55 56
.select2-container {
  width: 100% !important;
57 58
}

59 60
/** Branch/tag selector **/
.project-refs-form .select2-container {
61
  width: 160px !important;
62
}
63

64 65 66 67
.ajax-users-dropdown, .ajax-project-users-dropdown {
  .select2-search {
    padding-top: 4px;
  }
68
}
Dmitriy Zaporozhets committed
69 70 71 72 73 74 75 76 77 78 79 80 81

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

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

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

82 83 84 85 86 87 88 89 90 91 92 93
.group-result {
  .group-image {
    float: left;
  }
  .group-name {
    font-weight: bold;
  }
  .group-path {
    color: #999;
  }
}

Dmitriy Zaporozhets committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
.user-result {
  .user-image {
    float: left;
  }
  .user-name {
  }
  .user-username {
    color: #999;
  }
}

.namespace-result {
  .namespace-kind {
    color: #AAA;
    font-weight: normal;
  }
  .namespace-path {
    margin-left: 10px;
    font-weight: bolder;
  }
}
115 116 117 118

.ajax-users-dropdown {
  min-width: 225px !important;
}