Skip to content

Commit

Permalink
move loading animation css to css bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
karlprieb committed Mar 6, 2018
1 parent e356d7f commit 2fd19cb
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 51 deletions.
49 changes: 49 additions & 0 deletions packages/rocketchat-theme/client/imports/general/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,52 @@ button {
.hidden {
display: none;
}

.loading-animation {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;

display: flex;

text-align: center;
align-items: center;
justify-content: center;
}

.loading-animation > .bounce {
display: inline-block;

width: 10px;
height: 10px;
margin: 2px;

animation: loading-bouncedelay 1.4s infinite ease-in-out both;

border-radius: 100%;
background-color: rgba(255, 255, 255, 0.6);
}

.loading-animation .bounce1 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}

.loading-animation .bounce2 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}

@keyframes loading-bouncedelay {
0%,
80%,
100% {
transform: scale(0);
}

40% {
transform: scale(1);
}
}
1 change: 0 additions & 1 deletion packages/rocketchat-ui-master/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ Package.onUse(function(api) {

api.addFiles('server/inject.js', 'server');
api.addAssets('public/icons.svg', 'server');
api.addAssets('public/loading.css', 'server');
});
48 changes: 0 additions & 48 deletions packages/rocketchat-ui-master/public/loading.css

This file was deleted.

2 changes: 0 additions & 2 deletions packages/rocketchat-ui-master/server/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ RocketChat.models.Settings.find({_id:/theme-color-rc/i}, {fields: { value: 1}}).

Inject.rawHead('dynamic', `<script>(${ require('./dynamic-css.js').default.toString().replace(/\/\/.*?\n/g, '') })()</script>`);

Inject.rawHead('page-loading', `<style>${ Assets.getText('public/loading.css') }</style>`);

Inject.rawBody('icons', Assets.getText('public/icons.svg'));

Inject.rawBody('page-loading-div', `
Expand Down

0 comments on commit 2fd19cb

Please sign in to comment.