Skip to content

Commit ce4fd51

Browse files
MatplotlibCircleBotMatplotlibCircleBot
authored andcommitted
[skip ci] Doc build of 3d40411
1 parent 14f49b6 commit ce4fd51

14 files changed

Lines changed: 87 additions & 11 deletions

File tree

824 Bytes
Binary file not shown.
1.18 KB
Loading
1.17 KB
Loading
0 Bytes
Binary file not shown.

_images/index-2.png

1.17 KB
Loading

_sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
var sd_labels_by_text = {};
2+
3+
function ready() {
4+
const li = document.getElementsByClassName("sd-tab-label");
5+
for (const label of li) {
6+
syncId = label.getAttribute("data-sync-id");
7+
if (syncId) {
8+
label.onclick = onLabelClick;
9+
if (!sd_labels_by_text[syncId]) {
10+
sd_labels_by_text[syncId] = [];
11+
}
12+
sd_labels_by_text[syncId].push(label);
13+
}
14+
}
15+
}
16+
17+
function onLabelClick() {
18+
// Activate other inputs with the same sync id.
19+
syncId = this.getAttribute("data-sync-id");
20+
for (label of sd_labels_by_text[syncId]) {
21+
if (label === this) continue;
22+
label.previousElementSibling.checked = true;
23+
}
24+
window.localStorage.setItem("sphinx-design-last-tab", syncId);
25+
}
26+
27+
document.addEventListener("DOMContentLoaded", ready, false);

_static/css/style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ html[data-theme="dark"] {
1414
}
1515

1616
:root {
17-
--pst-color-link-hover: var(--pst-color-secondary);
17+
--pst-color-link-hover: var(--pst-color-secondary);
1818
}
1919

20-
.sidebar-cheatsheets, .sidebar-donate {
21-
margin: 2.75rem 0;
20+
.sidebar-donate > .sd-btn {
21+
width: 100%;
2222
}
2323

2424
#navbar-icon-links {
25-
margin-left: 1.5em;
25+
margin-left: 1.5em;
2626
}
2727

2828
#navbar-icon-links .nav-link {
@@ -32,4 +32,3 @@ html[data-theme="dark"] {
3232
#navbar-icon-links .nav-link:hover {
3333
color: var(--pst-color-primary);
3434
}
35-

_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/design-tabs.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
var sd_labels_by_text = {};
2+
3+
function ready() {
4+
const li = document.getElementsByClassName("sd-tab-label");
5+
for (const label of li) {
6+
syncId = label.getAttribute("data-sync-id");
7+
if (syncId) {
8+
label.onclick = onLabelClick;
9+
if (!sd_labels_by_text[syncId]) {
10+
sd_labels_by_text[syncId] = [];
11+
}
12+
sd_labels_by_text[syncId].push(label);
13+
}
14+
}
15+
}
16+
17+
function onLabelClick() {
18+
// Activate other inputs with the same sync id.
19+
syncId = this.getAttribute("data-sync-id");
20+
for (label of sd_labels_by_text[syncId]) {
21+
if (label === this) continue;
22+
label.previousElementSibling.checked = true;
23+
}
24+
window.localStorage.setItem("sphinx-design-last-tab", syncId);
25+
}
26+
27+
document.addEventListener("DOMContentLoaded", ready, false);

0 commit comments

Comments
 (0)