PH70248 commited on
Commit
8df43f1
·
verified ·
1 Parent(s): a7810e1

Deploy empty search suggestion feature (src/styles.css)

Browse files
Files changed (1) hide show
  1. src/styles.css +37 -0
src/styles.css CHANGED
@@ -1824,6 +1824,8 @@
1824
 
1825
  :root {
1826
  color-scheme: light;
 
 
1827
  --bg-0: #eef4f0;
1828
  --bg-1: #e8f0ec;
1829
  --bg-2: #f1eee7;
@@ -3315,6 +3317,41 @@ body {
3315
  outline: none;
3316
  }
3317
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3318
  .search-results {
3319
  --search-result-row: 50px;
3320
  position: absolute;
 
1824
 
1825
  :root {
1826
  color-scheme: light;
1827
+ --cursor-drag: grab;
1828
+ --cursor-dragging: grabbing;
1829
  --bg-0: #eef4f0;
1830
  --bg-1: #e8f0ec;
1831
  --bg-2: #f1eee7;
 
3317
  outline: none;
3318
  }
3319
 
3320
+ .search-suggestion {
3321
+ position: absolute;
3322
+ top: 50%;
3323
+ left: 48px;
3324
+ right: 48px;
3325
+ z-index: 2;
3326
+ overflow: hidden;
3327
+ border: 0;
3328
+ color: color-mix(in srgb, var(--muted) 54%, transparent);
3329
+ background: transparent;
3330
+ cursor: pointer;
3331
+ font-family: var(--font-ui);
3332
+ font-size: var(--micro-copy-size);
3333
+ font-weight: 560;
3334
+ letter-spacing: 0.07em;
3335
+ line-height: 1.2;
3336
+ padding: 0;
3337
+ text-align: left;
3338
+ text-overflow: ellipsis;
3339
+ transform: translateY(-50%);
3340
+ transition: color 0.16s ease, opacity 0.16s ease;
3341
+ white-space: nowrap;
3342
+ }
3343
+
3344
+ .search-suggestion:hover,
3345
+ .search-suggestion:focus-visible {
3346
+ color: color-mix(in srgb, var(--accent) 58%, var(--muted) 42%);
3347
+ outline: none;
3348
+ }
3349
+
3350
+ .search-suggestion[hidden],
3351
+ .search-capsule:has(input:not(:placeholder-shown)) .search-suggestion {
3352
+ display: none;
3353
+ }
3354
+
3355
  .search-results {
3356
  --search-result-row: 50px;
3357
  position: absolute;