Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c319d610
Commit
c319d610
authored
9 years ago
by
Thomas P. Horton
Browse files
Options
Download
Email Patches
Plain Diff
Round results from gutter division to prevent decimal margins and padding
parent
6ba595f3
5 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!16351
Round results from gutter division to prevent decimal margins and padding
,
!25326
Adjust examples
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
less/forms.less
+1
-1
less/forms.less
less/mixins/grid-framework.less
+2
-2
less/mixins/grid-framework.less
less/mixins/grid.less
+2
-2
less/mixins/grid.less
with
5 additions
and
5 deletions
+5
-5
less/forms.less
+
1
-
1
View file @
c319d610
...
...
@@ -576,7 +576,7 @@ input[type="checkbox"] {
// Reposition the icon because it's now within a grid column and columns have
// `position: relative;` on them. Also accounts for the grid gutter padding.
.has-feedback .form-control-feedback {
right: (@grid-gutter-width / 2);
right:
floor(
(@grid-gutter-width / 2)
)
;
}
// Form group sizes
...
...
This diff is collapsed.
Click to expand it.
less/mixins/grid-framework.less
+
2
-
2
View file @
c319d610
...
...
@@ -19,8 +19,8 @@
// Prevent columns from collapsing when empty
min-height: 1px;
// Inner gutter via padding
padding-left: (@grid-gutter-width / 2);
padding-right: (@grid-gutter-width / 2);
padding-left:
ceil(
(@grid-gutter-width / 2)
)
;
padding-right:
floor(
(@grid-gutter-width / 2)
)
;
}
}
.col(1); // kickstart it
...
...
This diff is collapsed.
Click to expand it.
less/mixins/grid.less
+
2
-
2
View file @
c319d610
...
...
@@ -13,8 +13,8 @@
// Creates a wrapper for a series of columns
.make-row(@gutter: @grid-gutter-width) {
margin-left: (@gutter / -2);
margin-right: (@gutter / -2);
margin-left:
ceil(
(@gutter / -2)
)
;
margin-right:
floor(
(@gutter / -2)
)
;
&:extend(.clearfix all);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets