Skip to content

Commit bc4a1b1

Browse files
authored
allow overflowing table to overlap sidebar toc (PR #30)
1 parent 627c640 commit bc4a1b1

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/css/doc.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
margin: var(--doc-margin--desktop);
1616
max-width: var(--doc-max-width--desktop);
1717
min-width: 0;
18+
position: relative;
19+
z-index: var(--z-index-doc);
1820
}
1921
}
2022

@@ -198,6 +200,7 @@
198200
}
199201

200202
.doc table.tableblock {
203+
background: var(--body-background);
201204
border-collapse: collapse;
202205
font-size: calc(15 / var(--rem-base) * 1rem);
203206
margin: 1.5rem 0 0;
@@ -212,6 +215,12 @@
212215
*/
213216
}
214217

218+
@media screen and (min-width: 1024px) {
219+
.doc table.tableblock {
220+
box-shadow: 5px 0 0 var(--color-white);
221+
}
222+
}
223+
215224
.doc table.tableblock + * {
216225
margin-top: 1.5rem;
217226
}
@@ -718,7 +727,7 @@
718727
background-color: var(--doc-font-color);
719728
border-radius: 0.25em;
720729
padding: 0.5em;
721-
color: #fff;
730+
color: var(--color-white);
722731
font-family: var(--body-font-family);
723732
cursor: auto;
724733
opacity: 0;

src/css/vars.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@
139139
--doc-max-width: calc(720 / var(--rem-base) * 1rem);
140140
--doc-max-width--desktop: calc(828 / var(--rem-base) * 1rem);
141141
/* stacking */
142-
--z-index-nav: 1;
143-
--z-index-toolbar: 2;
144-
--z-index-page-version-menu: 3;
145-
--z-index-navbar: 4;
142+
--z-index-doc: 1;
143+
--z-index-nav: 2;
144+
--z-index-toolbar: 3;
145+
--z-index-page-version-menu: 4;
146+
--z-index-navbar: 5;
146147
}

0 commit comments

Comments
 (0)