mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 15:44:51 +02:00
fixes #4666: overrides for input types with .btn-block
This commit is contained in:
6
docs/assets/css/bootstrap.css
vendored
6
docs/assets/css/bootstrap.css
vendored
@@ -3125,6 +3125,12 @@ button.close {
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="submit"].btn-block,
|
||||||
|
input[type="reset"].btn-block,
|
||||||
|
input[type="button"].btn-block {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-primary.active,
|
.btn-primary.active,
|
||||||
.btn-warning.active,
|
.btn-warning.active,
|
||||||
.btn-danger.active,
|
.btn-danger.active,
|
||||||
|
@@ -99,7 +99,10 @@
|
|||||||
line-height: @baseLineHeight - 3px;
|
line-height: @baseLineHeight - 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Block button
|
// Block button
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
.btn-block {
|
.btn-block {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -107,10 +110,22 @@
|
|||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
.box-sizing(border-box);
|
.box-sizing(border-box);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vertically space out multiple block buttons
|
||||||
.btn-block + .btn-block {
|
.btn-block + .btn-block {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specificity overrides
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"] {
|
||||||
|
&.btn-block {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Alternate buttons
|
// Alternate buttons
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user