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
8da78223
Commit
8da78223
authored
Oct 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset input and button heights with updated padding
parent
56935c64
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
40 deletions
+33
-40
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+17
-23
less/buttons.less
less/buttons.less
+1
-1
less/forms.less
less/forms.less
+13
-13
less/mixins.less
less/mixins.less
+0
-2
less/variables.less
less/variables.less
+2
-1
No files found.
docs/assets/css/bootstrap.css
View file @
8da78223
...
...
@@ -713,20 +713,24 @@ input[type="tel"],
input
[
type
=
"color"
],
.uneditable-input
{
display
:
inline-block
;
height
:
20
px
;
padding
:
4px
6
px
;
margin-bottom
:
9
px
;
min-height
:
34
px
;
padding
:
6px
9
px
;
margin-bottom
:
10
px
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#555555
;
vertical-align
:
middle
;
background-color
:
#ffffff
;
border-radius
:
4px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
input
,
textarea
,
.uneditable-input
{
width
:
2
06
px
;
width
:
2
20
px
;
}
textarea
{
...
...
@@ -749,7 +753,6 @@ input[type="search"],
input
[
type
=
"tel"
],
input
[
type
=
"color"
],
.uneditable-input
{
background-color
:
#ffffff
;
border
:
1px
solid
#cccccc
;
-webkit-box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
box-shadow
:
inset
0
1px
1px
rgba
(
0
,
0
,
0
,
0.075
);
...
...
@@ -806,15 +809,14 @@ input[type="checkbox"] {
select
,
input
[
type
=
"file"
]
{
height
:
3
0
px
;
height
:
3
4
px
;
/* In IE7, the height of the select element cannot be changed by height, only font-size. TODO: Check if this is still needed when dropping IE7 support */
line-height
:
3
0
px
;
line-height
:
3
4
px
;
}
select
{
width
:
220px
;
background-color
:
#ffffff
;
border
:
1px
solid
#cccccc
;
}
...
...
@@ -1466,7 +1468,7 @@ select:focus:required:invalid:focus {
width
:
auto
;
height
:
20px
;
min-width
:
16px
;
padding
:
4px
5
px
;
padding
:
6
px
;
font-size
:
14px
;
font-weight
:
normal
;
line-height
:
20px
;
...
...
@@ -1559,7 +1561,7 @@ input.search-query {
/* IE8 doesn't have border radius, so don't indent the padding */
margin-bottom
:
0
;
border-radius
:
15
px
;
border-radius
:
20
px
;
}
/* Allow for input prepend/append in search forms */
...
...
@@ -1570,19 +1572,19 @@ input.search-query {
}
.form-search
.input-append
.search-query
{
border-radius
:
14px
0
0
14
px
;
border-radius
:
20px
0
0
20
px
;
}
.form-search
.input-append
.btn
{
border-radius
:
0
14px
14
px
0
;
border-radius
:
0
20px
20
px
0
;
}
.form-search
.input-prepend
.search-query
{
border-radius
:
0
14px
14
px
0
;
border-radius
:
0
20px
20
px
0
;
}
.form-search
.input-prepend
.btn
{
border-radius
:
14px
0
0
14
px
;
border-radius
:
20px
0
0
20
px
;
}
.form-search
input
,
...
...
@@ -2731,7 +2733,7 @@ button.close {
.btn
{
display
:
inline-block
;
padding
:
4
px
12px
;
padding
:
6
px
12px
;
margin-bottom
:
0
;
font-size
:
14px
;
line-height
:
20px
;
...
...
@@ -5257,10 +5259,6 @@ a.badge:hover {
.control-block-level
{
display
:
block
;
width
:
100%
;
min-height
:
30px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.hidden
{
...
...
@@ -5720,10 +5718,6 @@ a.badge:hover {
.uneditable-input
{
display
:
block
;
width
:
100%
;
min-height
:
30px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.input-prepend
input
,
.input-append
input
,
...
...
less/buttons.less
View file @
8da78223
...
...
@@ -9,7 +9,7 @@
// Core
.btn {
display: inline-block;
padding:
4
px 12px;
padding:
6
px 12px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
...
...
less/forms.less
View file @
8da78223
...
...
@@ -79,14 +79,16 @@ input[type="tel"],
input[type="color"],
.uneditable-input {
display: inline-block;
height: @baseLineHeight;
padding: 4px 6px;
margin-bottom: 9px;
.box-sizing(border-box); // Makes inputs behave like true block-level elements
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
padding: 6px 9px;
margin-bottom: @baseLineHeight / 2;
font-size: @baseFontSize;
line-height: @baseLineHeight;
color: @gray;
border-radius: @inputBorderRadius;
vertical-align: middle;
background-color: @inputBackground;
border-radius: @inputBorderRadius;
}
// Reset appearance properties for textual inputs and textarea
...
...
@@ -94,7 +96,7 @@ input[type="color"],
input,
textarea,
.uneditable-input {
width: 2
06px; // plus 12px padding and 2px border
width: 2
20px;
}
// Reset height since textareas have rows
textarea {
...
...
@@ -117,7 +119,6 @@ input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
background-color: @inputBackground;
border: 1px solid @inputBorder;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
.transition(~"border linear .2s, box-shadow linear .2s");
...
...
@@ -162,7 +163,6 @@ input[type="file"] {
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
border: 1px solid @inputBorder;
background-color: @inputBackground; // Chrome on Linux and Mobile Safari need background-color
}
// Make multiple select elements height not fixed
...
...
@@ -475,7 +475,7 @@ select:focus:required:invalid {
width: auto;
height: @baseLineHeight;
min-width: 16px;
padding:
4px 5
px;
padding:
6
px;
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
...
...
@@ -564,7 +564,7 @@ input.search-query {
padding-left: 14px;
padding-left: 4px \9; /* IE8 doesn't have border radius, so don't indent the padding */
margin-bottom: 0; // Remove the default margin on all inputs
border-radius:
15px
;
border-radius:
@inputSearchBorderRadius
;
}
/* Allow for input prepend/append in search forms */
...
...
@@ -573,16 +573,16 @@ input.search-query {
border-radius: 0; // Override due to specificity
}
.form-search .input-append .search-query {
border-radius:
14px 0 0 14px
;
border-radius:
@inputSearchBorderRadius 0 0 @inputSearchBorderRadius
;
}
.form-search .input-append .btn {
border-radius: 0
14px 14px
0;
border-radius: 0
@inputSearchBorderRadius @inputSearchBorderRadius
0;
}
.form-search .input-prepend .search-query {
border-radius: 0
14px 14px
0;
border-radius: 0
@inputSearchBorderRadius @inputSearchBorderRadius
0;
}
.form-search .input-prepend .btn {
border-radius:
14px 0 0 14px
;
border-radius:
@inputSearchBorderRadius 0 0 @inputSearchBorderRadius
;
}
...
...
less/mixins.less
View file @
8da78223
...
...
@@ -128,8 +128,6 @@
.input-block-level() {
display: block;
width: 100%;
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
.box-sizing(border-box); // Makes inputs behave like true block-level elements
}
...
...
less/variables.less
View file @
8da78223
...
...
@@ -111,9 +111,10 @@
@inputBackground: @white;
@inputBorder: #ccc;
@inputBorderRadius: @baseBorderRadius;
@inputSearchBorderRadius: 20px;
@inputDisabledBackground: @grayLighter;
@formActionsBackground: #f5f5f5;
@inputHeight: @baseLineHeight + 1
0px; // base line-height + 8
px vertical padding + 2px top/bottom border
@inputHeight: @baseLineHeight + 1
4px; // base line-height + 12
px vertical padding + 2px top/bottom border
// Dropdowns
...
...
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