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
609142ee
Commit
609142ee
authored
Aug 27, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4729: only use margin-top on .help-block when it follows an input, select, textarea
parent
7d412b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-1
less/forms.less
less/forms.less
+8
-1
No files found.
docs/assets/css/bootstrap.css
View file @
609142ee
...
...
@@ -1792,10 +1792,15 @@ legend + .control-group {
}
.form-horizontal
.help-block
{
margin-top
:
10px
;
margin-bottom
:
0
;
}
.form-horizontal
input
+
.help-block
,
.form-horizontal
select
+
.help-block
,
.form-horizontal
textarea
+
.help-block
{
margin-top
:
10px
;
}
.form-horizontal
.form-actions
{
padding-left
:
160px
;
}
...
...
less/forms.less
View file @
609142ee
...
...
@@ -633,9 +633,16 @@ legend + .control-group {
}
// Remove bottom margin on block level help text since that's accounted for on .control-group
.help-block {
margin-top: @baseLineHeight / 2;
margin-bottom: 0;
}
// And apply it only to .help-block instances that follow a form control
input,
select,
textarea {
+ .help-block {
margin-top: @baseLineHeight / 2;
}
}
// Move over buttons in .form-actions to align with .controls
.form-actions {
padding-left: 160px;
...
...
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