-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.css
124 lines (122 loc) · 2.14 KB
/
index.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.tag-picker__text,
.tag-picker__tag {
align-items: center;
border: 1px solid;
border-color: inherit;
display: flex;
gap: 0.25em;
justify-content: center;
overflow: hidden;
padding: 0 0.25em;
position: relative;
text-decoration: none;
}
.tag-picker,
.tag-picker * {
box-sizing: border-box;
color: inherit;
font: inherit;
outline: 0;
}
.tag-picker {
border: 1px solid;
cursor: text;
display: inline-flex;
flex-wrap: wrap;
position: relative;
vertical-align: middle;
}
.tag-picker__self {
left: -9999px;
position: fixed;
top: -9999px;
}
.tag-picker__self:disabled + .tag-picker {
color: rgb(128, 128, 128);
}
.tag-picker__self:disabled + .tag-picker,
.tag-picker__self:disabled + .tag-picker * {
cursor: not-allowed;
}
.tag-picker__self:read-only + .tag-picker .tag-picker__x {
cursor: not-allowed;
}
.tag-picker__tag {
cursor: pointer;
}
.tag-picker__tag:focus {
outline: 2px solid;
outline-offset: -2px;
}
.tag-picker__tag--selected {
background: rgba(0, 0, 255, 0.5);
}
.tag-picker__tag ::selection {
background-color: transparent;
color: inherit;
}
.tag-picker__tag + .tag-picker__text span + span {
display: none;
}
.tag-picker__tags {
border-color: inherit;
display: flex;
flex-wrap: wrap;
flex: 1;
gap: 1px;
padding: 1px;
}
.tag-picker__text {
border-color: transparent;
flex: 1;
}
.tag-picker__text span {
flex: 1;
position: relative;
z-index: 1;
}
.tag-picker__text span::after {
content: "";
}
.tag-picker__text span * {
display: inline;
}
.tag-picker__text span br {
display: none;
}
.tag-picker__text span + span {
align-items: center;
bottom: 0;
display: flex;
left: 0;
opacity: 0.5;
padding: inherit;
position: absolute;
right: 0;
top: 0;
white-space: nowrap;
z-index: 0;
}
.tag-picker__x {
height: 1em;
line-height: 0;
margin-right: -0.125em;
position: relative;
width: 1em;
}
.tag-picker__x::after,
.tag-picker__x::before {
border: 1px solid;
bottom: 0;
content: "";
left: 50%;
margin-left: -1px;
position: absolute;
top: 0;
}
.tag-picker__x::after {
transform: rotate(45deg);
}
.tag-picker__x::before {
transform: rotate(135deg);
}