1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,87 @@ |
1 |
+ |
|
2 |
+ |
|
3 |
+$select-color-item: #1da7ee; |
|
4 |
+$select-color-item-text: #fff; |
|
5 |
+$select-color-item-active-text: #fff; |
|
6 |
+$select-color-item-border: #0073bb; |
|
7 |
+$select-color-item-active: #92c836; |
|
8 |
+$select-color-item-active-border: #00578d; |
|
9 |
+$select-width-item-border: 1px; |
|
10 |
+ |
|
11 |
+$select-shadow-input: inset 0 1px 1px rgba(0,0,0,0.1) !default; |
|
12 |
+$select-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15) !default; |
|
13 |
+ |
|
14 |
+ |
|
15 |
+@import "tom-select"; |
|
16 |
+@include ts-caret(); |
|
17 |
+ |
|
18 |
+.#{$select-ns}-wrapper { |
|
19 |
+ display:flex; |
|
20 |
+ min-height:$select-line-height + ($select-padding-y*2) + ($select-border-width *2); |
|
21 |
+ |
|
22 |
+ &.multi { |
|
23 |
+ |
|
24 |
+ &.has-items .#{$select-ns}-control { |
|
25 |
+ $padding-x: $select-padding-x - 3px; |
|
26 |
+ padding-left: $padding-x; |
|
27 |
+ --ts-pr-min:$padding-x; |
|
28 |
+ } |
|
29 |
+ |
|
30 |
+ .#{$select-ns}-control { |
|
31 |
+ [data-value] { |
|
32 |
+ text-shadow: 0 1px 0 rgba(0,51,83,0.3); |
|
33 |
+ border-radius: 3px; |
|
34 |
+ @include selectize-vertical-gradient(#1da7ee, #178ee9); |
|
35 |
+ box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03); |
|
36 |
+ &.active { |
|
37 |
+ @include selectize-vertical-gradient(#008fd8, #0075cf); |
|
38 |
+ } |
|
39 |
+ } |
|
40 |
+ } |
|
41 |
+ |
|
42 |
+ &.disabled .#{$select-ns}-control [data-value] { |
|
43 |
+ color: #999; |
|
44 |
+ text-shadow: none; |
|
45 |
+ background: none; |
|
46 |
+ box-shadow: none; |
|
47 |
+ |
|
48 |
+ &, .remove { |
|
49 |
+ border-color: #e6e6e6; |
|
50 |
+ } |
|
51 |
+ .remove { |
|
52 |
+ background: none; |
|
53 |
+ } |
|
54 |
+ } |
|
55 |
+ |
|
56 |
+ } |
|
57 |
+ &.single { |
|
58 |
+ .#{$select-ns}-control { |
|
59 |
+ box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8); |
|
60 |
+ @include selectize-vertical-gradient(#fefefe, #f2f2f2); |
|
61 |
+ } |
|
62 |
+ } |
|
63 |
+} |
|
64 |
+ |
|
65 |
+.#{$select-ns}-wrapper.single .#{$select-ns}-control, .#{$select-ns}-dropdown.single { |
|
66 |
+ border-color: #b8b8b8; |
|
67 |
+} |
|
68 |
+ |
|
69 |
+.#{$select-ns}-control { |
|
70 |
+ .dropdown-active & { |
|
71 |
+ border-radius: $select-border-radius $select-border-radius 0 0; |
|
72 |
+ } |
|
73 |
+} |
|
74 |
+ |
|
75 |
+.#{$select-ns}-dropdown { |
|
76 |
+ .optgroup-header { |
|
77 |
+ padding-top: $select-padding-dropdown-item-y + 2px; |
|
78 |
+ font-weight: bold; |
|
79 |
+ font-size: 0.85em; |
|
80 |
+ } |
|
81 |
+ .optgroup { |
|
82 |
+ border-top: 1px solid $select-color-dropdown-border-top; |
|
83 |
+ &:first-child { |
|
84 |
+ border-top: 0 none; |
|
85 |
+ } |
|
86 |
+ } |
|
87 |
+} |