Skip to content

Commit

Permalink
scope top padding of .form-control-static to be within horizontal for…
Browse files Browse the repository at this point in the history
…ms only; fixes #10927
  • Loading branch information
mdo committed Oct 14, 2013
1 parent 44b32a3 commit be4e951
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion dist/css/bootstrap.css
Expand Up @@ -2104,7 +2104,6 @@ textarea.input-lg {
}

.form-control-static {
padding-top: 7px;
margin-bottom: 0;
}

Expand Down Expand Up @@ -2173,6 +2172,10 @@ textarea.input-lg {
clear: both;
}

.form-horizontal .form-control-static {
padding-top: 7px;
}

@media (min-width: 768px) {
.form-horizontal .control-label {
text-align: right;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion less/forms.less
Expand Up @@ -267,7 +267,6 @@ input[type="checkbox"],

.form-control-static {
margin-bottom: 0; // Remove default margin from `p`
padding-top: (@padding-base-vertical + 1);
}


Expand Down Expand Up @@ -354,6 +353,10 @@ input[type="checkbox"],
.make-row();
}

.form-control-static {
padding-top: (@padding-base-vertical + 1);
}

// Only right align form labels here when the columns stop stacking
@media (min-width: @screen-sm-min) {
.control-label {
Expand Down

0 comments on commit be4e951

Please sign in to comment.