colorui.wxss 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076
  1. /*
  2. Color UI v2.0.3 | by 文晓港
  3. 仅供学习交流,如作它用所承受的法律责任一概与作者无关
  4. (QQ交流群:240787041)
  5. 文档:http://www.color-ui.com/
  6. */
  7. /* ==================
  8. 初始化
  9. ==================== */
  10. page {
  11. background: #f1f1f1;
  12. font-size: 28rpx;
  13. color: #333;
  14. line-height: 1;
  15. font-family: Helvetica Neue, Helvetica, sans-serif;
  16. }
  17. view, text, custom, tag, capsule, scroll-view, swiper, button, timeline, form,
  18. form-group, info, bar, progress-bar, input, textarea, label, navigator, list,
  19. item, chat, image {
  20. box-sizing: border-box;
  21. }
  22. /* ==================
  23. 布局
  24. ==================== */
  25. /* -- flex弹性布局 -- */
  26. .flex {
  27. display: flex;
  28. }
  29. .basis-xs {
  30. flex-basis: 20%;
  31. }
  32. .basis-sm {
  33. flex-basis: 40%;
  34. }
  35. .basis-df {
  36. flex-basis: 50%;
  37. }
  38. .basis-lg {
  39. flex-basis: 60%;
  40. }
  41. .basis-xl {
  42. flex-basis: 80%;
  43. }
  44. .flex-sub {
  45. flex: 1;
  46. }
  47. .flex-twice {
  48. flex: 2;
  49. }
  50. .flex-treble {
  51. flex: 3;
  52. }
  53. .flex-direction {
  54. flex-direction: column;
  55. }
  56. .flex-wrap {
  57. flex-wrap: wrap;
  58. }
  59. .align-start {
  60. align-items: flex-start;
  61. }
  62. .align-end {
  63. align-items: flex-end;
  64. }
  65. .align-center {
  66. align-items: center;
  67. }
  68. .align-stretch {
  69. align-items: stretch;
  70. }
  71. .self-start {
  72. align-self: flex-start;
  73. }
  74. .self-center {
  75. align-self: flex-center;
  76. }
  77. .self-end {
  78. align-self: flex-end;
  79. }
  80. .self-stretch {
  81. align-self: stretch;
  82. }
  83. .align-stretch {
  84. align-items: stretch;
  85. }
  86. .justify-start {
  87. justify-content: flex-start;
  88. }
  89. .justify-end {
  90. justify-content: flex-end;
  91. }
  92. .justify-center {
  93. justify-content: center;
  94. }
  95. .justify-between {
  96. justify-content: space-between;
  97. }
  98. .justify-around {
  99. justify-content: space-around;
  100. }
  101. /* grid布局 */
  102. .grid {
  103. display: flex;
  104. flex-wrap: wrap;
  105. }
  106. .grid.grid-square {
  107. margin-bottom: -20rpx;
  108. overflow: hidden;
  109. }
  110. .grid.grid-square tag {
  111. position: absolute;
  112. right: 0;
  113. top: 0;
  114. border-bottom-left-radius: 6rpx;
  115. }
  116. .grid.grid-square view> text[class*="icon"], .grid.grid-square item> text {
  117. font-size: 52rpx;
  118. position: absolute;
  119. color: #aaa;
  120. margin: auto;
  121. top: 0;
  122. bottom: 0;
  123. left: 0;
  124. right: 0;
  125. }
  126. .grid.grid-square view, .grid.grid-square item {
  127. margin-right: 20rpx;
  128. margin-bottom: 20rpx;
  129. border-radius: 6rpx;
  130. position: relative;
  131. overflow: hidden;
  132. }
  133. .grid.col-1.grid-square view, .grid.col-1.grid-square item {
  134. padding-bottom: 100%;
  135. height: 0;
  136. margin-right: 0;
  137. }
  138. .grid.col-2.grid-square view, .grid.col-2.grid-square item {
  139. padding-bottom: calc((100% - 20rpx)/2);
  140. height: 0;
  141. width: calc((100% - 20rpx)/2);
  142. }
  143. .grid.col-2.grid-square view:nth-child(2n),
  144. .grid.col-2.grid-square item:nth-child(2n) {
  145. margin-right: 0;
  146. }
  147. .grid.col-3.grid-square view, .grid.col-3.grid-square item {
  148. padding-bottom: calc((100% - 40rpx)/3);
  149. height: 0;
  150. width: calc((100% - 40rpx)/3);
  151. }
  152. .grid.col-3.grid-square view:nth-child(3n),
  153. .grid.col-3.grid-square item:nth-child(3n) {
  154. margin-right: 0;
  155. }
  156. .grid.col-4.grid-square view, .grid.col-4.grid-square item {
  157. padding-bottom: calc((100% - 60rpx)/4);
  158. height: 0;
  159. width: calc((100% - 60rpx)/4);
  160. }
  161. .grid.col-4.grid-square view:nth-child(4n),
  162. .grid.col-4.grid-square item:nth-child(4n) {
  163. margin-right: 0;
  164. }
  165. .grid.col-5.grid-square view, .grid.col-5.grid-square item {
  166. padding-bottom: calc((100% - 80rpx)/5);
  167. height: 0;
  168. width: calc((100% - 80rpx)/5);
  169. }
  170. .grid.col-1>item, .grid.col-1>view {
  171. width: 100%;
  172. }
  173. .grid.col-2>item, .grid.col-2>view {
  174. width: 50%;
  175. }
  176. .grid.col-3>item, .grid.col-3>view {
  177. width: 33.33%;
  178. }
  179. .grid.col-4>item, .grid.col-4>view {
  180. width: 25%;
  181. }
  182. .grid.col-5>item, .grid.col-5>view {
  183. width: 20%;
  184. }
  185. /* -- 内外边距 -- */
  186. .margin-0 {
  187. margin: 0 !important;
  188. }
  189. .margin-xs {
  190. margin: 10rpx;
  191. }
  192. .margin-sm {
  193. margin: 20rpx;
  194. }
  195. .margin {
  196. margin: 30rpx;
  197. }
  198. .margin-lg {
  199. margin: 40rpx;
  200. }
  201. .margin-xl {
  202. margin: 50rpx;
  203. }
  204. .margin-top-xs {
  205. margin-top: 10rpx;
  206. }
  207. .margin-top-sm {
  208. margin-top: 20rpx;
  209. }
  210. .margin-top {
  211. margin-top: 30rpx;
  212. }
  213. .margin-top-lg {
  214. margin-top: 40rpx;
  215. }
  216. .margin-top-xl {
  217. margin-top: 50rpx;
  218. }
  219. .margin-right-xs {
  220. margin-right: 10rpx;
  221. }
  222. .margin-right-sm {
  223. margin-right: 20rpx;
  224. }
  225. .margin-right {
  226. margin-right: 30rpx;
  227. }
  228. .margin-right-lg {
  229. margin-right: 40rpx;
  230. }
  231. .margin-right-xl {
  232. margin-right: 50rpx;
  233. }
  234. .margin-bottom-xs {
  235. margin-bottom: 10rpx;
  236. }
  237. .margin-bottom-sm {
  238. margin-bottom: 20rpx;
  239. }
  240. .margin-bottom {
  241. margin-bottom: 30rpx;
  242. }
  243. .margin-bottom-lg {
  244. margin-bottom: 40rpx;
  245. }
  246. .margin-bottom-xl {
  247. margin-bottom: 50rpx;
  248. }
  249. .margin-left-xs {
  250. margin-left: 10rpx;
  251. }
  252. .margin-left-sm {
  253. margin-left: 20rpx;
  254. }
  255. .margin-left {
  256. margin-left: 30rpx;
  257. }
  258. .margin-left-lg {
  259. margin-left: 40rpx;
  260. }
  261. .margin-left-xl {
  262. margin-left: 50rpx;
  263. }
  264. .margin-lr-xs {
  265. margin-left: 10rpx;
  266. margin-right: 10rpx;
  267. }
  268. .margin-lr-sm {
  269. margin-left: 20rpx;
  270. margin-right: 20rpx;
  271. }
  272. .margin-lr {
  273. margin-left: 30rpx;
  274. margin-right: 30rpx;
  275. }
  276. .margin-lr-lg {
  277. margin-left: 40rpx;
  278. margin-right: 40rpx;
  279. }
  280. .margin-lr-xl {
  281. margin-left: 50rpx;
  282. margin-right: 50rpx;
  283. }
  284. .margin-tb-xs {
  285. margin-top: 10rpx;
  286. margin-bottom: 10rpx;
  287. }
  288. .margin-tb-sm {
  289. margin-top: 20rpx;
  290. margin-bottom: 20rpx;
  291. }
  292. .margin-tb {
  293. margin-top: 30rpx;
  294. margin-bottom: 30rpx;
  295. }
  296. .margin-tb-lg {
  297. margin-top: 40rpx;
  298. margin-bottom: 40rpx;
  299. }
  300. .margin-tb-xl {
  301. margin-top: 50rpx;
  302. margin-bottom: 50rpx;
  303. }
  304. .padding-0 {
  305. padding: 0 !important;
  306. }
  307. .padding-xs {
  308. padding: 10rpx;
  309. }
  310. .padding-sm {
  311. padding: 20rpx;
  312. }
  313. .padding {
  314. padding: 30rpx;
  315. }
  316. .padding-lg {
  317. padding: 40rpx;
  318. }
  319. .padding-xl {
  320. padding: 50rpx;
  321. }
  322. .padding-top-xs {
  323. padding-top: 10rpx;
  324. }
  325. .padding-top-sm {
  326. padding-top: 20rpx;
  327. }
  328. .padding-top {
  329. padding-top: 30rpx;
  330. }
  331. .padding-top-lg {
  332. padding-top: 40rpx;
  333. }
  334. .padding-top-xl {
  335. padding-top: 50rpx;
  336. }
  337. .padding-right-xs {
  338. padding-right: 10rpx;
  339. }
  340. .padding-right-sm {
  341. padding-right: 20rpx;
  342. }
  343. .padding-right {
  344. padding-right: 30rpx;
  345. }
  346. .padding-right-lg {
  347. padding-right: 40rpx;
  348. }
  349. .padding-right-xl {
  350. padding-right: 50rpx;
  351. }
  352. .padding-bottom-xs {
  353. padding-bottom: 10rpx;
  354. }
  355. .padding-bottom-sm {
  356. padding-bottom: 20rpx;
  357. }
  358. .padding-bottom {
  359. padding-bottom: 30rpx;
  360. }
  361. .padding-bottom-lg {
  362. padding-bottom: 40rpx;
  363. }
  364. .padding-bottom-xl {
  365. padding-bottom: 50rpx;
  366. }
  367. .padding-left-xs {
  368. padding-left: 10rpx;
  369. }
  370. .padding-left-sm {
  371. padding-left: 20rpx;
  372. }
  373. .padding-left {
  374. padding-left: 30rpx;
  375. }
  376. .padding-left-lg {
  377. padding-left: 40rpx;
  378. }
  379. .padding-left-xl {
  380. padding-left: 50rpx;
  381. }
  382. .padding-lr-xs {
  383. padding-left: 10rpx;
  384. padding-right: 10rpx;
  385. }
  386. .padding-lr-sm {
  387. padding-left: 20rpx;
  388. padding-right: 20rpx;
  389. }
  390. .padding-lr {
  391. padding-left: 30rpx;
  392. padding-right: 30rpx;
  393. }
  394. .padding-lr-lg {
  395. padding-left: 40rpx;
  396. padding-right: 40rpx;
  397. }
  398. .padding-lr-xl {
  399. padding-left: 50rpx;
  400. padding-right: 50rpx;
  401. }
  402. .padding-tb-xs {
  403. padding-top: 10rpx;
  404. padding-bottom: 10rpx;
  405. }
  406. .padding-tb-sm {
  407. padding-top: 20rpx;
  408. padding-bottom: 20rpx;
  409. }
  410. .padding-tb {
  411. padding-top: 30rpx;
  412. padding-bottom: 30rpx;
  413. }
  414. .padding-tb-lg {
  415. padding-top: 40rpx;
  416. padding-bottom: 40rpx;
  417. }
  418. .padding-tb-xl {
  419. padding-top: 50rpx;
  420. padding-bottom: 50rpx;
  421. }
  422. /* -- 浮动 -- */
  423. .cf::after, .cf::before {
  424. content: " ";
  425. display: table;
  426. }
  427. .cf::after {
  428. clear: both;
  429. }
  430. .fl {
  431. float: left;
  432. }
  433. .fr {
  434. float: right;
  435. }
  436. /* ==================
  437. 图片
  438. ==================== */
  439. image {
  440. max-width: 100%;
  441. display: inline-block;
  442. position: relative;
  443. z-index: 0;
  444. }
  445. image.loading::before {
  446. content: "";
  447. background: #f5f5f5;
  448. display: block;
  449. position: absolute;
  450. width: 100%;
  451. height: 100%;
  452. z-index: -2;
  453. }
  454. image.loading::after {
  455. content: "\e7f1";
  456. font-family: "iconfont";
  457. position: absolute;
  458. top: 0;
  459. left: 0;
  460. width: 32rpx;
  461. height: 32rpx;
  462. line-height: 32rpx;
  463. right: 0;
  464. bottom: 0;
  465. z-index: -1;
  466. font-size: 32rpx;
  467. margin: auto;
  468. color: #ccc;
  469. -webkit-animation: icon-spin 2s infinite linear;
  470. animation: icon-spin 2s infinite linear;
  471. display: block;
  472. }
  473. image.response {
  474. width: 100%;
  475. }
  476. /* ==================
  477. 开关
  478. ==================== */
  479. switch, checkbox, radio {
  480. position: relative;
  481. }
  482. switch::after, switch::before {
  483. font-family: "iconfont" !important;
  484. content: "\e645";
  485. position: absolute;
  486. color: #fff;
  487. top: 0%;
  488. left: 0rpx;
  489. font-size: 32rpx;
  490. line-height: 64rpx;
  491. width: 64rpx;
  492. text-align: center;
  493. pointer-events: none;
  494. transform: scale(0, 0);
  495. transition: all 0.3s ease-in-out 0s;
  496. z-index: 9;
  497. }
  498. switch::before {
  499. content: "\e646";
  500. right: 0;
  501. transform: scale(1, 1);
  502. left: auto;
  503. }
  504. switch[checked]::after {
  505. transform: scale(1, 1);
  506. }
  507. switch[checked]::before {
  508. transform: scale(0, 0);
  509. }
  510. radio::before, checkbox::before {
  511. font-family: "iconfont" !important;
  512. content: "\e645";
  513. position: absolute;
  514. color: #fff;
  515. top: 50%;
  516. margin-top: -16rpx;
  517. right: 10rpx;
  518. font-size: 32rpx;
  519. line-height: 32rpx;
  520. pointer-events: none;
  521. transform: scale(1, 1);
  522. transition: all 0.3s ease-in-out 0s;
  523. z-index: 9;
  524. }
  525. switch[checked]::before {
  526. transform: scale(0, 0);
  527. }
  528. switch .wx-switch-input {
  529. background: #aaa !important;
  530. border: none;
  531. padding: 0 60rpx;
  532. height: 64rpx;
  533. margin: 0;
  534. border-radius: 100rpx;
  535. }
  536. switch .wx-switch-input::after {
  537. margin: auto !important;
  538. width: 64rpx !important;
  539. height: 64rpx !important;
  540. border-radius: 100rpx;
  541. left: 0rpx !important;
  542. top: 0rpx !important;
  543. bottom: 0rpx !important;
  544. position: absolute;
  545. transform: scale(0.9, 0.9) !important;
  546. transition: all 0.1s ease-in-out 0s;
  547. }
  548. switch .wx-switch-input-checked::after {
  549. margin: auto !important;
  550. left: 57rpx !important;
  551. box-shadow: none !important;
  552. }
  553. radio-group {
  554. display: inline-block;
  555. }
  556. radio .wx-radio-input, checkbox .wx-checkbox-input {
  557. margin: 0;
  558. width: 48rpx;
  559. height: 48rpx;
  560. }
  561. checkbox.round .wx-checkbox-input {
  562. border-radius: 100rpx;
  563. }
  564. switch.radius .wx-switch-input::after, switch.radius .wx-switch-input,
  565. switch.radius .wx-switch-input::before {
  566. border-radius: 10rpx;
  567. }
  568. switch .wx-switch-input::before, radio.radio::before,
  569. checkbox .wx-checkbox-input::before, radio .wx-radio-input::before {
  570. display: none;
  571. }
  572. radio.radio[checked]::after {
  573. content: "";
  574. background: transparent;
  575. display: block;
  576. position: absolute;
  577. width: 16rpx;
  578. height: 16rpx;
  579. z-index: 999;
  580. top: 0rpx;
  581. left: 0rpx;
  582. right: 0;
  583. bottom: 0;
  584. margin: auto;
  585. border-radius: 200rpx;
  586. border: 16rpx solid #fff;
  587. }
  588. switch.sm, checkbox.sm, radio.sm {
  589. transform: scale(0.8);
  590. }
  591. .switch-sex::after {
  592. content: "\e71c";
  593. }
  594. .switch-sex::before {
  595. content: "\e71a";
  596. }
  597. .switch-sex .wx-switch-input {
  598. background: #e54d42 !important;
  599. border-color: #e54d42;
  600. }
  601. .switch-sex[checked] .wx-switch-input {
  602. background: #0081ff !important;
  603. border-color: #0081ff !important;
  604. }
  605. /* ==================
  606. 背景
  607. ==================== */
  608. .line-red::after, .lines-red::after, switch.red[checked] .wx-switch-input,
  609. checkbox.red[checked] .wx-checkbox-input, radio.red[checked] .wx-radio-input {
  610. border-color: #e54d42 !important;
  611. }
  612. .line-orange::after, .lines-orange::after,
  613. switch.orange[checked] .wx-switch-input,
  614. checkbox.orange[checked] .wx-checkbox-input,
  615. radio.orange[checked] .wx-radio-input {
  616. border-color: #f37b1d !important;
  617. }
  618. .line-yellow::after, .lines-yellow::after,
  619. switch.yellow[checked] .wx-switch-input,
  620. checkbox.yellow[checked] .wx-checkbox-input,
  621. radio.yellow[checked] .wx-radio-input {
  622. border-color: #fbbd08 !important;
  623. }
  624. .line-olive::after, .lines-olive::after, switch.olive[checked] .wx-switch-input,
  625. checkbox.olive[checked] .wx-checkbox-input, radio.olive[checked] .wx-radio-input {
  626. border-color: #8dc63f !important;
  627. }
  628. .line-green::after, .lines-green::after, switch.green[checked] .wx-switch-input,
  629. checkbox.green[checked] .wx-checkbox-input, checkbox[checked] .wx-checkbox-input,
  630. radio.green[checked] .wx-radio-input {
  631. border-color: #39b54a !important;
  632. }
  633. .line-cyan::after, .lines-cyan::after, switch.cyan[checked] .wx-switch-input,
  634. checkbox.cyan[checked] .wx-checkbox-input, radio.cyan[checked] .wx-radio-input {
  635. border-color: #1cbbb4 !important;
  636. }
  637. .line-blue::after, .lines-blue::after, switch.blue[checked] .wx-switch-input,
  638. checkbox.blue[checked] .wx-checkbox-input, radio.blue[checked] .wx-radio-input {
  639. border-color: #0081ff !important;
  640. }
  641. .line-purple::after, .lines-purple::after,
  642. switch.purple[checked] .wx-switch-input,
  643. checkbox.purple[checked] .wx-checkbox-input,
  644. radio.purple[checked] .wx-radio-input {
  645. border-color: #6739b6 !important;
  646. }
  647. .line-mauve::after, .lines-mauve::after, switch.mauve[checked] .wx-switch-input,
  648. checkbox.mauve[checked] .wx-checkbox-input, radio.mauve[checked] .wx-radio-input {
  649. border-color: #9c26b0 !important;
  650. }
  651. .line-pink::after, .lines-pink::after, switch.pink[checked] .wx-switch-input,
  652. checkbox.pink[checked] .wx-checkbox-input, radio.pink[checked] .wx-radio-input {
  653. border-color: #e03997 !important;
  654. }
  655. .line-brown::after, .lines-brown::after, switch.brown[checked] .wx-switch-input,
  656. checkbox.brown[checked] .wx-checkbox-input, radio.brown[checked] .wx-radio-input {
  657. border-color: #a5673f !important;
  658. }
  659. .line-grey::after, .lines-grey::after, switch.grey[checked] .wx-switch-input,
  660. checkbox.grey[checked] .wx-checkbox-input, radio.grey[checked] .wx-radio-input {
  661. border-color: #8799a3 !important;
  662. }
  663. .line-gray::after, .lines-gray::after, switch.gray[checked] .wx-switch-input,
  664. checkbox.gray[checked] .wx-checkbox-input, radio.gray[checked] .wx-radio-input {
  665. border-color: #aaa !important;
  666. }
  667. .line-black::after, .lines-black::after, switch.black[checked] .wx-switch-input,
  668. checkbox.black[checked] .wx-checkbox-input, radio.black[checked] .wx-radio-input {
  669. border-color: #333 !important;
  670. }
  671. .line-white::after, .lines-white::after, switch.white[checked] .wx-switch-input,
  672. checkbox.white[checked] .wx-checkbox-input, radio.white[checked] .wx-radio-input {
  673. border-color: #fff !important;
  674. }
  675. .bg-red, switch.red[checked] .wx-switch-input,
  676. checkbox.red[checked] .wx-checkbox-input, radio.red[checked] .wx-radio-input {
  677. background-color: #e54d42 !important;
  678. color: #fff !important;
  679. }
  680. .bg-orange, switch.orange[checked] .wx-switch-input,
  681. checkbox.orange[checked] .wx-checkbox-input,
  682. radio.orange[checked] .wx-radio-input {
  683. background-color: #f37b1d !important;
  684. color: #fff !important;
  685. }
  686. .bg-yellow, switch.yellow[checked] .wx-switch-input,
  687. checkbox.yellow[checked] .wx-checkbox-input,
  688. radio.yellow[checked] .wx-radio-input {
  689. background-color: #fbbd08 !important;
  690. color: #333 !important;
  691. }
  692. .bg-olive, switch.olive[checked] .wx-switch-input,
  693. checkbox.olive[checked] .wx-checkbox-input, radio.olive[checked] .wx-radio-input {
  694. background-color: #8dc63f !important;
  695. color: #fff !important;
  696. }
  697. .bg-green, switch.green[checked] .wx-switch-input,
  698. switch[checked] .wx-switch-input, checkbox.green[checked] .wx-checkbox-input,
  699. checkbox[checked] .wx-checkbox-input, radio.green[checked] .wx-radio-input,
  700. radio[checked] .wx-radio-input {
  701. background-color: #39b54a !important;
  702. color: #fff !important;
  703. }
  704. .bg-cyan, switch.cyan[checked] .wx-switch-input,
  705. checkbox.cyan[checked] .wx-checkbox-input, radio.cyan[checked] .wx-radio-input {
  706. background-color: #1cbbb4 !important;
  707. color: #fff !important;
  708. }
  709. .bg-blue, switch.blue[checked] .wx-switch-input,
  710. checkbox.blue[checked] .wx-checkbox-input, radio.blue[checked] .wx-radio-input {
  711. background-color: #0081ff !important;
  712. color: #fff !important;
  713. }
  714. .bg-purple, switch.purple[checked] .wx-switch-input,
  715. checkbox.purple[checked] .wx-checkbox-input,
  716. radio.purple[checked] .wx-radio-input {
  717. background-color: #6739b6 !important;
  718. color: #fff !important;
  719. }
  720. .bg-mauve, switch.mauve[checked] .wx-switch-input,
  721. checkbox.mauve[checked] .wx-checkbox-input, radio.mauve[checked] .wx-radio-input {
  722. background-color: #9c26b0 !important;
  723. color: #fff !important;
  724. }
  725. .bg-pink, switch.pink[checked] .wx-switch-input,
  726. checkbox.pink[checked] .wx-checkbox-input, radio.pink[checked] .wx-radio-input {
  727. background-color: #e03997 !important;
  728. color: #fff !important;
  729. }
  730. .bg-brown, switch.brown[checked] .wx-switch-input,
  731. checkbox.brown[checked] .wx-checkbox-input, radio.brown[checked] .wx-radio-input {
  732. background-color: #a5673f !important;
  733. color: #fff !important;
  734. }
  735. .bg-grey, switch.grey[checked] .wx-switch-input,
  736. checkbox.grey[checked] .wx-checkbox-input, radio.grey[checked] .wx-radio-input {
  737. background-color: #8799a3 !important;
  738. color: #fff !important;
  739. }
  740. .bg-gray, switch.gray[checked] .wx-switch-input,
  741. checkbox.gray[checked] .wx-checkbox-input, radio.gray[checked] .wx-radio-input {
  742. background-color: #f0f0f0 !important;
  743. color: #666 !important;
  744. }
  745. .bg-black, switch.black[checked] .wx-switch-input,
  746. checkbox.black[checked] .wx-checkbox-input, radio.black[checked] .wx-radio-input {
  747. background-color: #333 !important;
  748. color: #fff !important;
  749. }
  750. .bg-white, switch.white[checked] .wx-switch-input,
  751. checkbox.white[checked] .wx-checkbox-input, radio.white[checked] .wx-radio-input {
  752. background-color: #fff !important;
  753. color: #666;
  754. }
  755. .bg-shadeTop {
  756. background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
  757. color: #fff;
  758. }
  759. .bg-shadeBottom {
  760. background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  761. color: #fff;
  762. }
  763. .none-bg, .line-white, .lines-white {
  764. background-color: transparent !important;
  765. }
  766. .bg-red.light {
  767. color: #e54d42 !important;
  768. background: #fadbd9 !important;
  769. }
  770. .bg-orange.light {
  771. color: #f37b1d !important;
  772. background: #fde6d2 !important;
  773. }
  774. .bg-yellow.light {
  775. color: #fbbd08 !important;
  776. background: #fef2ce !important;
  777. }
  778. .bg-olive.light {
  779. color: #8dc63f !important;
  780. background: #e8f4d9 !important;
  781. }
  782. .bg-green.light {
  783. color: #39b54a !important;
  784. background: #d7f0db !important;
  785. }
  786. .bg-cyan.light {
  787. color: #1cbbb4 !important;
  788. background: #d2f1f0 !important;
  789. }
  790. .bg-blue.light {
  791. color: #0081ff !important;
  792. background: #cce6ff !important;
  793. }
  794. .bg-purple.light {
  795. color: #6739b6 !important;
  796. background: #e1d7f0 !important;
  797. }
  798. .bg-mauve.light {
  799. color: #9c26b0 !important;
  800. background: #ebd4ef !important;
  801. }
  802. .bg-pink.light {
  803. color: #e03997 !important;
  804. background: #f9d7ea !important;
  805. }
  806. .bg-brown.light {
  807. color: #a5673f !important;
  808. background: #ede1d9 !important;
  809. }
  810. .bg-grey.light {
  811. color: #8799a3 !important;
  812. background: #e7ebed !important;
  813. }
  814. .bg-gray.light {
  815. color: #666 !important;
  816. background: #fadbd9 !important;
  817. }
  818. .bg-gray.light {
  819. color: #888 !important;
  820. background: #f1f1f1 !important;
  821. }
  822. .gradual-red {
  823. background-image: linear-gradient(45deg, #f43f3b, #ec008c) !important;
  824. color: #fff !important;
  825. }
  826. .gradual-orange {
  827. background-image: linear-gradient(45deg, #ff9700, #ed1c24) !important;
  828. color: #fff !important;
  829. }
  830. .gradual-green {
  831. background-image: linear-gradient(45deg, #39b54a, #8dc63f) !important;
  832. color: #fff !important;
  833. }
  834. .gradual-purple {
  835. background-image: linear-gradient(45deg, #9000ff, #5e00ff) !important;
  836. color: #fff !important;
  837. }
  838. .gradual-pink {
  839. background-image: linear-gradient(45deg, #ec008c, #6739b6) !important;
  840. color: #fff !important;
  841. }
  842. .gradual-blue {
  843. background-image: linear-gradient(45deg, #0081ff, #1cbbb4) !important;
  844. color: #fff !important;
  845. }
  846. button.shadow[class*="-red"] {
  847. box-shadow: 6rpx 6rpx 8rpx rgba(204, 69, 59, 0.2) !important;
  848. }
  849. button.shadow[class*="-orange"] {
  850. box-shadow: 6rpx 6rpx 8rpx rgba(217, 109, 26, 0.2) !important;
  851. }
  852. button.shadow[class*="-yellow"] {
  853. box-shadow: 6rpx 6rpx 8rpx rgba(224, 170, 7, 0.2) !important;
  854. }
  855. button.shadow[class*="-olive"] {
  856. box-shadow: 6rpx 6rpx 8rpx rgba(124, 173, 55, 0.2) !important;
  857. }
  858. button.shadow[class*="-green"] {
  859. box-shadow: 6rpx 6rpx 8rpx rgba(48, 156, 63, 0.2) !important;
  860. }
  861. button.shadow[class*="-cyan"] {
  862. box-shadow: 6rpx 6rpx 8rpx rgba(28, 187, 180, 0.2) !important;
  863. }
  864. button.shadow[class*="-blue"] {
  865. box-shadow: 6rpx 6rpx 8rpx rgba(0, 102, 204, 0.2) !important;
  866. }
  867. button.shadow[class*="-purple"] {
  868. box-shadow: 6rpx 6rpx 8rpx rgba(88, 48, 156, 0.2) !important;
  869. }
  870. button.shadow[class*="-mauve"] {
  871. box-shadow: 6rpx 6rpx 8rpx rgba(133, 33, 150, 0.2) !important;
  872. }
  873. button.shadow[class*="-pink"] {
  874. box-shadow: 6rpx 6rpx 8rpx rgba(199, 50, 134, 0.2) !important;
  875. }
  876. button.shadow[class*="-brown"] {
  877. box-shadow: 6rpx 6rpx 8rpx rgba(140, 88, 53, 0.2) !important;
  878. }
  879. button.shadow[class*="-grey"] {
  880. box-shadow: 6rpx 6rpx 8rpx rgba(114, 130, 138, 0.2) !important;
  881. }
  882. button.shadow[class*="-gray"] {
  883. box-shadow: 6rpx 6rpx 8rpx rgba(114, 130, 138, 0.2) !important;
  884. }
  885. button.shadow[class*="-black"] {
  886. box-shadow: 6rpx 6rpx 8rpx rgba(26, 26, 26, 0.2) !important;
  887. }
  888. .bg-img {
  889. background-size: cover;
  890. background-position: center;
  891. background-repeat: no-repeat;
  892. }
  893. .bg-mask {
  894. background-color: #333;
  895. position: relative;
  896. }
  897. .bg-mask::after {
  898. content: "";
  899. border-radius: inherit;
  900. width: 100%;
  901. height: 100%;
  902. display: block;
  903. background-color: rgba(0, 0, 0, 0.5);
  904. position: absolute;
  905. left: 0;
  906. right: 0;
  907. bottom: 0;
  908. top: 0;
  909. }
  910. .bg-mask view, .bg-mask cover-view {
  911. z-index: 5;
  912. position: relative;
  913. }
  914. .bg-mask>cover-view {
  915. background-color: rgba(0, 0, 0, 0.5);
  916. }
  917. .bg-video {
  918. position: relative;
  919. }
  920. .bg-video video {
  921. display: block;
  922. height: 100%;
  923. width: 100%;
  924. -o-object-fit: cover;
  925. object-fit: cover;
  926. position: absolute;
  927. top: 0;
  928. z-index: 0;
  929. pointer-events: none;
  930. }
  931. /* ==================
  932. 文本
  933. ==================== */
  934. .text-xs {
  935. font-size: 20rpx;
  936. }
  937. .text-sm {
  938. font-size: 24rpx;
  939. }
  940. .text-df {
  941. font-size: 28rpx;
  942. }
  943. .text-lg {
  944. font-size: 32rpx;
  945. }
  946. .text-xl {
  947. font-size: 36rpx;
  948. }
  949. .text-xxl {
  950. font-size: 44rpx;
  951. }
  952. .text-sl {
  953. font-size: 80rpx;
  954. }
  955. .text-xsl {
  956. font-size: 120rpx;
  957. }
  958. .text-Abc {
  959. text-transform: Capitalize;
  960. }
  961. .text-ABC {
  962. text-transform: Uppercase;
  963. }
  964. .text-abc {
  965. text-transform: Lowercase;
  966. }
  967. .text-price::before {
  968. content: "¥";
  969. font-size: 80%;
  970. margin-right: 4rpx;
  971. }
  972. .text-cut {
  973. text-overflow: ellipsis;
  974. white-space: nowrap;
  975. overflow: hidden;
  976. }
  977. .text-bold {
  978. font-weight: bold;
  979. }
  980. .text-center {
  981. text-align: center;
  982. }
  983. .text-content {
  984. line-height: 1.6;
  985. }
  986. .text-left {
  987. text-align: left;
  988. }
  989. .text-right {
  990. text-align: right;
  991. }
  992. .text-red, .line-red, .lines-red {
  993. color: #e54d42 !important;
  994. }
  995. .text-orange, .line-orange, .lines-orange {
  996. color: #f37b1d !important;
  997. }
  998. .text-yellow, .line-yellow, .lines-yellow {
  999. color: #fbbd08 !important;
  1000. }
  1001. .text-olive, .line-olive, .lines-olive {
  1002. color: #8dc63f !important;
  1003. }
  1004. .text-green, .line-green, .lines-green {
  1005. color: #39b54a !important;
  1006. }
  1007. .text-cyan, .line-cyan, .lines-cyan {
  1008. color: #1cbbb4 !important;
  1009. }
  1010. .text-blue, .line-blue, .lines-blue {
  1011. color: #0081ff !important;
  1012. }
  1013. .text-purple, .line-purple, .lines-purple {
  1014. color: #6739b6 !important;
  1015. }
  1016. .text-mauve, .line-mauve, .lines-mauve {
  1017. color: #9c26b0 !important;
  1018. }
  1019. .text-pink, .line-pink, .lines-pink {
  1020. color: #e03997 !important;
  1021. }
  1022. .text-brown, .line-brown, .lines-brown {
  1023. color: #a5673f !important;
  1024. }
  1025. .text-grey, .line-grey, .lines-grey {
  1026. color: #8799a3 !important;
  1027. }
  1028. .text-gray, .line-gray, .lines-gray {
  1029. color: #aaa !important;
  1030. }
  1031. .text-black, .line-black, .lines-black {
  1032. color: #333 !important;
  1033. }
  1034. .text-white, .line-white, .lines-white {
  1035. color: #fff !important;
  1036. }
  1037. /* ==================
  1038. 边框
  1039. ==================== */
  1040. /* -- 实线 -- */
  1041. .solid, .solid-top, .solid-right, .solid-bottom, .solid-left, .solids,
  1042. .solids-top, .solids-right, .solids-bottom, .solids-left, .dashed, .dashed-top,
  1043. .dashed-right, .dashed-bottom, .dashed-left {
  1044. position: relative;
  1045. }
  1046. .solid::after, .solid-top::after, .solid-right::after, .solid-bottom::after,
  1047. .solid-left::after, .solids::after, .solids-top::after, .solids-right::after,
  1048. .solids-bottom::after, .solids-left::after, .dashed::after, .dashed-top::after,
  1049. .dashed-right::after, .dashed-bottom::after, .dashed-left::after {
  1050. content: " ";
  1051. width: 200%;
  1052. height: 200%;
  1053. position: absolute;
  1054. top: 0;
  1055. left: 0;
  1056. border-radius: inherit;
  1057. transform: scale(0.5);
  1058. transform-origin: 0 0;
  1059. pointer-events: none;
  1060. box-sizing: border-box;
  1061. }
  1062. .solid::after {
  1063. border: 1rpx solid rgba(0, 0, 0, 0.1);
  1064. }
  1065. .solid-top::after {
  1066. border-top: 1rpx solid rgba(0, 0, 0, 0.1);
  1067. }
  1068. .solid-right::after {
  1069. border-right: 1rpx solid rgba(0, 0, 0, 0.1);
  1070. }
  1071. .solid-bottom::after {
  1072. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  1073. }
  1074. .solid-left::after {
  1075. border-left: 1rpx solid rgba(0, 0, 0, 0.1);
  1076. }
  1077. .solids::after {
  1078. border: 4rpx solid #eee;
  1079. }
  1080. .solids-top::after {
  1081. border-top: 4rpx solid #eee;
  1082. }
  1083. .solids-right::after {
  1084. border-right: 4rpx solid #eee;
  1085. }
  1086. .solids-bottom::after {
  1087. border-bottom: 4rpx solid #eee;
  1088. }
  1089. .solids-left::after {
  1090. border-left: 4rpx solid #eee;
  1091. }
  1092. /* -- 虚线 -- */
  1093. .dashed::after {
  1094. border: 1rpx dashed #ddd;
  1095. }
  1096. .dashed-top::after {
  1097. border-top: 1rpx dashed #ddd;
  1098. }
  1099. .dashed-right::after {
  1100. border-right: 1rpx dashed #ddd;
  1101. }
  1102. .dashed-bottom::after {
  1103. border-bottom: 1rpx dashed #ddd;
  1104. }
  1105. .dashed-left::after {
  1106. border-left: 1rpx dashed #ddd;
  1107. }
  1108. /* -- 阴影 -- */
  1109. .shadow {
  1110. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  1111. }
  1112. .shadow-lg {
  1113. box-shadow: 0rpx 40rpx 100rpx 0rpx rgba(0, 0, 0, 0.07);
  1114. }
  1115. .shadow-warp {
  1116. position: relative;
  1117. box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
  1118. }
  1119. .shadow-warp:before, .shadow-warp:after {
  1120. position: absolute;
  1121. content: "";
  1122. top: 20rpx;
  1123. bottom: 30rpx;
  1124. left: 20rpx;
  1125. width: 50%;
  1126. box-shadow: 0 30rpx 20rpx rgba(0, 0, 0, 0.2);
  1127. transform: rotate(-3deg);
  1128. z-index: -1;
  1129. }
  1130. .shadow-warp:after {
  1131. right: 20rpx;
  1132. left: auto;
  1133. transform: rotate(3deg);
  1134. }
  1135. .shadow-blur {
  1136. position: relative;
  1137. }
  1138. .shadow-blur::before {
  1139. content: "";
  1140. display: block;
  1141. background: inherit;
  1142. filter: blur(10rpx);
  1143. position: absolute;
  1144. width: 100%;
  1145. height: 100%;
  1146. top: 10rpx;
  1147. left: 10rpx;
  1148. z-index: -1;
  1149. opacity: 0.4;
  1150. transform-origin: 0 0;
  1151. border-radius: inherit;
  1152. transform: scale(1, 1);
  1153. }
  1154. /* ==================
  1155. 按钮
  1156. ==================== */
  1157. .round, button.text {
  1158. border-radius: 5000rpx !important;
  1159. }
  1160. .radius {
  1161. border-radius: 6rpx !important;
  1162. }
  1163. button {
  1164. position: relative;
  1165. display: inline-flex;
  1166. align-items: center;
  1167. justify-content: center;
  1168. box-sizing: border-box;
  1169. padding: 20rpx 30rpx 16rpx;
  1170. font-size: 28rpx;
  1171. line-height: 1;
  1172. text-align: center;
  1173. text-decoration: none;
  1174. border-radius: 6rpx;
  1175. overflow: visible;
  1176. color: #666;
  1177. background-color: #fff !important;
  1178. margin-left: initial;
  1179. transform: translate(0rpx, 0rpx);
  1180. margin-right: initial;
  1181. }
  1182. button::after, tag[class*="line-"]::after {
  1183. content: " ";
  1184. width: 200%;
  1185. height: 200%;
  1186. position: absolute;
  1187. top: 0;
  1188. left: 0;
  1189. border: 1rpx solid rgba(0, 0, 0, 0.2);
  1190. transform: scale(0.5);
  1191. transform-origin: 0 0;
  1192. box-sizing: border-box;
  1193. border-radius: inherit;
  1194. z-index: 1;
  1195. pointer-events: none;
  1196. }
  1197. button[class*="line"]::after, tag.radius[class*="line"]::after {
  1198. border-radius: 12rpx;
  1199. }
  1200. button.round[class*="line"]::after, tag.round[class*="line"]::after {
  1201. border-radius: 1000rpx;
  1202. }
  1203. button[class*="lines"]::after {
  1204. border: 6rpx solid rgba(0, 0, 0, 0.2);
  1205. }
  1206. button[class*="bg-"]::after {
  1207. display: none;
  1208. }
  1209. button.sm {
  1210. padding: 14rpx 20rpx 10rpx;
  1211. font-size: 24rpx;
  1212. }
  1213. button.lg {
  1214. padding: 32rpx 40rpx 28rpx;
  1215. font-size: 32rpx;
  1216. }
  1217. button.icon.sm {
  1218. width: 56rpx;
  1219. height: 56rpx;
  1220. }
  1221. button.text {
  1222. width: 70rpx;
  1223. height: 70rpx;
  1224. padding: 0;
  1225. }
  1226. button.icon.lg {
  1227. width: 80rpx;
  1228. height: 80rpx;
  1229. }
  1230. button.shadow-blur::before {
  1231. top: 4rpx;
  1232. left: 4rpx;
  1233. filter: blur(6rpx);
  1234. opacity: 0.6;
  1235. }
  1236. button.button-hover {
  1237. transform: translate(1rpx, 1rpx);
  1238. }
  1239. .block {
  1240. display: block;
  1241. }
  1242. button.block {
  1243. display: flex;
  1244. }
  1245. button[disabled] {
  1246. opacity: 0.6;
  1247. color: #fff;
  1248. }
  1249. /* ==================
  1250. 徽章
  1251. ==================== */
  1252. tag {
  1253. font-size: 24rpx;
  1254. color: #666;
  1255. vertical-align: middle;
  1256. position: relative;
  1257. display: inline-flex;
  1258. align-items: stretch;
  1259. justify-content: center;
  1260. box-sizing: border-box;
  1261. padding: 12rpx 14rpx 10rpx;
  1262. line-height: 1;
  1263. background: #fff;
  1264. font-family: Helvetica Neue, Helvetica, sans-serif;
  1265. }
  1266. tag[class*="line-"]::after {
  1267. border-radius: 0;
  1268. }
  1269. tag+tag {
  1270. margin-left: 10rpx;
  1271. }
  1272. tag.sm {
  1273. font-size: 20rpx;
  1274. padding: 10rpx 12rpx 6rpx;
  1275. }
  1276. capsule {
  1277. display: inline-flex;
  1278. vertical-align: middle;
  1279. }
  1280. capsule + capsule {
  1281. margin-left: 10rpx;
  1282. }
  1283. capsule tag {
  1284. margin: 0;
  1285. }
  1286. capsule tag[class*="line-"]:last-child::after {
  1287. border-left: 0rpx solid transparent !important;
  1288. }
  1289. capsule tag[class*="line-"]:first-child::after {
  1290. border-right: 0rpx solid transparent !important;
  1291. }
  1292. capsule.radius tag:first-child {
  1293. border-top-left-radius: 6rpx;
  1294. border-bottom-left-radius: 6rpx;
  1295. }
  1296. capsule.radius tag:last-child::after, capsule.radius tag[class*="line-"] {
  1297. border-top-right-radius: 12rpx;
  1298. border-bottom-right-radius: 12rpx;
  1299. }
  1300. capsule.round tag:first-child {
  1301. border-top-left-radius: 200rpx;
  1302. border-bottom-left-radius: 200rpx;
  1303. text-indent: 4rpx;
  1304. }
  1305. capsule.round tag:last-child::after, capsule.round tag:last-child {
  1306. border-top-right-radius: 200rpx;
  1307. border-bottom-right-radius: 200rpx;
  1308. text-indent: -4rpx;
  1309. }
  1310. tag.badge {
  1311. background: #dd514c;
  1312. border-radius: 200rpx;
  1313. position: absolute;
  1314. top: -10rpx;
  1315. right: -10rpx;
  1316. font-size: 20rpx;
  1317. padding: 6rpx 10rpx 4rpx;
  1318. color: #fff;
  1319. }
  1320. tag:empty {
  1321. padding: 8rpx;
  1322. top: -4rpx;
  1323. right: -4rpx;
  1324. }
  1325. /* ==================
  1326. 头像
  1327. ==================== */
  1328. avatar {
  1329. font-variant: small-caps;
  1330. margin: 0;
  1331. padding: 0;
  1332. display: inline-block;
  1333. text-align: center;
  1334. background: #ccc;
  1335. color: #fff;
  1336. white-space: nowrap;
  1337. position: relative;
  1338. width: 64rpx;
  1339. height: 64rpx;
  1340. line-height: 64rpx;
  1341. background-size: cover;
  1342. background-position: center;
  1343. vertical-align: middle;
  1344. }
  1345. avatar text {
  1346. position: absolute;
  1347. left: 50%;
  1348. display: inline-block;
  1349. transform-origin: 0 center;
  1350. transform: scale(0.75) translateX(-50%);
  1351. }
  1352. avatar.sm {
  1353. width: 48rpx;
  1354. height: 48rpx;
  1355. line-height: 48rpx;
  1356. }
  1357. avatar > text {
  1358. position: absolute;
  1359. left: 50%;
  1360. top: 0;
  1361. bottom: 0;
  1362. margin: auto;
  1363. transform-origin: 0 center;
  1364. transform: scale(1.2) translateX(-50%);
  1365. }
  1366. avatar.sm > text {
  1367. transform: scale(0.75) translateX(-50%);
  1368. }
  1369. avatar.lg > text {
  1370. transform: scale(1.75) translateX(-50%);
  1371. }
  1372. avatar.xl > text {
  1373. transform: scale(2.2) translateX(-50%);
  1374. }
  1375. avatar.lg {
  1376. width: 90rpx;
  1377. height: 90rpx;
  1378. line-height: 90rpx;
  1379. }
  1380. avatar.xl {
  1381. width: 128rpx;
  1382. height: 128rpx;
  1383. line-height: 128rpx;
  1384. }
  1385. avatar-group {
  1386. direction: rtl;
  1387. unicode-bidi: bidi-override;
  1388. padding: 0 10rpx 0 40rpx;
  1389. display: inline-block;
  1390. }
  1391. avatar-group avatar {
  1392. margin-left: -30rpx;
  1393. border: 4rpx solid #f1f1f1;
  1394. vertical-align: middle;
  1395. }
  1396. avatar-group avatar.sm {
  1397. margin-left: -20rpx;
  1398. border: 1rpx solid #f1f1f1;
  1399. }
  1400. /* ==================
  1401. 进度条
  1402. ==================== */
  1403. progress-bar {
  1404. overflow: hidden;
  1405. height: 28rpx;
  1406. background-color: #ebeef5;
  1407. display: inline-flex;
  1408. align-items: center;
  1409. width: 100%;
  1410. }
  1411. progress-bar+view, progress-bar+text {
  1412. line-height: 1;
  1413. }
  1414. progress-bar.xs {
  1415. height: 10rpx;
  1416. }
  1417. progress-bar.sm {
  1418. height: 20rpx;
  1419. }
  1420. progress-bar view {
  1421. width: 0;
  1422. height: 100%;
  1423. align-items: center;
  1424. display: flex;
  1425. justify-items: flex-end;
  1426. justify-content: space-around;
  1427. font-size: 20rpx;
  1428. color: #fff;
  1429. background: #0081ff;
  1430. transition: width 0.6s ease;
  1431. }
  1432. progress-bar text {
  1433. align-items: center;
  1434. display: flex;
  1435. font-size: 20rpx;
  1436. color: #666;
  1437. text-indent: 10rpx;
  1438. }
  1439. progress-bar.text-progress {
  1440. padding-right: 60rpx;
  1441. }
  1442. progress-bar.striped view {
  1443. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  1444. background-size: 72rpx 72rpx;
  1445. }
  1446. progress-bar.active view {
  1447. animation: progress-bar-stripes 2s linear infinite;
  1448. }
  1449. @keyframes progress-bar-stripes {
  1450. from {
  1451. background-position: 72rpx 0;
  1452. }
  1453. to {
  1454. background-position: 0 0;
  1455. }
  1456. }
  1457. /* ==================
  1458. 加载
  1459. ==================== */
  1460. load {
  1461. display: block;
  1462. line-height: 3em;
  1463. text-align: center;
  1464. }
  1465. load::before {
  1466. font-family: "iconfont" !important;
  1467. display: inline-block;
  1468. margin-right: 6rpx;
  1469. }
  1470. load.loading::before {
  1471. content: "\e67a";
  1472. animation: icon-spin 2s infinite linear;
  1473. }
  1474. load.loading::after {
  1475. content: "加载中...";
  1476. }
  1477. load.over::before {
  1478. content: "\e64a";
  1479. }
  1480. load.over::after {
  1481. content: "没有更多了";
  1482. }
  1483. load.erro::before {
  1484. content: "\e658";
  1485. }
  1486. load.erro::after {
  1487. content: "加载失败";
  1488. }
  1489. load.load-icon::before {
  1490. font-size: 32rpx;
  1491. }
  1492. load.load-icon::after {
  1493. display: none;
  1494. }
  1495. load.load-icon.over {
  1496. display: none;
  1497. }
  1498. load.load-modal {
  1499. position: fixed;
  1500. top: 0;
  1501. right: 0;
  1502. bottom: 140rpx;
  1503. left: 0;
  1504. margin: auto;
  1505. width: 260rpx;
  1506. height: 260rpx;
  1507. background: #fff;
  1508. border-radius: 10rpx;
  1509. box-shadow: 0 0 0rpx 2000rpx rgba(0, 0, 0, 0.5);
  1510. display: flex;
  1511. align-items: center;
  1512. flex-direction: column;
  1513. justify-content: center;
  1514. font-size: 28rpx;
  1515. z-index: 9999;
  1516. line-height: 2.4em;
  1517. }
  1518. load.load-modal [class*="icon"]{
  1519. font-size: 60rpx;
  1520. }
  1521. load.load-modal image{
  1522. width: 70rpx;
  1523. height: 70rpx;
  1524. }
  1525. load.load-modal::after {
  1526. content: "";
  1527. position: absolute;
  1528. background: #fff;
  1529. border-radius: 50%;
  1530. width: 200rpx;
  1531. height: 200rpx;
  1532. font-size: 10px;
  1533. border-top: 6rpx solid rgba(0, 0, 0, 0.05);
  1534. border-right: 6rpx solid rgba(0, 0, 0, 0.05);
  1535. border-bottom: 6rpx solid rgba(0, 0, 0, 0.05);
  1536. border-left: 6rpx solid #f37b1d;
  1537. animation: icon-spin 1s infinite linear;
  1538. z-index: -1;
  1539. }
  1540. .load-progress {
  1541. pointer-events: none;
  1542. top: 0;
  1543. position: fixed;
  1544. width: 100%;
  1545. left: 0;
  1546. z-index: 2000;
  1547. }
  1548. .load-progress.hide {
  1549. display: none;
  1550. }
  1551. .load-progress .load-progress-bar {
  1552. position: relative;
  1553. width: 100%;
  1554. height: 4rpx;
  1555. overflow: hidden;
  1556. transition: all 200ms ease 0s;
  1557. }
  1558. .load-progress .load-progress-spinner {
  1559. position: absolute;
  1560. top: 10rpx;
  1561. right: 10rpx;
  1562. z-index: 2000;
  1563. display: block;
  1564. }
  1565. .load-progress .load-progress-spinner::after {
  1566. content: "";
  1567. display: block;
  1568. width: 24rpx;
  1569. height: 24rpx;
  1570. -webkit-box-sizing: border-box;
  1571. box-sizing: border-box;
  1572. border: solid 4rpx transparent;
  1573. border-top-color: inherit;
  1574. border-left-color: inherit;
  1575. border-radius: 50%;
  1576. -webkit-animation: load-progress-spinner 0.4s linear infinite;
  1577. animation: load-progress-spinner 0.4s linear infinite;
  1578. }
  1579. @-webkit-keyframes load-progress-spinner {
  1580. 0% {
  1581. -webkit-transform: rotate(0);
  1582. transform: rotate(0);
  1583. }
  1584. 100% {
  1585. -webkit-transform: rotate(360deg);
  1586. transform: rotate(360deg);
  1587. }
  1588. }
  1589. @keyframes load-progress-spinner {
  1590. 0% {
  1591. -webkit-transform: rotate(0);
  1592. transform: rotate(0);
  1593. }
  1594. 100% {
  1595. -webkit-transform: rotate(360deg);
  1596. transform: rotate(360deg);
  1597. }
  1598. }
  1599. /* ==================
  1600. 列表
  1601. ==================== */
  1602. .grayscale {
  1603. filter: grayscale(1);
  1604. }
  1605. list.menu {
  1606. padding: 0 30rpx;
  1607. background: #fff;
  1608. display: block;
  1609. }
  1610. list.menu.no-padding {
  1611. padding: 0;
  1612. }
  1613. list.menu+list.menu {
  1614. margin-top: 30rpx;
  1615. }
  1616. list+list {
  1617. margin-top: 30rpx;
  1618. }
  1619. list.menu>item {
  1620. position: relative;
  1621. display: flex;
  1622. justify-content: space-between;
  1623. align-items: center;
  1624. border-bottom: 1rpx solid #eee;
  1625. min-height: 100rpx;
  1626. }
  1627. list.menu>item.cur {
  1628. background-color: #fcf7e9;
  1629. }
  1630. list.menu>item:last-child {
  1631. border: none;
  1632. }
  1633. list.menu.no-padding>item {
  1634. padding: 30rpx;
  1635. }
  1636. list.menu-avatar.no-padding>item {
  1637. padding-left: 140rpx;
  1638. }
  1639. list.menu-avatar.no-padding>item avatar {
  1640. left: 30rpx;
  1641. }
  1642. list.menu.no-padding>item.arrow {
  1643. padding-right: 66rpx;
  1644. }
  1645. list.menu>item .content {
  1646. line-height: 1.6em;
  1647. flex: 1;
  1648. font-size: 30rpx;
  1649. }
  1650. list.menu>item button.content {
  1651. padding: 0;
  1652. justify-content: flex-start;
  1653. }
  1654. list.menu>item button.content::after {
  1655. display: none;
  1656. }
  1657. list.menu>item .content>text[class*="icon"]{
  1658. margin-right: 10rpx;
  1659. display: inline-block;
  1660. width: 1.6em;
  1661. text-align: center
  1662. }
  1663. list.menu>item .content>image {
  1664. margin-right: 10rpx;
  1665. display: inline-block;
  1666. width: 1.6em;
  1667. height: 1.6em;
  1668. vertical-align: middle;
  1669. }
  1670. list.menu>item .action {
  1671. text-align: right;
  1672. }
  1673. list>item.grayscale {
  1674. background-color: #f5f5f5;
  1675. }
  1676. list.menu>item .action tag:empty {
  1677. right: 10rpx;
  1678. }
  1679. list.menu>item.arrow {
  1680. padding-right: 36rpx;
  1681. }
  1682. list.menu>item.arrow::after {
  1683. font-family: "iconfont" !important;
  1684. display: block;
  1685. content: "\e6a3";
  1686. position: absolute;
  1687. font-size: 34rpx;
  1688. color: #aaa;
  1689. line-height: 30rpx;
  1690. height: 30rpx;
  1691. width: 30rpx;
  1692. text-align: center;
  1693. top: 1rpx;
  1694. bottom: 0;
  1695. right: 0;
  1696. margin: auto;
  1697. }
  1698. list.menu.no-padding>item.arrow::after {
  1699. right: 30rpx;
  1700. }
  1701. list.menu>item avatar-group avatar {
  1702. border-color: #fff;
  1703. }
  1704. list.card-menu {
  1705. margin-left: 30rpx;
  1706. margin-right: 30rpx;
  1707. border-radius: 20rpx;
  1708. overflow: hidden;
  1709. }
  1710. list.menu-avatar>item>avatar {
  1711. position: absolute;
  1712. left: 0;
  1713. }
  1714. list.menu-avatar>item {
  1715. padding-left: 110rpx;
  1716. height: 140rpx;
  1717. }
  1718. list.menu>item .content tag.sm {
  1719. font-size: 16rpx;
  1720. line-height: 80%;
  1721. padding: 8rpx 6rpx 4rpx;
  1722. margin-top: -6rpx;
  1723. }
  1724. list.grid {
  1725. text-align: center;
  1726. background: #fff;
  1727. }
  1728. list.grid>item {
  1729. display: flex;
  1730. flex-direction: column;
  1731. border-right: 1rpx solid #eee;
  1732. border-bottom: 1rpx solid #eee;
  1733. padding: 20rpx;
  1734. }
  1735. list.grid>item text[class*="icon"] {
  1736. display: block;
  1737. width: 100%;
  1738. position: relative;
  1739. font-size: 48rpx;
  1740. margin-top: 20rpx;
  1741. }
  1742. list.grid>item text {
  1743. display: block;
  1744. color: #888;
  1745. margin-top: 10rpx;
  1746. line-height: 40rpx;
  1747. font-size: 26rpx;
  1748. }
  1749. list.grid>item tag {
  1750. left: 50%;
  1751. right: auto;
  1752. margin-left: 20rpx;
  1753. }
  1754. list.grid.col-3>item:nth-child(3n) {
  1755. border-right: 0rpx;
  1756. }
  1757. list.grid.col-4>item:nth-child(4n) {
  1758. border-right: 0rpx;
  1759. }
  1760. list.grid.col-5>item:nth-child(5n) {
  1761. border-right: 0rpx;
  1762. }
  1763. list.grid.no-border {
  1764. padding: 20rpx 10rpx;
  1765. }
  1766. list.grid.no-border>item {
  1767. border: none !important;
  1768. padding-top: 10rpx;
  1769. padding-bottom: 10rpx;
  1770. }
  1771. list.menu-avatar.comment > item {
  1772. height: auto;
  1773. padding-top: 30rpx;
  1774. padding-bottom: 30rpx;
  1775. padding-left: 90rpx;
  1776. }
  1777. list.menu-avatar.comment avatar {
  1778. align-self: flex-start;
  1779. }
  1780. /* ==================
  1781. 操作条
  1782. ==================== */
  1783. bar {
  1784. display: flex;
  1785. position: relative;
  1786. align-items: center;
  1787. background: #fff;
  1788. height: 100rpx;
  1789. justify-content: space-between;
  1790. }
  1791. bar .action {
  1792. display: flex;
  1793. align-items: center;
  1794. height: 100%;
  1795. justify-content: center;
  1796. max-width: 100%;
  1797. }
  1798. bar .action:first-child {
  1799. margin-left: 30rpx;
  1800. font-size: 30rpx;
  1801. }
  1802. bar .action text.text-cut {
  1803. text-align: left;
  1804. width: 100%;
  1805. }
  1806. bar avatar:first-child {
  1807. margin-left: 20rpx;
  1808. }
  1809. bar .action:first-child >text[class*="icon"] {
  1810. margin-left: -0.3em;
  1811. margin-right: 0.3em;
  1812. }
  1813. bar .action:last-child {
  1814. margin-right: 30rpx;
  1815. }
  1816. bar .action>text[class*="icon"] {
  1817. font-size: 36rpx;
  1818. }
  1819. bar .action>text[class*="icon"]+text[class*="icon"] {
  1820. margin-left: 0.5em;
  1821. }
  1822. bar .content {
  1823. position: absolute;
  1824. text-align: center;
  1825. width: 400rpx;
  1826. left: 0;
  1827. right: 0;
  1828. bottom: 16rpx;
  1829. margin: auto;
  1830. height: 60rpx;
  1831. font-size: 36rpx;
  1832. line-height: 60rpx;
  1833. cursor: none;
  1834. pointer-events: none;
  1835. text-overflow: ellipsis;
  1836. white-space: nowrap;
  1837. overflow: hidden;
  1838. }
  1839. bar.btn-group {
  1840. justify-content: space-around;
  1841. }
  1842. bar.btn-group button {
  1843. padding: 20rpx 32rpx;
  1844. }
  1845. bar.btn-group button {
  1846. flex: 1;
  1847. margin: 0 20rpx;
  1848. max-width: 50%;
  1849. }
  1850. bar .search-form {
  1851. background: #f5f5f5;
  1852. line-height: 64rpx;
  1853. height: 64rpx;
  1854. font-size: 24rpx;
  1855. color: #666;
  1856. flex: 1;
  1857. display: flex;
  1858. align-items: center;
  1859. margin: 0 20rpx;
  1860. }
  1861. bar .search-form +.action {
  1862. margin-right: 20rpx;
  1863. }
  1864. bar .search-form input {
  1865. flex: 1;
  1866. padding-right: 20rpx;
  1867. height: 128rpx;
  1868. line-height: 128rpx;
  1869. font-size: 26rpx;
  1870. }
  1871. bar .search-form [class*="icon"] {
  1872. margin: 0 0.5em;
  1873. }
  1874. bar .search-form.round [class*="icon"] {
  1875. margin-left: 0.5em;
  1876. }
  1877. bar .search-form [class*="icon"]::before {
  1878. top: 0rpx;
  1879. }
  1880. bar.fixed, .nav.fixed {
  1881. position: fixed;
  1882. width: 100%;
  1883. top: 0;
  1884. z-index: 1024;
  1885. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  1886. }
  1887. bar.foot {
  1888. position: fixed;
  1889. width: 100%;
  1890. bottom: 0;
  1891. z-index: 1024;
  1892. box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
  1893. }
  1894. bar.shop {
  1895. padding: 0;
  1896. }
  1897. bar.shop .action {
  1898. font-size: 24rpx;
  1899. position: relative;
  1900. flex: 1;
  1901. text-align: center;
  1902. padding: 0 20rpx;
  1903. display: block;
  1904. height: auto !important;
  1905. line-height: 1;
  1906. margin: 0 !important;
  1907. }
  1908. bar.shop button.action::after {
  1909. border: 0;
  1910. }
  1911. bar.shop [class*="icon"] {
  1912. width: 100rpx !important;
  1913. position: relative;
  1914. display: block;
  1915. height: auto !important;
  1916. margin: 0 auto 10rpx !important;
  1917. text-align: center;
  1918. }
  1919. bar.shop .submit {
  1920. align-items: center;
  1921. display: flex;
  1922. justify-content: center;
  1923. text-align: center;
  1924. position: relative;
  1925. flex: 2;
  1926. height: 100%;
  1927. }
  1928. bar.shop .submit:last-child {
  1929. flex: 2.6;
  1930. }
  1931. bar.shop .submit+.submit {
  1932. flex: 2;
  1933. }
  1934. bar.shop .submit button {
  1935. margin-left: 20rpx;
  1936. }
  1937. bar.shop .submit:last-child button {
  1938. margin-left: 0rpx;
  1939. }
  1940. bar.shop .submit+.submit button {
  1941. margin-left: 0rpx;
  1942. margin-right: 20rpx;
  1943. }
  1944. bar.shop .action::after {
  1945. content: " ";
  1946. width: 200%;
  1947. height: 200%;
  1948. position: absolute;
  1949. top: 0;
  1950. left: 0;
  1951. transform: scale(0.5);
  1952. transform-origin: 0 0;
  1953. border-right: 1rpx solid rgba(0, 0, 0, 0.1) !important;
  1954. }
  1955. bar.input {
  1956. padding-right: 20rpx;
  1957. }
  1958. bar.input input {
  1959. overflow: initial;
  1960. line-height: 64rpx;
  1961. height: 64rpx;
  1962. min-height: 64rpx;
  1963. flex: 1;
  1964. font-size: 30rpx;
  1965. margin: 0 20rpx;
  1966. }
  1967. bar.input .action {
  1968. margin-left: 20rpx;
  1969. }
  1970. bar.input .action [class*="icon"] {
  1971. font-size: 48rpx;
  1972. }
  1973. bar.input input+.action {
  1974. margin-right: 20rpx;
  1975. margin-left: 0rpx;
  1976. }
  1977. bar.input .action:first-child [class*="icon"] {
  1978. margin-left: 0rpx;
  1979. }
  1980. custom {
  1981. display: block;
  1982. position: relative;
  1983. }
  1984. custom bar {
  1985. padding-right: 220rpx;
  1986. box-shadow: 0rpx 0rpx 0rpx !important;
  1987. }
  1988. /* ==================
  1989. 导航栏
  1990. ==================== */
  1991. .nav {
  1992. white-space: nowrap;
  1993. }
  1994. ::-webkit-scrollbar {
  1995. display: none;
  1996. }
  1997. .nav item {
  1998. height: 90rpx;
  1999. display: inline-block;
  2000. line-height: 90rpx;
  2001. margin: 0 10rpx;
  2002. padding: 0 20rpx;
  2003. }
  2004. .nav item.cur {
  2005. border-bottom: 4rpx solid;
  2006. }
  2007. /* ==================
  2008. 时间轴
  2009. ==================== */
  2010. timeline {
  2011. display: block;
  2012. background: #fff;
  2013. }
  2014. timeline time {
  2015. width: 120rpx;
  2016. text-align: center;
  2017. padding: 20rpx 0;
  2018. font-size: 26rpx;
  2019. color: #888;
  2020. display: block;
  2021. }
  2022. timeline>item {
  2023. padding: 30rpx 30rpx 30rpx 120rpx;
  2024. position: relative;
  2025. display: block;
  2026. color: #ccc;
  2027. z-index: 0;
  2028. }
  2029. timeline>item::after {
  2030. content: "";
  2031. display: block;
  2032. position: absolute;
  2033. width: 1rpx;
  2034. background: #ddd;
  2035. left: 60rpx;
  2036. height: 100%;
  2037. top: 0;
  2038. z-index: 8;
  2039. }
  2040. timeline>item::before {
  2041. font-family: "iconfont";
  2042. content: "\e763";
  2043. display: block;
  2044. position: absolute;
  2045. top: 36rpx;
  2046. z-index: 9;
  2047. background: #fff;
  2048. width: 50rpx;
  2049. height: 50rpx;
  2050. text-align: center;
  2051. border: none;
  2052. line-height: 50rpx;
  2053. left: 36rpx;
  2054. }
  2055. timeline>item[class*="icon"]::before {
  2056. background: #fff;
  2057. width: 50rpx;
  2058. height: 50rpx;
  2059. text-align: center;
  2060. border: none;
  2061. line-height: 50rpx;
  2062. left: 36rpx;
  2063. }
  2064. timeline>item>.content {
  2065. background: #f1f1f1;
  2066. padding: 30rpx;
  2067. border-radius: 6rpx;
  2068. display: block;
  2069. color: #666;
  2070. line-height: 1.6;
  2071. }
  2072. timeline>item>.content+.content {
  2073. margin-top: 20rpx;
  2074. }
  2075. /* ==================
  2076. 聊天
  2077. ==================== */
  2078. chat {
  2079. display: flex;
  2080. flex-direction: column;
  2081. }
  2082. chat item {
  2083. display: flex;
  2084. padding: 30rpx 30rpx 70rpx;
  2085. position: relative;
  2086. }
  2087. chat item>avatar {
  2088. width: 80rpx;
  2089. height: 80rpx;
  2090. }
  2091. chat item>.main {
  2092. max-width: calc(100% - 260rpx);
  2093. margin: 0 40rpx;
  2094. display: flex;
  2095. align-items: center;
  2096. }
  2097. chat item>image {
  2098. height: 320rpx;
  2099. }
  2100. chat item>.main .content {
  2101. background: #fff;
  2102. padding: 20rpx;
  2103. border-radius: 6rpx;
  2104. display: inline-flex;
  2105. max-width: 100%;
  2106. align-items: center;
  2107. color: #666;
  2108. font-size: 30rpx;
  2109. position: relative;
  2110. min-height: 80rpx;
  2111. line-height: 40rpx;
  2112. text-align: left;
  2113. }
  2114. chat item .date {
  2115. position: absolute;
  2116. font-size: 24rpx;
  2117. color: #aaa;
  2118. width: calc(100% - 320rpx);
  2119. bottom: 20rpx;
  2120. left: 160rpx;
  2121. }
  2122. chat item .action {
  2123. padding: 0 30rpx;
  2124. display: flex;
  2125. align-items: center;
  2126. }
  2127. chat item>.main .content::after {
  2128. content: "";
  2129. top: 24rpx;
  2130. transform: rotate(180deg);
  2131. position: absolute;
  2132. z-index: 100;
  2133. display: inline-block;
  2134. width: 0;
  2135. height: 0;
  2136. vertical-align: middle;
  2137. border-bottom: 16rpx solid transparent;
  2138. border-top: 16rpx solid transparent;
  2139. overflow: hidden;
  2140. border-right-color: #fff;
  2141. border-left: 16rpx solid #333;
  2142. border-right: 0 dotted;
  2143. border-left-color: #fff;
  2144. left: -14rpx;
  2145. right: initial;
  2146. }
  2147. chat item.self {
  2148. justify-content: flex-end;
  2149. text-align: right;
  2150. }
  2151. chat item.self>.main .content::after {
  2152. left: auto;
  2153. right: -14rpx;
  2154. border-right: 16rpx solid #fff;
  2155. border-left: 0 dotted;
  2156. }
  2157. chat item.self>.main .bg-green.content::after {
  2158. border-right-color: #39b50a;
  2159. }
  2160. chat info {
  2161. display: inline-block;
  2162. margin: 20rpx auto;
  2163. font-size: 24rpx;
  2164. padding: 8rpx 12rpx;
  2165. background-color: rgba(0, 0, 0, 0.2);
  2166. border-radius: 6rpx;
  2167. color: #fff;
  2168. max-width: 400rpx;
  2169. line-height: 1.4;
  2170. }
  2171. /* ==================
  2172. 卡片
  2173. ==================== */
  2174. card {
  2175. display: block;
  2176. overflow: hidden;
  2177. }
  2178. card > item {
  2179. display: block;
  2180. background: #fff;
  2181. overflow: hidden;
  2182. border-radius: 10rpx;
  2183. margin: 30rpx;
  2184. }
  2185. card > item.shadow-blur {
  2186. overflow: initial;
  2187. }
  2188. card.no-card > item {
  2189. margin: 0rpx;
  2190. border-radius: 0rpx;
  2191. }
  2192. card.case .image {
  2193. position: relative;
  2194. }
  2195. card.case .image image {
  2196. width: 100%;
  2197. }
  2198. card.case .image tag {
  2199. position: absolute;
  2200. right: 0;
  2201. top: 0;
  2202. }
  2203. card.case .image bar {
  2204. position: absolute;
  2205. bottom: 0;
  2206. width: 100%;
  2207. background-color: transparent;
  2208. padding: 0rpx 30rpx;
  2209. word-wrap: normal;
  2210. text-overflow: ellipsis;
  2211. white-space: nowrap;
  2212. }
  2213. card.case.no-card .image {
  2214. margin: 30rpx 30rpx 0;
  2215. overflow: hidden;
  2216. border-radius: 10rpx;
  2217. }
  2218. card.dynamic {
  2219. display: block;
  2220. }
  2221. card.dynamic>item {
  2222. display: block;
  2223. background-color: #fff;
  2224. overflow: hidden;
  2225. }
  2226. card.dynamic>item > .text-content {
  2227. padding: 0 30rpx 0;
  2228. max-height: 6.4em;
  2229. overflow: hidden;
  2230. font-size: 30rpx;
  2231. margin-bottom: 20rpx;
  2232. }
  2233. card.dynamic>item .square-img {
  2234. width: 100%;
  2235. height: 200rpx;
  2236. border-radius: 6rpx;
  2237. }
  2238. card.dynamic>item .only-img {
  2239. width: 100%;
  2240. height: 320rpx;
  2241. border-radius: 6rpx;
  2242. }
  2243. /* card.dynamic>item .comment {
  2244. padding: 20rpx;
  2245. background: #f1f1f1;
  2246. margin: 0 30rpx 30rpx;
  2247. border-radius: 6rpx;
  2248. } */
  2249. card.article {
  2250. display: block;
  2251. }
  2252. card.article>item {
  2253. padding-bottom: 30rpx;
  2254. }
  2255. card.article>item .title {
  2256. font-size: 30rpx;
  2257. font-weight: 900;
  2258. word-wrap: normal;
  2259. text-overflow: ellipsis;
  2260. white-space: nowrap;
  2261. color: #333;
  2262. line-height: 100rpx;
  2263. padding: 0 30rpx;
  2264. }
  2265. card.article>item .content {
  2266. display: flex;
  2267. padding: 0 30rpx;
  2268. }
  2269. card.article>item .content > image {
  2270. width: 240rpx;
  2271. height: 6.4em;
  2272. margin-right: 20rpx;
  2273. border-radius: 6rpx;
  2274. }
  2275. card.article>item .content .desc {
  2276. flex: 1;
  2277. display: flex;
  2278. flex-direction: column;
  2279. justify-content: space-between;
  2280. }
  2281. card.article>item .content .text-content {
  2282. font-size: 28rpx;
  2283. color: #888;
  2284. height: 4.8em;
  2285. overflow: hidden;
  2286. }
  2287. /* ==================
  2288. 表单
  2289. ==================== */
  2290. form-group {
  2291. background: #fff;
  2292. padding: 0 30rpx;
  2293. display: flex;
  2294. align-items: center;
  2295. min-height: 100rpx;
  2296. justify-content: space-between;
  2297. }
  2298. form-group + form-group {
  2299. border-top: 1rpx solid #eee;
  2300. }
  2301. form-group .title {
  2302. text-align: justify;
  2303. padding-right: 30rpx;
  2304. font-size: 30rpx;
  2305. position: relative;
  2306. height: 60rpx;
  2307. line-height: 60rpx;
  2308. }
  2309. form-group.top {
  2310. align-items: baseline;
  2311. }
  2312. form-group input {
  2313. flex: 1;
  2314. font-size: 30rpx;
  2315. color: #555;
  2316. padding-right: 20rpx;
  2317. }
  2318. form-group > text[class*="icon"] {
  2319. font-size: 36rpx;
  2320. padding: 0;
  2321. box-sizing: border-box;
  2322. }
  2323. form-group textarea, form-group textarea textarea {
  2324. margin: 32rpx 0 30rpx;
  2325. height: 4.8em;
  2326. width: 100%;
  2327. line-height: 1.2em;
  2328. flex: 1;
  2329. font-size: 28rpx;
  2330. padding: 0;
  2331. box-sizing: content-box;
  2332. display: inline-block;
  2333. vertical-align: top;
  2334. }
  2335. form-group textarea::after {
  2336. content: "测试文字";
  2337. opacity: 0;
  2338. }
  2339. form-group .grid-square {
  2340. margin: 30rpx 0 0 !important;
  2341. }
  2342. form-group picker {
  2343. flex: 1;
  2344. padding-right: 40rpx;
  2345. overflow: hidden;
  2346. position: relative;
  2347. }
  2348. form-group picker .picker {
  2349. line-height: 100rpx;
  2350. font-size: 28rpx;
  2351. text-overflow: ellipsis;
  2352. white-space: nowrap;
  2353. overflow: hidden;
  2354. width: 100%;
  2355. text-align: right;
  2356. }
  2357. form-group picker::after {
  2358. font-family: iconfont !important;
  2359. display: block;
  2360. content: "\e6a3";
  2361. position: absolute;
  2362. font-size: 34rpx;
  2363. color: #aaa;
  2364. line-height: 100rpx;
  2365. width: 60rpx;
  2366. text-align: center;
  2367. top: 0;
  2368. bottom: 0;
  2369. right: -20rpx;
  2370. margin: auto;
  2371. }
  2372. form-group textarea[disabled], form-group textarea[disabled] .placeholder {
  2373. color: transparent;
  2374. }
  2375. /* ==================
  2376. 模态窗口
  2377. ==================== */
  2378. modal-box {
  2379. position: fixed;
  2380. top: 0;
  2381. right: 0;
  2382. bottom: 0;
  2383. left: 0;
  2384. z-index: 1110;
  2385. opacity: 0;
  2386. outline: 0;
  2387. text-align: center;
  2388. -ms-transform: scale(1.185);
  2389. transform: scale(1.185);
  2390. backface-visibility: hidden;
  2391. perspective: 2000rpx;
  2392. background: rgba(0, 0, 0, 0.6);
  2393. transition: all 0.6s ease-in-out 0;
  2394. pointer-events: none;
  2395. }
  2396. modal-box::before {
  2397. content: "\200B";
  2398. display: inline-block;
  2399. height: 100%;
  2400. vertical-align: middle;
  2401. }
  2402. modal-box.show {
  2403. opacity: 1;
  2404. transition-duration: 0.3s;
  2405. -ms-transform: scale(1);
  2406. transform: scale(1);
  2407. overflow-x: hidden;
  2408. overflow-y: auto;
  2409. pointer-events: auto;
  2410. }
  2411. dialog {
  2412. position: relative;
  2413. display: inline-block;
  2414. vertical-align: middle;
  2415. margin-left: auto;
  2416. margin-right: auto;
  2417. width: 680rpx;
  2418. max-width: 100%;
  2419. background: #f8f8f8;
  2420. border-radius: 10rpx;
  2421. overflow: hidden;
  2422. }
  2423. modal-box.bottom-modal::before {
  2424. vertical-align: bottom;
  2425. }
  2426. modal-box.bottom-modal dialog {
  2427. width: 100%;
  2428. border-radius: 0;
  2429. }
  2430. modal-box.bottom-modal {
  2431. margin-bottom: -1000rpx;
  2432. }
  2433. modal-box.bottom-modal.show {
  2434. margin-bottom: 0;
  2435. }
  2436. /* ==================
  2437. 轮播
  2438. ==================== */
  2439. swiper.square-dot .wx-swiper-dot {
  2440. background: #fff;
  2441. opacity: 0.4;
  2442. width: 10rpx !important;
  2443. height: 10rpx !important;
  2444. border-radius: 20rpx !important;
  2445. transition: all 0.3s ease-in-out 0s !important;
  2446. }
  2447. swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active {
  2448. opacity: 1;
  2449. width: 30rpx !important;
  2450. }
  2451. swiper.round-dot .wx-swiper-dot {
  2452. /* background: #39b54a; */
  2453. width: 10rpx !important;
  2454. height: 10rpx !important;
  2455. top: -4rpx !important;
  2456. transition: all 0.3s ease-in-out 0s !important;
  2457. position: relative;
  2458. }
  2459. swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after {
  2460. content: "";
  2461. position: absolute;
  2462. width: 10rpx;
  2463. height: 10rpx;
  2464. top: 0rpx;
  2465. left: 0rpx;
  2466. right: 0;
  2467. bottom: 0;
  2468. margin: auto;
  2469. background: #fff;
  2470. border-radius: 20rpx;
  2471. }
  2472. swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active {
  2473. width: 18rpx !important;
  2474. height: 18rpx !important;
  2475. top: 0rpx !important;
  2476. }
  2477. .screen-swiper {
  2478. min-height: 375rpx;
  2479. }
  2480. .screen-swiper image {
  2481. width: 100%;
  2482. display: block;
  2483. height: 100%;
  2484. margin: 0;
  2485. }
  2486. .card-swiper {
  2487. height: 420rpx;
  2488. }
  2489. .card-swiper swiper-item {
  2490. width: 610rpx !important;
  2491. left: 70rpx !important;
  2492. box-sizing: border-box;
  2493. padding: 40rpx 0rpx 70rpx;
  2494. overflow: initial !important;
  2495. }
  2496. .card-swiper swiper-item .bg-img {
  2497. width: 100%;
  2498. display: block;
  2499. height: 100%;
  2500. border-radius: 10rpx;
  2501. transform: scale(0.9);
  2502. transition: all 0.2s ease-in 0s;
  2503. }
  2504. .card-swiper swiper-item.cur .bg-img {
  2505. transform: none;
  2506. transition: all 0.2s ease-in 0s;
  2507. }
  2508. .tower-swiper {
  2509. height: 420rpx;
  2510. position: relative;
  2511. }
  2512. .tower-swiper .tower-item {
  2513. position: absolute;
  2514. width: 300rpx;
  2515. height: 380rpx;
  2516. top: 0;
  2517. bottom: 0;
  2518. left: 50%;
  2519. margin: auto;
  2520. transition: all 0.3s ease-in 0s;
  2521. opacity: 1;
  2522. }
  2523. .tower-swiper .tower-item.none {
  2524. opacity: 0;
  2525. }
  2526. .tower-swiper .tower-item .bg-img {
  2527. width: 100%;
  2528. height: 100%;
  2529. border-radius: 6rpx;
  2530. }