-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(button): add button group helper css class
- Loading branch information
hirsch
committed
Oct 1, 2021
1 parent
d033195
commit a03dcf3
Showing
4 changed files
with
110 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.bal-buttons { | ||
display: flex; | ||
flex-wrap: wrap; | ||
margin-left: -4px; | ||
margin-right: -4px; | ||
|
||
&.is-center { | ||
justify-content: center; | ||
} | ||
|
||
& > bal-button { | ||
padding-bottom: 4px; | ||
padding-left: 4px; | ||
padding-right: 4px; | ||
display: block; | ||
flex: 1; | ||
flex-basis: 0; | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
|
||
&.is-full { | ||
width: 100%; | ||
flex: none; | ||
} | ||
|
||
&.is-half { | ||
width: 50%; | ||
flex: none; | ||
} | ||
|
||
&.is-one-third { | ||
width: 33.3333%; | ||
flex: none; | ||
} | ||
|
||
&.is-two-thirds { | ||
width: 66.6666%; | ||
flex: none; | ||
} | ||
} | ||
|
||
@include tablet() { | ||
& > bal-button { | ||
flex: none; | ||
|
||
&.is-half, | ||
&.is-full { | ||
width: auto; | ||
} | ||
} | ||
} | ||
} |