navigation-bar.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .weui-navigation-bar {
  2. --weui-FG-0:rgba(0,0,0,.9);
  3. --height: 44px;
  4. --left: 16px;
  5. }
  6. .weui-navigation-bar .android {
  7. --height: 48px;
  8. }
  9. .weui-navigation-bar {
  10. overflow: hidden;
  11. color: var(--weui-FG-0);
  12. flex: none;
  13. }
  14. .weui-navigation-bar__inner {
  15. position: relative;
  16. top: 0;
  17. left: 0;
  18. height: calc(var(--height) + env(safe-area-inset-top));
  19. display: flex;
  20. flex-direction: row;
  21. align-items: center;
  22. justify-content: center;
  23. padding-top: env(safe-area-inset-top);
  24. width: 100%;
  25. box-sizing: border-box;
  26. }
  27. .weui-navigation-bar__left {
  28. position: relative;
  29. padding-left: var(--left);
  30. display: flex;
  31. flex-direction: row;
  32. align-items: center;
  33. height: 100%;
  34. box-sizing: border-box;
  35. }
  36. .weui-navigation-bar__btn_goback_wrapper {
  37. padding: 16px 18px 11px 16px;
  38. margin: -11px -18px -11px -16px;
  39. }
  40. .weui-navigation-bar__btn_goback_wrapper.weui-active {
  41. opacity: 0.5;
  42. }
  43. .weui-navigation-bar__btn_goback {
  44. // font-size: 12px;
  45. // width: 12px;
  46. // height: 24px;
  47. // -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E %3Cpath fill-opacity='.9' fill-rule='evenodd' d='M10 19.438L8.955 20.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42L8.955 3.5 10 4.563 2.682 12 10 19.438z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  48. // mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E %3Cpath fill-opacity='.9' fill-rule='evenodd' d='M10 19.438L8.955 20.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42L8.955 3.5 10 4.563 2.682 12 10 19.438z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  49. // -webkit-mask-size: cover;
  50. // mask-size: cover;
  51. background: url('./icon-back.png') no-repeat center;
  52. // background-color: var(--weui-FG-0);
  53. background-size: contain;
  54. font-weight: bold;
  55. width: 18px;
  56. height: 18px;
  57. }
  58. .weui-navigation-bar__center {
  59. font-size: 18px;
  60. text-align: center;
  61. position: relative;
  62. display: flex;
  63. flex-direction: row;
  64. align-items: center;
  65. justify-content: center;
  66. font-weight: bold;
  67. flex: 1;
  68. height: 100%;
  69. }
  70. .weui-navigation-bar__loading {
  71. margin-right: 4px;
  72. align-items: center;
  73. }
  74. .weui-loading {
  75. font-size: 16px;
  76. width: 16px;
  77. height: 16px;
  78. display: block;
  79. background: transparent url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='80px' height='80px' viewBox='0 0 80 80' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Eloading%3C/title%3E%3Cdefs%3E%3ClinearGradient x1='94.0869141%25' y1='0%25' x2='94.0869141%25' y2='90.559082%25' id='linearGradient-1'%3E%3Cstop stop-color='%23606060' stop-opacity='0' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23606060' stop-opacity='0.3' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3ClinearGradient x1='100%25' y1='8.67370605%25' x2='100%25' y2='90.6286621%25' id='linearGradient-2'%3E%3Cstop stop-color='%23606060' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23606060' stop-opacity='0.3' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' opacity='0.9'%3E%3Cg%3E%3Cpath d='M40,0 C62.09139,0 80,17.90861 80,40 C80,62.09139 62.09139,80 40,80 L40,73 C58.2253967,73 73,58.2253967 73,40 C73,21.7746033 58.2253967,7 40,7 L40,0 Z' fill='url(%23linearGradient-1)'%3E%3C/path%3E%3Cpath d='M40,0 L40,7 C21.7746033,7 7,21.7746033 7,40 C7,58.2253967 21.7746033,73 40,73 L40,80 C17.90861,80 0,62.09139 0,40 C0,17.90861 17.90861,0 40,0 Z' fill='url(%23linearGradient-2)'%3E%3C/path%3E%3Ccircle id='Oval' fill='%23606060' cx='40.5' cy='3.5' r='3.5'%3E%3C/circle%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A") no-repeat;
  80. background-size: 100%;
  81. margin-left: 0;
  82. animation: loading linear infinite 1s;
  83. }
  84. @keyframes loading {
  85. from {
  86. transform: rotate(0);
  87. }
  88. to {
  89. transform: rotate(360deg);
  90. }
  91. }