UI for Zipcoin Blue

fab.wp.scss 2.6KB

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