Blame view

bower_components/select2/src/scss/theme/classic/_single.scss 2.46 KB
f6e211e4   Administrator   finish work part 1
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
  .select2-selection--single {
    background-color: mix($selection-bg-top-color, $selection-bg-bottom-color);
  
    border: 1px solid $border-color;
    border-radius: $border-radius;
  
    outline: 0;
  
    @include gradient-vertical($selection-bg-top-color, $selection-bg-bottom-color, 50%, 100%);
  
    &:focus {
      border: 1px solid $focus-border-color;
    }
  
    .select2-selection__rendered {
      color: #444;
      line-height: 28px;
    }
  
    .select2-selection__clear {
      cursor: pointer;
      float: right;
      font-weight: bold;
      margin-right: 10px;
    }
  
    .select2-selection__placeholder {
      color: #999;
    }
  
    .select2-selection__arrow {
      background-color: #ddd;
  
      border: none;
      border-left: 1px solid $border-color;
      border-top-right-radius: $border-radius;
      border-bottom-right-radius: $border-radius;
  
      height: 26px;
  
      position: absolute;
  
      top: 1px;
      right: 1px;
  
      width: 20px;
  
      @include gradient-vertical(#eeeeee, #cccccc, 50%, 100%);
  
      b {
        border-color: #888 transparent transparent transparent;
        border-style: solid;
        border-width: 5px 4px 0 4px;
  
        height: 0;
        left: 50%;
  
        margin-left: -4px;
        margin-top: -2px;
  
        position: absolute;
  
        top: 50%;
        width: 0;
      }
    }
  }
  
  &[dir="rtl"] {
    .select2-selection--single {
      .select2-selection__clear {
        float: left;
      }
  
      .select2-selection__arrow {
        border: none;
        border-right: 1px solid $border-color;
  
        border-radius: 0;
        border-top-left-radius: $border-radius;
        border-bottom-left-radius: $border-radius;
  
        left: 1px;
        right: auto;
      }
    }
  }
  
  &.select2-container--open {
    .select2-selection--single {
      border: 1px solid $focus-border-color;
  
      .select2-selection__arrow {
        background: transparent;
  
        border: none;
  
        b {
          border-color: transparent transparent #888 transparent;
          border-width: 0 4px 5px 4px;
        }
      }
    }
  
    &.select2-container--above {
      .select2-selection--single {
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
  
        @include gradient-vertical($selection-opened-bg-bottom-color, $selection-opened-bg-top-color, 0%, 50%);
      }
    }
  
    &.select2-container--below {
      .select2-selection--single {
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
  
        @include gradient-vertical($selection-opened-bg-top-color, $selection-opened-bg-bottom-color, 50%, 100%);
      }
    }
  }