pace.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // Import variables
  2. @import "../variables";
  3. #loading-bar,
  4. #loading-bar-spinner {
  5. -webkit-pointer-events: none;
  6. pointer-events: none;
  7. -moz-transition: 350ms linear all;
  8. -o-transition: 350ms linear all;
  9. -webkit-transition: 350ms linear all;
  10. transition: 350ms linear all;
  11. }
  12. #loading-bar.ng-enter,
  13. #loading-bar.ng-leave.ng-leave-active,
  14. #loading-bar-spinner.ng-enter,
  15. #loading-bar-spinner.ng-leave.ng-leave-active {
  16. opacity: 0;
  17. }
  18. #loading-bar.ng-enter.ng-enter-active,
  19. #loading-bar.ng-leave,
  20. #loading-bar-spinner.ng-enter.ng-enter-active,
  21. #loading-bar-spinner.ng-leave {
  22. opacity: 1;
  23. }
  24. #loading-bar .bar {
  25. position: fixed;
  26. top: 0;
  27. left: 0;
  28. z-index: 20002;
  29. width: 100%;
  30. height: 2px;
  31. background: theme-color("primary");
  32. border-top-right-radius: 1px;
  33. border-bottom-right-radius: 1px;
  34. -moz-transition: width 350ms;
  35. -o-transition: width 350ms;
  36. -webkit-transition: width 350ms;
  37. transition: width 350ms;
  38. }
  39. // Fancy blur effect
  40. #loading-bar .peg {
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. width: 70px;
  45. height: 2px;
  46. -moz-border-radius: 100%;
  47. -webkit-border-radius: 100%;
  48. border-radius: 100%;
  49. -moz-box-shadow: #29d 1px 0 6px 1px;
  50. -ms-box-shadow: #29d 1px 0 6px 1px;
  51. -webkit-box-shadow: #29d 1px 0 6px 1px;
  52. box-shadow: #29d 1px 0 6px 1px;
  53. opacity: .45;
  54. }
  55. #loading-bar-spinner {
  56. position: fixed;
  57. top: 10px;
  58. left: 10px;
  59. z-index: 10002;
  60. display: block;
  61. }
  62. #loading-bar-spinner .spinner-icon {
  63. width: 14px;
  64. height: 14px;
  65. border: solid 2px transparent;
  66. border-top-color: #29d;
  67. border-left-color: #29d;
  68. border-radius: 50%;
  69. -moz-animation: loading-bar-spinner 400ms linear infinite;
  70. -ms-animation: loading-bar-spinner 400ms linear infinite;
  71. -o-animation: loading-bar-spinner 400ms linear infinite;
  72. -webkit-animation: loading-bar-spinner 400ms linear infinite;
  73. animation: loading-bar-spinner 400ms linear infinite;
  74. }
  75. @-webkit-keyframes loading-bar-spinner {
  76. 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  77. 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
  78. }
  79. @-moz-keyframes loading-bar-spinner {
  80. 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); }
  81. 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); }
  82. }
  83. @-o-keyframes loading-bar-spinner {
  84. 0% { -o-transform: rotate(0deg); transform: rotate(0deg); }
  85. 100% { -o-transform: rotate(360deg); transform: rotate(360deg); }
  86. }
  87. @-ms-keyframes loading-bar-spinner {
  88. 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); }
  89. 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); }
  90. }
  91. @keyframes loading-bar-spinner {
  92. 0% { transform: rotate(0deg); transform: rotate(0deg); }
  93. 100% { transform: rotate(360deg); transform: rotate(360deg); }
  94. }
  95. //Ajax & Static Version
  96. .pace {
  97. -webkit-pointer-events: none;
  98. pointer-events: none;
  99. -moz-user-select: none;
  100. -webkit-user-select: none;
  101. user-select: none;
  102. }
  103. .pace-inactive {
  104. display: none;
  105. }
  106. .pace .pace-progress {
  107. position: fixed;
  108. top: 0;
  109. right: 100%;
  110. z-index: 2000;
  111. width: 100%;
  112. height: 2px;
  113. background: theme-color("primary");
  114. }