mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 12:51:52 +02:00
hide space characters in input-group-btn to fix segmented buttons double border
This commit is contained in:
3
dist/css/bootstrap.css
vendored
3
dist/css/bootstrap.css
vendored
@@ -3301,6 +3301,7 @@ textarea.input-group-sm > .input-group-btn > .btn {
|
|||||||
}
|
}
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
font-size: 0;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.input-group-btn:first-child > .btn {
|
.input-group-btn:first-child > .btn {
|
||||||
@@ -3313,7 +3314,7 @@ textarea.input-group-sm > .input-group-btn > .btn {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.input-group-btn > .btn + .btn {
|
.input-group-btn > .btn + .btn {
|
||||||
margin-left: -4px;
|
margin-left: -1px;
|
||||||
}
|
}
|
||||||
.input-group-btn > .btn:hover,
|
.input-group-btn > .btn:hover,
|
||||||
.input-group-btn > .btn:active {
|
.input-group-btn > .btn:active {
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -112,7 +112,10 @@
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
.input-group-btn {
|
.input-group-btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
// Jankily prevent input button groups from wrapping
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
// in combination with inline-blocks and nowrap, space characters would take visible space
|
||||||
|
font-size: 0;
|
||||||
|
|
||||||
// Negative margin to only have a 1px border between the two
|
// Negative margin to only have a 1px border between the two
|
||||||
&:first-child > .btn {
|
&:first-child > .btn {
|
||||||
@@ -124,9 +127,8 @@
|
|||||||
}
|
}
|
||||||
.input-group-btn > .btn {
|
.input-group-btn > .btn {
|
||||||
position: relative;
|
position: relative;
|
||||||
// Jankily prevent input button groups from wrapping
|
|
||||||
+ .btn {
|
+ .btn {
|
||||||
margin-left: -4px;
|
margin-left: -1px;
|
||||||
}
|
}
|
||||||
// Bring the "active" button to the front
|
// Bring the "active" button to the front
|
||||||
&:hover,
|
&:hover,
|
||||||
|
Reference in New Issue
Block a user