Skip to content

Commit c932e46

Browse files
authored
PG-2488 - Add Kapa AI (14) Backport (#998)
This PR backports #990 to implement Kapa AI.
1 parent cac48a8 commit c932e46

9 files changed

Lines changed: 169 additions & 379 deletions

File tree

_resource/overrides/main.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
{# Import the theme's layout. #}
77
{% extends "base.html" %}
88

9-
10-
{% block scripts %}
11-
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
12-
{{ super() }}
13-
{% endblock %}
14-
159
{% block extrahead %}
1610
{{ super() }}
1711
{% set title = config.site_name %}

_resourcepdf/overrides/main.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
{% endblock %}
3434

3535
{% block scripts %}
36-
37-
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
3836
{{ super() }}
37+
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
3938
{% endblock %}
4039

4140
{% block extrahead %}
23.4 KB
Loading

docs/css/kapa.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
button#ask-percona-ai {
2+
display: inline-flex;
3+
align-items: center;
4+
justify-content: center;
5+
6+
gap: 0.45rem;
7+
8+
/* Match MkDocs Material search field */
9+
height: 1.8rem;
10+
padding: 0 0.9rem;
11+
margin-left: 0.5rem;
12+
13+
border: none;
14+
border-radius: 0.1rem;
15+
16+
background: #05469F;
17+
color: #B8C8E2;
18+
19+
box-shadow: var(--md-shadow-z1);
20+
21+
cursor: pointer;
22+
23+
font-family: inherit;
24+
font-size: 0.8rem;
25+
font-weight: 400;
26+
line-height: 1;
27+
28+
white-space: nowrap;
29+
30+
transition:
31+
background-color 0.25s ease,
32+
box-shadow 0.25s ease;
33+
}
34+
35+
button#ask-percona-ai:hover {
36+
background: #2E73DC;
37+
}
38+
39+
button#ask-percona-ai:focus-visible {
40+
outline: none;
41+
box-shadow:
42+
0 0 0 0.1rem rgba(46, 115, 220, 0.35),
43+
var(--md-shadow-z2);
44+
}
45+
46+
button#ask-percona-ai .percona-star,
47+
button#ask-percona-ai .percona-text {
48+
color: inherit;
49+
}
50+
51+
button#ask-percona-ai .percona-star {
52+
font-size: 0.85rem;
53+
line-height: 1;
54+
}
55+
56+
@media screen and (max-width: 768px) {
57+
button#ask-percona-ai {
58+
padding: 0 0.75rem;
59+
}
60+
61+
button#ask-percona-ai .percona-text {
62+
display: none;
63+
}
64+
}

docs/css/landing.css

Lines changed: 0 additions & 301 deletions
This file was deleted.

0 commit comments

Comments
 (0)