Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Makes inputs and buttons align middle so they line up in all browsers
  • Loading branch information
Pete Hopkins committed Jan 26, 2012
1 parent f76444c commit b941346
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 4 additions & 3 deletions lib/buttons.less
Expand Up @@ -66,9 +66,9 @@
.btn {
// Button Base
display: inline-block;
padding: 5px 10px 6px;
padding: 4px 10px 4px;
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
Expand Down Expand Up @@ -129,8 +129,9 @@
.border-radius(5px);
}
&.small {
padding: 7px 9px 7px;
padding: 5px 9px 5px;
font-size: @baseFontSize - 2px;
line-height: @baseLineHeight - 2px;
}
}

Expand Down
8 changes: 4 additions & 4 deletions lib/forms.less
Expand Up @@ -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;
}

Expand Down Expand Up @@ -377,9 +376,9 @@ select:focus:required:invalid {
}

.help-inline {
*position: relative; /* IE6-7 */
*top: -5px; /* IE6-7 */
display: inline;
display: inline-block;
margin-bottom: 9px;
vertical-align: middle;
padding-left: 5px;
}

Expand Down Expand Up @@ -469,6 +468,7 @@ select:focus:required:invalid {
input,
textarea,
select,
.help-inline,
.uneditable-input {
display: inline-block;
margin-bottom: 0;
Expand Down
3 changes: 1 addition & 2 deletions lib/reset.less
Expand Up @@ -91,8 +91,7 @@ select,
textarea {
margin: 0;
font-size: 100%;
vertical-align: baseline;
*vertical-align: middle;
vertical-align: middle;
}
button,
input {
Expand Down

0 comments on commit b941346

Please sign in to comment.