|
151 | 151 | } |
152 | 152 |
|
153 | 153 | #snippets-list-header { |
154 | | - display: flex; |
155 | | - align-items: center; |
156 | | - padding: 6px 13px; |
| 154 | + display: block; |
| 155 | + padding: 4px 12px 4px 16px; |
157 | 156 | margin: 0; |
158 | 157 | border: none; |
159 | | - font-weight: 700; |
160 | 158 | background-color: #c2c7c7; |
| 159 | + font-size: 0; |
| 160 | + white-space: nowrap; |
| 161 | + line-height: 20px; |
161 | 162 |
|
162 | 163 | .dark & { |
163 | 164 | background-color: #202020; |
|
166 | 167 |
|
167 | 168 | #snippet-abbr-header, |
168 | 169 | #snippet-abbr { |
169 | | - flex: 1; |
| 170 | + width: 15%; |
170 | 171 | min-width: 80px; |
| 172 | + display: inline-block; |
| 173 | + vertical-align: middle; |
| 174 | + box-sizing: border-box; |
| 175 | + font-size: 14px; |
| 176 | + font-weight: 500; |
| 177 | + line-height: 20px; |
| 178 | + white-space: nowrap; |
| 179 | + overflow: hidden; |
| 180 | + text-overflow: ellipsis; |
171 | 181 | } |
172 | 182 |
|
173 | 183 | #snippet-template-header, |
174 | 184 | #snippet-template { |
175 | | - flex: 2.4; |
176 | | - min-width: 100px; |
| 185 | + width: 35%; |
| 186 | + min-width: 120px; |
| 187 | + display: inline-block; |
| 188 | + vertical-align: middle; |
| 189 | + padding: 0 12px; |
| 190 | + box-sizing: border-box; |
| 191 | + font-size: 14px; |
| 192 | + font-weight: 500; |
| 193 | + line-height: 20px; |
| 194 | + white-space: nowrap; |
| 195 | + overflow: hidden; |
| 196 | + text-overflow: ellipsis; |
177 | 197 | } |
178 | 198 |
|
179 | 199 | #snippet-description-header, |
180 | 200 | #snippet-description { |
181 | | - flex: 1.5; |
182 | | - min-width: 80px; |
| 201 | + width: 25%; |
| 202 | + min-width: 100px; |
| 203 | + display: inline-block; |
| 204 | + vertical-align: middle; |
| 205 | + padding: 0 12px; |
| 206 | + box-sizing: border-box; |
| 207 | + font-size: 14px; |
| 208 | + font-weight: 500; |
| 209 | + line-height: 20px; |
| 210 | + white-space: nowrap; |
| 211 | + overflow: hidden; |
| 212 | + text-overflow: ellipsis; |
183 | 213 | } |
184 | 214 |
|
185 | 215 | #snippet-file-extension-header, |
186 | 216 | #snippet-files { |
187 | | - flex: 0.8; |
| 217 | + width: 15%; |
188 | 218 | min-width: 60px; |
| 219 | + display: inline-block; |
| 220 | + vertical-align: middle; |
189 | 221 | text-align: center; |
| 222 | + box-sizing: border-box; |
| 223 | + font-size: 14px; |
| 224 | + font-weight: 500; |
| 225 | + line-height: 20px; |
| 226 | + white-space: nowrap; |
| 227 | + overflow: hidden; |
| 228 | + text-overflow: ellipsis; |
| 229 | +} |
| 230 | + |
| 231 | +#snippet-actions-header { |
| 232 | + width: 10%; |
| 233 | + min-width: 40px; |
| 234 | + display: inline-block; |
| 235 | + vertical-align: middle; |
| 236 | + box-sizing: border-box; |
| 237 | + font-size: 14px; |
| 238 | + font-weight: 500; |
| 239 | + line-height: 20px; |
190 | 240 | } |
191 | 241 |
|
192 | 242 | .snippet-item { |
193 | | - display: flex; |
194 | | - align-items: center; |
195 | | - padding: 4px 12px 4px 16px; |
| 243 | + display: block; |
| 244 | + padding: 2px 12px 2px 16px; |
196 | 245 | margin: 0; |
197 | 246 | border-bottom: 1px solid transparent; |
198 | 247 | background-color: @bc-panel-bg; |
199 | 248 | color: @bc-text; |
200 | | - line-height: 16px; |
201 | 249 | position: relative; |
202 | 250 | cursor: pointer; |
203 | 251 | transition: background-color 0.1s ease; |
| 252 | + font-size: 0; |
| 253 | + white-space: nowrap; |
| 254 | + line-height: 20px; |
204 | 255 |
|
205 | 256 | .dark & { |
206 | 257 | background-color: @dark-bc-panel-bg; |
|
238 | 289 | } |
239 | 290 | } |
240 | 291 |
|
| 292 | +#snippet-abbr-header { |
| 293 | + color: @bc-text; |
| 294 | + |
| 295 | + .dark & { |
| 296 | + color: @dark-bc-text; |
| 297 | + } |
| 298 | +} |
| 299 | + |
241 | 300 | #snippet-abbr { |
242 | 301 | color: @bc-text; |
243 | | - white-space: nowrap; |
244 | | - overflow: hidden; |
245 | | - text-overflow: ellipsis; |
| 302 | + |
| 303 | + .dark & { |
| 304 | + color: @dark-bc-text; |
| 305 | + } |
| 306 | +} |
| 307 | + |
| 308 | +#snippet-template-header { |
| 309 | + color: @bc-text; |
246 | 310 |
|
247 | 311 | .dark & { |
248 | 312 | color: @dark-bc-text; |
249 | 313 | } |
250 | 314 | } |
251 | 315 |
|
252 | 316 | #snippet-template { |
253 | | - margin: 0 12px; |
254 | 317 | color: @bc-text-thin; |
255 | | - white-space: nowrap; |
256 | | - overflow: hidden; |
257 | | - text-overflow: ellipsis; |
258 | 318 |
|
259 | 319 | .dark & { |
260 | 320 | color: @dark-bc-text-thin; |
261 | 321 | } |
262 | 322 | } |
263 | 323 |
|
| 324 | +#snippet-description-header { |
| 325 | + color: @bc-text; |
| 326 | + |
| 327 | + .dark & { |
| 328 | + color: @dark-bc-text; |
| 329 | + } |
| 330 | +} |
| 331 | + |
264 | 332 | #snippet-description { |
265 | | - margin: 0 12px; |
266 | 333 | color: @bc-text-thin-quiet; |
267 | | - white-space: nowrap; |
268 | | - overflow: hidden; |
269 | | - text-overflow: ellipsis; |
270 | 334 |
|
271 | 335 | .dark & { |
272 | 336 | color: @dark-bc-text-thin-quiet; |
273 | 337 | } |
274 | 338 | } |
275 | 339 |
|
| 340 | +#snippet-file-extension-header { |
| 341 | + color: @bc-text; |
| 342 | + |
| 343 | + .dark & { |
| 344 | + color: @dark-bc-text; |
| 345 | + } |
| 346 | +} |
| 347 | + |
276 | 348 | #snippet-files { |
277 | 349 | color: @bc-text-thin-quiet; |
278 | | - white-space: nowrap; |
279 | | - overflow: hidden; |
280 | | - text-overflow: ellipsis; |
281 | 350 |
|
282 | 351 | .dark & { |
283 | 352 | color: @dark-bc-text-thin-quiet; |
284 | 353 | } |
285 | 354 | } |
286 | 355 |
|
287 | 356 | .delete-snippet-btn { |
| 357 | + width: 10%; |
| 358 | + min-width: 40px; |
| 359 | + display: inline-block; |
| 360 | + vertical-align: middle; |
| 361 | + box-sizing: border-box; |
288 | 362 | color: @bc-text-thin-quiet; |
289 | 363 | cursor: pointer; |
290 | 364 | opacity: 0.3; |
291 | 365 | transition: opacity 0.1s ease; |
292 | | - display: flex; |
293 | | - align-items: center; |
294 | | - justify-content: center; |
295 | | - font-size: 0.9rem; |
296 | | - padding: 3px 6px; |
| 366 | + text-align: center; |
| 367 | + font-size: 14px; |
| 368 | + line-height: 20px; |
| 369 | + padding: 0; |
297 | 370 |
|
298 | 371 | .dark & { |
299 | 372 | color: @dark-bc-text-thin-quiet; |
|
309 | 382 | } |
310 | 383 |
|
311 | 384 | i { |
312 | | - width: 12px; |
313 | | - height: 12px; |
314 | | - display: flex; |
315 | | - align-items: center; |
316 | | - justify-content: center; |
| 385 | + display: inline-block; |
| 386 | + text-align: center; |
| 387 | + font-size: 12px; |
| 388 | + line-height: 20px; |
| 389 | + vertical-align: middle; |
317 | 390 | } |
318 | 391 | } |
319 | 392 |
|
|
0 commit comments