Extracts styles of the loading animation to a separate css file for faster loading

parent b34f89f4
#loader-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000
}
#loader-wrapper .loader-section {
position: fixed;
top: 0;
width: 51%;
height: 100%;
z-index: 1000;
-webkit-transform: translateX(0);
transform: translateX(0)
}
#loader-wrapper .loader-section.section-left {
left: 0
}
#loader-wrapper .loader-section.section-right {
right: 0
}
#loader-wrapper #loader {
display: block;
position: relative;
left: 50%;
top: 50%;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border-radius: 50%;
-webkit-animation: 2s linear infinite spin;
animation: 2s linear infinite spin;
z-index: 1001
}
#loader-wrapper #loader:before {
content: "";
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border-radius: 50%;
-webkit-animation: 3s linear infinite spin;
animation: 3s linear infinite spin
}
#loader-wrapper #loader:after {
content: "";
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
border-radius: 50%;
-webkit-animation: 1.5s linear infinite spin;
animation: 1.5s linear infinite spin
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0);
transform: rotate(0)
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg)
}
}
@keyframes spin {
0% {
-webkit-transform: rotate(0);
transform: rotate(0)
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg)
}
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper .loader-section.section-left, html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper .loader-section.section-right {
background-color: #23425b
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #3498db
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #f9c922
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader, html[data-theme=theme-blackbeauty] #loader-wrapper #loader, html[data-theme=theme-elegant] #loader-wrapper #loader {
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #e74c3c
}
html[data-theme=theme-blackbeauty] #loader-wrapper .loader-section.section-left, html[data-theme=theme-blackbeauty] #loader-wrapper .loader-section.section-right {
background-color: #010101
}
html[data-theme=theme-blackbeauty] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #3498db
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader:before, html[data-theme=theme-blackbeauty] #loader-wrapper #loader:before, html[data-theme=theme-elegant] #loader-wrapper #loader:before {
html[data-theme=theme-blackbeauty] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #f9c922
}
html[data-theme=theme-arsnova-dot-click-contrast] #loader-wrapper #loader:after, html[data-theme=theme-blackbeauty] #loader-wrapper #loader:after, html[data-theme=theme-elegant] #loader-wrapper #loader:after {
html[data-theme=theme-blackbeauty] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #e74c3c
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper #loader, html[data-theme=theme-Material-blue] #loader-wrapper #loader, html[data-theme=theme-Material-hope] #loader-wrapper #loader, html[data-theme=theme-Material] #loader-wrapper #loader, html[data-theme=theme-decent-blue] #loader-wrapper #loader, html[data-theme=theme-spiritual-purple] #loader-wrapper #loader {
html[data-theme=theme-elegant] #loader-wrapper .loader-section.section-left, html[data-theme=theme-elegant] #loader-wrapper .loader-section.section-right {
background-color: #dbe4e9
}
html[data-theme=theme-elegant] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #3498db
}
html[data-theme=theme-elegant] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #f9c922
}
html[data-theme=theme-elegant] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #e74c3c
}
html[data-theme=theme-Material] #loader-wrapper .loader-section.section-left, html[data-theme=theme-Material] #loader-wrapper .loader-section.section-right {
background-color: #009688
}
html[data-theme=theme-Material] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper #loader:before, html[data-theme=theme-Material-blue] #loader-wrapper #loader:before, html[data-theme=theme-Material] #loader-wrapper #loader:before, html[data-theme=theme-spiritual-purple] #loader-wrapper #loader:before {
html[data-theme=theme-Material] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #4db6ac
......@@ -33,6 +169,15 @@ html[data-theme=theme-Material] #loader-wrapper #loader:after {
border-top-color: #ff9800
}
html[data-theme=theme-Material-hope] #loader-wrapper .loader-section.section-left, html[data-theme=theme-Material-hope] #loader-wrapper .loader-section.section-right {
background-color: #8bc34a
}
html[data-theme=theme-Material-hope] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-Material-hope] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
......@@ -45,12 +190,36 @@ html[data-theme=theme-Material-hope] #loader-wrapper #loader:after {
border-top-color: #ffc400
}
html[data-theme=theme-Material-blue] #loader-wrapper .loader-section.section-left, html[data-theme=theme-Material-blue] #loader-wrapper .loader-section.section-right {
background-color: #3f51b5
}
html[data-theme=theme-Material-blue] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-Material-blue] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #4db6ac
}
html[data-theme=theme-Material-blue] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #4caf50
}
html[data-theme=theme-decent-blue] #loader-wrapper .loader-section.section-left, html[data-theme=theme-decent-blue] #loader-wrapper .loader-section.section-right {
background-color: #607d8b
}
html[data-theme=theme-decent-blue] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-decent-blue] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
......@@ -63,14 +232,44 @@ html[data-theme=theme-decent-blue] #loader-wrapper #loader:after {
border-top-color: #00c853
}
html[data-theme=theme-spiritual-purple] #loader-wrapper .loader-section.section-left, html[data-theme=theme-spiritual-purple] #loader-wrapper .loader-section.section-right {
background-color: #673ab7
}
html[data-theme=theme-spiritual-purple] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-spiritual-purple] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #4db6ac
}
html[data-theme=theme-spiritual-purple] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #00bcd4
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper .loader-section.section-left, html[data-theme=theme-GreyBlue-Lime] #loader-wrapper .loader-section.section-right {
background-color: #607d8b
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper #loader {
border: 3px solid transparent;
border-top-color: #fff
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper #loader:before {
content: ' ';
border: 3px solid transparent;
border-top-color: #4db6ac
}
html[data-theme=theme-GreyBlue-Lime] #loader-wrapper #loader:after {
content: ' ';
border: 3px solid transparent;
border-top-color: #c0ca33
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment