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
ecf84bda
Commit
ecf84bda
authored
May 15, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct regressions against 2.0.3
parent
87f6e426
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
12 deletions
+53
-12
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+28
-0
less/forms.less
less/forms.less
+25
-12
No files found.
docs/assets/css/bootstrap.css
View file @
ecf84bda
...
@@ -796,6 +796,11 @@ input[type="color"] {
...
@@ -796,6 +796,11 @@ input[type="color"] {
color
:
#555555
;
color
:
#555555
;
}
}
input
,
textarea
{
width
:
210px
;
}
textarea
,
textarea
,
input
[
type
=
"text"
],
input
[
type
=
"text"
],
input
[
type
=
"password"
],
input
[
type
=
"password"
],
...
@@ -826,6 +831,24 @@ input[type="color"] {
...
@@ -826,6 +831,24 @@ input[type="color"] {
transition
:
border
linear
0.2s
,
box-shadow
linear
0.2s
;
transition
:
border
linear
0.2s
,
box-shadow
linear
0.2s
;
}
}
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
margin
:
3px
0
;
*
margin-top
:
0
;
/* IE7 */
line-height
:
normal
;
cursor
:
pointer
;
}
input
[
type
=
"submit"
],
input
[
type
=
"reset"
],
input
[
type
=
"button"
],
input
[
type
=
"radio"
],
input
[
type
=
"checkbox"
]
{
width
:
auto
;
}
.uneditable-textarea
{
.uneditable-textarea
{
width
:
auto
;
width
:
auto
;
height
:
auto
;
height
:
auto
;
...
@@ -842,6 +865,11 @@ input[type="file"] {
...
@@ -842,6 +865,11 @@ input[type="file"] {
line-height
:
28px
;
line-height
:
28px
;
}
}
select
{
width
:
220px
;
border
:
1px
solid
#bbb
;
}
select
[
multiple
],
select
[
multiple
],
select
[
size
]
{
select
[
size
]
{
height
:
auto
;
height
:
auto
;
...
...
less/forms.less
View file @
ecf84bda
...
@@ -87,7 +87,13 @@ input[type="color"] {
...
@@ -87,7 +87,13 @@ input[type="color"] {
color: @gray;
color: @gray;
}
}
// Reset background, border, and box-shadow for textual inputs and textarea
// Reset appearance properties for textual inputs and textarea
// Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
input,
textarea {
width: 210px;
}
// Everything else
textarea,
textarea,
input[type="text"],
input[type="text"],
input[type="password"],
input[type="password"],
...
@@ -111,21 +117,22 @@ input[type="color"] {
...
@@ -111,21 +117,22 @@ input[type="color"] {
.transition(@transition);
.transition(@transition);
}
}
//
Unused selectors
//
Position radios and checkboxes better
input[type="radio"],
input[type="radio"],
input[type="checkbox"] {
input[type="checkbox"] {
margin: 3px 0;
*margin-top: 0; /* IE7 */
line-height: normal;
cursor: pointer;
}
}
input[type="button"],
// Reset width of input buttons, radios, checkboxes
input[type="submit"],
input[type="submit"],
input[type="reset"] {
input[type="reset"],
}
input[type="button"],
input[type="file"] {
input[type="radio"],
}
input[type="checkbox"] {
input[type="hidden"] {
width: auto; // Override of generic input selector
}
input[type="image"] {
}
input[type="range"] {
}
}
// Make uneditable textareas behave like a textarea
// Make uneditable textareas behave like a textarea
...
@@ -142,6 +149,12 @@ input[type="file"] {
...
@@ -142,6 +149,12 @@ input[type="file"] {
line-height: 28px;
line-height: 28px;
}
}
// Make select elements obey height by applying a border
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
border: 1px solid #bbb;
}
// Make multiple select elements height not fixed
// Make multiple select elements height not fixed
select[multiple],
select[multiple],
select[size] {
select[size] {
...
...
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