Skip to content

Commit b305320

Browse files
committed
style: improve spotlight look and feel
1 parent c577f47 commit b305320

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed
Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
1-
.spotlightButton{
1+
.content {
2+
border: solid 1px
3+
light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
4+
}
5+
6+
.actionLabel {
7+
font-size: var(--mantine-font-size-sm);
8+
}
9+
10+
.spotlightButton {
211
display: flex;
312
align-items: center;
413
justify-content: space-between;
5-
14+
615
height: 2.5rem;
716
padding: 0rem 0.375rem;
817

9-
border: 0.0625rem solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
18+
border: 0.0625rem solid
19+
light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
1020
border-radius: var(--mantine-radius-sm);
11-
background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-6));
12-
13-
font-size: var(--mantine-font-size-sm);
21+
background-color: light-dark(
22+
var(--mantine-color-white),
23+
var(--mantine-color-dark-7)
24+
);
1425

26+
font-size: var(--mantine-font-size-sm);
1527

1628
.spotlightButtonSection {
1729
display: flex;
1830
align-items: center;
1931
gap: 0.25rem;
2032
}
2133

22-
2334
&.minimalMode {
2435
width: 2.5rem;
2536
padding: 0.5rem;
@@ -30,24 +41,30 @@
3041
}
3142
}
3243

44+
&:hover {
45+
background-color: light-dark(
46+
var(--mantine-color-gray-1),
47+
var(--mantine-color-dark-6)
48+
);
49+
}
3350
}
3451

3552
.overlay {
36-
@mixin light {
37-
background: linear-gradient(
38-
165deg,
39-
rgba(173, 181, 189, 0.2) 80%,
40-
rgba(117, 183, 151, 0.2) 100%
41-
);
42-
}
53+
@mixin light {
54+
background: linear-gradient(
55+
165deg,
56+
rgba(173, 181, 189, 0.2) 80%,
57+
rgba(117, 183, 151, 0.2) 100%
58+
);
59+
backdrop-filter: none;
60+
}
4361

44-
@mixin dark {
45-
background: rgba(0, 0, 0, 0.3);
46-
backdrop-filter: blur(3px);
47-
}
62+
@mixin dark {
63+
background: rgba(0, 0, 0, 0.3);
64+
backdrop-filter: none;
65+
}
4866
}
4967

50-
5168
.empty {
52-
font-size: var(--mantine-font-size-sm)
53-
}
69+
font-size: var(--mantine-font-size-sm);
70+
}

src/app/shell/Spotlight/Spotlight.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export default function SpotlightCard({
163163
leftSection: <IconSearch size={18} stroke={2} />,
164164
placeholder: "Search...",
165165
}}
166+
transitionProps={{transition: "pop", duration: 100}}
166167
/>
167168
</>
168169
);

0 commit comments

Comments
 (0)