UNPKG

3.51 kBCSSView Raw
1.rbt .rbt-input-main::-ms-clear {
2 display: none;
3}
4
5/**
6 * Menu
7 */
8.rbt-menu {
9 margin-bottom: 2px;
10}
11.rbt-menu > .dropdown-item {
12 overflow: hidden;
13 text-overflow: ellipsis;
14}
15.rbt-menu > .dropdown-item:focus {
16 outline: none;
17}
18.rbt-menu-pagination-option {
19 text-align: center;
20}
21
22/**
23 * Multi-select Input
24 */
25.rbt-input-multi {
26 cursor: text;
27 overflow: hidden;
28 position: relative;
29}
30.rbt-input-multi.focus {
31 border-color: #80bdff;
32 box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
33 color: #495057;
34 outline: 0;
35}
36.rbt-input-multi.form-control {
37 height: auto;
38}
39.rbt-input-multi.disabled {
40 background-color: #e9ecef;
41 opacity: 1;
42}
43.rbt-input-multi.is-invalid.focus {
44 border-color: #dc3545;
45 box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
46}
47.rbt-input-multi.is-valid.focus {
48 border-color: #28a745;
49 box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
50}
51.rbt-input-multi input::-moz-placeholder {
52 color: #6c757d;
53 opacity: 1;
54}
55.rbt-input-multi input:-ms-input-placeholder {
56 color: #6c757d;
57}
58.rbt-input-multi input::-webkit-input-placeholder {
59 color: #6c757d;
60}
61.rbt-input-multi .rbt-input-wrapper {
62 align-items: flex-start;
63 display: flex;
64 flex-wrap: wrap;
65 margin-bottom: -4px;
66 margin-top: -1px;
67 overflow: hidden;
68}
69.rbt-input-multi .rbt-input-main {
70 margin: 1px 0 4px;
71}
72
73/**
74 * Close Button
75 */
76.rbt-close {
77 z-index: 1;
78}
79.rbt-close-lg {
80 font-size: 1.5rem;
81}
82
83/**
84 * Token
85 */
86.rbt-token {
87 background-color: #e7f4ff;
88 border: 0;
89 border-radius: 0.25rem;
90 color: #007bff;
91 display: inline-flex;
92 line-height: 1rem;
93 margin: 1px 3px 2px 0;
94}
95.rbt-token .rbt-token-label {
96 padding: 0.25rem 0.5rem;
97}
98.rbt-token .rbt-token-label:not(:last-child) {
99 padding-right: 0.25rem;
100}
101.rbt-token-disabled {
102 background-color: rgba(0, 0, 0, 0.1);
103 color: #495057;
104 pointer-events: none;
105}
106.rbt-token-removeable {
107 cursor: pointer;
108}
109.rbt-token-active {
110 background-color: #007bff;
111 color: #fff;
112 outline: none;
113 text-decoration: none;
114}
115.rbt-token .rbt-token-remove-button {
116 background-image: none;
117 border-bottom-left-radius: 0;
118 border-top-left-radius: 0;
119 box-shadow: none;
120 color: inherit;
121 display: flex;
122 justify-content: center;
123 font-size: inherit;
124 font-weight: normal;
125 opacity: 1;
126 outline: none;
127 padding: 0.25rem 0.5rem;
128 padding-left: 0;
129 text-shadow: none;
130}
131.rbt-token .rbt-token-remove-button .rbt-close-content {
132 display: block;
133}
134
135/**
136 * Loader + CloseButton container
137 */
138.rbt-aux {
139 align-items: center;
140 display: flex;
141 bottom: 0;
142 justify-content: center;
143 pointer-events: none;
144 /* Don't block clicks on the input */
145 position: absolute;
146 right: 0;
147 top: 0;
148 width: 2rem;
149}
150.rbt-aux-lg {
151 width: 3rem;
152}
153.rbt-aux .rbt-close {
154 margin-top: -0.25rem;
155 pointer-events: auto;
156 /* Override pointer-events: none; above */
157}
158
159.has-aux .form-control {
160 padding-right: 2rem;
161}
162.has-aux .form-control.is-valid, .has-aux .form-control.is-invalid {
163 background-position: right 2rem center;
164 padding-right: 4rem;
165}
166
167.rbt-highlight-text {
168 background-color: inherit;
169 color: inherit;
170 font-weight: bold;
171 padding: 0;
172}
173
174/**
175 * Input Groups
176 */
177.input-group > .rbt {
178 flex: 1;
179}
180.input-group > .rbt .rbt-input-hint, .input-group > .rbt .rbt-aux {
181 z-index: 5;
182}
183.input-group > .rbt:not(:first-child) .form-control {
184 border-top-left-radius: 0;
185 border-bottom-left-radius: 0;
186}
187.input-group > .rbt:not(:last-child) .form-control {
188 border-top-right-radius: 0;
189 border-bottom-right-radius: 0;
190}
\No newline at end of file