loading.md.scss 3.5KB

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