Skip to content

Commit

Permalink
upgrade: fix nav to window edge
Browse files Browse the repository at this point in the history
close #120
  • Loading branch information
tianheg committed Jul 30, 2021
1 parent b0ca258 commit 9137139
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/scss/_content.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.content {
flex: 1;
display: flex;
margin-top: 1.6rem;
margin-top: 6.4rem;
margin-bottom: 3.2rem;

hr {
margin: auto;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.footer {
width: 100%;
text-align: center;
line-height: 1rem;
line-height: 2rem;
position: relative;
bottom: 0;
a {
Expand Down
6 changes: 5 additions & 1 deletion assets/scss/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
height: 6rem;
margin: 0 0 0 0;
width: 100%;
position: fixed;
top: 0;
z-index: 4;
background-color: #fff;
a,
span {
display: inline;
Expand Down Expand Up @@ -30,7 +34,7 @@

@media only screen and (max-width: 768px) {
position: relative;
top: 2rem;
// top: 2rem;
right: 0;
z-index: 5;
visibility: hidden;
Expand Down

0 comments on commit 9137139

Please sign in to comment.