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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
@import colors
div.tag-input
position: relative
.main-control
display: flex
input
flex: 5
button
flex: 1
margin: 0 0 0 0.5em
.tag-suggestions
position: absolute
z-index: 5
top: 0
left: 100%
&:not(.shown)
display: none
&.translucent
opacity: .5
&:before
margin-left: 0.5em
margin-top: 0.5em
position: absolute
display: block
background: $tag-suggestions-header-color
border-left: 1px solid $tag-suggestions-border-color
border-bottom: 1px solid $tag-suggestions-border-color
width: 0.707107em
height: 0.707107em
content: ' '
transform: rotate(45deg)
transform-origin: 0 0%
.buttons
float: right
a
margin-left: 1em
color: $inactive-link-color
.wrapper
margin-left: 0.5em
background: $window-color
border: 1px solid $tag-suggestions-border-color
width: 15em
word-break: break-all
p
background: $tag-suggestions-header-color
padding: 0.2em 1em
margin: 0
ul
list-style-type: none
margin: 0
overflow-y: auto
overflow-x: none
max-height: 20em
padding: 0.5em 1em 0 1em
li:last-child
border-bottom: 0.5em solid alpha($window-color, 0)
li
margin: 0
font-size: 90%
line-height: 1.3
a, span
display: inline-block
vertical-align: bottom
.add-tag
white-space: nowrap
overflow: hidden
max-width: 10em
text-overflow: ellipsis
.tag-weight
margin: 0 1em 0 0
p
margin: 0
.append
color: $inactive-link-color
margin-left: 0.7em
font-size: 90%
unselectable()
@keyframes tag-added-to-post
from
max-height: 0
to
max-height: 5em
ul.compact-tags
width: 100%
margin: 0.5em 0 0 0
padding: 0
li
margin: 0
width: 100%
line-height: 140%
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
transition: background-color 0.5s linear
a
display: inline
a:focus
outline: 0
box-shadow: inset 0 0 0 2px $main-color
// these 3 added when tag is added to ul
&.added, &.new, &.implication
animation: tag-added-to-post 1s ease forwards
&.implication
color: $implied-tag-text-color
background-color: $implied-tag-background-color
&.new
color: $new-tag-text-color
background-color: $new-tag-background-color
&.duplicate
color: $duplicate-tag-text-color
background-color: $duplicate-tag-background-color
i
padding-right: 0.4em
.darktheme ul.compact-tags
li
&.new
background-color: darken($new-tag-background-color, 80%)
&.implication
background-color: darken($implied-tag-background-color, 85%)
&.duplicate
background-color: darken($duplicate-tag-background-color, 80%)
div.tag-input, ul.compact-tags
.tag-usages, .tag-weight, .remove-tag
color: $inactive-link-color
unselectable()
.tag-usages, .tag-weight
font-size: 90%
.tag-usages, .tag-weight
margin-left: 0.7em
.remove-tag
margin-right: 0.5em
.darktheme
div.tag-input .tag-suggestions
.buttons a
color: $inactive-link-color-darktheme
.wrapper
background: $window-color-darktheme
ul li:last-child
border-bottom: 0.5em solid alpha($window-color-darktheme, 0)
p
background: darken($tag-suggestions-header-color, 80%)
.append
color: $inactive-link-color-darktheme
div.tag-input, ul.compact-tags
.tag-usages, .tag-weight, .remove-tag
color: $inactive-link-color-darktheme
|