Skip to content

Commit

Permalink
tighten margins on narrow pages
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Feb 8, 2022
1 parent 53f994f commit 28d37af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/views/DashBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default class VueComponent extends Vue {
const flex = card.width || 1
let style: any = {
margin: '2rem 3rem 2rem 0',
// margin: '2rem 1rem 2rem 0',
flex: flex,
}
Expand Down Expand Up @@ -332,8 +332,8 @@ export default class VueComponent extends Vue {
}
.dashboard-header {
margin-top: 1rem;
margin-bottom: 1rem;
margin: 1rem 3rem 1rem 0rem;
h2 {
line-height: 3rem;
}
Expand All @@ -348,6 +348,7 @@ export default class VueComponent extends Vue {
display: grid;
grid-auto-columns: 1fr;
grid-auto-rows: auto auto 1fr;
margin: 2rem 3rem 2rem 0;
.dash-card-headers {
display: flex;
Expand Down Expand Up @@ -413,8 +414,20 @@ export default class VueComponent extends Vue {
}
@media only screen and (max-width: 50em) {
.dashboard {
padding: 1rem 0rem 1rem 1rem;
}
.dashboard-header {
margin: 1rem 1rem 1rem 0rem;
}
.dash-row {
flex-direction: column;
}
.dash-card-frame {
margin: 2rem 1rem 2rem 0;
}
}
</style>
3 changes: 3 additions & 0 deletions src/views/TabbedDashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -297,5 +297,8 @@ li.is-not-active b a {
}
@media only screen and (max-width: 50em) {
.tabholdercontainer {
margin: 0 1rem;
}
}
</style>

0 comments on commit 28d37af

Please sign in to comment.