Skip to content

Commit

Permalink
feat(button): support circular (spaced) button (groups)
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Dec 1, 2023
1 parent 83ab0e7 commit 64edfe2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
border-top: @basicGroupBorder;
}

.ui.basic.vertical.buttons:not(.spaced) .button:first-child {
.ui.basic.vertical.buttons:not(.spaced):not(.circular) .button:first-child {
border-top: none;
}
}
Expand Down Expand Up @@ -1104,6 +1104,17 @@
width: @circularIconWidth;
vertical-align: baseline;
}

.ui.circular.buttons:not(.vertical) .button {
margin-right: @circularGroupMargin;
}

& when (@variationButtonVertical) {
.ui.vertical.circular.buttons .button {
margin-bottom: @circularVerticalGroupMargin;
}
}

& when (@variationButtonBasic) {
.ui.circular.basic.buttons {
border: none;
Expand Down
2 changes: 2 additions & 0 deletions src/themes/default/elements/button.variables
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@
/* Circular */
@circularBorderRadius: 10em;
@circularIconWidth: 1em;
@circularGroupMargin: 0.25em;
@circularVerticalGroupMargin: @circularGroupMargin;

/* Spaced */
@spacedMargin: 1em;

0 comments on commit 64edfe2

Please sign in to comment.