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
b9413460
Commit
b9413460
authored
Jan 26, 2012
by
Pete Hopkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes inputs and buttons align middle so they line up in all browsers
parent
f76444c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
lib/buttons.less
lib/buttons.less
+4
-3
lib/forms.less
lib/forms.less
+4
-4
lib/reset.less
lib/reset.less
+1
-2
No files found.
lib/buttons.less
View file @
b9413460
...
...
@@ -66,9 +66,9 @@
.btn {
// Button Base
display: inline-block;
padding:
5px 10px 6
px;
padding:
4px 10px 4
px;
font-size: @baseFontSize;
line-height:
normal
;
line-height:
@baseLineHeight
;
color: @grayDark;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
#gradient > .vertical-three-colors(@white, @white, 25%, darken(@white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
...
...
@@ -129,8 +129,9 @@
.border-radius(5px);
}
&.small {
padding:
7px 9px 7
px;
padding:
5px 9px 5
px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
}
...
...
lib/forms.less
View file @
b9413460
...
...
@@ -119,7 +119,6 @@ input[type=file] {
// Chrome on Linux and Mobile Safari need background-color
select {
width: 220px; // default input width + 10px of padding that doesn't get applied
vertical-align: baseline;
background-color: @white;
}
...
...
@@ -377,9 +376,9 @@ select:focus:required:invalid {
}
.help-inline {
*position: relative; /* IE6-7 */
*top: -5px; /* IE6-7 */
display: inlin
e;
display: inline-block;
margin-bottom: 9px;
vertical-align: middl
e;
padding-left: 5px;
}
...
...
@@ -469,6 +468,7 @@ select:focus:required:invalid {
input,
textarea,
select,
.help-inline,
.uneditable-input {
display: inline-block;
margin-bottom: 0;
...
...
lib/reset.less
View file @
b9413460
...
...
@@ -91,8 +91,7 @@ select,
textarea {
margin: 0;
font-size: 100%;
vertical-align: baseline;
*vertical-align: middle;
vertical-align: middle;
}
button,
input {
...
...
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