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
6881c193
Commit
6881c193
authored
Sep 17, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #5039: properly set .row-fluid margins for .controls-row
parent
03a406d9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
docs/assets/css/bootstrap-responsive.css
docs/assets/css/bootstrap-responsive.css
+6
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-1
less/forms.less
less/forms.less
+6
-2
less/mixins.less
less/mixins.less
+5
-0
No files found.
docs/assets/css/bootstrap-responsive.css
View file @
6881c193
...
@@ -215,6 +215,9 @@
...
@@ -215,6 +215,9 @@
.row-fluid
[
class
*=
"span"
]
:first-child
{
.row-fluid
[
class
*=
"span"
]
:first-child
{
margin-left
:
0
;
margin-left
:
0
;
}
}
.row-fluid
.controls-row
[
class
*=
"span"
]
+
[
class
*=
"span"
]
{
margin-left
:
2.564102564102564%
;
}
.row-fluid
.span12
{
.row-fluid
.span12
{
width
:
100%
;
width
:
100%
;
*
width
:
99.94680851063829%
;
*
width
:
99.94680851063829%
;
...
@@ -562,6 +565,9 @@
...
@@ -562,6 +565,9 @@
.row-fluid
[
class
*=
"span"
]
:first-child
{
.row-fluid
[
class
*=
"span"
]
:first-child
{
margin-left
:
0
;
margin-left
:
0
;
}
}
.row-fluid
.controls-row
[
class
*=
"span"
]
+
[
class
*=
"span"
]
{
margin-left
:
2.7624309392265194%
;
}
.row-fluid
.span12
{
.row-fluid
.span12
{
width
:
100%
;
width
:
100%
;
*
width
:
99.94680851063829%
;
*
width
:
99.94680851063829%
;
...
...
docs/assets/css/bootstrap.css
View file @
6881c193
...
@@ -355,6 +355,10 @@ a:hover {
...
@@ -355,6 +355,10 @@ a:hover {
margin-left
:
0
;
margin-left
:
0
;
}
}
.row-fluid
.controls-row
[
class
*=
"span"
]
+
[
class
*=
"span"
]
{
margin-left
:
2.127659574468085%
;
}
.row-fluid
.span12
{
.row-fluid
.span12
{
width
:
100%
;
width
:
100%
;
*
width
:
99.94680851063829%
;
*
width
:
99.94680851063829%
;
...
@@ -1302,7 +1306,8 @@ textarea.span1,
...
@@ -1302,7 +1306,8 @@ textarea.span1,
clear
:
both
;
clear
:
both
;
}
}
.controls-row
[
class
*=
"span"
]
{
.controls-row
[
class
*=
"span"
],
.row-fluid
.controls-row
[
class
*=
"span"
]
{
float
:
left
;
float
:
left
;
}
}
...
...
less/forms.less
View file @
6881c193
...
@@ -304,8 +304,12 @@ textarea[class*="span"],
...
@@ -304,8 +304,12 @@ textarea[class*="span"],
.controls-row {
.controls-row {
.clearfix(); // Clear the float from controls
.clearfix(); // Clear the float from controls
}
}
.controls-row [class*="span"] {
float: left; // Float to collapse white-space for proper grid alignment
// Float to collapse white-space for proper grid alignment
.controls-row [class*="span"],
// Redeclare the fluid grid collapse since we undo the float for inputs
.row-fluid .controls-row [class*="span"] {
float: left;
}
}
...
...
less/mixins.less
View file @
6881c193
...
@@ -642,6 +642,11 @@
...
@@ -642,6 +642,11 @@
margin-left: 0;
margin-left: 0;
}
}
// Space grid-sized controls properly if multiple per line
.controls-row [class*="span"] + [class*="span"] {
margin-left: @fluidGridGutterWidth;
}
// generate .spanX and .offsetX
// generate .spanX and .offsetX
.spanX (@gridColumns);
.spanX (@gridColumns);
.offsetX (@gridColumns);
.offsetX (@gridColumns);
...
...
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