Skip to content

Commit 26fac12

Browse files
authored
feat: added design updates to fix the UI (#473)
* feat: fixed the pydata-sphinx-theme version dependency * ix: language render and annotations * feat: added design updates to fix the UI
1 parent bb518cd commit 26fac12

File tree

4 files changed

+59
-195
lines changed

4 files changed

+59
-195
lines changed

source/_static/custom.css

Lines changed: 54 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,57 @@
1-
:root {
2-
--sd-color-primary: #734f96;
3-
--sd-color-secondary: #6c757d;
4-
--sd-color-success: #28a745;
5-
--sd-color-info: #17a2b8;
6-
--sd-color-warning: #f0b37e;
7-
--sd-color-danger: #dc3545;
8-
--sd-color-light: #f8f9fa;
9-
--sd-color-muted: #6c757d;
10-
--sd-color-dark: #ffffff;
11-
--sd-color-primary-highlight: #0069d9;
12-
--sd-color-secondary-highlight: #5c636a;
13-
--sd-color-success-highlight: #228e3b;
14-
--sd-color-info-highlight: #148a9c;
15-
--sd-color-warning-highlight: #cc986b;
16-
--sd-color-danger-highlight: #bb2d3b;
17-
--sd-color-light-highlight: #d3d4d5;
18-
--sd-color-muted-highlight: #5c636a;
19-
--sd-color-dark-highlight: #1c1f23;
20-
--sd-color-primary-text: #fff;
21-
--sd-color-secondary-text: #fff;
22-
--sd-color-success-text: #fff;
23-
--sd-color-info-text: #fff;
24-
--sd-color-warning-text: #212529;
25-
--sd-color-danger-text: #fff;
26-
--sd-color-light-text: #212529;
27-
--sd-color-muted-text: #fff;
28-
--sd-color-dark-text: #fff;
29-
--sd-color-shadow: rgba(0, 0, 0, 0.15);
30-
--sd-color-card-border: rgba(0, 0, 0, 0.125);
31-
--sd-color-card-border-hover: hsla(231, 99%, 66%, 1);
32-
--sd-color-card-background: transparent;
33-
--sd-color-card-text: inherit;
34-
--sd-color-card-header: transparent;
35-
--sd-color-card-footer: transparent;
36-
--sd-color-tabs-label-active: hsla(231, 99%, 66%, 1);
37-
--sd-color-tabs-label-hover: hsla(231, 99%, 66%, 1);
38-
--sd-color-tabs-label-inactive: hsl(0, 0%, 66%);
39-
--sd-color-tabs-underline-active: hsla(231, 99%, 66%, 1);
40-
--sd-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);
41-
--sd-color-tabs-underline-inactive: transparent;
42-
--sd-color-tabs-overline: rgb(222, 222, 222);
43-
--sd-color-tabs-underline: rgb(222, 222, 222);
44-
--sd-fontsize-tabs-label: 1rem;
1+
html[data-theme="light"] {
2+
--pst-color-primary: #734f96;
3+
--pst-color-border: white;
4+
}
5+
6+
html[data-theme="dark"] {
7+
--pst-color-primary: #734f96;
8+
--pst-color-border: #14181e;
9+
}
10+
11+
html {
12+
--pst-color-primary: #734f96;
13+
--pst-color-secondary: #6c757d;
14+
--pst-color-success: #28a745;
15+
--pst-color-info: #17a2b8;
16+
--pst-color-warning: #f0b37e;
17+
--pst-color-danger: #dc3545;
18+
--pst-color-light: #f8f9fa;
19+
--pst-color-muted: #6c757d;
20+
--pst-color-dark: #ffffff;
21+
--pst-color-primary-highlight: #0069d9;
22+
--pst-color-secondary-highlight: #5c636a;
23+
--pst-color-success-highlight: #228e3b;
24+
--pst-color-info-highlight: #148a9c;
25+
--pst-color-warning-highlight: #cc986b;
26+
--pst-color-danger-highlight: #bb2d3b;
27+
--pst-color-light-highlight: #d3d4d5;
28+
--pst-color-muted-highlight: #5c636a;
29+
--pst-color-dark-highlight: #1c1f23;
30+
--pst-color-primary-text: #fff;
31+
--pst-color-secondary-text: #fff;
32+
--pst-color-success-text: #fff;
33+
--pst-color-info-text: #fff;
34+
--pst-color-warning-text: #212529;
35+
--pst-color-danger-text: #fff;
36+
--pst-color-light-text: #212529;
37+
--pst-color-muted-text: #fff;
38+
--pst-color-dark-text: #fff;
39+
--pst-color-shadow: rgba(0, 0, 0, 0.15);
40+
--pst-color-card-border: rgba(0, 0, 0, 0.125);
41+
--pst-color-card-border-hover: hsla(231, 99%, 66%, 1);
42+
--pst-color-card-background: transparent;
43+
--pst-color-card-text: inherit;
44+
--pst-color-card-header: transparent;
45+
--pst-color-card-footer: transparent;
46+
--pst-color-tabs-label-active: hsla(231, 99%, 66%, 1);
47+
--pst-color-tabs-label-hover: hsla(231, 99%, 66%, 1);
48+
--pst-color-tabs-label-inactive: hsl(0, 0%, 66%);
49+
--pst-color-tabs-underline-active: hsla(231, 99%, 66%, 1);
50+
--pst-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);
51+
--pst-color-tabs-underline-inactive: transparent;
52+
--pst-color-tabs-overline: rgb(222, 222, 222);
53+
--pst-color-tabs-underline: rgb(222, 222, 222);
54+
--pst-fontsize-tabs-label: 1rem;
4555
}
4656

4757
.index_joinus_mobile {

source/_templates/inpage_toc.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% if ablog %} {% if pagename == 'index' %}
22

3-
<br /><br />
43
<h2>
54
<p style="color: #734f96">News</p>
65
</h2>

source/_templates/version-switcher.html

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

source/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
# a list of builtin themes.
122122
#
123123
html_theme = "pydata_sphinx_theme"
124+
html_show_sourcelink = False
124125

125126
# Add any paths that contain custom static files (such as style sheets) here,
126127
# relative to this directory. They are copied after the builtin static files,
@@ -143,13 +144,14 @@
143144
"show_toc_level": 0,
144145
"footer_end": ["copyright"],
145146
"navbar_align": "right",
146-
"navbar_start": ["navbar-logo","theme-switcher.html","version-switcher"],
147+
"navbar_start": ["navbar-logo","theme-switcher.html"],
147148
"switcher": {
148149
"json_url": "_static/data.json", # shifted to custom local switcher
149150
"version_match": language,
150151
},
151-
"primary_sidebar_end": ["inpage_toc.html"],
152-
"navbar_end": ["navbar-icon-links", "search-field.html"],
152+
"primary_sidebar_end": [],
153+
"secondary_sidebar_items": ["inpage_toc.html"],
154+
"navbar_end": ["navbar-icon-links","version-switcher"],
153155
"search_bar_text": "Search",
154156
"icon_links": [
155157
{

0 commit comments

Comments
 (0)