Skip to content

Commit

Permalink
Add md button size and use it for list actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Nov 23, 2016
1 parent 95096fe commit 6c97382
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
5 changes: 3 additions & 2 deletions suit/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ $nav-padding-horizontal: $grid-gutter-width-base + .75rem;
//$btn-line-height: $line-height-base;
//$btn-padding-x: 1.2rem;
//$btn-padding-y: .35rem;
//$btn-padding-x-lg: 1.5rem;
//$btn-padding-y-lg: .6rem;
$btn-padding-x-md: .85rem;
$btn-padding-y-md: .35rem;
$font-size-md: 0.9375rem;
//$btn-padding-x-sm: .75rem;

// Inputs
Expand Down
4 changes: 4 additions & 0 deletions suit/sass/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
border-color: transparentize($brand-danger, .25);
background-color: #fff;
}
.btn-md {
// line-height: ensure proper height of button next to small input
@include button-size($btn-padding-y-md, $btn-padding-x-md, $font-size-md, $btn-border-radius-sm);
}
4 changes: 2 additions & 2 deletions suit/sass/layout/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ body.change-form {
> a {
&:not([class*="btn-"]) {
@extend .btn-round;
@include btn-mixin(info, none, sm, round=true);
@include btn-mixin(info, none, md, round=true);
&.addlink {
@include btn-mixin(success, $icon-plus-circle, null, round=true);
@include btn-mixin(success, $icon-plus-circle, md, round=true);
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions suit/static/suit/css/suit.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c97382

Please sign in to comment.