forked from mayadata-io/de-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added inline spinner as requested by mayadata-io#137 and added missin…
…g loader import in product.scss
- Loading branch information
1 parent
cf9375a
commit 8e73693
Showing
3 changed files
with
107 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,100 @@ | ||
/**LOADER**/ | ||
.loading-container { | ||
border-radius: 4%; | ||
padding: 20px; | ||
width: 100px; | ||
} | ||
|
||
.loader { | ||
border: $loader-border; | ||
border-radius: 50%; | ||
border-top: $loader-border-top; | ||
width: $loader-width; | ||
height: $loader-height; | ||
-webkit-animation: spin 1s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; | ||
animation: spin 1s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; | ||
|
||
&.loader-pause { | ||
animation: none; | ||
} | ||
|
||
&.loader-xl { | ||
border: 6px solid $gray-000; | ||
border-top: 6px solid $primary; | ||
width: 84px; | ||
height: 84px; | ||
} | ||
} | ||
.iframe-loader { | ||
position: absolute; | ||
left: 50%; | ||
top: 40%; | ||
} | ||
@-webkit-keyframes spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes spin { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.loading-overlay { | ||
position: absolute; | ||
top: 50vh; | ||
left: 0; | ||
right: 0; | ||
z-index: 13; | ||
} | ||
|
||
// Loader icon | ||
.mi-spin { | ||
-webkit-animation: mi-spin 2s infinite linear; | ||
animation: mi-spin 2s infinite linear; | ||
display: inline-block; | ||
} | ||
@-webkit-keyframes mi-spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@keyframes mi-spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
border-radius: 4%; | ||
padding: 20px; | ||
width: 100px; | ||
} | ||
|
||
.inline-loading-container { | ||
display: inline-flex; | ||
justify-content: center; | ||
padding: 0 20px; | ||
} | ||
|
||
.loader { | ||
border: $loader-border; | ||
border-radius: 50%; | ||
border-top: $loader-border-top; | ||
width: $loader-width; | ||
height: $loader-height; | ||
-webkit-animation: spin 1s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; | ||
animation: spin 1s cubic-bezier(0.22, 0.61, 0.36, 1) infinite; | ||
|
||
&.loader-pause { | ||
animation: none; | ||
} | ||
|
||
&.loader-xl { | ||
border: 6px solid $gray-000; | ||
border-top: 6px solid $primary; | ||
width: 84px; | ||
height: 84px; | ||
} | ||
|
||
// Inline loader | ||
&.inline { | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
display: inline-block; | ||
} | ||
} | ||
.iframe-loader { | ||
position: absolute; | ||
left: 50%; | ||
top: 40%; | ||
} | ||
@-webkit-keyframes spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes spin { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.loading-overlay { | ||
position: absolute; | ||
top: 50vh; | ||
left: 0; | ||
right: 0; | ||
z-index: 13; | ||
} | ||
|
||
// Loader icon | ||
.mi-spin { | ||
-webkit-animation: mi-spin 2s infinite linear; | ||
animation: mi-spin 2s infinite linear; | ||
display: inline-block; | ||
} | ||
@-webkit-keyframes mi-spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} | ||
@keyframes mi-spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
|
||
100% { | ||
-webkit-transform: rotate(359deg); | ||
transform: rotate(359deg); | ||
} | ||
} |