Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
9db4f2a3
Commit
9db4f2a3
authored
13 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
change .span* inputs to use content-sizing: border-box; to make them behave as block level elements
parent
d96c0c78
2 merge requests
!1475
2.0 wip
,
!1403
warningText and warningBackground docs fix
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/css/bootstrap-responsive.css
+27
-0
docs/assets/css/bootstrap-responsive.css
less/responsive.less
+20
-0
less/responsive.less
with
47 additions
and
0 deletions
+47
-0
docs/assets/css/bootstrap-responsive.css
+
27
-
0
View file @
9db4f2a3
...
...
@@ -7,6 +7,33 @@
display
:
block
;
line-height
:
18px
;
}
input
[
class
*=
"span"
],
select
[
class
*=
"span"
],
textarea
[
class
*=
"span"
],
.uneditable-input
{
display
:
block
;
width
:
100%
;
height
:
28px
;
/* Make inputs at least the height of their button counterpart */
/* Makes inputs behave like true block-level elements */
-webkit-box-sizing
:
border-box
;
/* Older Webkit */
-moz-box-sizing
:
border-box
;
/* Older FF */
-ms-box-sizing
:
border-box
;
/* IE8 */
box-sizing
:
border-box
;
/* CSS3 spec*/
}
.input-prepend
input
[
class
*=
"span"
],
.input-append
input
[
class
*=
"span"
]
{
width
:
auto
;
}
input
[
type
=
"checkbox"
],
input
[
type
=
"radio"
]
{
border
:
1px
solid
#ccc
;
}
...
...
This diff is collapsed.
Click to expand it.
less/responsive.less
+
20
-
0
View file @
9db4f2a3
...
...
@@ -33,6 +33,26 @@
line-height: @baseLineHeight;
}
// Make span* classes full width
input[class*="span"],
select[class*="span"],
textarea[class*="span"],
.uneditable-input {
display: block;
width: 100%;
height: 28px; /* Make inputs at least the height of their button counterpart */
/* Makes inputs behave like true block-level elements */
-webkit-box-sizing: border-box; /* Older Webkit */
-moz-box-sizing: border-box; /* Older FF */
-ms-box-sizing: border-box; /* IE8 */
box-sizing: border-box; /* CSS3 spec*/
}
// But don't let it screw up prepend/append inputs
.input-prepend input[class*="span"],
.input-append input[class*="span"] {
width: auto;
}
// Update checkboxes for iOS
input[type="checkbox"],
input[type="radio"] {
...
...
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
Menu
Explore
Projects
Groups
Snippets