Skip to content

Commit

Permalink
[Docs] Changes for Experimental AI (#23714)
Browse files Browse the repository at this point in the history
* Changes for Experimental AI

* Change Ask AI gradient color
  • Loading branch information
samiahmedsiddiqui committed Aug 29, 2024
1 parent 8a0d6ff commit 2b30b5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions docs/assets/scss/_yb_kapa_ai.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ body {
cursor: pointer;
display: flex;
padding: 4px 15px 4px 12px;
background: linear-gradient(91deg, #ED35EC 3.97%, #ED35C5 50.03%, #5E60F0 60.12%);
background: linear-gradient(91deg, #ED35EC 3.97%, #ED35C5 33%, #5E60F0 50%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
Expand Down Expand Up @@ -119,22 +119,6 @@ body {
>span.tritiery-btn:not(.btn-priority) > img {
display: block;
}

>span.tritiery-btn:not(.btn-priority) > span {
font-size: 0px;
}

>span.tritiery-btn:not(.btn-priority) > span:after {
content: 'Use AI';
font-size: 13px;
display: block !important;
position: relative;
top: -7px;
background: linear-gradient(91deg, #ED35EC 3.97%, #ED35C5 50.03%, #5E60F0 80.11%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}

@media (max-width: 450px) {
Expand Down
2 changes: 1 addition & 1 deletion docs/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ copyright = "Yugabyte, Inc."
privacy_policy = "https://www.yugabyte.com/privacy-policy/"
kapa_ai = true
drift_snippet = true
search_banner = true
search_banner = false
version_menu = "Releases"

# Change version_menu_pagelinks to true to go to the same page when you switch
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>

{{- if .Site.Params.kapa_ai -}}
<div class="ask-ai-top">OR <span class="tritiery-btn" title="Use Experimental AI"><span>Use Experimental AI</span><img width="18" height="18" src="/icons/pixi-dust.svg" alt="Use Experimental AI"></span></div>
<div class="ask-ai-top">OR <span class="tritiery-btn" title="Ask AI"><span>Ask AI</span><img width="18" height="18" src="/icons/pixi-dust.svg" alt="Ask AI"></span></div>
{{- end -}}

<div class="td-navbar-nav-scroll ms-md-auto" id="main_navbar">
Expand Down

0 comments on commit 2b30b5e

Please sign in to comment.