cu-custom.wxss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. /* colorui/components/cu-custom.wxss */
  2. .cu-bar {
  3. display: flex;
  4. position: relative;
  5. align-items: center;
  6. min-height: 100rpx;
  7. justify-content: space-between;
  8. }
  9. .cu-bar .action {
  10. display: flex;
  11. align-items: center;
  12. height: 100%;
  13. justify-content: center;
  14. max-width: 100%;
  15. }
  16. .cu-bar .action.border-title {
  17. position: relative;
  18. top: -10rpx;
  19. }
  20. .cu-bar .action.border-title text[class*="bg-"]:last-child {
  21. position: absolute;
  22. bottom: -0.5rem;
  23. min-width: 2rem;
  24. height: 6rpx;
  25. left: 0;
  26. }
  27. .cu-bar .action.sub-title {
  28. position: relative;
  29. top: -0.2rem;
  30. }
  31. .cu-bar .action.sub-title text {
  32. position: relative;
  33. z-index: 1;
  34. }
  35. .cu-bar .action.sub-title text[class*="bg-"]:last-child {
  36. position: absolute;
  37. display: inline-block;
  38. bottom: -0.2rem;
  39. border-radius: 6rpx;
  40. width: 100%;
  41. height: 0.6rem;
  42. left: 0.6rem;
  43. opacity: 0.3;
  44. z-index: 0;
  45. }
  46. .cu-bar .action.sub-title text[class*="text-"]:last-child {
  47. position: absolute;
  48. display: inline-block;
  49. bottom: -0.7rem;
  50. left: 0.5rem;
  51. opacity: 0.2;
  52. z-index: 0;
  53. text-align: right;
  54. font-weight: 900;
  55. font-size: 36rpx;
  56. }
  57. .cu-bar.justify-center .action.border-title text:last-child,
  58. .cu-bar.justify-center .action.sub-title text:last-child {
  59. left: 0;
  60. right: 0;
  61. margin: auto;
  62. text-align: center;
  63. }
  64. .cu-bar .action:first-child {
  65. margin-left: 30rpx;
  66. font-size: 30rpx;
  67. }
  68. .cu-bar .action text.text-cut {
  69. text-align: left;
  70. width: 100%;
  71. }
  72. .cu-bar .cu-avatar:first-child {
  73. margin-left: 20rpx;
  74. }
  75. .cu-bar .action:first-child>text[class*="cuIcon-"] {
  76. margin-left: -0.3em;
  77. margin-right: 0.3em;
  78. }
  79. .cu-bar .action:last-child {
  80. margin-right: 30rpx;
  81. }
  82. .cu-bar .action>text[class*="cuIcon-"],
  83. .cu-bar .action>view[class*="cuIcon-"] {
  84. font-size: 36rpx;
  85. }
  86. .cu-bar .action>text[class*="cuIcon-"]+text[class*="cuIcon-"] {
  87. margin-left: 0.5em;
  88. }
  89. .cu-bar .content {
  90. position: absolute;
  91. text-align: center;
  92. width: calc(100% - 340rpx);
  93. left: 0;
  94. right: 0;
  95. bottom: 0;
  96. top: 0;
  97. margin: auto;
  98. height: 60rpx;
  99. font-size: 32rpx;
  100. line-height: 60rpx;
  101. cursor: none;
  102. pointer-events: none;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. overflow: hidden;
  106. }
  107. .cu-bar.ios .content {
  108. bottom: 7px;
  109. height: 30px;
  110. font-size: 32rpx;
  111. line-height: 30px;
  112. }
  113. .cu-bar.btn-group {
  114. justify-content: space-around;
  115. }
  116. .cu-bar.btn-group button {
  117. padding: 20rpx 32rpx;
  118. }
  119. .cu-bar.btn-group button {
  120. flex: 1;
  121. margin: 0 20rpx;
  122. max-width: 50%;
  123. }
  124. .cu-bar .search-form {
  125. background-color: #f5f5f5;
  126. line-height: 64rpx;
  127. height: 64rpx;
  128. font-size: 24rpx;
  129. color: var(--black);
  130. flex: 1;
  131. display: flex;
  132. align-items: center;
  133. margin: 0 30rpx;
  134. }
  135. .cu-bar .search-form+.action {
  136. margin-right: 30rpx;
  137. }
  138. .cu-bar .search-form input {
  139. flex: 1;
  140. padding-right: 30rpx;
  141. height: 64rpx;
  142. line-height: 64rpx;
  143. font-size: 26rpx;
  144. background-color: transparent;
  145. }
  146. .cu-bar .search-form [class*="cuIcon-"] {
  147. margin: 0 0.5em 0 0.8em;
  148. }
  149. .cu-bar .search-form [class*="cuIcon-"]::before {
  150. top: 0rpx;
  151. }
  152. .cu-bar.fixed,
  153. .nav.fixed {
  154. position: fixed;
  155. width: 100%;
  156. top: 0;
  157. z-index: 1024;
  158. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  159. }
  160. .cu-bar.foot {
  161. position: fixed;
  162. width: 100%;
  163. bottom: 0;
  164. z-index: 1024;
  165. box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
  166. }
  167. .cu-bar.tabbar {
  168. padding: 0;
  169. height: calc(100rpx + env(safe-area-inset-bottom) / 2);
  170. padding-bottom: calc(env(safe-area-inset-bottom) / 2);
  171. }
  172. .cu-tabbar-height {
  173. min-height: 100rpx;
  174. height: calc(100rpx + env(safe-area-inset-bottom) / 2);
  175. }
  176. .cu-bar.tabbar.shadow {
  177. box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
  178. }
  179. .cu-bar.tabbar .action {
  180. font-size: 22rpx;
  181. position: relative;
  182. flex: 1;
  183. text-align: center;
  184. padding: 0;
  185. display: block;
  186. height: auto;
  187. line-height: 1;
  188. margin: 0;
  189. overflow: initial;
  190. }
  191. .cu-bar.tabbar.shop .action {
  192. width: 140rpx;
  193. flex: initial;
  194. }
  195. .cu-bar.tabbar .action.add-action {
  196. position: relative;
  197. z-index: 2;
  198. padding-top: 50rpx;
  199. background-color: inherit;
  200. }
  201. .cu-bar.tabbar .action.add-action [class*="cuIcon-"] {
  202. position: absolute;
  203. width: 70rpx;
  204. z-index: 2;
  205. height: 70rpx;
  206. border-radius: 50%;
  207. line-height: 70rpx;
  208. font-size: 50rpx;
  209. top: -35rpx;
  210. left: 0;
  211. right: 0;
  212. margin: auto;
  213. padding: 0;
  214. }
  215. .cu-bar.tabbar .action.add-action::after {
  216. content: "";
  217. position: absolute;
  218. width: 100rpx;
  219. height: 100rpx;
  220. top: -50rpx;
  221. left: 0;
  222. right: 0;
  223. margin: auto;
  224. box-shadow: 0 -3rpx 8rpx rgba(0, 0, 0, 0.08);
  225. border-radius: 50rpx;
  226. background-color: inherit;
  227. z-index: 0;
  228. }
  229. .cu-bar.tabbar .action.add-action::before {
  230. content: "";
  231. position: absolute;
  232. width: 100rpx;
  233. height: 30rpx;
  234. bottom: 30rpx;
  235. left: 0;
  236. right: 0;
  237. margin: auto;
  238. background-color: inherit;
  239. z-index: 1;
  240. }
  241. .cu-bar.tabbar .btn-group {
  242. flex: 1;
  243. display: flex;
  244. justify-content: space-around;
  245. align-items: center;
  246. padding: 0 10rpx;
  247. }
  248. .cu-bar.tabbar button.action::after {
  249. border: 0;
  250. }
  251. .cu-bar.tabbar .action [class*="cuIcon-"] {
  252. width: 100rpx;
  253. position: relative;
  254. display: block;
  255. height: auto;
  256. margin: 0 auto 10rpx;
  257. text-align: center;
  258. font-size: 40rpx;
  259. }
  260. .cu-bar.tabbar .action .cuIcon-cu-image {
  261. margin: 0 auto;
  262. }
  263. .cu-bar.tabbar .action .cuIcon-cu-image image {
  264. width: 50rpx;
  265. height: 50rpx;
  266. display: inline-block;
  267. }
  268. .cu-bar.tabbar .submit {
  269. align-items: center;
  270. display: flex;
  271. justify-content: center;
  272. text-align: center;
  273. position: relative;
  274. flex: 2;
  275. align-self: stretch;
  276. }
  277. .cu-bar.tabbar .submit:last-child {
  278. flex: 2.6;
  279. }
  280. .cu-bar.tabbar .submit+.submit {
  281. flex: 2;
  282. }
  283. .cu-bar.tabbar.border .action::before {
  284. content: " ";
  285. width: 200%;
  286. height: 200%;
  287. position: absolute;
  288. top: 0;
  289. left: 0;
  290. transform: scale(0.5);
  291. transform-origin: 0 0;
  292. border-right: 1rpx solid rgba(0, 0, 0, 0.1);
  293. z-index: 3;
  294. }
  295. .cu-bar.tabbar.border .action:last-child:before {
  296. display: none;
  297. }
  298. .cu-bar.input {
  299. padding-right: 20rpx;
  300. background-color: var(--white);
  301. }
  302. .cu-bar.input input {
  303. overflow: initial;
  304. line-height: 64rpx;
  305. height: 64rpx;
  306. min-height: 64rpx;
  307. flex: 1;
  308. font-size: 30rpx;
  309. margin: 0 20rpx;
  310. }
  311. .cu-bar.input .action {
  312. margin-left: 20rpx;
  313. }
  314. .cu-bar.input .action [class*="cuIcon-"] {
  315. font-size: 48rpx;
  316. }
  317. .cu-bar.input input+.action {
  318. margin-right: 20rpx;
  319. margin-left: 0rpx;
  320. }
  321. .cu-bar.input .action:first-child [class*="cuIcon-"] {
  322. margin-left: 0rpx;
  323. }
  324. .cu-custom {
  325. display: block;
  326. position: relative;
  327. }
  328. .cu-custom .cu-bar .content {
  329. width: calc(100% - 440rpx);
  330. }
  331. .cu-custom .cu-bar .content image {
  332. height: 60rpx;
  333. width: 240rpx;
  334. }
  335. .cu-custom .cu-bar {
  336. min-height: 0px;
  337. padding-right: 220rpx;
  338. box-shadow: 0rpx 0rpx 0rpx;
  339. z-index: 9999;
  340. }
  341. .cu-custom .cu-bar .border-custom {
  342. position: relative;
  343. background: rgba(0, 0, 0, 0.15);
  344. border-radius: 1000rpx;
  345. height: 30px;
  346. }
  347. .cu-custom .cu-bar .border-custom::after {
  348. content: " ";
  349. width: 200%;
  350. height: 200%;
  351. position: absolute;
  352. top: 0;
  353. left: 0;
  354. border-radius: inherit;
  355. transform: scale(0.5);
  356. transform-origin: 0 0;
  357. pointer-events: none;
  358. box-sizing: border-box;
  359. border: 1rpx solid var(--white);
  360. opacity: 0.5;
  361. }
  362. .cu-custom .cu-bar .border-custom::before {
  363. content: " ";
  364. width: 1rpx;
  365. height: 110%;
  366. position: absolute;
  367. top: 22.5%;
  368. left: 0;
  369. right: 0;
  370. margin: auto;
  371. transform: scale(0.5);
  372. transform-origin: 0 0;
  373. pointer-events: none;
  374. box-sizing: border-box;
  375. opacity: 0.6;
  376. background-color: var(--white);
  377. }
  378. .cu-custom .cu-bar .border-custom text {
  379. display: block;
  380. flex: 1;
  381. margin: auto !important;
  382. text-align: center;
  383. font-size: 34rpx;
  384. }