Spinner.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. $pullrefreshspinner-min-height: dynamic(64px);
  2. $pullrefreshspinner-min-height-big: dynamic(64px);
  3. $pullrefreshspinner-background-color: dynamic($background-color);
  4. $pullrefreshspinner-arrow-color: dynamic($base-color);
  5. $pullrefreshspinner-border-radius: dynamic(50%);
  6. /**
  7. * @class Ext.dataview.pullrefresh.Spinner
  8. */
  9. @mixin pullrefreshspinner-ui(
  10. $xtype: pullrefreshspinner,
  11. $ui: null,
  12. $min-height: null,
  13. $min-height-big: null,
  14. $background-color: null,
  15. $arrow-color: null,
  16. $border-radius: null
  17. ) {
  18. $ui-suffix: ui-suffix($ui);
  19. .#{$prefix}#{$xtype}#{$ui-suffix} {
  20. min-height: $min-height;
  21. @if $enable-big {
  22. .#{$prefix}big & {
  23. min-height: $min-height-big;
  24. }
  25. }
  26. .#{$prefix}pullrefreshspinner-main {
  27. background-color: $background-color;
  28. border-radius: $border-radius;
  29. }
  30. .#{$prefix}pullrefreshspinner-arrow-main {
  31. border-color: $arrow-color $arrow-color transparent;
  32. &:before {
  33. border-color: $arrow-color transparent transparent transparent;
  34. }
  35. }
  36. .#{$prefix}pullrefreshspinner-spinner-main {
  37. .#{$prefix}pullrefreshspinner-spinner-left,
  38. .#{$prefix}pullrefreshspinner-spinner-right {
  39. .#{$prefix}pullrefreshspinner-half-circle {
  40. border-top-color: $arrow-color;
  41. }
  42. }
  43. .#{$prefix}pullrefreshspinner-spinner-left {
  44. .#{$prefix}pullrefreshspinner-half-circle {
  45. border-left-color: $arrow-color;
  46. }
  47. }
  48. .#{$prefix}pullrefreshspinner-spinner-right {
  49. .#{$prefix}pullrefreshspinner-half-circle {
  50. border-right-color: $arrow-color;
  51. }
  52. }
  53. }
  54. }
  55. }