Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
.taxonomy {
  border: 1px solid var(--color-neutral-border);
  border-radius: 6px;
  padding: 4px 4px 0; // margin of last row of selected divs will work as padding
  width: max-content;
  max-width: 100%;
  position: relative;
 
  & > span {
    display: flex;
    align-items: center;
    line-height: 30px;
    padding: 0 4px; // 4px padding to stay on the same indent as selected
    margin-bottom: 4px; // also replaces padding to be consistent with selected divs
    white-space: nowrap;
    cursor: pointer;
  }
}
 
.taxonomy > span > svg {
  transform: rotate(-180deg);
}
 
.taxonomy_open > span > svg {
  transform: none;
}
 
.taxonomy__selected {
  display: flex;
  flex-wrap: wrap;
  min-height: 28px; // 24px button + 4px margin
 
  div {
    margin: 0 2px 4px 0;
    background: hsl(0deg 0% 95%);
    padding: 0; // all the right space should be a clickable button, so no padding
    border-radius: 4px;
    display: flex;
    align-items: center;
 
    span {
      padding-inline: 8px;
    }
  }
 
  input[type="button"] {
    border: none;
    background: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    padding: 0;
    line-height: 1;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary_link);
    margin-left: -8px; // to align with the right edge of the text
 
    &:hover {
      color: var(--color-negative-content);
    }
  }
}
 
.taxonomy__dropdown {
  position: absolute;
  z-index: 10;
  background: var(--color-neutral-background);
  border-radius: 6px;
  left: -1px;
  border: 1px solid var(--color-neutral-border);
  box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
 
  input[type="checkbox"] {
    margin-right: 4px;
    font-size: 20px;
    line-height: 30px;
    width: 0.7em;
    height: 1.4em;
 
    &:disabled {
      opacity: 0.5;
      pointer-events: none;
    }
  }
}
 
.taxonomy__search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-neutral-border);
  border-radius: 3px 3px 0 0;
  padding: 6px 16px;
  margin-bottom: 4px;
  box-shadow: 0 -2px 0 6px var(--color-neutral-background); // white background over scrolled items
  position: sticky;
  top: 0;
  z-index: 1;
 
  &:focus,
  &:focus-visible {
    outline: 1px solid var(--primary_link);
    border-bottom-color: var(--primary_link);
  }
}
 
.taxonomy__item ~ div {
  margin-left: 16px;
  width: calc(100% - 100px);
}
 
.taxonomy__measure {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  display: flex;
  padding-left: 43px;
  padding-right: 8px;
  line-height: 2em;
}
 
;
 
.taxonomy__item {
  display: flex;
 
  &:focus-within {
    background: var(--sand_200);
  }
 
  &_user,
  &_session {
    font-style: italic;
  }
 
  &_session {
    color: var(--primary_link);
  }
}
 
.taxonomy__item label {
  overflow-wrap: break-word;
  flex: 1;
  flex-grow: 1;
  width: max-content;
  line-height: 2em;
  padding-right: 8px;
}
 
.taxonomy__grouping {
  font-size: 16px;
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 2px 3px 0 0;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
  pointer-events: all;
  font-family: var(--font-mono);
 
  svg {
    transition: transform 0.1s; // visible rotation of arrow
  }
 
  &:not(:empty) {
    cursor: pointer;
  }
}
 
.taxonomy__extra {
  margin-left: auto;
  margin-right: 5px;
  opacity: 0.6;
  padding: 0 12px;
  width: 40px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; // 24px padding + 16px width for count/dots
  text-align: right;
  position: relative; // important for wide labels to not overlap counts with label
 
  &_actions {
    visibility: hidden;
    display: block;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
  }
 
  .taxonomy__item &_count:not(:last-child) {
    position: absolute;
  }
 
  .taxonomy__item:hover &_count:not(:last-child) {
    visibility: hidden;
    display: none;
  }
 
  .taxonomy__item:hover &_actions {
    visibility: visible;
    display: block;
  }
}
 
.taxonomy__action {
  zoom: 1; // something to apply this class
}
 
.taxonomy__add__container {
  margin-bottom: 8px;
}
 
.taxonomy__add {
  margin-left: 27px; // chevron 24px + 3px margin
  display: flex;
  align-items: center;
  opacity: 0.6;
 
  &::before {
    content: "+";
    width: 16px; // as checkbox
    padding: 4px 0;
    text-align: center;
    font-size: 18px;
    line-height: 0;
  }
}
 
.taxonomy__newitem {
  display: flex;
 
  [name="taxonomy__add"] {
    padding: 1px 2px;
    border: none;
    flex-grow: 1;
    margin-left: 45px;
    margin-right: 8px;
    font: inherit;
    font-style: italic;
    color: #09f;
    background: rgb(0 0 0 / 3%);
  }
}
 
.taxonomy__collapsable {
  cursor: pointer;
  color: var(--color-neutral-content-subtler);
}