Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions website/src/components/ask-ai/css/AskAI.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
cursor: pointer;
}

/* One step darker than the search pill (emphasis-200), so the hover shows. */
.kite-ask-ai-option:hover {
background-color: var(--ifm-color-emphasis-200);
background-color: var(--ifm-color-emphasis-300);
}

.kite-ask-ai-icon {
Expand All @@ -33,8 +34,9 @@
padding: 3px 6px;
border-radius: 999px;
/* Muted neutral so it reads as "not yet available" (not a feature
highlight) and clears WCAG AA contrast in both color modes. */
background-color: var(--ifm-color-emphasis-200);
highlight). White, not gray, so the pill shows on the gray search
box. Gray-700 text on white clears WCAG AA. */
background-color: var(--ifm-color-emphasis-0);
color: var(--ifm-color-emphasis-700);
}

Expand Down
32 changes: 1 addition & 31 deletions website/src/components/custom-search/css/CustomSearch.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Segmented "Ask AI | Search" control in the navbar. Uses Infima theme
variables so it adapts to both light and dark color modes. */
variables for its colors. */
.kite-segmented-search {
display: flex;
align-items: stretch;
Expand Down Expand Up @@ -31,36 +31,6 @@
background-color: transparent;
}

/* In the blue navbar, use kite.ai's dark glass pill instead of the
theme's gray border. */
.navbar .kite-segmented-search {
border-color: var(--kite-glass-border);
border-radius: 12px;
background-color: var(--kite-glass-bg);
}

.navbar .kite-segmented-search .kite-ask-ai-option {
border-right-color: var(--kite-glass-border);
}

.navbar .kite-ask-ai-option:hover {
background-color: rgba(255, 255, 255, 0.12);
}

/* Translucent badge so it matches the glass pill. Keep the white tint
light: more tint lowers white-text contrast (0.12 gives about 5.1:1). */
.navbar .kite-ask-ai-badge {
background-color: rgba(255, 255, 255, 0.12);
color: #ffffff;
}

/* On hover the option already gets a white tint. Drop the badge's own
tint so the two do not stack (stacked gives about 4:1, below AA). */
.navbar .kite-ask-ai-option:hover .kite-ask-ai-badge {
background-color: transparent;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Keep the two halves visually divided. */
.kite-segmented-search .kite-ask-ai-option {
border-right: 1px solid var(--ifm-color-emphasis-300);
Expand Down
Loading
Loading