.form-control {
display: block;
width: 100%;
- padding: $input-btn-padding-y $input-btn-padding-x;
+ padding: $input-padding-y $input-padding-x;
font-size: $font-size-base;
- line-height: $input-btn-line-height;
+ line-height: $input-line-height;
color: $input-color;
background-color: $input-bg;
- // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
- background-image: none;
background-clip: padding-box;
- border: $input-btn-border-width solid $input-border-color;
+ border: $input-border-width solid $input-border-color;
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
@if $enable-rounded {
// text (without any border, background color, focus indicator)
.form-control-plaintext {
- padding-top: $input-btn-padding-y;
- padding-bottom: $input-btn-padding-y;
+ display: block;
+ width: 100%;
+ padding-top: $input-padding-y;
+ padding-bottom: $input-padding-y;
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
- line-height: $input-btn-line-height;
+ line-height: $input-line-height;
background-color: transparent;
border: solid transparent;
- border-width: $input-btn-border-width 0;
+ border-width: $input-border-width 0;
&.form-control-sm,
&.form-control-lg {
&:not(:first-child) {
> .btn,
> .btn-group {
- z-index: 2;
+ z-index: 1;
- // remove nagative margin ($input-btn-border-width) to solve overlapping issue with button.
+ // remove nagative margin ($input-border-width) to solve overlapping issue with button.
margin-left: 0;
// When input is first, overlap the right side of it with the button(-group)
$input-btn-padding-x-lg: 1rem !default;
$input-btn-line-height-lg: $line-height-lg !default;
+$input-btn-border-width: $border-width !default; // For form controls and buttons
+
+
+// Buttons
+//
+// For each of Bootstrap's buttons, define text, background and border color.
+
+$btn-padding-y: $input-btn-padding-y !default;
+$btn-padding-x: $input-btn-padding-x !default;
+$btn-line-height: $input-btn-line-height !default;
+
+$btn-padding-y-sm: $input-btn-padding-y-sm !default;
+$btn-padding-x-sm: $input-btn-padding-x-sm !default;
+$btn-line-height-sm: $input-btn-line-height-sm !default;
+
+$btn-padding-y-lg: $input-btn-padding-y-lg !default;
+$btn-padding-x-lg: $input-btn-padding-x-lg !default;
+$btn-line-height-lg: $input-btn-line-height-lg !default;
+
+$btn-border-width: $input-btn-border-width !default;
+
$btn-font-weight: $font-weight-normal !default;
- $btn-box-shadow: inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075) !default;
- $btn-focus-box-shadow: 0 0 0 3px rgba(theme-color("primary"), .25) !default;
- $btn-active-box-shadow: inset 0 3px 5px rgba($black,.125) !default;
+ $btn-box-shadow: inset 0 1px 0 rgba($white, .15), 0 1px 1px rgba($black, .075) !default;
+ $btn-active-box-shadow: inset 0 3px 5px rgba($black, .125) !default;
$btn-link-disabled-color: $gray-600 !default;