Skip to content

Commit e1afcfe

Browse files
doubleIncjamesgpearce
authored andcommitted
[docs] CSS overflow scroll fix for desktop view.
1 parent a191403 commit e1afcfe

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

site/less/article.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body > main > article {
2-
overflow: scroll;
2+
overflow-x: auto;
3+
overflow-y: scroll;
34
padding-bottom: 4rem;
45
ul {
56
padding-inline-start: 2rem;

site/less/layout.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ body {
3636
> nav {
3737
display: none;
3838
width: 16rem;
39-
overflow: scroll;
39+
overflow: auto;
4040
margin-left: 1rem;
4141
}
4242
> article {
4343
flex: 1;
4444
padding: 0 1rem;
4545
min-width: 100vw;
4646
max-width: 50rem;
47-
overflow: scroll;
47+
overflow: auto;
4848
&#home {
4949
max-width: 84rem;
5050
}
5151
}
5252
> aside {
5353
display: none;
5454
width: 16rem;
55-
overflow: scroll;
55+
overflow: auto;
5656
margin-right: 1rem;
5757
}
5858
}

0 commit comments

Comments
 (0)