customer-navbar.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. page {
  2. --height: 44px;
  3. --right: 190rpx;
  4. }
  5. .navigation-bar {
  6. overflow: hidden;
  7. }
  8. .navigation-bar .android {
  9. --height: 48px;
  10. --right: 222rpx;
  11. }
  12. .navigation-bar-placeholder {
  13. position: relative;
  14. height: var(--height);
  15. z-index: 50;
  16. }
  17. .navigation-bar-inner {
  18. position: fixed;
  19. top: 0;
  20. left: 0;
  21. display: flex;
  22. align-items: center;
  23. padding-right: var(--right);
  24. width: calc(100% - var(--right));
  25. height: var(--height);
  26. z-index: 5001;
  27. }
  28. .navigation-bar-inner .navigation-bar-left {
  29. position: relative;
  30. display: flex;
  31. align-items: center;
  32. padding-left: 8px;
  33. box-sizing: border-box;
  34. }
  35. .navigation-bar-inner .navigation-bar-left .btn-back {
  36. width: 17px;
  37. height: 17px;
  38. }
  39. .navigation-bar-inner .navigation-bar-left .btn-back .icon-back {
  40. width: 100%;
  41. height: 100%;
  42. }
  43. /* 放大焦点 */
  44. .nice-focus {
  45. position: relative;
  46. }
  47. .nice-focus::after {
  48. content: '';
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. margin-top: -35rpx;
  53. margin-left: -35rpx;
  54. margin-right: -35rpx;
  55. width: 70rpx;
  56. height: 70rpx;
  57. }
  58. .navigation-bar-inner .navigation-bar-center {
  59. position: relative;
  60. display: flex;
  61. align-items: center;
  62. flex: 1;
  63. width: 0;
  64. overflow: hidden;
  65. }
  66. /* 标题 */
  67. .navigation-bar-inner .title {
  68. display: block;
  69. flex: 1;
  70. margin-top: -1px;
  71. width: 0;
  72. height: 24px;
  73. line-height: 24px;
  74. font-size: 34rpx;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. white-space: nowrap;
  78. }
  79. /* 标题loading */
  80. .navigation-bar-inner .navigation-bar-loading:before {
  81. content: "";
  82. display: inline-block;
  83. position: relative;
  84. top: -1px;
  85. margin-right: 3px;
  86. width: 20px;
  87. height: 20px;
  88. vertical-align: middle;
  89. animation: loading 1s steps(12, end) infinite;
  90. background: transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;
  91. background-size: 100%;
  92. }
  93. @keyframes loading {
  94. 0% {
  95. transform: rotate3d(0, 0, 1, 0deg);
  96. }
  97. 100% {
  98. transform: rotate3d(0, 0, 1, 360deg);
  99. }
  100. }