Skip to content

Commit 0dd5a11

Browse files
committed
doc styles
1 parent 5415a0c commit 0dd5a11

2 files changed

Lines changed: 88 additions & 1 deletion

File tree

docs/_static/custom.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
11
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
2+
3+
h1, h2, h3, h4, h5, h6 {
4+
font-weight: normal;
5+
}
6+
7+
/* Sidebar active/current item */
8+
.sidebar-tree .current-page > .reference {
9+
color: #195190;
10+
}
11+
12+
/* Right-side TOC active link */
13+
.toc-tree a.active {
14+
color: #195190;
15+
}
16+
17+
/* Dark mode overrides */
18+
@media (prefers-color-scheme: dark) {
19+
body[data-theme="auto"] .sidebar-tree .current-page > .reference,
20+
body[data-theme="dark"] .sidebar-tree .current-page > .reference {
21+
color: #7EB8DA;
22+
}
23+
body[data-theme="auto"] .toc-tree a.active,
24+
body[data-theme="dark"] .toc-tree a.active {
25+
color: #7EB8DA;
26+
}
27+
}
28+
29+
body[data-theme="dark"] .sidebar-tree .current-page > .reference {
30+
color: #7EB8DA;
31+
}
32+
body[data-theme="dark"] .toc-tree a.active {
33+
color: #7EB8DA;
34+
}

docs/conf.py

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,66 @@
146146
'source_branch': 'master',
147147
'source_directory': 'docs/',
148148
'light_css_variables': {
149+
# Fonts
149150
'font-stack': "'Open Sans', sans-serif",
150151
'font-stack--headings': "'Open Sans', sans-serif",
152+
'font-size--normal': '17px',
153+
# Body colors (from Alabaster)
154+
'color-foreground-primary': '#3E4349',
155+
'color-foreground-secondary': '#555',
156+
'color-foreground-muted': '#888',
157+
'color-background-primary': '#fff',
158+
'color-background-secondary': '#f8f8f8',
159+
'color-background-border': '#EEE',
160+
# Links
161+
'color-link': '#004B6B',
162+
'color-link--hover': '#6D4100',
163+
# Sidebar
164+
'color-sidebar-background': '#fff',
165+
'color-sidebar-text': '#555',
166+
'color-sidebar-link': '#444',
167+
'color-sidebar-link-text': '#444',
168+
'color-sidebar-link-text--top-level': '#444',
169+
'color-sidebar-item-background--hover': '#EEE',
170+
'color-sidebar-item-expander-color': '#444',
171+
'color-sidebar-caption-text': '#444',
172+
'color-sidebar-item-background--current': 'transparent',
173+
'color-sidebar-search-border': '#CCC',
174+
# Code blocks
175+
'color-code-background': '#ecf0f3',
176+
'color-code-foreground': '#222',
177+
'color-inline-code-background': '#ecf0f3',
178+
# Admonitions
179+
'color-admonition-background': '#EEE',
180+
'color-admonition-title': '#195190',
181+
'color-admonition-title-background': 'rgba(25, 81, 144, 0.1)',
182+
# Table of contents (right sidebar)
183+
'color-toc-item-text': '#444',
184+
'color-toc-item-text--hover': '#195190',
185+
'color-toc-item-text--active': '#195190',
186+
# Headerlink
187+
'color-header-text': '#3E4349',
151188
},
152189
'dark_css_variables': {
153190
'font-stack': "'Open Sans', sans-serif",
154191
'font-stack--headings': "'Open Sans', sans-serif",
192+
'font-size--normal': '17px',
193+
# Links
194+
'color-link': '#7EB8DA',
195+
'color-link--hover': '#D4A76A',
196+
# Sidebar
197+
'color-sidebar-background': '#1a1c1e',
198+
'color-sidebar-background-border': '#2d2d2d',
199+
'color-sidebar-link-text': '#ccc',
200+
'color-sidebar-link-text--top-level': '#ccc',
201+
'color-sidebar-caption-text': '#ccc',
202+
'color-sidebar-item-background--hover': '#2d2d2d',
203+
# Admonitions
204+
'color-admonition-title': '#7EB8DA',
205+
'color-admonition-title-background': 'rgba(126, 184, 218, 0.15)',
206+
# TOC
207+
'color-toc-item-text--hover': '#7EB8DA',
208+
'color-toc-item-text--active': '#7EB8DA',
155209
},
156210
}
157211

@@ -167,7 +221,7 @@
167221

168222
# The name of an image file (relative to this directory) to place at the top
169223
# of the sidebar.
170-
html_logo = None
224+
html_logo = '_static/qluster_grey_on_white_bg_optimized.svg'
171225

172226
# The name of an image file (within the static path) to use as favicon of the
173227
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

0 commit comments

Comments
 (0)