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.

110 lines
2.7 KiB

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