Skip to content

Commit

Permalink
#1 --- added btn-group class for ensuring proper gaps between buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
zshall committed Mar 7, 2024
1 parent 44acf66 commit 4f7ecbb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,10 @@ <h1 class="text-F1d">Dithered Text</h1>
<div class="col-10">
<p class="font-system">This is but a taste of our fury! Do you
yield?</p>
<button class="btn">Yes</button>
<button class="btn btn-preferred">I do not</button>
<div class="btn-group">
<button class="btn">Yes</button>
<button class="btn btn-preferred">I do not</button>
</div>
</div>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions src/scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,14 @@ $buttonFontSize: 16px;
a:active::before {
@include buttonShadowInverted;
}
}

/**
* Button groups
* If you've got more than one button, this ensures that spacing between them will always leave a gap.
*/
.btn-group {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

0 comments on commit 4f7ecbb

Please sign in to comment.