index.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(tabbar) {
  5. background: $-dark-background;
  6. }
  7. }
  8. @include b(tabbar) {
  9. display: flex;
  10. align-items: center;
  11. flex-wrap: nowrap;
  12. position: relative;
  13. background: $-color-white;
  14. height: $-tabbar-height;
  15. @include e(placeholder) {
  16. box-sizing: content-box;
  17. padding-bottom: constant(safe-area-inset-bottom);
  18. padding-bottom: env(safe-area-inset-bottom);
  19. }
  20. @include m(round) {
  21. margin-left: 32rpx;
  22. margin-right: 32rpx;
  23. border-radius: 999px;
  24. box-shadow: $-tabbar-box-shadow;
  25. @include when(fixed) {
  26. @include when(safe) {
  27. bottom: constant(safe-area-inset-bottom);
  28. bottom: env(safe-area-inset-bottom);
  29. }
  30. }
  31. }
  32. @include m(default) {
  33. @include when(fixed) {
  34. @include when(safe) {
  35. box-sizing: content-box;
  36. padding-bottom: constant(safe-area-inset-bottom);
  37. padding-bottom: env(safe-area-inset-bottom);
  38. }
  39. }
  40. @include when(border) {
  41. @include halfPixelBorder('top');
  42. }
  43. }
  44. @include when(fixed) {
  45. position: fixed;
  46. left: 0;
  47. bottom: 0;
  48. right: 0;
  49. z-index: 500;
  50. }
  51. }