Skip to content

Commit ffc8272

Browse files
Merge pull request steam-bell-92#1234 from prajwal2430/fix/Surprise-me-btn
Fix Surprise Me Button Active State Visibility Issue
2 parents e4dd0c6 + 63a328b commit ffc8272

1 file changed

Lines changed: 52 additions & 14 deletions

File tree

web-app/css/styles.css

Lines changed: 52 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -500,24 +500,46 @@ body.sidebar-active .sidebar-dock {
500500
.search-box {
501501
flex: 1;
502502
max-width: 400px;
503-
height: 42px;
503+
height: 48px;
504504
display: flex;
505505
align-items: center;
506-
gap: 10px;
507-
padding: 0 14px;
508-
border-radius: 12px;
509-
border: 1px solid var(--border);
510-
background: var(--bg-glass);
506+
gap: 12px;
507+
padding: 0 16px;
508+
border-radius: 14px;
509+
border: 2px solid var(--border);
510+
background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(255, 255, 255, 0.02));
511+
backdrop-filter: blur(8px);
511512
transition:
512-
border-color var(--duration-fast) ease,
513-
background var(--duration-fast) ease,
514-
box-shadow var(--duration-fast) ease;
513+
border-color var(--duration-base) var(--ease-out-expo),
514+
background var(--duration-base) var(--ease-out-expo),
515+
box-shadow var(--duration-base) var(--ease-out-expo),
516+
transform var(--duration-fast) ease;
517+
position: relative;
518+
overflow: hidden;
519+
}
520+
521+
.search-box::before {
522+
content: '';
523+
position: absolute;
524+
inset: 0;
525+
background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34, 197, 94, 0.1), transparent);
526+
opacity: 0;
527+
transition: opacity var(--duration-fast) ease;
528+
pointer-events: none;
529+
}
530+
531+
.search-box:hover {
532+
border-color: var(--accent);
533+
background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
534+
transform: translateY(-2px);
535+
box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
515536
}
516537

517538
.search-box i {
518-
color: var(--text-tertiary);
519-
font-size: 0.85rem;
539+
color: var(--text-secondary);
540+
font-size: 0.95rem;
520541
flex-shrink: 0;
542+
transition: all var(--duration-fast) ease;
521543
}
522544

523545
.search-box input {
@@ -526,23 +548,39 @@ body.sidebar-active .sidebar-dock {
526548
border: none;
527549
outline: none;
528550
color: var(--text);
529-
font-size: 0.9rem;
551+
font-size: 0.95rem;
530552
font-family: var(--font-sans);
553+
font-weight: 500;
531554
min-width: 0;
555+
letter-spacing: 0.3px;
556+
transition: color var(--duration-fast) ease;
532557
}
533558

534559
.search-box input::placeholder {
535560
color: var(--text-tertiary);
561+
font-weight: 400;
536562
}
537563

538564
.search-box:focus-within {
539565
border-color: var(--accent);
540-
background: var(--bg-elevated);
541-
box-shadow: var(--shadow-glow);
566+
background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
567+
box-shadow:
568+
0 12px 32px rgba(34, 197, 94, 0.25),
569+
inset 0 1px 3px rgba(34, 197, 94, 0.1);
570+
transform: translateY(-2px);
571+
}
572+
573+
.search-box:focus-within::before {
574+
opacity: 1;
542575
}
543576

544577
.search-box:focus-within i {
545578
color: var(--accent);
579+
transform: scale(1.1);
580+
}
581+
582+
.search-box:focus-within input {
583+
color: var(--text);
546584
}
547585

548586
.hero-search-note {

0 commit comments

Comments
 (0)