Skip to content

Commit

Permalink
maybe fix mobile margin right issues
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Aug 7, 2023
1 parent 94be646 commit 483e04b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ body {
<style scoped lang="scss">
@import '@/assets/style-variables.scss';
@media screen and (max-width: 768px) {
.app {
padding: 0;
margin: 0;
Expand All @@ -147,6 +148,7 @@ body {
left: 0;
width: 100%;
min-height: 100%;
width: 100%;
}
.header {
margin: 0;
Expand All @@ -166,4 +168,35 @@ body {
padding: 0;
width: 100%;
}
}
@media screen and (min-width: 769px) {
.app {
padding: 0;
margin: 0;
position: absolute;
top: 0;
left: 0;
width: 100%;
min-height: 100%;
}
.header {
margin: 0;
padding: 0;
height: $--nav-height;
width: 100%;
position: absolute;
top: 0;
left: 0;
}
.main {
position: absolute;
top: $--nav-height;
left: 0;
min-height: calc(100% - #{$--nav-height});
margin: 0;
padding: 0;
width: 100%;
}
}
</style>
1 change: 1 addition & 0 deletions src/components/navBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ i {
padding: 27px 30px;
transition: all 0.2s ease-out;
left: 20px;
margin-right: 20px;
align-items: end;
top: -50px;
}
Expand Down

0 comments on commit 483e04b

Please sign in to comment.