fix for search dropdown

This commit is contained in:
mkb 2022-10-17 22:06:08 -06:00
parent f8899e9c5e
commit fb74b1fa5c
No known key found for this signature in database
9 changed files with 707 additions and 623 deletions

View file

@ -1,7 +1,7 @@
.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),
.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) {
--blockquote-border-color: rgb(var(--ctp-lavender));
--color-accent: var(--ctp-rosewater);
--ctp-accent: var(--ctp-lavender);
--divider-color-hover: rgb(var(--ctp-blue));
--hr-color: rgb(var(--ctp-blue));
--indentation-guide-color: rgb(var(--ctp-surface1));
@ -79,7 +79,7 @@
background-color: rgb(var(--ctp-lavender));
color: var(--text-on-accent);
& .suggestion-flair {
&:hover .suggestion-flair {
color: var(--text-on-accent);
}
}
@ -87,10 +87,21 @@
/*
* Search
*/
.search-suggest-item.is-selected:not(.mod-group) {
background-color: rgb(var(--ctp-lavender));
.suggestion .suggestion-item.mod-group {
background-color: inherit;
color: var(--text-muted);
font-size: var(--font-ui-medium);
font-variant: all-small-caps;
}
.search-suggest-item.is-selected {
background-color: rgb(var(--ctp-accent));
color: var(--text-on-accent);
.list-item-part.clickable-icon {
color: var(--text-muted);
}
.search-suggest-info-text {
color: var(--text-on-accent);
}

View file

@ -38,7 +38,8 @@
.workspace .mod-root .workspace-tabs.mod-stacked .workspace-tab-container,
.workspace-tab-header-inner-close-button:hover,
.workspace-tab-header.is-active .workspace-tab-header-inner-close-button:hover,
.workspace-tab-header-inner-close-button:hover {
.workspace-tab-header-inner-close-button:hover,
.suggestion :hover.list-item-part.clickable-icon[aria-label="Clear search history"] {
background-color: rgb(var(--ctp-red));
box-shadow: 0 0 0 1px rgb(var(--ctp-crust));
color: rgb(var(--ctp-base));

View file

@ -3,7 +3,7 @@
color: var(--text-on-accent);
}
.search-suggest-item.is-selected:not(.mod-group) {
.search-suggest-item.is-selected {
background-color: rgb(var(--ctp-accent));
color: var(--text-on-accent);
@ -12,11 +12,41 @@
}
}
.search-result-file-matched-text {
.suggestion .suggestion-item.mod-group {
background-color: inherit;
color: var(--text-muted);
font-size: var(--font-ui-medium);
font-variant: all-small-caps;
}
.search-suggest-item.is-selected {
background-color: rgb(var(--ctp-accent));
color: var(--text-on-accent);
.list-item-part.clickable-icon {
color: var(--text-muted);
}
.search-suggest-info-text {
color: var(--text-on-accent);
}
}
.list-item-part.clickable-icon:hover,
.list-item-part.clickable-icon:active {
background-color: rgb(var(--ctp-accent));
}
.search-result-file-match:hover {
background-color: rgb(var(--ctp-yellow));
color: var(--text-on-accent);
}
.search-result-file-match:hover .search-result-file-matched-text {
color: var(--text-on-accent);
}
.search-result-file-matched-text {
color: var(--text-on-accent);
}

View file

@ -71,7 +71,7 @@ body {
/* Collapse icons */
--collapse-icon-color: var(--text-faint);
--collapse-icon-color-collapsed: var(--text-accent);
--collapse-icon-color-collapsed: var(--text-muted);
/* Cursor */
--cursor: default;
@ -215,7 +215,7 @@ body {
--icon-m-stroke-width: 1.75px;
--icon-l-stroke-width: 1.75px;
--icon-color: var(--text-muted);
--icon-color-hover: var(--text-muted);
--icon-color-hover: var(--text-on-accent);
--icon-color-active: var(--text-accent);
--icon-color-focused: var(--text-normal);
--icon-opacity: 0.8;

View file

@ -1,8 +1,8 @@
@use "ctp-style-settings";
@use "shame";
@use "ctp-style-settings";
@use "full-palette";
@use "callouts";
@use "cmd-palette";
@use "full-palette";
@use "icons";
@use "search";
@use "settings";

View file

@ -373,3 +373,5 @@ input[type="number"]:focus-visible {
text-decoration-line: none;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 KiB

After

Width:  |  Height:  |  Size: 72 KiB

1262
theme.css

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long