tab-bar.wxss 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. page {
  29. --td-tab-bar-border-color: #e6e6e6;
  30. }
  31. .t-tab-bar {
  32. width: 100%;
  33. display: flex;
  34. flex-wrap: nowrap;
  35. align-items: center;
  36. position: relative;
  37. font-size: 16px;
  38. background-color: var(--td-tab-bar-bg-color, #fff);
  39. }
  40. .t-tab-bar--border::before {
  41. z-index: 1;
  42. position: absolute;
  43. box-sizing: border-box;
  44. content: ' ';
  45. pointer-events: none;
  46. right: 0;
  47. left: 0;
  48. top: 0;
  49. border-top: 1px solid var(--td-tab-bar-border-color);
  50. transform: scaleY(0.5);
  51. }
  52. .t-tab-bar--fixed {
  53. position: fixed;
  54. left: 0;
  55. bottom: 0;
  56. }
  57. .t-tab-bar--safe {
  58. padding-bottom: constant(safe-area-inset-bottom);
  59. padding-bottom: env(safe-area-inset-bottom);
  60. }