index.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @import "../common/abstracts/variable";
  2. @import "../common/abstracts/mixin";
  3. .wot-theme-dark {
  4. @include b(fab) {}
  5. }
  6. @include b(fab) {
  7. position: fixed;
  8. z-index: 99;
  9. @include edeep(trigger) {
  10. min-width: auto !important;
  11. box-sizing: border-box;
  12. width: $-fab-trigger-width !important;
  13. height: $-fab-trigger-height !important;
  14. border-radius: calc($-fab-trigger-height / 2) !important;
  15. }
  16. :deep() {
  17. @include e(actions) {
  18. position: absolute;
  19. z-index: 0;
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. padding: $-fab-actions-padding 0;
  24. @include m(left, right) {
  25. height: 100%;
  26. top: 0;
  27. padding: 0 $-fab-actions-padding;
  28. }
  29. @include m(left) {
  30. flex-direction: row-reverse;
  31. right: 100%;
  32. }
  33. @include m(right) {
  34. flex-direction: row;
  35. left: 100%;
  36. }
  37. @include m(top, bottom) {
  38. width: 100%;
  39. left: 0;
  40. }
  41. @include m(top) {
  42. flex-direction: column-reverse;
  43. bottom: 100%;
  44. }
  45. @include m(bottom) {
  46. flex-direction: column;
  47. top: 100%;
  48. }
  49. }
  50. // 动画
  51. @include e(transition-enter-active, transition-leave-active) {
  52. transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  53. }
  54. @include e(transition-enter) {
  55. @include m(top) {
  56. opacity: 0;
  57. transform: translateY(40px);
  58. }
  59. @include m(bottom) {
  60. opacity: 0;
  61. transform: translateY(-40px);
  62. }
  63. @include m(left) {
  64. opacity: 0;
  65. transform: translateX(40px);
  66. }
  67. @include m(right) {
  68. opacity: 0;
  69. transform: translateX(-40px);
  70. }
  71. }
  72. @include e(transition-leave-to) {
  73. @include m(top) {
  74. opacity: 0;
  75. transform: translateY(40px);
  76. }
  77. @include m(bottom) {
  78. opacity: 0;
  79. transform: translateY(-40px);
  80. }
  81. @include m(left) {
  82. opacity: 0;
  83. transform: translateX(40px);
  84. }
  85. @include m(right) {
  86. opacity: 0;
  87. transform: translateX(-40px);
  88. }
  89. }
  90. }
  91. @include edeep(icon) {
  92. font-size: $-fab-icon-fs;
  93. }
  94. }