Skip to content

Commit fb74b1f

Browse files
author
mkb
committed
fix for search dropdown
1 parent f8899e9 commit fb74b1f

9 files changed

+553
-469
lines changed

0.16.0 scss/_full-palette.scss

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.theme-dark:not(.ctp-accent-blue, .ctp-accent-flamingo, .ctp-accent-green, .ctp-accent-lavender, .ctp-accent-maroon, .ctp-accent-mauve, .ctp-accent-peach, .ctp-accent-pink, .ctp-accent-red, .ctp-accent-rosewater, .ctp-accent-sapphire, .ctp-accent-sky, .ctp-accent-teal, .ctp-accent-yellow),
22
.theme-light:not(.ctp-accent-blue, .ctp-accent-flamingo, .ctp-accent-green, .ctp-accent-lavender, .ctp-accent-maroon, .ctp-accent-mauve, .ctp-accent-peach, .ctp-accent-pink, .ctp-accent-red, .ctp-accent-rosewater, .ctp-accent-sapphire, .ctp-accent-sky, .ctp-accent-teal, .ctp-accent-yellow) {
33
--blockquote-border-color: rgb(var(--ctp-lavender));
4-
--color-accent: var(--ctp-rosewater);
4+
--ctp-accent: var(--ctp-lavender);
55
--divider-color-hover: rgb(var(--ctp-blue));
66
--hr-color: rgb(var(--ctp-blue));
77
--indentation-guide-color: rgb(var(--ctp-surface1));
@@ -79,18 +79,29 @@
7979
background-color: rgb(var(--ctp-lavender));
8080
color: var(--text-on-accent);
8181

82-
& .suggestion-flair {
82+
&:hover .suggestion-flair {
8383
color: var(--text-on-accent);
8484
}
8585
}
8686

8787
/*
8888
* Search
8989
*/
90-
.search-suggest-item.is-selected:not(.mod-group) {
91-
background-color: rgb(var(--ctp-lavender));
90+
.suggestion .suggestion-item.mod-group {
91+
background-color: inherit;
92+
color: var(--text-muted);
93+
font-size: var(--font-ui-medium);
94+
font-variant: all-small-caps;
95+
}
96+
97+
.search-suggest-item.is-selected {
98+
background-color: rgb(var(--ctp-accent));
9299
color: var(--text-on-accent);
93100

101+
.list-item-part.clickable-icon {
102+
color: var(--text-muted);
103+
}
104+
94105
.search-suggest-info-text {
95106
color: var(--text-on-accent);
96107
}

0.16.0 scss/_icons.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container,
3939
.workspace-tab-header-inner-close-button:hover,
4040
.workspace-tab-header.is-active .workspace-tab-header-inner-close-button:hover,
41-
.workspace-tab-header-inner-close-button:hover {
41+
.workspace-tab-header-inner-close-button:hover,
42+
.suggestion :hover.list-item-part.clickable-icon[aria-label="Clear search history"] {
4243
background-color: rgb(var(--ctp-red));
4344
box-shadow: 0 0 0 1px rgb(var(--ctp-crust));
4445
color: rgb(var(--ctp-base));

0.16.0 scss/_search.scss

+32-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
color: var(--text-on-accent);
44
}
55

6-
.search-suggest-item.is-selected:not(.mod-group) {
6+
.search-suggest-item.is-selected {
77
background-color: rgb(var(--ctp-accent));
88
color: var(--text-on-accent);
99

@@ -12,11 +12,41 @@
1212
}
1313
}
1414

15-
.search-result-file-matched-text {
15+
.suggestion .suggestion-item.mod-group {
16+
background-color: inherit;
17+
color: var(--text-muted);
18+
font-size: var(--font-ui-medium);
19+
font-variant: all-small-caps;
20+
}
21+
22+
.search-suggest-item.is-selected {
23+
background-color: rgb(var(--ctp-accent));
1624
color: var(--text-on-accent);
25+
26+
.list-item-part.clickable-icon {
27+
color: var(--text-muted);
28+
}
29+
30+
.search-suggest-info-text {
31+
color: var(--text-on-accent);
32+
}
33+
}
34+
35+
.list-item-part.clickable-icon:hover,
36+
.list-item-part.clickable-icon:active {
37+
background-color: rgb(var(--ctp-accent));
1738
}
1839

1940
.search-result-file-match:hover {
41+
background-color: rgb(var(--ctp-yellow));
42+
color: var(--text-on-accent);
43+
}
44+
45+
.search-result-file-match:hover .search-result-file-matched-text {
46+
color: var(--text-on-accent);
47+
}
48+
49+
.search-result-file-matched-text {
2050
color: var(--text-on-accent);
2151
}
2252

0.16.0 scss/_shame.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ body {
7171

7272
/* Collapse icons */
7373
--collapse-icon-color: var(--text-faint);
74-
--collapse-icon-color-collapsed: var(--text-accent);
74+
--collapse-icon-color-collapsed: var(--text-muted);
7575

7676
/* Cursor */
7777
--cursor: default;
@@ -215,7 +215,7 @@ body {
215215
--icon-m-stroke-width: 1.75px;
216216
--icon-l-stroke-width: 1.75px;
217217
--icon-color: var(--text-muted);
218-
--icon-color-hover: var(--text-muted);
218+
--icon-color-hover: var(--text-on-accent);
219219
--icon-color-active: var(--text-accent);
220220
--icon-color-focused: var(--text-normal);
221221
--icon-opacity: 0.8;

0.16.0 scss/base.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
@use "ctp-style-settings";
21
@use "shame";
2+
@use "ctp-style-settings";
3+
@use "full-palette";
34
@use "callouts";
45
@use "cmd-palette";
5-
@use "full-palette";
66
@use "icons";
77
@use "search";
88
@use "settings";

0.16.0 scss/ctp-style-settings.scss

+2
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,5 @@ input[type="number"]:focus-visible {
373373
text-decoration-line: none;
374374
}
375375
}
376+
377+

assets/screenshot.png

-446 KB
Loading

0 commit comments

Comments
 (0)