colorui.wxss 48 KB

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