储能智慧云小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.wxss 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. .t-navbar--fixed .t-navbar__content {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. z-index: 5001;
  33. }
  34. .t-navbar--visible {
  35. display: '';
  36. }
  37. .t-navbar--visible-animation {
  38. opacity: 1;
  39. transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  40. }
  41. .t-navbar--hide-animation {
  42. opacity: 0;
  43. transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  44. }
  45. .t-navbar--hide {
  46. display: none;
  47. }
  48. .t-navbar__placeholder {
  49. height: var(--td-navbar-height, 48px);
  50. padding-top: var(--td-navbar-padding-top, 20px);
  51. position: relative;
  52. visibility: hidden;
  53. box-sizing: content-box;
  54. }
  55. .t-navbar__content {
  56. position: relative;
  57. z-index: 1;
  58. height: var(--td-navbar-height, 48px);
  59. width: calc(100% - var(--td-navbar-right, 95px));
  60. padding-right: var(--td-navbar-right, 95px);
  61. padding-top: var(--td-navbar-padding-top, 20px);
  62. color: var(--td-navbar-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  63. background: var(--td-navbar-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
  64. display: flex;
  65. align-items: center;
  66. box-sizing: content-box;
  67. }
  68. .t-navbar__left {
  69. position: relative;
  70. box-sizing: border-box;
  71. display: flex;
  72. align-items: center;
  73. margin-left: var(--td-spacer-1, 24rpx);
  74. transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  75. }
  76. .t-navbar__left-arrow {
  77. font-size: var(--td-navbar-left-arrow-size, 24px);
  78. }
  79. .t-navbar__left--hide {
  80. opacity: 0;
  81. }
  82. .t-navbar__capsule {
  83. box-sizing: border-box;
  84. width: var(--td-navbar-capsule-width, 88px);
  85. height: var(--td-navbar-capsule-height, 32px);
  86. display: flex;
  87. align-items: center;
  88. }
  89. .t-navbar__capsule::before {
  90. content: '';
  91. position: absolute;
  92. z-index: -1;
  93. top: 0;
  94. left: 0;
  95. width: 200%;
  96. height: 200%;
  97. transform: scale(0.5);
  98. transform-origin: 0 0;
  99. box-sizing: border-box;
  100. border-radius: calc(var(--td-navbar-capsule-border-radius, 16px) * 2);
  101. border: 2rpx solid var(--td-navbar-capsule-border-color, var(--td-border-level-1-color, var(--td-gray-color-3, #e7e7e7)));
  102. }
  103. .t-navbar__capsule:empty {
  104. display: none;
  105. }
  106. .t-navbar__center {
  107. font-size: 18px;
  108. text-align: center;
  109. position: absolute;
  110. bottom: 0;
  111. left: var(--td-navbar-right, 95px);
  112. width: calc(100% - var(--td-navbar-right, 95px) * 2);
  113. height: var(--td-navbar-height, 48px);
  114. line-height: var(--td-navbar-height, 48px);
  115. flex: 1;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. overflow: hidden;
  120. transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  121. }
  122. .t-navbar__center:empty {
  123. display: none;
  124. }
  125. .t-navbar__center-title {
  126. font-size: var(--td-navbar-title-font-size, 18px);
  127. text-overflow: ellipsis;
  128. white-space: nowrap;
  129. overflow: hidden;
  130. font-weight: var(--td-navbar-title-font-weight, 600);
  131. }
  132. .t-navbar__center--hide {
  133. opacity: 0;
  134. }