loading.wp.scss 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. @import "../../themes/ionic.globals";
  2. // Windows Loading Indicator
  3. // --------------------------------------------------
  4. // deprecated
  5. $loading-wp-padding: null !default;
  6. /// @prop - Padding top of the loading wrapper
  7. $loading-wp-padding-top: 20px !default;
  8. /// @prop - Padding end of the loading wrapper
  9. $loading-wp-padding-end: $loading-wp-padding-top !default;
  10. /// @prop - Padding bottom of the loading wrapper
  11. $loading-wp-padding-bottom: $loading-wp-padding-top !default;
  12. /// @prop - Padding start of the loading wrapper
  13. $loading-wp-padding-start: $loading-wp-padding-end !default;
  14. /// @prop - Max width of the loading wrapper
  15. $loading-wp-max-width: 280px !default;
  16. /// @prop - Maximum height of the loading wrapper
  17. $loading-wp-max-height: 90% !default;
  18. /// @prop - Border radius of the loading wrapper
  19. $loading-wp-border-radius: 2px !default;
  20. /// @prop - Text color of the loading wrapper
  21. $loading-wp-text-color: #fff !default;
  22. /// @prop - Background of the loading wrapper
  23. $loading-wp-background: #000 !default;
  24. /// @prop - Margin start of the loading content next to a spinner
  25. $loading-wp-content-margin-start: $content-wp-margin !default;
  26. /// @prop - Color of the loading spinner
  27. $loading-wp-spinner-color: $loading-wp-text-color !default;
  28. /// @prop - Color of the ios loading spinner
  29. $loading-wp-spinner-ios-color: $loading-wp-spinner-color !default;
  30. /// @prop - Color of the bubbles loading spinner
  31. $loading-wp-spinner-bubbles-color: $loading-wp-spinner-color !default;
  32. /// @prop - Color of the circles loading spinner
  33. $loading-wp-spinner-circles-color: $loading-wp-spinner-color !default;
  34. /// @prop - Color of the crescent loading spinner
  35. $loading-wp-spinner-crescent-color: $loading-wp-spinner-color !default;
  36. /// @prop - Color of the dots loading spinner
  37. $loading-wp-spinner-dots-color: $loading-wp-spinner-color !default;
  38. .loading-wp .loading-wrapper {
  39. @include border-radius($loading-wp-border-radius);
  40. max-width: $loading-wp-max-width;
  41. max-height: $loading-wp-max-height;
  42. color: $loading-wp-text-color;
  43. background: $loading-wp-background;
  44. @include deprecated-variable(padding, $loading-wp-padding) {
  45. @include padding($loading-wp-padding-top, $loading-wp-padding-end, $loading-wp-padding-bottom, $loading-wp-padding-start);
  46. }
  47. }
  48. // Windows Loading Content
  49. // -----------------------------------------
  50. .loading-wp .loading-spinner + .loading-content {
  51. @include margin-horizontal($loading-wp-content-margin-start, null);
  52. }
  53. // Windows Loading Spinner fill colors
  54. // -----------------------------------------
  55. .loading-wp .spinner-ios line,
  56. .loading-wp .spinner-ios-small line {
  57. stroke: $loading-wp-spinner-ios-color;
  58. }
  59. .loading-wp .spinner-bubbles circle {
  60. fill: $loading-wp-spinner-bubbles-color;
  61. }
  62. .loading-wp .spinner-circles circle {
  63. fill: $loading-wp-spinner-circles-color;
  64. }
  65. .loading-wp .spinner-crescent circle {
  66. stroke: $loading-wp-spinner-crescent-color;
  67. }
  68. .loading-wp .spinner-dots circle {
  69. fill: $loading-wp-spinner-dots-color;
  70. }