UI for Zipcoin Blue

fab.ios.scss 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @import "../../themes/ionic.globals.ios";
  2. // iOS FAB Button
  3. // --------------------------------------------------
  4. /// @prop - Background color of the button
  5. $fab-ios-background-color: color($colors-ios, primary) !default;
  6. /// @prop - Text color of the button
  7. $fab-ios-text-color: color-contrast($colors-ios, $fab-ios-background-color) !default;
  8. /// @prop - Background color of the activated button
  9. $fab-ios-background-color-activated: color-shade($fab-ios-background-color) !default;
  10. /// @prop - Background color of the button in a list
  11. $fab-ios-list-button-background-color: $fab-list-button-background-color !default;
  12. /// @prop - Text color of the button in a list
  13. $fab-ios-list-button-text-color: color-contrast($colors-ios, $fab-ios-list-button-background-color) !default;
  14. /// @prop - Background color of the activated button in a list
  15. $fab-ios-list-button-background-color-activated: color-shade($fab-ios-list-button-background-color) !default;
  16. /// @prop - Transition duration of the transform and opacity of the button in a list
  17. $fab-ios-list-button-transition-duration: 200ms !default;
  18. /// @prop - Speed curve of the transition of the transform and opacity of the button in a list
  19. $fab-ios-list-button-transition-timing-function: ease !default;
  20. /// @prop - Transition delay of the transform and opacity of the button in a list
  21. $fab-ios-list-button-transition-delay: 10ms !default;
  22. .fab-ios {
  23. color: $fab-ios-text-color;
  24. background-color: $fab-ios-background-color;
  25. }
  26. .fab-ios.activated {
  27. background-color: $fab-ios-background-color-activated;
  28. }
  29. .fab-ios-in-list {
  30. color: $fab-ios-list-button-text-color;
  31. background-color: $fab-ios-list-button-background-color;
  32. transition: transform $fab-ios-list-button-transition-duration $fab-ios-list-button-transition-timing-function $fab-ios-list-button-transition-delay,
  33. opacity $fab-ios-list-button-transition-duration $fab-ios-list-button-transition-timing-function $fab-ios-list-button-transition-delay;
  34. }
  35. .fab-ios-in-list.activated {
  36. background-color: $fab-ios-list-button-background-color-activated;
  37. }
  38. // Generate iOS FAB colors
  39. // --------------------------------------------------
  40. @each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
  41. $bg-color: $color-base;
  42. $bg-color-activated: color-shade($bg-color);
  43. $fg-color: $color-contrast;
  44. .fab-ios-#{$color-name} {
  45. color: $fg-color;
  46. background-color: $bg-color;
  47. }
  48. .fab-ios-#{$color-name}.activated {
  49. background-color: $bg-color-activated;
  50. }
  51. }