Skip to content

Commit

Permalink
add adaptive styles
Browse files Browse the repository at this point in the history
  • Loading branch information
DanZalov committed Mar 10, 2024
1 parent 6f857aa commit 4b26658
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import Navigation from './components/Navigation.vue'
</script>

<template>
<Navigation />
<div class="wrapper">
<Navigation />

<RouterView />
</div>
</template>
Expand All @@ -17,15 +16,13 @@ import Navigation from './components/Navigation.vue'
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
@media (min-width: 425px) {
.logo {
margin: 0 2rem 0 0;
}
.wrapper {
display: flex;
flex-direction: column;
place-items: flex-start;
max-width: 600px;
}
}
</style>
3 changes: 1 addition & 2 deletions src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ nav a:first-of-type {
margin-left: -1rem;
font-size: 1rem;
padding: 1rem 0;
margin-top: 1rem;
padding-bottom: 1rem;
}
}
</style>
8 changes: 7 additions & 1 deletion src/views/TasksView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ li {
}
hr {
margin: 10px 0px;
margin: 20px 0px;
}
@media (min-width: 768px) {
h1 {
padding-bottom: 0.5rem;
}
}
</style>

0 comments on commit 4b26658

Please sign in to comment.