You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
2.8 KiB

  1. /**********************************************************************************
  2. *
  3. * Copyright (c) 2017-2019 MuK IT GmbH.
  4. *
  5. * This file is part of MuK Preview
  6. * (see https://mukit.at).
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Lesser General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. **********************************************************************************/
  22. .mk_preview_loader {
  23. margin: auto;
  24. height: 20px;
  25. width: 250px;
  26. @include o-position-absolute(
  27. $top: 0,
  28. $left: 0,
  29. $bottom: 0,
  30. $right: 0
  31. );
  32. .mk_preview_loader_dot {
  33. width: 20px;
  34. height: 20px;
  35. position: absolute;
  36. border-radius: 100%;
  37. background-color: black;
  38. border: 2px solid white;
  39. animation-duration: 3s;
  40. animation-name: mk_preview_loader_animation;
  41. animation-timing-function: ease-in-out;
  42. animation-iteration-count: infinite;
  43. }
  44. .mk_preview_loader_dot:first-child {
  45. background-color: nth($o-colors, 1);
  46. animation-delay: 0.5s;
  47. }
  48. .mk_preview_loader_dot:nth-child(2) {
  49. background-color:nth($o-colors, 2);
  50. animation-delay: 0.4s;
  51. }
  52. .mk_preview_loader_dot:nth-child(3) {
  53. background-color: nth($o-colors, 3);
  54. animation-delay: 0.3s;
  55. }
  56. .mk_preview_loader_dot:nth-child(4) {
  57. background-color: nth($o-colors, 4);
  58. animation-delay: 0.2s;
  59. }
  60. .mk_preview_loader_dot:nth-child(5) {
  61. background-color: nth($o-colors, 5);
  62. animation-delay: 0.1s;
  63. }
  64. .mk_preview_loader_dot:nth-child(6) {
  65. background-color: nth($o-colors, 6);
  66. animation-delay: 0s;
  67. }
  68. .mk_preview_loader_text {
  69. @include o-position-absolute(
  70. $top: 200%,
  71. $left: 0,
  72. $right: 0
  73. );
  74. width: 8rem;
  75. margin: auto;
  76. }
  77. .mk_preview_loader_text:after {
  78. font-weight: bold;
  79. animation-duration: 3s;
  80. content: attr(data-loading-text);
  81. animation-name: mk_preview_loader_text;
  82. animation-iteration-count: infinite;
  83. }
  84. @keyframes mk_preview_loader_animation {
  85. 15% {
  86. transform: translateX(0);
  87. }
  88. 45% {
  89. transform: translateX(230px);
  90. }
  91. 65% {
  92. transform: translateX(230px);
  93. }
  94. 95% {
  95. transform: translateX(0);
  96. }
  97. }
  98. @keyframes mk_preview_loader_text {
  99. 0% {
  100. content: attr(data-loading-text-00);
  101. }
  102. 25% {
  103. content: attr(data-loading-text-25);
  104. }
  105. 50% {
  106. content: attr(data-loading-text-50);
  107. }
  108. 75% {
  109. content: attr(data-loading-text-75);
  110. }
  111. }
  112. }