Merge branch 'simplify-animation-css' into 'master'
Replace animate.css with a smaller subset of animations. As discussed in #15667. This saves ~50KB uncompressed. cc: @jschatz1 See merge request !3937
This commit is contained in:
commit
5566c9e706
5 changed files with 74 additions and 12 deletions
|
@ -89,6 +89,7 @@ v 8.7.3
|
||||||
- Merge request widget displays TeamCity build state and code coverage correctly again.
|
- Merge request widget displays TeamCity build state and code coverage correctly again.
|
||||||
- Fix the line code when importing PR review comments from GitHub. !4010
|
- Fix the line code when importing PR review comments from GitHub. !4010
|
||||||
- Wikis are now initialized on legacy projects when checking repositories
|
- Wikis are now initialized on legacy projects when checking repositories
|
||||||
|
- Remove animate.css in favor of a smaller subset of animations. !3937 (Connor Shea)
|
||||||
|
|
||||||
v 8.7.2
|
v 8.7.2
|
||||||
- The "New Branch" button is now loaded asynchronously
|
- The "New Branch" button is now loaded asynchronously
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
*= require dropzone/basic
|
*= require dropzone/basic
|
||||||
*= require cal-heatmap
|
*= require cal-heatmap
|
||||||
*= require cropper.css
|
*= require cropper.css
|
||||||
*= require animate
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
@import 'framework/tw_bootstrap';
|
@import 'framework/tw_bootstrap';
|
||||||
@import "framework/layout";
|
@import "framework/layout";
|
||||||
|
|
||||||
|
@import "framework/animations.scss";
|
||||||
@import "framework/avatar.scss";
|
@import "framework/avatar.scss";
|
||||||
@import "framework/blocks.scss";
|
@import "framework/blocks.scss";
|
||||||
@import "framework/buttons.scss";
|
@import "framework/buttons.scss";
|
||||||
|
|
72
app/assets/stylesheets/framework/animations.scss
Normal file
72
app/assets/stylesheets/framework/animations.scss
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
// This file is based off animate.css 3.5.1, available here:
|
||||||
|
// https://github.com/daneden/animate.css/blob/3.5.1/animate.css
|
||||||
|
//
|
||||||
|
// animate.css - http://daneden.me/animate
|
||||||
|
// Version - 3.5.1
|
||||||
|
// Licensed under the MIT license - http://opensource.org/licenses/MIT
|
||||||
|
//
|
||||||
|
// Copyright (c) 2016 Daniel Eden
|
||||||
|
|
||||||
|
.animated {
|
||||||
|
-webkit-animation-duration: 1s;
|
||||||
|
animation-duration: 1s;
|
||||||
|
-webkit-animation-fill-mode: both;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animated.infinite {
|
||||||
|
-webkit-animation-iteration-count: infinite;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animated.hinge {
|
||||||
|
-webkit-animation-duration: 2s;
|
||||||
|
animation-duration: 2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animated.flipOutX,
|
||||||
|
.animated.flipOutY,
|
||||||
|
.animated.bounceIn,
|
||||||
|
.animated.bounceOut {
|
||||||
|
-webkit-animation-duration: .75s;
|
||||||
|
animation-duration: .75s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes pulse {
|
||||||
|
from {
|
||||||
|
-webkit-transform: scale3d(1, 1, 1);
|
||||||
|
transform: scale3d(1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
-webkit-transform: scale3d(1.05, 1.05, 1.05);
|
||||||
|
transform: scale3d(1.05, 1.05, 1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: scale3d(1, 1, 1);
|
||||||
|
transform: scale3d(1, 1, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
from {
|
||||||
|
-webkit-transform: scale3d(1, 1, 1);
|
||||||
|
transform: scale3d(1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
-webkit-transform: scale3d(1.05, 1.05, 1.05);
|
||||||
|
transform: scale3d(1.05, 1.05, 1.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
-webkit-transform: scale3d(1, 1, 1);
|
||||||
|
transform: scale3d(1, 1, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pulse {
|
||||||
|
-webkit-animation-name: pulse;
|
||||||
|
animation-name: pulse;
|
||||||
|
}
|
11
vendor/assets/stylesheets/animate.css
vendored
11
vendor/assets/stylesheets/animate.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue