Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
3b67ece2
Commit
3b67ece2
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
fixes
#4666
: overrides for input types with .btn-block
parent
4674945f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/css/bootstrap.css
+6
-0
docs/assets/css/bootstrap.css
less/buttons.less
+15
-0
less/buttons.less
with
21 additions
and
0 deletions
+21
-0
docs/assets/css/bootstrap.css
+
6
-
0
View file @
3b67ece2
...
@@ -3125,6 +3125,12 @@ button.close {
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
less/buttons.less
+
15
-
0
View file @
3b67ece2
...
@@ -99,7 +99,10 @@
...
@@ -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 @@
...
@@ -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
// --------------------------------------------------
// --------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment