colorui-px.wxss 48 KB

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