su-inner-navbar.wxss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .icon-box.data-v-374b2fee {
  27. box-shadow: 0px 0px 4rpx rgba(51, 51, 51, 0.08), 0px 4rpx 6rpx 2rpx rgba(102, 102, 102, 0.12);
  28. border-radius: 30rpx;
  29. width: 134rpx;
  30. height: 56rpx;
  31. margin-left: 8rpx;
  32. border: 1px solid rgba(255, 255, 255, 0.4);
  33. }
  34. .icon-box .line.data-v-374b2fee {
  35. width: 2rpx;
  36. height: 24rpx;
  37. background: #e5e5e7;
  38. }
  39. .icon-box .sicon-back.data-v-374b2fee {
  40. font-size: 32rpx;
  41. }
  42. .icon-box .sicon-home.data-v-374b2fee {
  43. font-size: 32rpx;
  44. }
  45. .icon-box .sicon-more.data-v-374b2fee {
  46. font-size: 32rpx;
  47. }
  48. .icon-box .icon-button.data-v-374b2fee {
  49. width: 67rpx;
  50. height: 56rpx;
  51. }
  52. .icon-box .icon-button-left.data-v-374b2fee:hover {
  53. background: rgba(0, 0, 0, 0.16);
  54. border-radius: 30rpx 0px 0px 30rpx;
  55. }
  56. .icon-box .icon-button-right.data-v-374b2fee:hover {
  57. background: rgba(0, 0, 0, 0.16);
  58. border-radius: 0px 30rpx 30rpx 0px;
  59. }
  60. .navbar-title.data-v-374b2fee {
  61. font-size: 36rpx;
  62. }
  63. .tools-icon.data-v-374b2fee {
  64. font-size: 40rpx;
  65. }
  66. .ui-navbar-box.data-v-374b2fee {
  67. background-color: transparent;
  68. width: 100%;
  69. }
  70. .ui-navbar-box .ui-bar.data-v-374b2fee {
  71. position: relative;
  72. z-index: 2;
  73. white-space: nowrap;
  74. display: flex;
  75. position: relative;
  76. align-items: center;
  77. justify-content: space-between;
  78. }
  79. .ui-navbar-box .ui-bar .left.data-v-374b2fee {
  80. position: relative;
  81. display: flex;
  82. align-items: center;
  83. justify-content: space-between;
  84. }
  85. .ui-navbar-box .ui-bar .left .back.data-v-374b2fee {
  86. position: relative;
  87. display: flex;
  88. align-items: center;
  89. justify-content: space-between;
  90. }
  91. .ui-navbar-box .ui-bar .left .back .back-icon.data-v-374b2fee {
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. width: 56rpx;
  96. height: 56rpx;
  97. margin: 0 10rpx;
  98. font-size: 46rpx !important;
  99. }
  100. .ui-navbar-box .ui-bar .left .back .back-icon.opacityIcon.data-v-374b2fee {
  101. position: relative;
  102. border-radius: 50%;
  103. background-color: rgba(127, 127, 127, 0.5);
  104. }
  105. .ui-navbar-box .ui-bar .left .back .back-icon.opacityIcon.data-v-374b2fee::after {
  106. content: "";
  107. display: block;
  108. position: absolute;
  109. height: 200%;
  110. width: 200%;
  111. left: 0;
  112. top: 0;
  113. border-radius: inherit;
  114. transform: scale(0.5);
  115. transform-origin: 0 0;
  116. opacity: 0.1;
  117. border: 1px solid currentColor;
  118. pointer-events: none;
  119. }
  120. .ui-navbar-box .ui-bar .left .back .back-icon.opacityIcon.data-v-374b2fee::before {
  121. transform: scale(0.9);
  122. }
  123. .ui-navbar-box .ui-bar .left .capsule.data-v-374b2fee {
  124. position: relative;
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. border-radius: 100px;
  129. position: relative;
  130. }
  131. .ui-navbar-box .ui-bar .left .capsule.dark.data-v-374b2fee {
  132. background-color: rgba(255, 255, 255, 0.5);
  133. }
  134. .ui-navbar-box .ui-bar .left .capsule.light.data-v-374b2fee {
  135. background-color: rgba(0, 0, 0, 0.15);
  136. }
  137. .ui-navbar-box .ui-bar .left .capsule.data-v-374b2fee::after {
  138. content: "";
  139. display: block;
  140. position: absolute;
  141. height: 60%;
  142. width: 1px;
  143. left: 50%;
  144. top: 20%;
  145. background-color: currentColor;
  146. opacity: 0.1;
  147. pointer-events: none;
  148. }
  149. .ui-navbar-box .ui-bar .left .capsule.data-v-374b2fee::before {
  150. content: "";
  151. display: block;
  152. position: absolute;
  153. height: 200%;
  154. width: 200%;
  155. left: 0;
  156. top: 0;
  157. border-radius: inherit;
  158. transform: scale(0.5);
  159. transform-origin: 0 0;
  160. opacity: 0.1;
  161. border: 1px solid currentColor;
  162. pointer-events: none;
  163. }
  164. .ui-navbar-box .ui-bar .left .capsule .capsule-back.data-v-374b2fee,
  165. .ui-navbar-box .ui-bar .left .capsule .capsule-home.data-v-374b2fee {
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. flex: 1;
  170. }
  171. .ui-navbar-box .ui-bar .left .capsule.isFristPage .capsule-back.data-v-374b2fee, .ui-navbar-box .ui-bar .left .capsule.isFristPage.data-v-374b2fee::after {
  172. display: none;
  173. }
  174. .ui-navbar-box .ui-bar .right.data-v-374b2fee {
  175. position: relative;
  176. display: flex;
  177. align-items: center;
  178. justify-content: space-between;
  179. }
  180. .ui-navbar-box .ui-bar .right .right-content.data-v-374b2fee {
  181. display: flex;
  182. flex-direction: row;
  183. flex-direction: row-reverse;
  184. }
  185. .ui-navbar-box .ui-bar .center.data-v-374b2fee {
  186. display: flex;
  187. align-items: center;
  188. justify-content: center;
  189. text-overflow: ellipsis;
  190. position: absolute;
  191. left: 50%;
  192. transform: translateX(-50%);
  193. }
  194. .ui-navbar-box .ui-bar .center .image.data-v-374b2fee {
  195. display: block;
  196. height: 36px;
  197. max-width: calc(100vw - 200px);
  198. }
  199. .ui-navbar-box .ui-bar-bg.data-v-374b2fee {
  200. position: absolute;
  201. width: 100%;
  202. height: 100%;
  203. top: 0;
  204. z-index: 1;
  205. pointer-events: none;
  206. }