Skip to content

Commit 779d095

Browse files
css: fix scrollbars and toc li
1 parent 08f378a commit 779d095

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/hackmysql.css

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mark {
7070
.read-more { font-style: italic; text-align: right; }
7171

7272
/* table */
73-
div.to { overflow-x: scroll; } /* table overflow */
73+
div.to { overflow-x: auto; } /* table overflow */
7474
:is(h1,h2,h3,h4) + div.to > table { margin-top: 1em; }
7575
table {
7676
margin: 0;
@@ -107,7 +107,7 @@ table tr td :last-child {
107107
div.res {
108108
width: 100%;
109109
font-family: 'Courier';
110-
overflow: scroll;
110+
overflow: auto;
111111
padding: 1rem;
112112
}
113113
table.list {
@@ -208,7 +208,7 @@ div.footnotes > ol {
208208
}
209209
.withshadow { box-shadow: 0 4px 8px 0 rgb(0 0 0 / 40%); }
210210
.rounded { border-radius: 20px; }
211-
.highlight { overflow: scroll; }
211+
.highlight { overflow: auto; }
212212
.sidebyside {
213213
display: flex;
214214
gap: 0.5rem;
@@ -255,7 +255,7 @@ nav#toc {
255255
}
256256
nav#toc a { color: black; }
257257
nav#toc a:hover { text-decoration: underline; }
258-
nav#toc ul { padding: 0; }
258+
nav#toc ul { padding: 0; list-style-type: none; }
259259
nav#toc nav > ul > li { /* each section: h1 + subs */
260260
margin-bottom: 1rem;
261261
}
@@ -365,7 +365,6 @@ nav#toc {
365365
align-self: start;
366366
}
367367
div.scroller {
368-
overflow-y: scroll;
369368
padding-top: 2rem;
370369
height: 100vh;
371370
}
@@ -523,7 +522,7 @@ pre {
523522
padding: 0.5em;
524523
padding-right: 2em;
525524
width: 100%;
526-
overflow-x: scroll;
525+
overflow-x: auto;
527526
border-radius: 5px;
528527
background-color: #f5f5f5; /* generic pre ``` */
529528
font-size: 13px;

0 commit comments

Comments
 (0)