Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
68827689
Commit
68827689
authored
Jul 26, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `.form-control` in input sizing CSS
parent
73427f71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
52 deletions
+8
-52
css.html
css.html
+1
-1
dist/css/bootstrap.css
dist/css/bootstrap.css
+2
-32
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/forms.less
less/forms.less
+4
-18
No files found.
css.html
View file @
68827689
...
...
@@ -1277,7 +1277,7 @@ For example, <code><section></code> should be wrapped as inline.
</form>
{% highlight html %}
<form
class=
"form-horizontal"
>
<div
class=
"row"
>
<div
class=
"row
form-group
"
>
<label
for=
"inputEmail"
class=
"col-lg-2 control-label"
>
Email
</label>
<div
class=
"col-lg-10"
>
<input
type=
"text"
class=
"form-control"
id=
"inputEmail"
placeholder=
"Email"
>
...
...
dist/css/bootstrap.css
View file @
68827689
...
...
@@ -1432,44 +1432,14 @@ textarea.form-control {
margin-left
:
10px
;
}
select
.input-large
,
textarea
.input-large
,
input
[
type
=
"text"
]
.input-large
,
input
[
type
=
"password"
]
.input-large
,
input
[
type
=
"datetime"
]
.input-large
,
input
[
type
=
"datetime-local"
]
.input-large
,
input
[
type
=
"date"
]
.input-large
,
input
[
type
=
"month"
]
.input-large
,
input
[
type
=
"time"
]
.input-large
,
input
[
type
=
"week"
]
.input-large
,
input
[
type
=
"number"
]
.input-large
,
input
[
type
=
"email"
]
.input-large
,
input
[
type
=
"url"
]
.input-large
,
input
[
type
=
"search"
]
.input-large
,
input
[
type
=
"tel"
]
.input-large
,
input
[
type
=
"color"
]
.input-large
{
.form-control.input-large
{
height
:
56px
;
padding
:
14px
16px
;
font-size
:
18px
;
border-radius
:
6px
;
}
select
.input-small
,
textarea
.input-small
,
input
[
type
=
"text"
]
.input-small
,
input
[
type
=
"password"
]
.input-small
,
input
[
type
=
"datetime"
]
.input-small
,
input
[
type
=
"datetime-local"
]
.input-small
,
input
[
type
=
"date"
]
.input-small
,
input
[
type
=
"month"
]
.input-small
,
input
[
type
=
"time"
]
.input-small
,
input
[
type
=
"week"
]
.input-small
,
input
[
type
=
"number"
]
.input-small
,
input
[
type
=
"email"
]
.input-small
,
input
[
type
=
"url"
]
.input-small
,
input
[
type
=
"search"
]
.input-small
,
input
[
type
=
"tel"
]
.input-small
,
input
[
type
=
"color"
]
.input-small
{
.form-control.input-small
{
height
:
30px
;
padding
:
5px
10px
;
font-size
:
12px
;
...
...
dist/css/bootstrap.min.css
View file @
68827689
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/forms.less
View file @
68827689
...
...
@@ -215,24 +215,10 @@ input[type="number"] {
// Form control sizing
//
// Relative text size, padding, and border-radii changes for form controls. For
// horizontal sizing, wrap controls in the predefined grid classes.
select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
// element gets special love because it's special, and that's a fact!
.form-control {
&.input-large {
height: @input-height-large;
padding: @padding-large-vertical @padding-large-horizontal;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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