Skip to content

Commit

Permalink
Standardize header CSS
Browse files Browse the repository at this point in the history
Flexbox was disrupting margin collapse, so using a wrapper flex on all pages with no bottom-margin
  • Loading branch information
WesCook committed Apr 25, 2024
1 parent 68711ea commit 5dca227
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 29 deletions.
6 changes: 0 additions & 6 deletions src/pages/BingoCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@
</template>
<style scoped>
.nav-bar {
display: flex;
justify-content: space-between;
align-items: start;
}
.skip-btn {
display: flex;
margin: 0 auto 1em auto;
Expand Down
5 changes: 4 additions & 1 deletion src/pages/CategoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@
</script>
<template>
<h1>Backlog Bingo</h1>
<div class="nav-bar">
<h1>Backlog Bingo</h1>
</div>
<p>
Welcome to Backlog Bingo! This web app lets you generate a bingo card, either from a prebuilt category list or from your own provided JSON.
<em>
Expand Down
11 changes: 0 additions & 11 deletions src/pages/GameRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@
</template>

<style scoped>
.nav-bar {
display: flex;
align-items: start;
justify-content: end;
gap: 10px;
h1 {
margin-right: auto;
}
}
.gamerules-header {
margin-top: 1.4em;
}
Expand Down
11 changes: 0 additions & 11 deletions src/pages/RefineCategories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@
</template>

<style scoped>
.nav-bar {
display: flex;
align-items: start;
gap: 10px;
justify-content: end;
h1 {
margin-right: auto;
}
}
.btn-bar {
display: flex;
justify-content: end;
Expand Down
13 changes: 13 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,16 @@ input[type="button"] {
input[type="checkbox"] {
margin-right: 7px;
}

/* Common classes */
.nav-bar {
display: flex;
align-items: start;
justify-content: end;
gap: 10px;

h1 {
margin-right: auto;
margin-bottom: 0;
}
}

0 comments on commit 5dca227

Please sign in to comment.