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
5144c77b
Commit
5144c77b
authored
Aug 14, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4358: make select elements 30px tall to match inputs
parent
50df524b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+3
-2
less/forms.less
less/forms.less
+2
-2
No files found.
docs/assets/css/bootstrap.css
View file @
5144c77b
...
@@ -943,6 +943,7 @@ input[type="color"],
...
@@ -943,6 +943,7 @@ input[type="color"],
font-size
:
14px
;
font-size
:
14px
;
line-height
:
20px
;
line-height
:
20px
;
color
:
#555555
;
color
:
#555555
;
vertical-align
:
middle
;
-webkit-border-radius
:
3px
;
-webkit-border-radius
:
3px
;
-moz-border-radius
:
3px
;
-moz-border-radius
:
3px
;
border-radius
:
3px
;
border-radius
:
3px
;
...
@@ -1031,13 +1032,13 @@ input[type="checkbox"] {
...
@@ -1031,13 +1032,13 @@ input[type="checkbox"] {
select
,
select
,
input
[
type
=
"file"
]
{
input
[
type
=
"file"
]
{
height
:
28
px
;
height
:
30
px
;
/* In IE7, the height of the select element cannot be changed by height, only font-size */
/* In IE7, the height of the select element cannot be changed by height, only font-size */
*
margin-top
:
4px
;
*
margin-top
:
4px
;
/* For IE7, add top margin to align select with labels */
/* For IE7, add top margin to align select with labels */
line-height
:
28
px
;
line-height
:
30
px
;
}
}
select
{
select
{
...
...
less/forms.less
View file @
5144c77b
...
@@ -151,9 +151,9 @@ input[type="checkbox"] {
...
@@ -151,9 +151,9 @@ input[type="checkbox"] {
// Set the height of select and file controls to match text inputs
// Set the height of select and file controls to match text inputs
select,
select,
input[type="file"] {
input[type="file"] {
height:
28
px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
height:
30
px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
line-height:
28
px;
line-height:
30
px;
}
}
// Make select elements obey height by applying a border
// Make select elements obey height by applying a border
...
...
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