Skip to content

Commit 37af738

Browse files
committed
Fix mobile layout
1 parent 64269f3 commit 37af738

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

assets/scss/_base.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
@use 'mixins';
22
@use 'variables';
33

4+
*,
5+
*::before,
6+
*::after {
7+
box-sizing: border-box;
8+
}
9+
410
body {
511
background: var(--mm-color-background);
6-
display: grid;
712
font-family: var(--mm-font-stack-default);
813
-webkit-font-smoothing: antialiased;
914
line-height: 1.5;
1015
margin: 0;
1116
min-height: 100vh;
1217
padding: 0;
18+
19+
@media only screen and (min-width: 992px) {
20+
display: grid;
21+
}
1322
}
1423

1524
.wrapper {

assets/scss/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $page-header-height: 80px;
3636
@include mixins.pattern-border;
3737
background: var(--mm-color-background);
3838
box-shadow: 0 1px 13px 0 rgba(0, 0, 0, 0.1), 0 1px 5px 0 rgba(0, 0, 0, 0.06);
39-
height: calc(var(--page-header-height) - 10px);
39+
height: var(--page-header-height);
4040
padding-top: 10px;
4141
position: sticky;
4242
top: 0;

assets/scss/_search.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
.search__button {
3535
@include mixins.menu-button;
3636
float: right;
37+
38+
svg {
39+
margin-top: 3px;
40+
}
3741
}
3842

3943
.input {

assets/scss/_sidebar.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.sidebar-toggle__button span {
2828
backface-visibility: hidden;
2929
background-color: #000;
30-
height: 1px;
30+
height: 2px;
3131
transition: all .3s ease-out;
3232
width: 12px;
3333

@@ -38,6 +38,7 @@
3838
}
3939

4040
.sidebar-toggle__button.is-active span {
41+
height: 1px;
4142
opacity: 0;
4243

4344
&:first-child {
@@ -68,11 +69,12 @@
6869
overflow-y: auto;
6970
padding-bottom: 20px;
7071
padding-left: 20px;
72+
scrollbar-width: thin;
7173

7274
@media only screen and (min-width: 992px) {
7375
height: calc(100vh - var(--page-header-height) - 60px);
7476
position: sticky;
75-
top: 130px;
77+
top: 115px;
7678
}
7779
}
7880

assets/scss/_table.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
scrollbar-color: #0003 #0000;
1414
scrollbar-width: thin;
1515
width: 100%;
16-
z-index: 2;
1716

1817
table {
1918
border-collapse: collapse;
2019
font-size: 1rem;
2120
line-height: 1rem;
22-
overflow-x: auto;
2321
width: 100%;
2422
}
2523

0 commit comments

Comments
 (0)