2 * Copyright 2016 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 @-webkit-keyframes blink {
18 border-color: #ededed;
21 border-color: #b94a48;
24 @-moz-keyframes blink {
26 border-color: #ededed;
29 border-color: #b94a48;
34 border-color: #ededed;
37 border-color: #b94a48;
46 border-color: #66afe9;
48 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
49 box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
52 -webkit-box-sizing: border-box;
53 -moz-box-sizing: border-box;
54 box-sizing: border-box;
55 -webkit-border-radius: 3px;
56 -moz-border-radius: 3px;
58 display: inline-block;
59 border: 1px solid #d9d9d9;
60 background-color: #ededed;
62 margin: 2px 5px 5px 0;
67 .tokenfield .token:hover {
68 border-color: #b9b9b9;
70 .tokenfield .token.active {
71 border-color: #52a8ec;
72 border-color: rgba(82, 168, 236, 0.8);
74 .tokenfield .token.duplicate {
75 border-color: #ebccd1;
76 -webkit-animation-name: blink;
77 animation-name: blink;
78 -webkit-animation-duration: 0.1s;
79 animation-duration: 0.1s;
80 -webkit-animation-direction: normal;
81 animation-direction: normal;
82 -webkit-animation-timing-function: ease;
83 animation-timing-function: ease;
84 -webkit-animation-iteration-count: infinite;
85 animation-iteration-count: infinite;
87 .tokenfield .token.invalid {
89 border: 1px solid transparent;
90 -webkit-border-radius: 0;
91 -moz-border-radius: 0;
93 border-bottom: 1px dotted #d9534f;
95 .tokenfield .token.invalid.active {
97 border: 1px solid #ededed;
98 -webkit-border-radius: 3px;
99 -moz-border-radius: 3px;
102 .tokenfield .token .token-label {
103 display: inline-block;
105 text-overflow: ellipsis;
109 .tokenfield .token .close {
111 display: inline-block;
121 .tokenfield .token-input {
129 -webkit-box-shadow: none;
132 .tokenfield .token-input:focus {
133 border-color: transparent;
136 -webkit-box-shadow: none;
139 .tokenfield.disabled {
141 background-color: #eeeeee;
143 .tokenfield.disabled .token-input {
146 .tokenfield.disabled .token:hover {
148 border-color: #d9d9d9;
150 .tokenfield.disabled .token:hover .close {
153 filter: alpha(opacity=20);
155 .has-warning .tokenfield.focus {
156 border-color: #66512c;
157 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
158 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
160 .has-error .tokenfield.focus {
161 border-color: #843534;
162 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
163 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
165 .has-success .tokenfield.focus {
166 border-color: #2b542c;
167 -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
168 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
170 .tokenfield.input-sm,
171 .input-group-sm .tokenfield {
175 .input-group-sm .token,
176 .tokenfield.input-sm .token {
180 .input-group-sm .token-input,
181 .tokenfield.input-sm .token-input {
185 .tokenfield.input-lg,
186 .input-group-lg .tokenfield {
191 .input-group-lg .token,
192 .tokenfield.input-lg .token {
195 .input-group-lg .token-label,
196 .tokenfield.input-lg .token-label {
199 .input-group-lg .token .close,
200 .tokenfield.input-lg .token .close {
203 .input-group-lg .token-input,
204 .tokenfield.input-lg .token-input {
214 .tokenfield.rtl .token {
215 margin: -1px 0 5px 5px;
217 .tokenfield.rtl .token .token-label {