Skip to content

Commit

Permalink
Fixed dark mode
Browse files Browse the repository at this point in the history
Fix search box laf
  • Loading branch information
dbrewster committed Aug 8, 2024
1 parent b7da32b commit fc978a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion webui/apps/docs/src/components/widgets/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const githubText = `<div style="height: 24px; width: 24px">${githubIcon}</div>`
""
)
}
<div id="docsearchbtn" class="mr-2"/>
<div id="docsearchbtn" class="mr-2 bg-gray-50 dark:bg-gray-500 rounded-md hover:border-primary dark:hover:border-primary border-2 border-gray-100 dark:border-gray-400"/>
<div style="display:flex; flex-direction: row; align-items: center; justify-content: center">
{
<Button href="https://github.com/eidolon-ai/eidolon" variant="link" class="py-2.5 px-2.0 font-semibold shadow-none hover:underline text-sm w-auto capitalize"
Expand Down
16 changes: 11 additions & 5 deletions webui/apps/docs/src/components/widgets/search.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
.DocSearch-Button {
--docsearch-searchbox-background: #fff;
border-radius: 6px;
border: 1px solid #eeeeee;
padding-right: 4px;
background: #f8f8f8;
background: transparent;
color: inherit;
margin: 0;
border: none;
}

.DocSearch-Button:hover {
background: transparent;
color: inherit;
border: none;
box-shadow: none;
}

.DocSearch-Button-Keys {
Expand Down
8 changes: 4 additions & 4 deletions webui/apps/docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const githubText = `<div style="height: 16px; width: 16px">${githubIcon}</div>&n
<div class="mb-16"/>

<ProductDescription
classes={{container: 'bg-gradient-to-b from-gray-100 to-white w-full'}}
classes={{container: 'bg-gradient-to-b from-gray-100 to-white w-full dark:bg-none'}}
title="What is Eidolon?"
subtitle="Eidolon AI is the industry's first AI Agent Server for the Enterprise. An Open Source framework, we empower developers to rapidly build & deploy GenAI Apps, dramatically increasing developer productivity."
itemSetup="Eidolon features 2 key capabilities:"
Expand Down Expand Up @@ -215,7 +215,7 @@ spec:
</Fragment>

<Fragment slot="bg">
<div class="absolute inset-0 dark:bg-blue-950 bg-gradient-to-b from-gray-100 to-white"></div>
<div class="absolute inset-0 dark:bg-blue-950 bg-gradient-to-b from-gray-100 to-white dark:bg-none"></div>
</Fragment>
</ContentWithTabs>

Expand Down Expand Up @@ -271,7 +271,7 @@ chatbot 3s`
</Fragment>

<Fragment slot="bg">
<div class="absolute inset-0 bg-gradient-to-b from-gray-100 to-white dark:bg-transparent"></div>
<div class="absolute inset-0 bg-gradient-to-b from-gray-100 to-white dark:bg-transparent dark:bg-none"></div>
</Fragment>
</ContentWithTabs>
<hr/>
Expand Down Expand Up @@ -344,7 +344,7 @@ expect(response).toContain("supportive community")`,
</Fragment>

<Fragment slot="bg">
<div class="absolute inset-0 bg-gradient-to-b from-gray-100 to-white dark:bg-blue-950"></div>
<div class="absolute inset-0 bg-gradient-to-b from-gray-100 to-white dark:bg-none dark:bg-blue-950 "></div>
</Fragment>
</ContentWithTabs>

Expand Down

0 comments on commit fc978a4

Please sign in to comment.