Skip to content

Commit

Permalink
Merge pull request #4107 from Denhai/next
Browse files Browse the repository at this point in the history
Sets border-radius when vertical buttons have a single child button
  • Loading branch information
jlukic authored Jul 31, 2016
2 parents 0f48652 + 3fb72fe commit 4bea7fd
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/definitions/elements/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -3408,24 +3408,16 @@
width: 100%;
margin: @verticalGroupOffset;
box-shadow: @verticalBoxShadow;
border-radius: 0em;
}
.ui.vertical.buttons .button:first-child {
border-top-left-radius: @borderRadius;
border-top-right-radius: @borderRadius;
}
.ui.vertical.buttons .button:first-child,
.ui.vertical.buttons .mini.button:first-child,
.ui.vertical.buttons .tiny.button:first-child,
.ui.vertical.buttons .small.button:first-child,
.ui.vertical.buttons .massive.button:first-child,
.ui.vertical.buttons .huge.button:first-child {
border-radius: @borderRadius @borderRadius 0px 0px;
}
.ui.vertical.buttons .button:last-child,
.ui.vertical.buttons .mini.button:last-child,
.ui.vertical.buttons .tiny.button:last-child,
.ui.vertical.buttons .small.button:last-child,
.ui.vertical.buttons .massive.button:last-child,
.ui.vertical.buttons .huge.button:last-child,
.ui.vertical.buttons .gigantic.button:last-child {
.ui.vertical.buttons .button:last-child {
margin-bottom: 0px;
border-radius: 0px 0px @borderRadius @borderRadius;
border-bottom-left-radius: @borderRadius;
border-bottom-right-radius: @borderRadius;
}
.ui.vertical.buttons .button:only-child {
border-radius: @borderRadius;
Expand Down

0 comments on commit 4bea7fd

Please sign in to comment.