forked from jcubic/tagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tagger.css
84 lines (84 loc) · 1.69 KB
/
tagger.css
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
/**@license
* _____
* |_ _|___ ___ ___ ___ ___
* | | | .'| . | . | -_| _|
* |_| |__,|_ |_ |___|_|
* |___|___| version 0.2.0
*
* Tagger - Vanilla JavaScript Tag Editor
*
* Copyright (c) 2018-2019 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*/
.tagger {
border: 1px solid #909497;
}
.tagger input[type="hidden"] {
/* fix for bootsrap */
display: none;
}
.tagger > ul {
display: flex;
width: 100%;
align-items: center;
padding: 4px 6px;
justify-content: space-between;
box-sizing: border-box;
height: 38px;
}
.tagger ul {
margin: 0;
list-style: none;
}
.tagger > ul > li:not(.tagger-new) + li {
padding-left: 10px;
}
.tagger > ul > li:not(.tagger-new) a,
.tagger > ul > li:not(.tagger-new) a:visited,
.tagger-new ul a,
.tagger-new ul a:visited {
color: black;
}
.tagger > ul > li:not(.tagger-new) > a,
.tagger li:not(.tagger-new) > span,
.tagger .tagger-new ul {
padding: 4px 4px 4px 8px;
background: #B1C3D7;
border: 1px solid #4181ed;
border-radius: 3px;
}
.tagger li a.close {
padding: 4px;
margin-left: 4px;
/* for bootsrap */
float: none;
filter: alpha(opacity=100);
opacity: 1;
font-size: 16px;
line-height: 16px;
}
.tagger li a.close:hover {
color: white;
}
.tagger li:not(.tagger-new) a {
text-decoration: none;
}
.tagger .tagger-new input {
border: none;
outline: none;
box-shadow: none;
width: 100%;
padding-left: 0;
background: transparent;
}
.tagger .tagger-new {
flex-grow: 1;
position: relative;
}
.tagger .tagger-new ul {
padding: 5px;
}
.tagger .tagger-completion {
position: absolute;
z-index: 100;
}