header-nav.wxss 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .nav {
  2. position: fixed;
  3. width: 100%;
  4. background: #fff;
  5. z-index: 10000000;
  6. }
  7. .navbar {
  8. position: relative;
  9. }
  10. .navbar-left {
  11. width: 80px;
  12. height: 27px;
  13. border: 1rpx solid #EAEAEA;
  14. border-radius: 14px;
  15. position: absolute;
  16. left: 14rpx;
  17. top: 50%;
  18. transform: translateY(-50%);
  19. }
  20. .back-icon,
  21. .home-icon {
  22. width: 40px;
  23. height: 100%;
  24. position: absolute;
  25. transform: translateY(-50%);
  26. top: 50%;
  27. display: flex;
  28. }
  29. .back-icon {
  30. left: 0;
  31. }
  32. .back-icon::after {
  33. content: '';
  34. display: block;
  35. position: absolute;
  36. height: 16px;
  37. width: 1rpx;
  38. background: #e5e5e5;
  39. right: 0;
  40. top: 5.5px;
  41. }
  42. .home-icon {
  43. left: 40px;
  44. }
  45. .back-icon image {
  46. width: 9px;
  47. height: 15px;
  48. margin: auto;
  49. }
  50. .home-icon image {
  51. width: 15px;
  52. height: 15px;
  53. margin: auto;
  54. }
  55. .nav-title,
  56. .nav-icon {
  57. position: absolute;
  58. transform: translate(-50%, -50%);
  59. left: 50%;
  60. top: 50%;
  61. font-size: 0;
  62. font-weight: bold;
  63. }
  64. .auto-padding {
  65. width: 100%;
  66. }