loading.ios.scss 3.3KB

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