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
7da34cc0
Commit
7da34cc0
authored
10 years ago
by
ItsJonQ
Browse files
Options
Download
Email Patches
Plain Diff
Applied translate3d to modal, navbar-fixed and affix to combat browser repaint
parent
3dd1531d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
less/modals.less
+2
-2
less/modals.less
less/navbar.less
+1
-0
less/navbar.less
less/utilities.less
+1
-0
less/utilities.less
with
4 additions
and
2 deletions
+4
-2
less/modals.less
+
2
-
2
View file @
7da34cc0
...
...
@@ -31,10 +31,10 @@
// When fading in the modal, animate it to slide down
&.fade .modal-dialog {
.translate(0, -25%);
.translate
3d
(0, -25%
, 0
);
.transition-transform(~"0.3s ease-out");
}
&.in .modal-dialog { .translate(0, 0
)
}
&.in .modal-dialog { .translate
3d
(0, 0
, 0)
}
}
// Shell div to position the modal with bottom padding
...
...
This diff is collapsed.
Click to expand it.
less/navbar.less
+
1
-
0
View file @
7da34cc0
...
...
@@ -141,6 +141,7 @@
right: 0;
left: 0;
z-index: @zindex-navbar-fixed;
.translate3d(0, 0, 0);
// Undo the rounded corners
@media (min-width: @grid-float-breakpoint) {
...
...
This diff is collapsed.
Click to expand it.
less/utilities.less
+
1
-
0
View file @
7da34cc0
...
...
@@ -53,4 +53,5 @@
.affix {
position: fixed;
.translate3d(0, 0, 0);
}
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