forked from loopj/jquery-tokeninput
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjquery.tokeninput.less
More file actions
95 lines (83 loc) · 1.58 KB
/
Copy pathjquery.tokeninput.less
File metadata and controls
95 lines (83 loc) · 1.58 KB
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
ul.token-input-list {
display: flex;
flex-direction: column;
flex-flow: row wrap;
margin: 0;
padding: 0;
cursor: text;
> li {
flex: 0 0 auto;
list-style-type: none;
margin: .25em;
padding: .25em .5em;
white-space: nowrap;
cursor: default;
&:not(.input) {
background: #eff2f7;
border: 1px solid #b9c7ce;
border-radius: 4px;
}
&.input {
flex: 1 0 auto;
}
&.active {
background: #08844e;
background: darken(#eff2f7, 5%);
border: 1px solid darken(#b9c7ce, 5%);
.delete {
color: #bbb;
}
}
.delete {
float: right;
color: #a6b3cf;
margin-left: .5em;
font-weight: bold;
cursor: pointer;
}
input {
width: 100%;
padding: 0;
margin: 0;
border: none;
background: transparent;
-webkit-appearance: caret;
outline: none;
}
}
}
.token-input-dropdown {
position: absolute;
margin: 0;
padding: .25em .5em;
background: #fff;
border: 1px solid #f9f9f9;
border-radius: 4px;
cursor: default;
box-shadow: 0 .5em 1em rgba(0, 0, 0, 0.175);
ul {
margin: 0;
padding: 0;
> li {
display: block;
list-style-type: none;
padding: .25em .5em;
background: #fff;
white-space: nowrap;
cursor: pointer;
&:nth-child(odd) {
background: #fff;
}
&:nth-child(even) {
background: #fff;
}
&:hover {
background: #d0efa0;
}
em {
font-weight: bold;
font-style: normal;
}
}
}
}