Button.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Floating Action Buttons
  2. {
  3. xtype: 'button',
  4. ui: 'fab',
  5. bottom: 16,
  6. right: 16,
  7. iconCls: 'md-icon-add'
  8. }*/
  9. .#{$prefix}button-fab {
  10. .#{$prefix}inner-el {
  11. @include material-shadow(2);
  12. color: $accent-foreground-color;
  13. display: flex;
  14. width: 56px;
  15. height: 56px;
  16. background-color: $accent-color;
  17. align-items: center;
  18. justify-content: center;
  19. border-radius: 50%;
  20. transition: background-color 450ms cubic-bezier(0.23, 1, 0.32, 1);
  21. }
  22. .#{$prefix}ripple {
  23. background-color: $accent-foreground-color;
  24. }
  25. &.#{$prefix}hovered .#{$prefix}inner-el {
  26. background-color: $accent-pressed-color;
  27. }
  28. .#{$prefix}keyboard-mode &.#{$prefix}focused .#{$prefix}inner-el {
  29. background-color: $accent-pressed-color;
  30. }
  31. .#{$prefix}big & {
  32. .#{$prefix}inner-el {
  33. border-radius: 50%;
  34. }
  35. }
  36. .#{$prefix}icon-el {
  37. color: $accent-foreground-color;
  38. }
  39. &.#{$prefix}pressing {
  40. .#{$prefix}inner-el {
  41. @include material-shadow(3);
  42. .#{$prefix}icon-el {
  43. color: $accent-foreground-color;
  44. }
  45. background-color: $accent-pressed-color;
  46. }
  47. }
  48. }
  49. .#{$prefix}docked-top {
  50. .#{$prefix}has-badge .#{$prefix}badge-el {
  51. top: -8px;
  52. }
  53. }
  54. .#{$prefix}has-badge {
  55. .#{$prefix}badge-el {
  56. white-space: nowrap;
  57. text-overflow: ellipsis;
  58. text-align: center;
  59. display: block;
  60. overflow: hidden;
  61. @include material-shadow(1);
  62. }
  63. }