Skip to content

Commit e230188

Browse files
authored
Bug Fix: Table styles and Expanding (#119)
Bug fix from #118 - Remove dup js that was causing expansion issues - Fix table styles (although we don't currently have any tables)
1 parent 9e5b759 commit e230188

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

theme/book.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,6 @@ function playground_text(playground, hidden = true) {
495495
} catch (e) {}
496496
}
497497

498-
var sidebarAnchorToggles = document.querySelectorAll("#sidebar a.toggle");
499-
500-
function toggleSection(ev) {
501-
ev.currentTarget.parentElement.classList.toggle("expanded");
502-
}
503-
504-
Array.from(sidebarAnchorToggles).forEach(function (el) {
505-
el.addEventListener("click", toggleSection);
506-
});
507-
508498
function hideSidebar() {
509499
if (sidebarToggleAnchor.checked !== false) {
510500
sidebarToggleAnchor.checked = false;

theme/css/variables.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
--warning-border: var(--warning);
8080

81-
--table-border-color: var(--sidebar-bg);
81+
--table-border-color: var(--gray1);
8282
--table-header-bg: var(--sidebar-bg);
8383
--table-alternate-bg: var(--sidebar-bg);
8484

@@ -141,8 +141,8 @@ html:not(.js) {
141141
--warning-border: var(--warning);
142142

143143
--table-border-color: var(--sidebar-bg);
144-
--table-header-bg: var(--sidebar-bg);
145-
--table-alternate-bg: var(--sidebar-bg);
144+
--table-header-bg: var(--gray2);
145+
--table-alternate-bg: var(--gray3);
146146

147147
--searchbar-border-color: #aaa;
148148
--searchbar-bg: var(--white);
@@ -202,7 +202,7 @@ html:not(.js) {
202202

203203
--warning-border: var(--warning);
204204

205-
--table-border-color: var(--sidebar-bg);
205+
--table-border-color: var(--gray1);
206206
--table-header-bg: var(--sidebar-bg);
207207
--table-alternate-bg: var(--sidebar-bg);
208208

0 commit comments

Comments
 (0)