Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/stylesheets/bootstrap/_input-group.scss')
-rw-r--r--assets/stylesheets/bootstrap/_input-group.scss11
1 files changed, 5 insertions, 6 deletions
diff --git a/assets/stylesheets/bootstrap/_input-group.scss b/assets/stylesheets/bootstrap/_input-group.scss
index 0b668bf..95b17be 100644
--- a/assets/stylesheets/bootstrap/_input-group.scss
+++ b/assets/stylesheets/bootstrap/_input-group.scss
@@ -5,6 +5,7 @@
.input-group {
position: relative;
display: flex;
+ align-items: center;
width: 100%;
.form-control {
@@ -28,10 +29,6 @@
.input-group-addon,
.input-group-btn,
.input-group .form-control {
- // Vertically centers the content of the addons within the input group
- display: flex;
- align-items: center;
-
&:not(:first-child):not(:last-child) {
@include border-radius(0);
}
@@ -40,7 +37,6 @@
.input-group-addon,
.input-group-btn {
white-space: nowrap;
- vertical-align: middle; // Match the inputs
}
@@ -71,9 +67,10 @@
font-size: $font-size-base; // Match inputs
font-weight: $font-weight-normal;
line-height: $input-btn-line-height;
- color: $input-color;
+ color: $input-group-addon-color;
text-align: center;
background-color: $input-group-addon-bg;
+ background-clip: padding-box;
border: $input-btn-border-width solid $input-group-addon-border-color;
@include border-radius($input-border-radius);
@@ -144,6 +141,8 @@
// element above the siblings.
> .btn {
position: relative;
+ background-clip: padding-box;
+ border: $input-btn-border-width solid $input-group-btn-border-color;
+ .btn {
margin-left: (-$input-btn-border-width);