UI for Zipcoin Blue

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @import "../../themes/ionic.globals.md";
  2. // Material Design FAB Button
  3. // --------------------------------------------------
  4. /// @prop - Box shadow of the FAB button
  5. $fab-md-box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .14), 0 4px 5px rgba(0, 0, 0, .1) !default;
  6. /// @prop - Box shadow of the activated FAB button
  7. $fab-md-box-shadow-activated: 0 5px 15px 0 rgba(0, 0, 0, .4), 0 4px 7px 0 rgba(0, 0, 0, .1) !default;
  8. /// @prop - Background color of the button
  9. $fab-md-background-color: color($colors-md, primary) !default;
  10. /// @prop - Text color of the button
  11. $fab-md-text-color: color-contrast($colors-md, $fab-md-background-color) !default;
  12. /// @prop - Background color of the activated button
  13. $fab-md-background-color-activated: color-shade($fab-md-background-color) !default;
  14. /// @prop - Background color of the button in a list
  15. $fab-md-list-button-background-color: $fab-list-button-background-color !default;
  16. /// @prop - Text color of the button in a list
  17. $fab-md-list-button-text-color: color-contrast($colors-md, $fab-md-list-button-background-color) !default;
  18. /// @prop - Background color of the activated button in a list
  19. $fab-md-list-button-background-color-activated: color-shade($fab-md-list-button-background-color) !default;
  20. /// @prop - Transition duration of the transform and opacity of the button in a list
  21. $fab-md-list-button-transition-duration: 200ms !default;
  22. /// @prop - Speed curve of the transition of the transform and opacity of the button in a list
  23. $fab-md-list-button-transition-timing-function: ease !default;
  24. /// @prop - Transition delay of the transform and opacity of the button in a list
  25. $fab-md-list-button-transition-delay: 10ms !default;
  26. $fab-button-md-transition-duration: 300ms !default;
  27. $fab-button-md-transition-timing-function: cubic-bezier(.4, 0, .2, 1) !default;
  28. .fab-md {
  29. color: $fab-md-text-color;
  30. background-color: $fab-md-background-color;
  31. box-shadow: $fab-md-box-shadow;
  32. transition: box-shadow $fab-button-md-transition-duration $fab-button-md-transition-timing-function,
  33. background-color $fab-button-md-transition-duration $fab-button-md-transition-timing-function,
  34. color $fab-button-md-transition-duration $fab-button-md-transition-timing-function;
  35. }
  36. .fab-md.activated {
  37. background-color: $fab-md-background-color-activated;
  38. box-shadow: $fab-md-box-shadow-activated;
  39. }
  40. .fab-md-in-list {
  41. color: $fab-md-list-button-text-color;
  42. background-color: $fab-md-list-button-background-color;
  43. transition: transform $fab-md-list-button-transition-duration $fab-md-list-button-transition-timing-function $fab-md-list-button-transition-delay,
  44. opacity $fab-md-list-button-transition-duration $fab-md-list-button-transition-timing-function $fab-md-list-button-transition-delay,
  45. box-shadow $fab-button-md-transition-duration $fab-button-md-transition-timing-function,
  46. background-color $fab-button-md-transition-duration $fab-button-md-transition-timing-function,
  47. color $fab-button-md-transition-duration $fab-button-md-transition-timing-function;
  48. }
  49. .fab-md-in-list.activated {
  50. background-color: $fab-md-list-button-background-color-activated;
  51. }
  52. // Material Design FAB Ripple
  53. // --------------------------------------------------
  54. .fab-md .button-effect {
  55. background-color: color-contrast($colors-md, $fab-md-background-color);
  56. }
  57. // Generate MD FAB colors
  58. // --------------------------------------------------
  59. @each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
  60. $bg-color: $color-base;
  61. $bg-color-activated: color-shade($bg-color);
  62. $fg-color: $color-contrast;
  63. .fab-md-#{$color-name} {
  64. color: $fg-color;
  65. background-color: $bg-color;
  66. }
  67. .fab-md-#{$color-name}.activated {
  68. background-color: $bg-color-activated;
  69. }
  70. .fab-md-#{$color-name} .button-effect {
  71. background-color: $fg-color;
  72. }
  73. }