Skip to content

Commit

Permalink
Custom select styles
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Nov 23, 2016
1 parent 6c97382 commit 0df8514
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
11 changes: 9 additions & 2 deletions suit/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,21 @@ $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-md: .85rem;
$btn-padding-y-md: .35rem;
$btn-padding-x-sm: .75rem;
$btn-padding-y-sm: .35rem;
//$btn-padding-x-md: .85rem;
//$btn-padding-y-md: .35rem;
$font-size-md: 0.9375rem;
//$btn-padding-x-sm: .75rem;

// Inputs
// --------------------------------------------------
$input-padding-x-sm: $btn-padding-x-sm;
$input-padding-y-sm: $btn-padding-y-sm;
$textarea-line-height: $line-height-base;
$custom-select-sm-padding-y: $btn-padding-x-sm;
$custom-select-sm-font-size: $font-size-xs;

//$input-padding-y: $btn-padding-y;

// Tables
Expand Down
4 changes: 0 additions & 4 deletions suit/sass/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,3 @@
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: 4 additions & 0 deletions suit/sass/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,7 @@ fieldset {
background-color: $form-bg;
}
}
.custom-select-sm {
$select-border-width: ($border-width * 2);
height: calc(#{$input-height} - #{$select-border-width} - 5px);
}
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, md, round=true);
@include btn-mixin(info, none, sm, round=true);
&.addlink {
@include btn-mixin(success, $icon-plus-circle, md, round=true);
@include btn-mixin(success, $icon-plus-circle, sm, round=true);
}
}
}
Expand Down

0 comments on commit 0df8514

Please sign in to comment.