123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083 |
- /* ==================
- 初始化
- ==================== */
- body {
- /* Color 可以自定义相关配色 */
- /* var属性兼容性 --> https://www.caniuse.com/#feat=css-variables */
- /* 标准色 */
- --red: #e54d42;
- --orange: #f37b1d;
- --yellow: #fbbd08;
- --olive: #8dc63f;
- --green: #39b54a;
- --cyan: #1cbbb4;
- --blue: #0081ff;
- --purple: #6739b6;
- --mauve: #9c26b0;
- --pink: #e03997;
- --brown: #a5673f;
- --grey: #8799a3;
- --black: #333333;
- --darkGray: #666666;
- --gray: #aaaaaa;
- --ghostWhite: #f1f1f1;
- --white: #ffffff;
- /* 浅色 */
- --redLight: #fadbd9;
- --orangeLight: #fde6d2;
- --yellowLight: #fef2ce;
- --oliveLight: #e8f4d9;
- --greenLight: #d7f0db;
- --cyanLight: #d2f1f0;
- --blueLight: #cce6ff;
- --purpleLight: #e1d7f0;
- --mauveLight: #ebd4ef;
- --pinkLight: #f9d7ea;
- --brownLight: #ede1d9;
- --greyLight: #e7ebed;
- /* 渐变色 */
- --gradualRed: linear-gradient(45deg, #f43f3b, #ec008c);
- --gradualOrange: linear-gradient(45deg, #ff9700, #ed1c24);
- --gradualGreen: linear-gradient(45deg, #39b54a, #8dc63f);
- --gradualPurple: linear-gradient(45deg, #9000ff, #5e00ff);
- --gradualPink: linear-gradient(45deg, #ec008c, #6739b6);
- --gradualBlue: linear-gradient(45deg, #0081ff, #1cbbb4);
- /* 阴影透明色 */
- --ShadowSize: 6upx 6upx 8upx;
- --redShadow: rgba(204, 69, 59, 0.2);
- --orangeShadow: rgba(217, 109, 26, 0.2);
- --yellowShadow: rgba(224, 170, 7, 0.2);
- --oliveShadow: rgba(124, 173, 55, 0.2);
- --greenShadow: rgba(48, 156, 63, 0.2);
- --cyanShadow: rgba(28, 187, 180, 0.2);
- --blueShadow: rgba(0, 102, 204, 0.2);
- --purpleShadow: rgba(88, 48, 156, 0.2);
- --mauveShadow: rgba(133, 33, 150, 0.2);
- --pinkShadow: rgba(199, 50, 134, 0.2);
- --brownShadow: rgba(140, 88, 53, 0.2);
- --greyShadow: rgba(114, 130, 138, 0.2);
- --grayShadow: rgba(114, 130, 138, 0.2);
- --blackShadow: rgba(26, 26, 26, 0.2);
- background-color: var(--ghostWhite);
- font-size: 28upx;
- color: var(--black);
- font-family: Helvetica Neue, Helvetica, sans-serif;
- }
- div,
- scroll-view,
- swiper,
- button,
- input,
- textarea,
- label,
- navigator,
- image {
- box-sizing: border-box;
- }
- .round {
- border-radius: 5000upx;
- }
- .radius {
- border-radius: 6upx;
- }
- /* ==================
- 图片
- ==================== */
- image {
- max-width: 100%;
- display: inline-block;
- position: relative;
- z-index: 0;
- }
- image.loading::before {
- content: '';
- background-color: #f5f5f5;
- display: block;
- position: absolute;
- width: 100%;
- height: 100%;
- z-index: -2;
- }
- image.loading::after {
- content: '\e7f1';
- font-family: 'cuIcon';
- position: absolute;
- top: 0;
- left: 0;
- width: 32upx;
- height: 32upx;
- line-height: 32upx;
- right: 0;
- bottom: 0;
- z-index: -1;
- font-size: 32upx;
- margin: auto;
- color: #ccc;
- -webkit-animation: cuIcon-spin 2s infinite linear;
- animation: cuIcon-spin 2s infinite linear;
- display: block;
- }
- .response {
- width: 100%;
- }
- /* ==================
- 开关
- ==================== */
- switch,
- checkbox,
- radio {
- position: relative;
- }
- switch::after,
- switch::before {
- font-family: 'cuIcon';
- content: '\e645';
- position: absolute;
- color: var(--white) !important;
- top: 0%;
- left: 0upx;
- font-size: 26upx;
- line-height: 26px;
- width: 50%;
- text-align: center;
- pointer-events: none;
- transform: scale(0, 0);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
- bottom: 0;
- height: 26px;
- margin: auto;
- }
- switch::before {
- content: '\e646';
- right: 0;
- transform: scale(1, 1);
- left: auto;
- }
- switch[checked]::after,
- switch.checked::after {
- transform: scale(1, 1);
- }
- switch[checked]::before,
- switch.checked::before {
- transform: scale(0, 0);
- }
- /* #ifndef MP-ALIPAY */
- radio::before,
- checkbox::before {
- font-family: 'cuIcon';
- content: '\e645';
- position: absolute;
- color: var(--white) !important;
- top: 50%;
- margin-top: -8px;
- right: 5px;
- font-size: 32upx;
- line-height: 16px;
- pointer-events: none;
- transform: scale(1, 1);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
- }
- radio .wx-radio-input,
- checkbox .wx-checkbox-input,
- radio .uni-radio-input,
- checkbox .uni-checkbox-input {
- margin: 0;
- width: 24px;
- height: 24px;
- }
- checkbox.round .wx-checkbox-input,
- checkbox.round .uni-checkbox-input {
- border-radius: 100upx;
- }
- /* #endif */
- switch[checked]::before {
- transform: scale(0, 0);
- }
- switch .wx-switch-input,
- switch .uni-switch-input {
- border: none;
- padding: 0 24px;
- width: 48px;
- height: 26px;
- margin: 0;
- border-radius: 100upx;
- }
- switch .wx-switch-input:not([class*='bg-']),
- switch .uni-switch-input:not([class*='bg-']) {
- background: var(--grey) !important;
- }
- switch .wx-switch-input::after,
- switch .uni-switch-input::after {
- margin: auto;
- width: 26px;
- height: 26px;
- border-radius: 100upx;
- left: 0upx;
- top: 0upx;
- bottom: 0upx;
- position: absolute;
- transform: scale(0.9, 0.9);
- transition: all 0.1s ease-in-out 0s;
- }
- switch .wx-switch-input.wx-switch-input-checked::after,
- switch .uni-switch-input.uni-switch-input-checked::after {
- margin: auto;
- left: 22px;
- box-shadow: none;
- transform: scale(0.9, 0.9);
- }
- radio-group {
- display: inline-block;
- }
- switch.radius .wx-switch-input::after,
- switch.radius .wx-switch-input,
- switch.radius .wx-switch-input::before,
- switch.radius .uni-switch-input::after,
- switch.radius .uni-switch-input,
- switch.radius .uni-switch-input::before {
- border-radius: 10upx;
- }
- switch .wx-switch-input::before,
- radio.radio::before,
- checkbox .wx-checkbox-input::before,
- radio .wx-radio-input::before,
- switch .uni-switch-input::before,
- radio.radio::before,
- checkbox .uni-checkbox-input::before,
- radio .uni-radio-input::before {
- display: none;
- }
- radio.radio[checked]::after,
- radio.radio .uni-radio-input-checked::after {
- content: '';
- background-color: transparent;
- display: block;
- position: absolute;
- width: 8px;
- height: 8px;
- z-index: 999;
- top: 0upx;
- left: 0upx;
- right: 0;
- bottom: 0;
- margin: auto;
- border-radius: 200upx;
- /* #ifndef MP */
- border: 7px solid var(--white) !important;
- /* #endif */
- /* #ifdef MP */
- border: 8px solid var(--white) !important;
- /* #endif */
- }
- .switch-sex::after {
- content: '\e71c';
- }
- .switch-sex::before {
- content: '\e71a';
- }
- .switch-sex .wx-switch-input,
- .switch-sex .uni-switch-input {
- background: var(--red) !important;
- border-color: var(--red) !important;
- }
- .switch-sex[checked] .wx-switch-input,
- .switch-sex.checked .uni-switch-input {
- background: var(--blue) !important;
- border-color: var(--blue) !important;
- }
- switch.red[checked] .wx-switch-input,
- checkbox.red[checked] .wx-checkbox-input,
- radio.red[checked] .wx-radio-input,
- switch.red.checked .uni-switch-input,
- checkbox.red.checked .uni-checkbox-input,
- radio.red.checked .uni-radio-input {
- border-color: var(--red) !important;
- }
- switch.orange[checked] .wx-switch-input,
- switch.orange.checked .uni-switch-input,
- checkbox.orange[checked] .wx-checkbox-input,
- checkbox.orange.checked .uni-checkbox-input,
- radio.orange[checked] .wx-radio-input,
- radio.orange.checked .uni-radio-input {
- border-color: var(--orange) !important;
- }
- switch.yellow[checked] .wx-switch-input,
- switch.yellow.checked .uni-switch-input,
- checkbox.yellow[checked] .wx-checkbox-input,
- checkbox.yellow.checked .uni-checkbox-input,
- radio.yellow[checked] .wx-radio-input,
- radio.yellow.checked .uni-radio-input {
- border-color: var(--yellow) !important;
- }
- switch.olive[checked] .wx-switch-input,
- switch.olive.checked .uni-switch-input,
- checkbox.olive[checked] .wx-checkbox-input,
- checkbox.olive.checked .uni-checkbox-input,
- radio.olive[checked] .wx-radio-input,
- radio.olive.checked .uni-radio-input {
- border-color: var(--olive) !important;
- }
- switch.green[checked] .wx-switch-input,
- checkbox.green[checked] .wx-checkbox-input,
- checkbox[checked] .wx-checkbox-input,
- radio.green[checked] .wx-radio-input,
- switch.green.checked .uni-switch-input,
- checkbox.green.checked .uni-checkbox-input,
- checkbox.checked .uni-checkbox-input,
- radio.green.checked .uni-radio-input,
- radio.checked .uni-radio-input {
- border-color: var(--green) !important;
- }
- switch.cyan[checked] .wx-switch-input,
- checkbox.cyan[checked] .wx-checkbox-input,
- radio.cyan[checked] .wx-radio-input,
- switch.cyan.checked .uni-switch-input,
- checkbox.cyan.checked .uni-checkbox-input,
- radio.cyan.checked .uni-radio-input {
- border-color: var(--cyan) !important;
- }
- switch.blue[checked] .wx-switch-input,
- checkbox.blue[checked] .wx-checkbox-input,
- radio.blue[checked] .wx-radio-input,
- switch.blue.checked .uni-switch-input,
- checkbox.blue.checked .uni-checkbox-input,
- radio.blue.checked .uni-radio-input {
- border-color: var(--blue) !important;
- }
- switch.purple[checked] .wx-switch-input,
- checkbox.purple[checked] .wx-checkbox-input,
- radio.purple[checked] .wx-radio-input,
- switch.purple.checked .uni-switch-input,
- checkbox.purple.checked .uni-checkbox-input,
- radio.purple.checked .uni-radio-input {
- border-color: var(--purple) !important;
- }
- switch.mauve[checked] .wx-switch-input,
- checkbox.mauve[checked] .wx-checkbox-input,
- radio.mauve[checked] .wx-radio-input,
- switch.mauve.checked .uni-switch-input,
- checkbox.mauve.checked .uni-checkbox-input,
- radio.mauve.checked .uni-radio-input {
- border-color: var(--mauve) !important;
- }
- switch.pink[checked] .wx-switch-input,
- checkbox.pink[checked] .wx-checkbox-input,
- radio.pink[checked] .wx-radio-input,
- switch.pink.checked .uni-switch-input,
- checkbox.pink.checked .uni-checkbox-input,
- radio.pink.checked .uni-radio-input {
- border-color: var(--pink) !important;
- }
- switch.brown[checked] .wx-switch-input,
- checkbox.brown[checked] .wx-checkbox-input,
- radio.brown[checked] .wx-radio-input,
- switch.brown.checked .uni-switch-input,
- checkbox.brown.checked .uni-checkbox-input,
- radio.brown.checked .uni-radio-input {
- border-color: var(--brown) !important;
- }
- switch.grey[checked] .wx-switch-input,
- checkbox.grey[checked] .wx-checkbox-input,
- radio.grey[checked] .wx-radio-input,
- switch.grey.checked .uni-switch-input,
- checkbox.grey.checked .uni-checkbox-input,
- radio.grey.checked .uni-radio-input {
- border-color: var(--grey) !important;
- }
- switch.gray[checked] .wx-switch-input,
- checkbox.gray[checked] .wx-checkbox-input,
- radio.gray[checked] .wx-radio-input,
- switch.gray.checked .uni-switch-input,
- checkbox.gray.checked .uni-checkbox-input,
- radio.gray.checked .uni-radio-input {
- border-color: var(--grey) !important;
- }
- switch.black[checked] .wx-switch-input,
- checkbox.black[checked] .wx-checkbox-input,
- radio.black[checked] .wx-radio-input,
- switch.black.checked .uni-switch-input,
- checkbox.black.checked .uni-checkbox-input,
- radio.black.checked .uni-radio-input {
- border-color: var(--black) !important;
- }
- switch.white[checked] .wx-switch-input,
- checkbox.white[checked] .wx-checkbox-input,
- radio.white[checked] .wx-radio-input,
- switch.white.checked .uni-switch-input,
- checkbox.white.checked .uni-checkbox-input,
- radio.white.checked .uni-radio-input {
- border-color: var(--white) !important;
- }
- switch.red[checked] .wx-switch-input.wx-switch-input-checked,
- checkbox.red[checked] .wx-checkbox-input,
- radio.red[checked] .wx-radio-input,
- switch.red.checked .uni-switch-input.uni-switch-input-checked,
- checkbox.red.checked .uni-checkbox-input,
- radio.red.checked .uni-radio-input {
- background-color: var(--red) !important;
- color: var(--white) !important;
- }
- switch.orange[checked] .wx-switch-input,
- checkbox.orange[checked] .wx-checkbox-input,
- radio.orange[checked] .wx-radio-input,
- switch.orange.checked .uni-switch-input,
- checkbox.orange.checked .uni-checkbox-input,
- radio.orange.checked .uni-radio-input {
- background-color: var(--orange) !important;
- color: var(--white) !important;
- }
- switch.yellow[checked] .wx-switch-input,
- checkbox.yellow[checked] .wx-checkbox-input,
- radio.yellow[checked] .wx-radio-input,
- switch.yellow.checked .uni-switch-input,
- checkbox.yellow.checked .uni-checkbox-input,
- radio.yellow.checked .uni-radio-input {
- background-color: var(--yellow) !important;
- color: var(--black) !important;
- }
- switch.olive[checked] .wx-switch-input,
- checkbox.olive[checked] .wx-checkbox-input,
- radio.olive[checked] .wx-radio-input,
- switch.olive.checked .uni-switch-input,
- checkbox.olive.checked .uni-checkbox-input,
- radio.olive.checked .uni-radio-input {
- background-color: var(--olive) !important;
- color: var(--white) !important;
- }
- switch.green[checked] .wx-switch-input,
- switch[checked] .wx-switch-input,
- checkbox.green[checked] .wx-checkbox-input,
- checkbox[checked] .wx-checkbox-input,
- radio.green[checked] .wx-radio-input,
- radio[checked] .wx-radio-input,
- switch.green.checked .uni-switch-input,
- switch.checked .uni-switch-input,
- checkbox.green.checked .uni-checkbox-input,
- checkbox.checked .uni-checkbox-input,
- radio.green.checked .uni-radio-input,
- radio.checked .uni-radio-input {
- background-color: var(--green) !important;
- color: var(--white) !important;
- }
- switch.cyan[checked] .wx-switch-input,
- checkbox.cyan[checked] .wx-checkbox-input,
- radio.cyan[checked] .wx-radio-input,
- switch.cyan.checked .uni-switch-input,
- checkbox.cyan.checked .uni-checkbox-input,
- radio.cyan.checked .uni-radio-input {
- background-color: var(--cyan) !important;
- color: var(--white) !important;
- }
- switch.blue[checked] .wx-switch-input,
- checkbox.blue[checked] .wx-checkbox-input,
- radio.blue[checked] .wx-radio-input,
- switch.blue.checked .uni-switch-input,
- checkbox.blue.checked .uni-checkbox-input,
- radio.blue.checked .uni-radio-input {
- background-color: var(--blue) !important;
- color: var(--white) !important;
- }
- switch.purple[checked] .wx-switch-input,
- checkbox.purple[checked] .wx-checkbox-input,
- radio.purple[checked] .wx-radio-input,
- switch.purple.checked .uni-switch-input,
- checkbox.purple.checked .uni-checkbox-input,
- radio.purple.checked .uni-radio-input {
- background-color: var(--purple) !important;
- color: var(--white) !important;
- }
- switch.mauve[checked] .wx-switch-input,
- checkbox.mauve[checked] .wx-checkbox-input,
- radio.mauve[checked] .wx-radio-input,
- switch.mauve.checked .uni-switch-input,
- checkbox.mauve.checked .uni-checkbox-input,
- radio.mauve.checked .uni-radio-input {
- background-color: var(--mauve) !important;
- color: var(--white) !important;
- }
- switch.pink[checked] .wx-switch-input,
- checkbox.pink[checked] .wx-checkbox-input,
- radio.pink[checked] .wx-radio-input,
- switch.pink.checked .uni-switch-input,
- checkbox.pink.checked .uni-checkbox-input,
- radio.pink.checked .uni-radio-input {
- background-color: var(--pink) !important;
- color: var(--white) !important;
- }
- switch.brown[checked] .wx-switch-input,
- checkbox.brown[checked] .wx-checkbox-input,
- radio.brown[checked] .wx-radio-input,
- switch.brown.checked .uni-switch-input,
- checkbox.brown.checked .uni-checkbox-input,
- radio.brown.checked .uni-radio-input {
- background-color: var(--brown) !important;
- color: var(--white) !important;
- }
- switch.grey[checked] .wx-switch-input,
- checkbox.grey[checked] .wx-checkbox-input,
- radio.grey[checked] .wx-radio-input,
- switch.grey.checked .uni-switch-input,
- checkbox.grey.checked .uni-checkbox-input,
- radio.grey.checked .uni-radio-input {
- background-color: var(--grey) !important;
- color: var(--white) !important;
- }
- switch.gray[checked] .wx-switch-input,
- checkbox.gray[checked] .wx-checkbox-input,
- radio.gray[checked] .wx-radio-input,
- switch.gray.checked .uni-switch-input,
- checkbox.gray.checked .uni-checkbox-input,
- radio.gray.checked .uni-radio-input {
- background-color: #f0f0f0 !important;
- color: var(--darkGray) !important;
- }
- switch.black[checked] .wx-switch-input,
- checkbox.black[checked] .wx-checkbox-input,
- radio.black[checked] .wx-radio-input,
- switch.black.checked .uni-switch-input,
- checkbox.black.checked .uni-checkbox-input,
- radio.black.checked .uni-radio-input {
- background-color: var(--black) !important;
- color: var(--white) !important;
- }
- switch.white[checked] .wx-switch-input,
- checkbox.white[checked] .wx-checkbox-input,
- radio.white[checked] .wx-radio-input,
- switch.white.checked .uni-switch-input,
- checkbox.white.checked .uni-checkbox-input,
- radio.white.checked .uni-radio-input {
- background-color: var(--white) !important;
- color: var(--darkGray) !important;
- }
- /* ==================
- 边框
- ==================== */
- /* -- 实线 -- */
- .solid,
- .solid-top,
- .solid-right,
- .solid-bottom,
- .solid-left,
- .solids,
- .solids-top,
- .solids-right,
- .solids-bottom,
- .solids-left,
- .dashed,
- .dashed-top,
- .dashed-right,
- .dashed-bottom,
- .dashed-left {
- position: relative;
- }
- .solid::after,
- .solid-top::after,
- .solid-right::after,
- .solid-bottom::after,
- .solid-left::after,
- .solids::after,
- .solids-top::after,
- .solids-right::after,
- .solids-bottom::after,
- .solids-left::after,
- .dashed::after,
- .dashed-top::after,
- .dashed-right::after,
- .dashed-bottom::after,
- .dashed-left::after {
- content: ' ';
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border-radius: inherit;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
- }
- .solid::after {
- border: 1upx solid rgba(0, 0, 0, 0.1);
- }
- .solid-top::after {
- border-top: 1upx solid rgba(0, 0, 0, 0.1);
- }
- .solid-right::after {
- border-right: 1upx solid rgba(0, 0, 0, 0.1);
- }
- .solid-bottom::after {
- border-bottom: 1upx solid rgba(0, 0, 0, 0.1);
- }
- .solid-left::after {
- border-left: 1upx solid rgba(0, 0, 0, 0.1);
- }
- .solids::after {
- border: 8upx solid #eee;
- }
- .solids-top::after {
- border-top: 8upx solid #eee;
- }
- .solids-right::after {
- border-right: 8upx solid #eee;
- }
- .solids-bottom::after {
- border-bottom: 8upx solid #eee;
- }
- .solids-left::after {
- border-left: 8upx solid #eee;
- }
- /* -- 虚线 -- */
- .dashed::after {
- border: 1upx dashed #ddd;
- }
- .dashed-top::after {
- border-top: 1upx dashed #ddd;
- }
- .dashed-right::after {
- border-right: 1upx dashed #ddd;
- }
- .dashed-bottom::after {
- border-bottom: 1upx dashed #ddd;
- }
- .dashed-left::after {
- border-left: 1upx dashed #ddd;
- }
- /* -- 阴影 -- */
- .shadow {
- --ShadowSize: 0 1upx 6upx;
- }
- .shadow-lg {
- --ShadowSize: 0upx 40upx 100upx 0upx;
- }
- .shadow-warp {
- position: relative;
- box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1);
- }
- .shadow-warp:before,
- .shadow-warp:after {
- position: absolute;
- content: '';
- top: 20upx;
- bottom: 30upx;
- left: 20upx;
- width: 50%;
- box-shadow: 0 30upx 20upx rgba(0, 0, 0, 0.2);
- transform: rotate(-3deg);
- z-index: -1;
- }
- .shadow-warp:after {
- right: 20upx;
- left: auto;
- transform: rotate(3deg);
- }
- .shadow-blur {
- position: relative;
- }
- .shadow-blur::before {
- content: '';
- display: block;
- background: inherit;
- filter: blur(10upx);
- position: absolute;
- width: 100%;
- height: 100%;
- top: 10upx;
- left: 10upx;
- z-index: -1;
- opacity: 0.4;
- transform-origin: 0 0;
- border-radius: inherit;
- transform: scale(1, 1);
- }
- /* ==================
- 按钮
- ==================== */
- .cu-btn {
- position: relative;
- border: 0upx;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- padding: 0 30upx;
- font-size: 28upx;
- height: 64upx;
- line-height: 1;
- text-align: center;
- text-decoration: none;
- overflow: visible;
- margin-left: initial;
- transform: translate(0upx, 0upx);
- margin-right: initial;
- }
- .cu-btn::after {
- display: none;
- }
- .cu-btn:not([class*='bg-']) {
- background-color: #f0f0f0;
- }
- .cu-btn[class*='line'] {
- background-color: transparent;
- }
- .cu-btn[class*='line']::after {
- content: ' ';
- display: block;
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border: 1upx solid currentColor;
- transform: scale(0.5);
- transform-origin: 0 0;
- box-sizing: border-box;
- border-radius: 12upx;
- z-index: 1;
- pointer-events: none;
- }
- .cu-btn.round[class*='line']::after {
- border-radius: 1000upx;
- }
- .cu-btn[class*='lines']::after {
- border: 6upx solid currentColor;
- }
- .cu-btn[class*='bg-']::after {
- display: none;
- }
- .cu-btn.sm {
- padding: 0 20upx;
- font-size: 20upx;
- height: 48upx;
- }
- .cu-btn.lg {
- padding: 0 40upx;
- font-size: 32upx;
- height: 80upx;
- }
- .cu-btn.icon.sm {
- width: 48upx;
- height: 48upx;
- }
- .cu-btn.icon {
- width: 64upx;
- height: 64upx;
- border-radius: 500upx;
- padding: 0;
- }
- button.icon.lg {
- width: 80upx;
- height: 80upx;
- }
- .cu-btn.shadow-blur::before {
- top: 4upx;
- left: 4upx;
- filter: blur(6upx);
- opacity: 0.6;
- }
- .cu-btn.button-hover {
- transform: translate(1upx, 1upx);
- }
- .block {
- display: block;
- }
- .cu-btn.block {
- display: flex;
- }
- .cu-btn[disabled] {
- opacity: 0.6;
- color: var(--white);
- }
- /* ==================
- 徽章
- ==================== */
- .cu-tag {
- font-size: 24upx;
- vertical-align: middle;
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- padding: 0upx 16upx;
- height: 48upx;
- font-family: Helvetica Neue, Helvetica, sans-serif;
- white-space: nowrap;
- }
- .cu-tag:not([class*='bg']):not([class*='line']) {
- background-color: var(--ghostWhite);
- }
- .cu-tag[class*='line-']::after {
- content: ' ';
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border: 1upx solid currentColor;
- transform: scale(0.5);
- transform-origin: 0 0;
- box-sizing: border-box;
- border-radius: inherit;
- z-index: 1;
- pointer-events: none;
- }
- .cu-tag.radius[class*='line']::after {
- border-radius: 12upx;
- }
- .cu-tag.round[class*='line']::after {
- border-radius: 1000upx;
- }
- .cu-tag[class*='line-']::after {
- border-radius: 0;
- }
- .cu-tag + .cu-tag {
- margin-left: 10upx;
- }
- .cu-tag.sm {
- font-size: 20upx;
- padding: 0upx 12upx;
- height: 32upx;
- }
- .cu-capsule {
- display: inline-flex;
- vertical-align: middle;
- }
- .cu-capsule + .cu-capsule {
- margin-left: 10upx;
- }
- .cu-capsule .cu-tag {
- margin: 0;
- }
- .cu-capsule .cu-tag[class*='line-']:last-child::after {
- border-left: 0upx solid transparent;
- }
- .cu-capsule .cu-tag[class*='line-']:first-child::after {
- border-right: 0upx solid transparent;
- }
- .cu-capsule.radius .cu-tag:first-child {
- border-top-left-radius: 6upx;
- border-bottom-left-radius: 6upx;
- }
- .cu-capsule.radius .cu-tag:last-child::after,
- .cu-capsule.radius .cu-tag[class*='line-'] {
- border-top-right-radius: 12upx;
- border-bottom-right-radius: 12upx;
- }
- .cu-capsule.round .cu-tag:first-child {
- border-top-left-radius: 200upx;
- border-bottom-left-radius: 200upx;
- text-indent: 4upx;
- }
- .cu-capsule.round .cu-tag:last-child::after,
- .cu-capsule.round .cu-tag:last-child {
- border-top-right-radius: 200upx;
- border-bottom-right-radius: 200upx;
- text-indent: -4upx;
- }
- .cu-tag.badge {
- border-radius: 200upx;
- position: absolute;
- top: -10upx;
- right: -10upx;
- font-size: 20upx;
- padding: 0upx 10upx;
- height: 28upx;
- color: var(--white);
- }
- .cu-tag.badge:not([class*='bg-']) {
- background-color: #dd514c;
- }
- .cu-tag:empty:not([class*='cuIcon-']) {
- padding: 0upx;
- width: 16upx;
- height: 16upx;
- top: -4upx;
- right: -4upx;
- }
- .cu-tag[class*='cuIcon-'] {
- width: 32upx;
- height: 32upx;
- top: -4upx;
- right: -4upx;
- }
- /* ==================
- 头像
- ==================== */
- .cu-avatar {
- font-variant: small-caps;
- margin: 0;
- padding: 0;
- display: inline-flex;
- text-align: center;
- justify-content: center;
- align-items: center;
- background-color: #ccc;
- color: var(--white);
- white-space: nowrap;
- position: relative;
- width: 64upx;
- height: 64upx;
- background-size: cover;
- background-position: center;
- vertical-align: middle;
- font-size: 1.5em;
- }
- .cu-avatar.sm {
- width: 48upx;
- height: 48upx;
- font-size: 1em;
- }
- .cu-avatar.lg {
- width: 96upx;
- height: 96upx;
- font-size: 2em;
- }
- .cu-avatar.xl {
- width: 128upx;
- height: 128upx;
- font-size: 2.5em;
- }
- .cu-avatar .avatar-text {
- font-size: 0.4em;
- }
- .cu-avatar-group {
- direction: rtl;
- unicode-bidi: bidi-override;
- padding: 0 10upx 0 40upx;
- display: inline-block;
- }
- .cu-avatar-group .cu-avatar {
- margin-left: -30upx;
- border: 4upx solid var(--ghostWhite);
- vertical-align: middle;
- }
- .cu-avatar-group .cu-avatar.sm {
- margin-left: -20upx;
- border: 1upx solid var(--ghostWhite);
- }
- /* ==================
- 进度条
- ==================== */
- .cu-progress {
- overflow: hidden;
- height: 28upx;
- background-color: #ebeef5;
- display: inline-flex;
- align-items: center;
- width: 100%;
- }
- .cu-progress + div,
- .cu-progress + text {
- line-height: 1;
- }
- .cu-progress.xs {
- height: 10upx;
- }
- .cu-progress.sm {
- height: 20upx;
- }
- .cu-progress div {
- width: 0;
- height: 100%;
- align-items: center;
- display: flex;
- justify-items: flex-end;
- justify-content: space-around;
- font-size: 20upx;
- color: var(--white);
- transition: width 0.6s ease;
- }
- .cu-progress text {
- align-items: center;
- display: flex;
- font-size: 20upx;
- color: var(--darkGray);
- text-indent: 10upx;
- }
- .cu-progress.text-progress {
- padding-right: 60upx;
- }
- .cu-progress.striped div {
- 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
- );
- background-size: 72upx 72upx;
- }
- .cu-progress.active div {
- animation: progress-stripes 2s linear infinite;
- }
- @keyframes progress-stripes {
- from {
- background-position: 72upx 0;
- }
- to {
- background-position: 0 0;
- }
- }
- /* ==================
- 加载
- ==================== */
- .cu-load {
- display: block;
- line-height: 3em;
- text-align: center;
- }
- .cu-load::before {
- font-family: 'cuIcon';
- display: inline-block;
- margin-right: 6upx;
- }
- .cu-load.loading::before {
- content: '\e67a';
- animation: cuIcon-spin 2s infinite linear;
- }
- .cu-load.loading::after {
- content: '加载中...';
- }
- .cu-load.over::before {
- content: '\e64a';
- }
- .cu-load.over::after {
- content: '没有更多了';
- }
- .cu-load.erro::before {
- content: '\e658';
- }
- .cu-load.erro::after {
- content: '加载失败';
- }
- .cu-load.load-icon::before {
- font-size: 32upx;
- }
- .cu-load.load-icon::after {
- display: none;
- }
- .cu-load.load-icon.over {
- display: none;
- }
- .cu-load.load-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 140upx;
- left: 0;
- margin: auto;
- width: 260upx;
- height: 260upx;
- background-color: var(--white);
- border-radius: 10upx;
- box-shadow: 0 0 0upx 2000upx rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- font-size: 28upx;
- z-index: 9999;
- line-height: 2.4em;
- }
- .cu-load.load-modal [class*='cuIcon-'] {
- font-size: 60upx;
- }
- .cu-load.load-modal image {
- width: 70upx;
- height: 70upx;
- }
- .cu-load.load-modal::after {
- content: '';
- position: absolute;
- background-color: var(--white);
- border-radius: 50%;
- width: 200upx;
- height: 200upx;
- font-size: 10px;
- border-top: 6upx solid rgba(0, 0, 0, 0.05);
- border-right: 6upx solid rgba(0, 0, 0, 0.05);
- border-bottom: 6upx solid rgba(0, 0, 0, 0.05);
- border-left: 6upx solid var(--orange);
- animation: cuIcon-spin 1s infinite linear;
- z-index: -1;
- }
- .load-progress {
- pointer-events: none;
- top: 0;
- position: fixed;
- width: 100%;
- left: 0;
- z-index: 2000;
- }
- .load-progress.hide {
- display: none;
- }
- .load-progress .load-progress-bar {
- position: relative;
- width: 100%;
- height: 4upx;
- overflow: hidden;
- transition: all 200ms ease 0s;
- }
- .load-progress .load-progress-spinner {
- position: absolute;
- top: 10upx;
- right: 10upx;
- z-index: 2000;
- display: block;
- }
- .load-progress .load-progress-spinner::after {
- content: '';
- display: block;
- width: 24upx;
- height: 24upx;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border: solid 4upx transparent;
- border-top-color: inherit;
- border-left-color: inherit;
- border-radius: 50%;
- -webkit-animation: load-progress-spinner 0.4s linear infinite;
- animation: load-progress-spinner 0.4s linear infinite;
- }
- @-webkit-keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- @keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- }
- /* ==================
- 列表
- ==================== */
- .grayscale {
- filter: grayscale(1);
- }
- .cu-list + .cu-list {
- margin-top: 30upx;
- }
- .cu-list > .cu-item {
- transition: all 0.6s ease-in-out 0s;
- transform: translateX(0upx);
- }
- .cu-list > .cu-item.move-cur {
- transform: translateX(-260upx);
- }
- .cu-list > .cu-item .move {
- position: absolute;
- right: 0;
- display: flex;
- width: 260upx;
- height: 100%;
- transform: translateX(100%);
- }
- .cu-list > .cu-item .move div {
- display: flex;
- flex: 1;
- justify-content: center;
- align-items: center;
- }
- .cu-list.menu-avatar {
- overflow: hidden;
- }
- .cu-list.menu-avatar > .cu-item {
- position: relative;
- display: flex;
- padding-right: 10upx;
- height: 140upx;
- background-color: var(--white);
- justify-content: flex-end;
- align-items: center;
- }
- .cu-list.menu-avatar > .cu-item > .cu-avatar {
- position: absolute;
- left: 30upx;
- }
- .cu-list.menu-avatar > .cu-item .flex .text-cut {
- max-width: 510upx;
- }
- .cu-list.menu-avatar > .cu-item .content {
- position: absolute;
- left: 146upx;
- width: calc(100% - 96upx - 60upx - 120upx - 20upx);
- line-height: 1.6em;
- }
- .cu-list.menu-avatar > .cu-item .content.flex-sub {
- width: calc(100% - 96upx - 60upx - 20upx);
- }
- .cu-list.menu-avatar > .cu-item .content > div:first-child {
- font-size: 30upx;
- display: flex;
- align-items: center;
- }
- .cu-list.menu-avatar > .cu-item .content .cu-tag.sm {
- display: inline-block;
- margin-left: 10upx;
- height: 28upx;
- font-size: 16upx;
- line-height: 32upx;
- }
- .cu-list.menu-avatar > .cu-item .action {
- width: 100upx;
- text-align: center;
- }
- .cu-list.menu-avatar > .cu-item .action div + div {
- margin-top: 10upx;
- }
- .cu-list.menu-avatar.comment > .cu-item .content {
- position: relative;
- left: 0;
- width: auto;
- flex: 1;
- }
- .cu-list.menu-avatar.comment > .cu-item {
- padding: 30upx 30upx 30upx 120upx;
- height: auto;
- }
- .cu-list.menu-avatar.comment .cu-avatar {
- align-self: flex-start;
- }
- .cu-list.menu > .cu-item {
- position: relative;
- display: flex;
- padding: 0 30upx;
- min-height: 100upx;
- background-color: var(--white);
- justify-content: space-between;
- align-items: center;
- }
- .cu-list.menu > .cu-item:last-child:after {
- border: none;
- }
- .cu-list.menu > .cu-item:after {
- position: absolute;
- top: 0;
- left: 0;
- box-sizing: border-box;
- width: 200%;
- height: 200%;
- border-bottom: 1upx solid #ddd;
- border-radius: inherit;
- content: ' ';
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- }
- .cu-list.menu > .cu-item.grayscale {
- background-color: #f5f5f5;
- }
- .cu-list.menu > .cu-item.cur {
- background-color: #fcf7e9;
- }
- .cu-list.menu > .cu-item.arrow {
- padding-right: 90upx;
- }
- .cu-list.menu > .cu-item.arrow:before {
- position: absolute;
- top: 0;
- right: 30upx;
- bottom: 0;
- display: block;
- margin: auto;
- width: 30upx;
- height: 30upx;
- color: var(--grey);
- content: '\e6a3';
- text-align: center;
- font-size: 34upx;
- font-family: cuIcon;
- line-height: 30upx;
- }
- .cu-list.menu > .cu-item button.content {
- padding: 0;
- background-color: transparent;
- justify-content: flex-start;
- }
- .cu-list.menu > .cu-item button.content:after {
- display: none;
- }
- .cu-list.menu > .cu-item .cu-avatar-group .cu-avatar {
- border-color: var(--white);
- }
- .cu-list.menu > .cu-item .content > div:first-child {
- display: flex;
- align-items: center;
- }
- .cu-list.menu > .cu-item .content > text[class*='cuIcon'] {
- display: inline-block;
- margin-right: 10upx;
- width: 1.6em;
- text-align: center;
- }
- .cu-list.menu > .cu-item .content > image {
- display: inline-block;
- margin-right: 10upx;
- width: 1.6em;
- height: 1.6em;
- vertical-align: middle;
- }
- .cu-list.menu > .cu-item .content {
- font-size: 30upx;
- line-height: 1.6em;
- flex: 1;
- }
- .cu-list.menu > .cu-item .content .cu-tag.sm {
- display: inline-block;
- margin-left: 10upx;
- height: 28upx;
- font-size: 16upx;
- line-height: 32upx;
- }
- .cu-list.menu > .cu-item .action .cu-tag:empty {
- right: 10upx;
- }
- .cu-list.menu {
- display: block;
- overflow: hidden;
- }
- .cu-list.menu.sm-border > .cu-item:after {
- left: 30upx;
- width: calc(200% - 120upx);
- }
- .cu-list.grid > .cu-item {
- position: relative;
- display: flex;
- padding: 20upx 0 30upx;
- transition-duration: 0s;
- flex-direction: column;
- }
- .cu-list.grid > .cu-item:after {
- position: absolute;
- top: 0;
- left: 0;
- box-sizing: border-box;
- width: 200%;
- height: 200%;
- border-right: 1px solid rgba(0, 0, 0, 0.1);
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: inherit;
- content: ' ';
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- }
- .cu-list.grid > .cu-item text {
- display: block;
- margin-top: 10upx;
- color: #888;
- font-size: 26upx;
- line-height: 40upx;
- }
- .cu-list.grid > .cu-item [class*='cuIcon'] {
- position: relative;
- display: block;
- margin-top: 20upx;
- width: 100%;
- font-size: 48upx;
- }
- .cu-list.grid > .cu-item .cu-tag {
- right: auto;
- left: 50%;
- margin-left: 20upx;
- }
- .cu-list.grid {
- background-color: var(--white);
- text-align: center;
- }
- .cu-list.grid.no-border > .cu-item {
- padding-top: 10upx;
- padding-bottom: 20upx;
- }
- .cu-list.grid.no-border > .cu-item:after {
- border: none;
- }
- .cu-list.grid.no-border {
- padding: 20upx 10upx;
- }
- .cu-list.grid.col-3 > .cu-item:nth-child(3n):after,
- .cu-list.grid.col-4 > .cu-item:nth-child(4n):after,
- .cu-list.grid.col-5 > .cu-item:nth-child(5n):after {
- border-right-width: 0;
- }
- .cu-list.card-menu {
- overflow: hidden;
- margin-right: 30upx;
- margin-left: 30upx;
- border-radius: 20upx;
- }
- /* ==================
- 操作条
- ==================== */
- .cu-bar {
- display: flex;
- position: relative;
- align-items: center;
- min-height: 100upx;
- justify-content: space-between;
- }
- .cu-bar .action {
- display: flex;
- align-items: center;
- height: 100%;
- justify-content: center;
- max-width: 100%;
- }
- .cu-bar .action.border-title {
- position: relative;
- top: -10upx;
- }
- .cu-bar .action.border-title text[class*='bg-']:last-child {
- position: absolute;
- bottom: -0.5rem;
- min-width: 2rem;
- height: 6upx;
- left: 0;
- }
- .cu-bar .action.sub-title {
- position: relative;
- top: -0.2rem;
- }
- .cu-bar .action.sub-title text {
- position: relative;
- z-index: 1;
- }
- .cu-bar .action.sub-title text[class*='bg-']:last-child {
- position: absolute;
- display: inline-block;
- bottom: -0.2rem;
- border-radius: 6upx;
- width: 100%;
- height: 0.6rem;
- left: 0.6rem;
- opacity: 0.3;
- z-index: 0;
- }
- .cu-bar .action.sub-title text[class*='text-']:last-child {
- position: absolute;
- display: inline-block;
- bottom: -0.7rem;
- left: 0.5rem;
- opacity: 0.2;
- z-index: 0;
- text-align: right;
- font-weight: 900;
- font-size: 36upx;
- }
- .cu-bar.justify-center .action.border-title text:last-child,
- .cu-bar.justify-center .action.sub-title text:last-child {
- left: 0;
- right: 0;
- margin: auto;
- text-align: center;
- }
- .cu-bar .action:first-child {
- margin-left: 30upx;
- font-size: 30upx;
- }
- .cu-bar .action text.text-cut {
- text-align: left;
- width: 100%;
- }
- .cu-bar .cu-avatar:first-child {
- margin-left: 20upx;
- }
- .cu-bar .action:first-child > text[class*='cuIcon-'] {
- margin-left: -0.3em;
- margin-right: 0.3em;
- }
- .cu-bar .action:last-child {
- margin-right: 30upx;
- }
- .cu-bar .action > text[class*='cuIcon-'],
- .cu-bar .action > div[class*='cuIcon-'] {
- font-size: 36upx;
- }
- .cu-bar .action > text[class*='cuIcon-'] + text[class*='cuIcon-'] {
- margin-left: 0.5em;
- }
- .cu-bar .content {
- position: absolute;
- text-align: center;
- width: calc(100% - 340upx);
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
- height: 60upx;
- font-size: 32upx;
- line-height: 60upx;
- cursor: none;
- pointer-events: none;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .cu-bar.ios .content {
- bottom: 7px;
- height: 30px;
- font-size: 32upx;
- line-height: 30px;
- }
- .cu-bar.btn-group {
- justify-content: space-around;
- }
- .cu-bar.btn-group button {
- padding: 20upx 32upx;
- }
- .cu-bar.btn-group button {
- flex: 1;
- margin: 0 20upx;
- max-width: 50%;
- }
- .cu-bar .search-form {
- background-color: #f5f5f5;
- line-height: 64upx;
- height: 64upx;
- font-size: 24upx;
- color: var(--darkGray);
- flex: 1;
- display: flex;
- align-items: center;
- margin: 0 30upx;
- }
- .cu-bar .search-form + .action {
- margin-right: 30upx;
- }
- .cu-bar .search-form input {
- flex: 1;
- padding-right: 30upx;
- height: 64upx;
- line-height: 64upx;
- font-size: 26upx;
- background-color: transparent;
- }
- .cu-bar .search-form [class*='cuIcon-'] {
- margin: 0 0.5em 0 0.8em;
- }
- .cu-bar .search-form [class*='cuIcon-']::before {
- top: 0upx;
- }
- .cu-bar.fixed,
- .nav.fixed {
- position: fixed;
- width: 100%;
- top: 0;
- z-index: 1024;
- box-shadow: 0 1upx 6upx rgba(0, 0, 0, 0.1);
- }
- .cu-bar.foot {
- position: fixed;
- width: 100%;
- bottom: 0;
- z-index: 1024;
- box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1);
- }
- .cu-bar.tabbar {
- padding: 0;
- height: calc(100upx + env(safe-area-inset-bottom) / 2);
- padding-bottom: calc(env(safe-area-inset-bottom) / 2);
- }
- .cu-tabbar-height {
- min-height: 100upx;
- height: calc(100upx + env(safe-area-inset-bottom) / 2);
- }
- .cu-bar.tabbar.shadow {
- box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1);
- }
- .cu-bar.tabbar .action {
- font-size: 22upx;
- position: relative;
- flex: 1;
- text-align: center;
- padding: 0;
- display: block;
- height: auto;
- line-height: 1;
- margin: 0;
- background-color: inherit;
- overflow: initial;
- }
- .cu-bar.tabbar.shop .action {
- width: 140upx;
- flex: initial;
- }
- .cu-bar.tabbar .action.add-action {
- position: relative;
- z-index: 2;
- padding-top: 50upx;
- }
- .cu-bar.tabbar .action.add-action [class*='cuIcon-'] {
- position: absolute;
- width: 70upx;
- z-index: 2;
- height: 70upx;
- border-radius: 50%;
- line-height: 70upx;
- font-size: 50upx;
- top: -35upx;
- left: 0;
- right: 0;
- margin: auto;
- padding: 0;
- }
- .cu-bar.tabbar .action.add-action::after {
- content: '';
- position: absolute;
- width: 100upx;
- height: 100upx;
- top: -50upx;
- left: 0;
- right: 0;
- margin: auto;
- box-shadow: 0 -3upx 8upx rgba(0, 0, 0, 0.08);
- border-radius: 50upx;
- background-color: inherit;
- z-index: 0;
- }
- .cu-bar.tabbar .action.add-action::before {
- content: '';
- position: absolute;
- width: 100upx;
- height: 30upx;
- bottom: 30upx;
- left: 0;
- right: 0;
- margin: auto;
- background-color: inherit;
- z-index: 1;
- }
- .cu-bar.tabbar .btn-group {
- flex: 1;
- display: flex;
- justify-content: space-around;
- align-items: center;
- padding: 0 10upx;
- }
- .cu-bar.tabbar button.action::after {
- border: 0;
- }
- .cu-bar.tabbar .action [class*='cuIcon-'] {
- width: 100upx;
- position: relative;
- display: block;
- height: auto;
- margin: 0 auto 10upx;
- text-align: center;
- font-size: 40upx;
- }
- .cu-bar.tabbar .action .cuIcon-cu-image {
- margin: 0 auto;
- }
- .cu-bar.tabbar .action .cuIcon-cu-image image {
- width: 40upx;
- height: 40upx;
- display: inline-block;
- }
- .cu-bar.tabbar .submit {
- align-items: center;
- display: flex;
- justify-content: center;
- text-align: center;
- position: relative;
- flex: 2;
- align-self: stretch;
- }
- .cu-bar.tabbar .submit:last-child {
- flex: 2.6;
- }
- .cu-bar.tabbar .submit + .submit {
- flex: 2;
- }
- .cu-bar.tabbar.border .action::before {
- content: ' ';
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- transform: scale(0.5);
- transform-origin: 0 0;
- border-right: 1upx solid rgba(0, 0, 0, 0.1);
- z-index: 3;
- }
- .cu-bar.tabbar.border .action:last-child:before {
- display: none;
- }
- .cu-bar.input {
- padding-right: 20upx;
- background-color: var(--white);
- }
- .cu-bar.input input {
- overflow: initial;
- line-height: 64upx;
- height: 64upx;
- min-height: 64upx;
- flex: 1;
- font-size: 30upx;
- margin: 0 20upx;
- }
- .cu-bar.input .action {
- margin-left: 20upx;
- }
- .cu-bar.input .action [class*='cuIcon-'] {
- font-size: 48upx;
- }
- .cu-bar.input input + .action {
- margin-right: 20upx;
- margin-left: 0upx;
- }
- .cu-bar.input .action:first-child [class*='cuIcon-'] {
- margin-left: 0upx;
- }
- .cu-custom {
- display: block;
- position: relative;
- }
- .cu-custom .cu-bar .content {
- width: calc(100% - 440upx);
- }
- /* #ifdef MP-ALIPAY */
- .cu-custom .cu-bar .action .cuIcon-back {
- opacity: 0;
- }
- /* #endif */
- .cu-custom .cu-bar .content image {
- height: 60upx;
- width: 240upx;
- }
- .cu-custom .cu-bar {
- min-height: 0px;
- /* #ifdef MP-WEIXIN */
- padding-right: 220upx;
- /* #endif */
- /* #ifdef MP-ALIPAY */
- padding-right: 150upx;
- /* #endif */
- box-shadow: 0upx 0upx 0upx;
- z-index: 9999;
- }
- .cu-custom .cu-bar .border-custom {
- position: relative;
- background: rgba(0, 0, 0, 0.15);
- border-radius: 1000upx;
- height: 30px;
- }
- .cu-custom .cu-bar .border-custom::after {
- content: ' ';
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border-radius: inherit;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
- border: 1upx solid var(--white);
- opacity: 0.5;
- }
- .cu-custom .cu-bar .border-custom::before {
- content: ' ';
- width: 1upx;
- height: 110%;
- position: absolute;
- top: 22.5%;
- left: 0;
- right: 0;
- margin: auto;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
- opacity: 0.6;
- background-color: var(--white);
- }
- .cu-custom .cu-bar .border-custom text {
- display: block;
- flex: 1;
- margin: auto !important;
- text-align: center;
- font-size: 34upx;
- }
- /* ==================
- 导航栏
- ==================== */
- .nav {
- white-space: nowrap;
- }
- ::-webkit-scrollbar {
- display: none;
- }
- .nav .cu-item {
- height: 90upx;
- display: inline-block;
- line-height: 90upx;
- margin: 0 10upx;
- padding: 0 20upx;
- }
- .nav .cu-item.cur {
- border-bottom: 4upx solid;
- }
- /* ==================
- 时间轴
- ==================== */
- .cu-timeline {
- display: block;
- background-color: var(--white);
- }
- .cu-timeline .cu-time {
- width: 120upx;
- text-align: center;
- padding: 20upx 0;
- font-size: 26upx;
- color: #888;
- display: block;
- }
- .cu-timeline > .cu-item {
- padding: 30upx 30upx 30upx 120upx;
- position: relative;
- display: block;
- z-index: 0;
- }
- .cu-timeline > .cu-item:not([class*='text-']) {
- color: #ccc;
- }
- .cu-timeline > .cu-item::after {
- content: '';
- display: block;
- position: absolute;
- width: 1upx;
- background-color: #ddd;
- left: 60upx;
- height: 100%;
- top: 0;
- z-index: 8;
- }
- .cu-timeline > .cu-item::before {
- font-family: 'cuIcon';
- display: block;
- position: absolute;
- top: 36upx;
- z-index: 9;
- background-color: var(--white);
- width: 50upx;
- height: 50upx;
- text-align: center;
- border: none;
- line-height: 50upx;
- left: 36upx;
- }
- .cu-timeline > .cu-item:not([class*='cuIcon-'])::before {
- content: '\e763';
- }
- .cu-timeline > .cu-item[class*='cuIcon-']::before {
- background-color: var(--white);
- width: 50upx;
- height: 50upx;
- text-align: center;
- border: none;
- line-height: 50upx;
- left: 36upx;
- }
- .cu-timeline > .cu-item > .content {
- padding: 30upx;
- border-radius: 6upx;
- display: block;
- line-height: 1.6;
- }
- .cu-timeline > .cu-item > .content:not([class*='bg-']) {
- background-color: var(--ghostWhite);
- color: var(--darkGray);
- }
- .cu-timeline > .cu-item > .content + .content {
- margin-top: 20upx;
- }
- /* ==================
- 聊天
- ==================== */
- .cu-chat {
- display: flex;
- flex-direction: column;
- }
- .cu-chat .cu-item {
- display: flex;
- padding: 30upx 30upx 70upx;
- position: relative;
- }
- .cu-chat .cu-item > .cu-avatar {
- width: 80upx;
- height: 80upx;
- }
- .cu-chat .cu-item > .main {
- max-width: calc(100% - 260upx);
- margin: 0 40upx;
- display: flex;
- align-items: center;
- }
- .cu-chat .cu-item > image {
- height: 320upx;
- }
- .cu-chat .cu-item > .main .content {
- padding: 20upx;
- border-radius: 6upx;
- display: inline-flex;
- max-width: 100%;
- align-items: center;
- font-size: 30upx;
- position: relative;
- min-height: 80upx;
- line-height: 40upx;
- text-align: left;
- }
- .cu-chat .cu-item > .main .content:not([class*='bg-']) {
- background-color: var(--white);
- color: var(--darkGray);
- }
- .cu-chat .cu-item .date {
- position: absolute;
- font-size: 24upx;
- color: var(--grey);
- width: calc(100% - 320upx);
- bottom: 20upx;
- left: 160upx;
- }
- .cu-chat .cu-item .action {
- padding: 0 30upx;
- display: flex;
- align-items: center;
- }
- .cu-chat .cu-item > .main .content::after {
- content: '';
- top: 27upx;
- transform: rotate(45deg);
- position: absolute;
- z-index: 100;
- display: inline-block;
- overflow: hidden;
- width: 24upx;
- height: 24upx;
- left: -12upx;
- right: initial;
- background-color: inherit;
- }
- .cu-chat .cu-item.self > .main .content::after {
- left: auto;
- right: -12upx;
- }
- .cu-chat .cu-item > .main .content::before {
- content: '';
- top: 30upx;
- transform: rotate(45deg);
- position: absolute;
- z-index: -1;
- display: inline-block;
- overflow: hidden;
- width: 24upx;
- height: 24upx;
- left: -12upx;
- right: initial;
- background-color: inherit;
- filter: blur(5upx);
- opacity: 0.3;
- }
- .cu-chat .cu-item > .main .content:not([class*='bg-'])::before {
- background-color: var(--black);
- opacity: 0.1;
- }
- .cu-chat .cu-item.self > .main .content::before {
- left: auto;
- right: -12upx;
- }
- .cu-chat .cu-item.self {
- justify-content: flex-end;
- text-align: right;
- }
- .cu-chat .cu-info {
- display: inline-block;
- margin: 20upx auto;
- font-size: 24upx;
- padding: 8upx 12upx;
- background-color: rgba(0, 0, 0, 0.2);
- border-radius: 6upx;
- color: var(--white);
- max-width: 400upx;
- line-height: 1.4;
- }
- /* ==================
- 卡片
- ==================== */
- .cu-card {
- display: block;
- overflow: hidden;
- }
- .cu-card > .cu-item {
- display: block;
- background-color: var(--white);
- overflow: hidden;
- border-radius: 10upx;
- margin: 30upx;
- }
- .cu-card > .cu-item.shadow-blur {
- overflow: initial;
- }
- .cu-card.no-card > .cu-item {
- margin: 0upx;
- border-radius: 0upx;
- }
- .cu-card .grid.grid-square {
- margin-bottom: -20upx;
- }
- .cu-card.case .image {
- position: relative;
- }
- .cu-card.case .image image {
- width: 100%;
- }
- .cu-card.case .image .cu-tag {
- position: absolute;
- right: 0;
- top: 0;
- }
- .cu-card.case .image .cu-bar {
- position: absolute;
- bottom: 0;
- width: 100%;
- background-color: transparent;
- padding: 0upx 30upx;
- }
- .cu-card.case.no-card .image {
- margin: 30upx 30upx 0;
- overflow: hidden;
- border-radius: 10upx;
- }
- .cu-card.dynamic {
- display: block;
- }
- .cu-card.dynamic > .cu-item {
- display: block;
- background-color: var(--white);
- overflow: hidden;
- }
- .cu-card.dynamic > .cu-item > .text-content {
- padding: 0 30upx 0;
- max-height: 6.4em;
- overflow: hidden;
- font-size: 30upx;
- margin-bottom: 20upx;
- }
- .cu-card.dynamic > .cu-item .square-img {
- width: 100%;
- height: 200upx;
- border-radius: 6upx;
- }
- .cu-card.dynamic > .cu-item .only-img {
- width: 100%;
- height: 320upx;
- border-radius: 6upx;
- }
- /* card.dynamic>.cu-item .comment {
- padding: 20upx;
- background-color: var(--ghostWhite);
- margin: 0 30upx 30upx;
- border-radius: 6upx;
- } */
- .cu-card.article {
- display: block;
- }
- .cu-card.article > .cu-item {
- padding-bottom: 30upx;
- }
- .cu-card.article > .cu-item .title {
- font-size: 30upx;
- font-weight: 900;
- color: var(--black);
- line-height: 100upx;
- padding: 0 30upx;
- }
- .cu-card.article > .cu-item .content {
- display: flex;
- padding: 0 30upx;
- }
- .cu-card.article > .cu-item .content > image {
- width: 240upx;
- height: 6.4em;
- margin-right: 20upx;
- border-radius: 6upx;
- }
- .cu-card.article > .cu-item .content .desc {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .cu-card.article > .cu-item .content .text-content {
- font-size: 28upx;
- color: #888;
- height: 4.8em;
- overflow: hidden;
- }
- /* ==================
- 表单
- ==================== */
- .cu-form-group {
- background-color: var(--white);
- padding: 1upx 30upx;
- display: flex;
- align-items: center;
- min-height: 100upx;
- justify-content: space-between;
- }
- .cu-form-group + .cu-form-group {
- border-top: 1upx solid #eee;
- }
- .cu-form-group .title {
- text-align: justify;
- padding-right: 30upx;
- font-size: 30upx;
- position: relative;
- height: 60upx;
- line-height: 60upx;
- }
- .cu-form-group input {
- flex: 1;
- font-size: 30upx;
- color: #555;
- padding-right: 20upx;
- }
- .cu-form-group > text[class*='cuIcon-'] {
- font-size: 36upx;
- padding: 0;
- box-sizing: border-box;
- }
- .cu-form-group textarea {
- margin: 32upx 0 30upx;
- height: 4.6em;
- width: 100%;
- line-height: 1.2em;
- flex: 1;
- font-size: 28upx;
- padding: 0;
- }
- .cu-form-group.align-start .title {
- height: 1em;
- margin-top: 32upx;
- line-height: 1em;
- }
- .cu-form-group picker {
- flex: 1;
- padding-right: 40upx;
- overflow: hidden;
- position: relative;
- }
- .cu-form-group picker .picker {
- line-height: 100upx;
- font-size: 28upx;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- width: 100%;
- text-align: right;
- }
- .cu-form-group picker::after {
- font-family: cuIcon;
- display: block;
- content: '\e6a3';
- position: absolute;
- font-size: 34upx;
- color: var(--grey);
- line-height: 100upx;
- width: 60upx;
- text-align: center;
- top: 0;
- bottom: 0;
- right: -20upx;
- margin: auto;
- }
- .cu-form-group textarea[disabled],
- .cu-form-group textarea[disabled] .placeholder {
- color: transparent;
- }
- /* ==================
- 模态窗口
- ==================== */
- .cu-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1110;
- opacity: 0;
- outline: 0;
- text-align: center;
- -ms-transform: scale(1.185);
- transform: scale(1.185);
- backface-visibility: hidden;
- perspective: 2000upx;
- background: rgba(0, 0, 0, 0.6);
- transition: all 0.3s ease-in-out 0s;
- pointer-events: none;
- }
- .cu-modal::before {
- content: '\200B';
- display: inline-block;
- height: 100%;
- vertical-align: middle;
- }
- .cu-modal.show {
- opacity: 1;
- transition-duration: 0.3s;
- -ms-transform: scale(1);
- transform: scale(1);
- overflow-x: hidden;
- overflow-y: auto;
- pointer-events: auto;
- }
- .cu-dialog {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- margin-left: auto;
- margin-right: auto;
- width: 680upx;
- max-width: 100%;
- background-color: #f8f8f8;
- border-radius: 10upx;
- overflow: hidden;
- }
- .cu-modal.bottom-modal::before {
- vertical-align: bottom;
- }
- .cu-modal.bottom-modal .cu-dialog {
- width: 100%;
- border-radius: 0;
- }
- .cu-modal.bottom-modal {
- margin-bottom: -1000upx;
- }
- .cu-modal.bottom-modal.show {
- margin-bottom: 0;
- }
- .cu-modal.drawer-modal {
- transform: scale(1);
- display: flex;
- }
- .cu-modal.drawer-modal .cu-dialog {
- height: 100%;
- min-width: 200upx;
- border-radius: 0;
- margin: initial;
- transition-duration: 0.3s;
- }
- .cu-modal.drawer-modal.justify-start .cu-dialog {
- transform: translateX(-100%);
- }
- .cu-modal.drawer-modal.justify-end .cu-dialog {
- transform: translateX(100%);
- }
- .cu-modal.drawer-modal.show .cu-dialog {
- transform: translateX(0%);
- }
- /* ==================
- 轮播
- ==================== */
- swiper .a-swiper-dot {
- display: inline-block;
- width: 16upx;
- height: 16upx;
- background: rgba(0, 0, 0, 0.3);
- border-radius: 50%;
- vertical-align: middle;
- }
- swiper[class*='-dot'] .wx-swiper-dots,
- swiper[class*='-dot'] .a-swiper-dots,
- swiper[class*='-dot'] .uni-swiper-dots {
- display: flex;
- align-items: center;
- width: 100%;
- justify-content: center;
- }
- swiper.square-dot .wx-swiper-dot,
- swiper.square-dot .a-swiper-dot,
- swiper.square-dot .uni-swiper-dot {
- background-color: var(--white);
- opacity: 0.4;
- width: 10upx;
- height: 10upx;
- border-radius: 20upx;
- margin: 0 8upx !important;
- }
- swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active,
- swiper.square-dot .a-swiper-dot.a-swiper-dot-active,
- swiper.square-dot .uni-swiper-dot.uni-swiper-dot-active {
- opacity: 1;
- width: 30upx;
- }
- swiper.round-dot .wx-swiper-dot,
- swiper.round-dot .a-swiper-dot,
- swiper.round-dot .uni-swiper-dot {
- width: 10upx;
- height: 10upx;
- position: relative;
- margin: 4upx 8upx !important;
- }
- swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after,
- swiper.round-dot .a-swiper-dot.a-swiper-dot-active::after,
- swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active::after {
- content: '';
- position: absolute;
- width: 10upx;
- height: 10upx;
- top: 0upx;
- left: 0upx;
- right: 0;
- bottom: 0;
- margin: auto;
- background-color: var(--white);
- border-radius: 20upx;
- }
- swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active,
- swiper.round-dot .a-swiper-dot.a-swiper-dot-active,
- swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active {
- width: 18upx;
- height: 18upx;
- }
- .screen-swiper {
- min-height: 375upx;
- }
- .screen-swiper image,
- .screen-swiper video,
- .swiper-item image,
- .swiper-item video {
- width: 100%;
- display: block;
- height: 100%;
- margin: 0;
- pointer-events: none;
- }
- .card-swiper {
- height: 420upx !important;
- }
- .card-swiper swiper-item {
- width: 610upx !important;
- left: 70upx;
- box-sizing: border-box;
- padding: 40upx 0upx 70upx;
- overflow: initial;
- }
- .card-swiper swiper-item .swiper-item {
- width: 100%;
- display: block;
- height: 100%;
- border-radius: 10upx;
- transform: scale(0.9);
- transition: all 0.2s ease-in 0s;
- overflow: hidden;
- }
- .card-swiper swiper-item.cur .swiper-item {
- transform: none;
- transition: all 0.2s ease-in 0s;
- }
- .tower-swiper {
- height: 420upx;
- position: relative;
- max-width: 750upx;
- overflow: hidden;
- }
- .tower-swiper .tower-item {
- position: absolute;
- width: 300upx;
- height: 380upx;
- top: 0;
- bottom: 0;
- left: 50%;
- margin: auto;
- transition: all 0.2s ease-in 0s;
- opacity: 1;
- }
- .tower-swiper .tower-item.none {
- opacity: 0;
- }
- .tower-swiper .tower-item .swiper-item {
- width: 100%;
- height: 100%;
- border-radius: 6upx;
- overflow: hidden;
- }
- /* ==================
- 步骤条
- ==================== */
- .cu-steps {
- display: flex;
- }
- scroll-view.cu-steps {
- display: block;
- white-space: nowrap;
- }
- scroll-view.cu-steps .cu-item {
- display: inline-block;
- }
- .cu-steps .cu-item {
- flex: 1;
- text-align: center;
- position: relative;
- min-width: 100upx;
- }
- .cu-steps .cu-item:not([class*='text-']) {
- color: var(--grey);
- }
- .cu-steps .cu-item [class*='cuIcon-'],
- .cu-steps .cu-item .num {
- display: block;
- font-size: 40upx;
- line-height: 80upx;
- }
- .cu-steps .cu-item::before,
- .cu-steps .cu-item::after,
- .cu-steps.steps-arrow .cu-item::before,
- .cu-steps.steps-arrow .cu-item::after {
- content: '';
- display: block;
- position: absolute;
- height: 0px;
- width: calc(100% - 80upx);
- border-bottom: 1px solid #ccc;
- left: calc(0px - (100% - 80upx) / 2);
- top: 40upx;
- z-index: 0;
- }
- .cu-steps.steps-arrow .cu-item::before,
- .cu-steps.steps-arrow .cu-item::after {
- content: '\e6a3';
- font-family: 'cuIcon';
- height: 30upx;
- border-bottom-width: 0px;
- line-height: 30upx;
- top: 0;
- bottom: 0;
- margin: auto;
- color: #ccc;
- }
- .cu-steps.steps-bottom .cu-item::before,
- .cu-steps.steps-bottom .cu-item::after {
- bottom: 40upx;
- top: initial;
- }
- .cu-steps .cu-item::after {
- border-bottom: 1px solid currentColor;
- width: 0px;
- transition: all 0.3s ease-in-out 0s;
- }
- .cu-steps .cu-item[class*='text-']::after {
- width: calc(100% - 80upx);
- color: currentColor;
- }
- .cu-steps .cu-item:first-child::before,
- .cu-steps .cu-item:first-child::after {
- display: none;
- }
- .cu-steps .cu-item .num {
- width: 40upx;
- height: 40upx;
- border-radius: 50%;
- line-height: 40upx;
- margin: 20upx auto;
- font-size: 24upx;
- border: 1px solid currentColor;
- position: relative;
- overflow: hidden;
- }
- .cu-steps .cu-item[class*='text-'] .num {
- background-color: currentColor;
- }
- .cu-steps .cu-item .num::before,
- .cu-steps .cu-item .num::after {
- content: attr(data-index);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- margin: auto;
- transition: all 0.3s ease-in-out 0s;
- transform: translateY(0upx);
- }
- .cu-steps .cu-item[class*='text-'] .num::before {
- transform: translateY(-40upx);
- color: var(--white);
- }
- .cu-steps .cu-item .num::after {
- transform: translateY(40upx);
- color: var(--white);
- transition: all 0.3s ease-in-out 0s;
- }
- .cu-steps .cu-item[class*='text-'] .num::after {
- content: '\e645';
- font-family: 'cuIcon';
- color: var(--white);
- transform: translateY(0upx);
- }
- .cu-steps .cu-item[class*='text-'] .num.err::after {
- content: '\e646';
- }
- /* ==================
- 布局
- ==================== */
- /* -- flex弹性布局 -- */
- .flex {
- display: flex;
- }
- .basis-xs {
- flex-basis: 20%;
- }
- .basis-sm {
- flex-basis: 40%;
- }
- .basis-df {
- flex-basis: 50%;
- }
- .basis-lg {
- flex-basis: 60%;
- }
- .basis-xl {
- flex-basis: 80%;
- }
- .flex-sub {
- flex: 1;
- }
- .flex-twice {
- flex: 2;
- }
- .flex-treble {
- flex: 3;
- }
- .flex-direction {
- flex-direction: column;
- }
- .flex-wrap {
- flex-wrap: wrap;
- }
- .align-start {
- align-items: flex-start;
- }
- .align-end {
- align-items: flex-end;
- }
- .align-center {
- align-items: center;
- }
- .align-stretch {
- align-items: stretch;
- }
- .self-start {
- align-self: flex-start;
- }
- .self-center {
- align-self: flex-center;
- }
- .self-end {
- align-self: flex-end;
- }
- .self-stretch {
- align-self: stretch;
- }
- .align-stretch {
- align-items: stretch;
- }
- .justify-start {
- justify-content: flex-start;
- }
- .justify-end {
- justify-content: flex-end;
- }
- .justify-center {
- justify-content: center;
- }
- .justify-between {
- justify-content: space-between;
- }
- .justify-around {
- justify-content: space-around;
- }
- /* grid布局 */
- .grid {
- display: flex;
- flex-wrap: wrap;
- }
- .grid.grid-square {
- overflow: hidden;
- }
- .grid.grid-square .cu-tag {
- position: absolute;
- right: 0;
- top: 0;
- border-bottom-left-radius: 6upx;
- padding: 6upx 12upx;
- height: auto;
- background-color: rgba(0, 0, 0, 0.5);
- }
- .grid.grid-square > div > text[class*='cuIcon-'] {
- font-size: 52upx;
- position: absolute;
- color: var(--grey);
- margin: auto;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .grid.grid-square > div {
- margin-right: 20upx;
- margin-bottom: 20upx;
- border-radius: 6upx;
- position: relative;
- overflow: hidden;
- }
- .grid.col-1.grid-square > div {
- padding-bottom: 100%;
- height: 0;
- margin-right: 0;
- }
- .grid.col-2.grid-square > div {
- padding-bottom: calc((100% - 20upx) / 2);
- height: 0;
- width: calc((100% - 20upx) / 2);
- }
- .grid.col-2.grid-square > div:nth-child(2n) {
- margin-right: 0;
- }
- .grid.col-3.grid-square > div {
- padding-bottom: calc((100% - 40upx) / 3);
- height: 0;
- width: calc((100% - 40upx) / 3);
- }
- .grid.col-3.grid-square > div:nth-child(3n) {
- margin-right: 0;
- }
- .grid.col-4.grid-square > div {
- padding-bottom: calc((100% - 60upx) / 4);
- height: 0;
- width: calc((100% - 60upx) / 4);
- }
- .grid.col-4.grid-square > div:nth-child(4n) {
- margin-right: 0;
- }
- .grid.col-5.grid-square > div {
- padding-bottom: calc((100% - 80upx) / 5);
- height: 0;
- width: calc((100% - 80upx) / 5);
- }
- .grid.col-1 > div {
- width: 100%;
- }
- .grid.col-2 > div {
- width: 50%;
- }
- .grid.col-3 > div {
- width: 33.33%;
- }
- .grid.col-4 > div {
- width: 25%;
- }
- .grid.col-5 > div {
- width: 20%;
- }
- /* -- 内外边距 -- */
- .margin-0 {
- margin: 0;
- }
- .margin-xs {
- margin: 10upx;
- }
- .margin-sm {
- margin: 20upx;
- }
- .margin {
- margin: 30upx;
- }
- .margin-lg {
- margin: 40upx;
- }
- .margin-xl {
- margin: 50upx;
- }
- .margin-top-xs {
- margin-top: 10upx;
- }
- .margin-top-sm {
- margin-top: 20upx;
- }
- .margin-top {
- margin-top: 30upx;
- }
- .margin-top-lg {
- margin-top: 40upx;
- }
- .margin-top-xl {
- margin-top: 50upx;
- }
- .margin-right-xs {
- margin-right: 10upx;
- }
- .margin-right-sm {
- margin-right: 20upx;
- }
- .margin-right {
- margin-right: 30upx;
- }
- .margin-right-lg {
- margin-right: 40upx;
- }
- .margin-right-xl {
- margin-right: 50upx;
- }
- .margin-bottom-xs {
- margin-bottom: 10upx;
- }
- .margin-bottom-sm {
- margin-bottom: 20upx;
- }
- .margin-bottom {
- margin-bottom: 30upx;
- }
- .margin-bottom-lg {
- margin-bottom: 40upx;
- }
- .margin-bottom-xl {
- margin-bottom: 50upx;
- }
- .margin-left-xs {
- margin-left: 10upx;
- }
- .margin-left-sm {
- margin-left: 20upx;
- }
- .margin-left {
- margin-left: 30upx;
- }
- .margin-left-lg {
- margin-left: 40upx;
- }
- .margin-left-xl {
- margin-left: 50upx;
- }
- .margin-lr-xs {
- margin-left: 10upx;
- margin-right: 10upx;
- }
- .margin-lr-sm {
- margin-left: 20upx;
- margin-right: 20upx;
- }
- .margin-lr {
- margin-left: 30upx;
- margin-right: 30upx;
- }
- .margin-lr-lg {
- margin-left: 40upx;
- margin-right: 40upx;
- }
- .margin-lr-xl {
- margin-left: 50upx;
- margin-right: 50upx;
- }
- .margin-tb-xs {
- margin-top: 10upx;
- margin-bottom: 10upx;
- }
- .margin-tb-sm {
- margin-top: 20upx;
- margin-bottom: 20upx;
- }
- .margin-tb {
- margin-top: 30upx;
- margin-bottom: 30upx;
- }
- .margin-tb-lg {
- margin-top: 40upx;
- margin-bottom: 40upx;
- }
- .margin-tb-xl {
- margin-top: 50upx;
- margin-bottom: 50upx;
- }
- .padding-0 {
- padding: 0;
- }
- .padding-xs {
- padding: 10upx;
- }
- .padding-sm {
- padding: 20upx;
- }
- .padding {
- padding: 30upx;
- }
- .padding-lg {
- padding: 40upx;
- }
- .padding-xl {
- padding: 50upx;
- }
- .padding-top-xs {
- padding-top: 10upx;
- }
- .padding-top-sm {
- padding-top: 20upx;
- }
- .padding-top {
- padding-top: 30upx;
- }
- .padding-top-lg {
- padding-top: 40upx;
- }
- .padding-top-xl {
- padding-top: 50upx;
- }
- .padding-right-xs {
- padding-right: 10upx;
- }
- .padding-right-sm {
- padding-right: 20upx;
- }
- .padding-right {
- padding-right: 30upx;
- }
- .padding-right-lg {
- padding-right: 40upx;
- }
- .padding-right-xl {
- padding-right: 50upx;
- }
- .padding-bottom-xs {
- padding-bottom: 10upx;
- }
- .padding-bottom-sm {
- padding-bottom: 20upx;
- }
- .padding-bottom {
- padding-bottom: 30upx;
- }
- .padding-bottom-lg {
- padding-bottom: 40upx;
- }
- .padding-bottom-xl {
- padding-bottom: 50upx;
- }
- .padding-left-xs {
- padding-left: 10upx;
- }
- .padding-left-sm {
- padding-left: 20upx;
- }
- .padding-left {
- padding-left: 30upx;
- }
- .padding-left-lg {
- padding-left: 40upx;
- }
- .padding-left-xl {
- padding-left: 50upx;
- }
- .padding-lr-xs {
- padding-left: 10upx;
- padding-right: 10upx;
- }
- .padding-lr-sm {
- padding-left: 20upx;
- padding-right: 20upx;
- }
- .padding-lr {
- padding-left: 30upx;
- padding-right: 30upx;
- }
- .padding-lr-lg {
- padding-left: 40upx;
- padding-right: 40upx;
- }
- .padding-lr-xl {
- padding-left: 50upx;
- padding-right: 50upx;
- }
- .padding-tb-xs {
- padding-top: 10upx;
- padding-bottom: 10upx;
- }
- .padding-tb-sm {
- padding-top: 20upx;
- padding-bottom: 20upx;
- }
- .padding-tb {
- padding-top: 30upx;
- padding-bottom: 30upx;
- }
- .padding-tb-lg {
- padding-top: 40upx;
- padding-bottom: 40upx;
- }
- .padding-tb-xl {
- padding-top: 50upx;
- padding-bottom: 50upx;
- }
- /* -- 浮动 -- */
- .cf::after,
- .cf::before {
- content: ' ';
- display: table;
- }
- .cf::after {
- clear: both;
- }
- .fl {
- float: left;
- }
- .fr {
- float: right;
- }
- /* ==================
- 背景
- ==================== */
- .line-red::after,
- .lines-red::after {
- border-color: var(--red);
- }
- .line-orange::after,
- .lines-orange::after {
- border-color: var(--orange);
- }
- .line-yellow::after,
- .lines-yellow::after {
- border-color: var(--yellow);
- }
- .line-olive::after,
- .lines-olive::after {
- border-color: var(--olive);
- }
- .line-green::after,
- .lines-green::after {
- border-color: var(--green);
- }
- .line-cyan::after,
- .lines-cyan::after {
- border-color: var(--cyan);
- }
- .line-blue::after,
- .lines-blue::after {
- border-color: var(--blue);
- }
- .line-purple::after,
- .lines-purple::after {
- border-color: var(--purple);
- }
- .line-mauve::after,
- .lines-mauve::after {
- border-color: var(--mauve);
- }
- .line-pink::after,
- .lines-pink::after {
- border-color: var(--pink);
- }
- .line-brown::after,
- .lines-brown::after {
- border-color: var(--brown);
- }
- .line-grey::after,
- .lines-grey::after {
- border-color: var(--grey);
- }
- .line-gray::after,
- .lines-gray::after {
- border-color: var(--gray);
- }
- .line-black::after,
- .lines-black::after {
- border-color: var(--black);
- }
- .line-white::after,
- .lines-white::after {
- border-color: var(--white);
- }
- .bg-red {
- background-color: var(--red);
- color: var(--white);
- }
- .bg-orange {
- background-color: var(--orange);
- color: var(--white);
- }
- .bg-yellow {
- background-color: var(--yellow);
- color: var(--black);
- }
- .bg-olive {
- background-color: var(--olive);
- color: var(--white);
- }
- .bg-green {
- background-color: var(--green);
- color: var(--white);
- }
- .bg-cyan {
- background-color: var(--cyan);
- color: var(--white);
- }
- .bg-blue {
- background-color: var(--blue);
- color: var(--white);
- }
- .bg-purple {
- background-color: var(--purple);
- color: var(--white);
- }
- .bg-mauve {
- background-color: var(--mauve);
- color: var(--white);
- }
- .bg-pink {
- background-color: var(--pink);
- color: var(--white);
- }
- .bg-brown {
- background-color: var(--brown);
- color: var(--white);
- }
- .bg-grey {
- background-color: var(--grey);
- color: var(--white);
- }
- .bg-gray {
- background-color: #f0f0f0;
- color: var(--darkGray);
- }
- .bg-black {
- background-color: var(--black);
- color: var(--white);
- }
- .bg-white {
- background-color: var(--white);
- color: var(--darkGray);
- }
- .bg-shadeTop {
- background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
- color: var(--white);
- }
- .bg-shadeBottom {
- background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
- color: var(--white);
- }
- .bg-red.light {
- color: var(--red);
- background-color: var(--redLight);
- }
- .bg-orange.light {
- color: var(--orange);
- background-color: var(--orangeLight);
- }
- .bg-yellow.light {
- color: var(--yellow);
- background-color: var(--yellowLight);
- }
- .bg-olive.light {
- color: var(--olive);
- background-color: var(--oliveLight);
- }
- .bg-green.light {
- color: var(--green);
- background-color: var(--greenLight);
- }
- .bg-cyan.light {
- color: var(--cyan);
- background-color: var(--cyanLight);
- }
- .bg-blue.light {
- color: var(--blue);
- background-color: var(--blueLight);
- }
- .bg-purple.light {
- color: var(--purple);
- background-color: var(--purpleLight);
- }
- .bg-mauve.light {
- color: var(--mauve);
- background-color: var(--mauveLight);
- }
- .bg-pink.light {
- color: var(--pink);
- background-color: var(--pinkLight);
- }
- .bg-brown.light {
- color: var(--brown);
- background-color: var(--brownLight);
- }
- .bg-grey.light {
- color: var(--grey);
- background-color: var(--greyLight);
- }
- .bg-gradual-red {
- background-image: var(--gradualRed);
- color: var(--white);
- }
- .bg-gradual-orange {
- background-image: var(--gradualOrange);
- color: var(--white);
- }
- .bg-gradual-green {
- background-image: var(--gradualGreen);
- color: var(--white);
- }
- .bg-gradual-purple {
- background-image: var(--gradualPurple);
- color: var(--white);
- }
- .bg-gradual-pink {
- background-image: var(--gradualPink);
- color: var(--white);
- }
- .bg-gradual-blue {
- background-image: var(--gradualBlue);
- color: var(--white);
- }
- .shadow[class*='-red'] {
- box-shadow: var(--ShadowSize) var(--redShadow);
- }
- .shadow[class*='-orange'] {
- box-shadow: var(--ShadowSize) var(--orangeShadow);
- }
- .shadow[class*='-yellow'] {
- box-shadow: var(--ShadowSize) var(--yellowShadow);
- }
- .shadow[class*='-olive'] {
- box-shadow: var(--ShadowSize) var(--oliveShadow);
- }
- .shadow[class*='-green'] {
- box-shadow: var(--ShadowSize) var(--greenShadow);
- }
- .shadow[class*='-cyan'] {
- box-shadow: var(--ShadowSize) var(--cyanShadow);
- }
- .shadow[class*='-blue'] {
- box-shadow: var(--ShadowSize) var(--blueShadow);
- }
- .shadow[class*='-purple'] {
- box-shadow: var(--ShadowSize) var(--purpleShadow);
- }
- .shadow[class*='-mauve'] {
- box-shadow: var(--ShadowSize) var(--mauveShadow);
- }
- .shadow[class*='-pink'] {
- box-shadow: var(--ShadowSize) var(--pinkShadow);
- }
- .shadow[class*='-brown'] {
- box-shadow: var(--ShadowSize) var(--brownShadow);
- }
- .shadow[class*='-grey'] {
- box-shadow: var(--ShadowSize) var(--greyShadow);
- }
- .shadow[class*='-gray'] {
- box-shadow: var(--ShadowSize) var(--grayShadow);
- }
- .shadow[class*='-black'] {
- box-shadow: var(--ShadowSize) var(--blackShadow);
- }
- .shadow[class*='-white'] {
- box-shadow: var(--ShadowSize) var(--blackShadow);
- }
- .text-shadow[class*='-red'] {
- text-shadow: var(--ShadowSize) var(--redShadow);
- }
- .text-shadow[class*='-orange'] {
- text-shadow: var(--ShadowSize) var(--orangeShadow);
- }
- .text-shadow[class*='-yellow'] {
- text-shadow: var(--ShadowSize) var(--yellowShadow);
- }
- .text-shadow[class*='-olive'] {
- text-shadow: var(--ShadowSize) var(--oliveShadow);
- }
- .text-shadow[class*='-green'] {
- text-shadow: var(--ShadowSize) var(--greenShadow);
- }
- .text-shadow[class*='-cyan'] {
- text-shadow: var(--ShadowSize) var(--cyanShadow);
- }
- .text-shadow[class*='-blue'] {
- text-shadow: var(--ShadowSize) var(--blueShadow);
- }
- .text-shadow[class*='-purple'] {
- text-shadow: var(--ShadowSize) var(--purpleShadow);
- }
- .text-shadow[class*='-mauve'] {
- text-shadow: var(--ShadowSize) var(--mauveShadow);
- }
- .text-shadow[class*='-pink'] {
- text-shadow: var(--ShadowSize) var(--pinkShadow);
- }
- .text-shadow[class*='-brown'] {
- text-shadow: var(--ShadowSize) var(--brownShadow);
- }
- .text-shadow[class*='-grey'] {
- text-shadow: var(--ShadowSize) var(--greyShadow);
- }
- .text-shadow[class*='-gray'] {
- text-shadow: var(--ShadowSize) var(--grayShadow);
- }
- .text-shadow[class*='-black'] {
- text-shadow: var(--ShadowSize) var(--blackShadow);
- }
- .bg-img {
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
- }
- .bg-mask {
- background-color: var(--black);
- position: relative;
- }
- .bg-mask::after {
- content: '';
- border-radius: inherit;
- width: 100%;
- height: 100%;
- display: block;
- background-color: rgba(0, 0, 0, 0.4);
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- }
- .bg-mask div,
- .bg-mask cover-view {
- z-index: 5;
- position: relative;
- }
- .bg-video {
- position: relative;
- }
- .bg-video video {
- display: block;
- height: 100%;
- width: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- position: absolute;
- top: 0;
- z-index: 0;
- pointer-events: none;
- }
- /* ==================
- 文本
- ==================== */
- .text-xs {
- font-size: 20upx;
- }
- .text-sm {
- font-size: 24upx;
- }
- .text-df {
- font-size: 28upx;
- }
- .text-lg {
- font-size: 32upx;
- }
- .text-xl {
- font-size: 36upx;
- }
- .text-xxl {
- font-size: 44upx;
- }
- .text-sl {
- font-size: 80upx;
- }
- .text-xsl {
- font-size: 120upx;
- }
- .text-Abc {
- text-transform: Capitalize;
- }
- .text-ABC {
- text-transform: Uppercase;
- }
- .text-abc {
- text-transform: Lowercase;
- }
- .text-price::before {
- content: '¥';
- font-size: 80%;
- margin-right: 4upx;
- }
- .text-cut {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .text-bold {
- font-weight: bold;
- }
- .text-center {
- text-align: center;
- }
- .text-content {
- line-height: 1.6;
- }
- .text-left {
- text-align: left;
- }
- .text-right {
- text-align: right;
- }
- .text-red,
- .line-red,
- .lines-red {
- color: var(--red);
- }
- .text-orange,
- .line-orange,
- .lines-orange {
- color: var(--orange);
- }
- .text-yellow,
- .line-yellow,
- .lines-yellow {
- color: var(--yellow);
- }
- .text-olive,
- .line-olive,
- .lines-olive {
- color: var(--olive);
- }
- .text-green,
- .line-green,
- .lines-green {
- color: var(--green);
- }
- .text-cyan,
- .line-cyan,
- .lines-cyan {
- color: var(--cyan);
- }
- .text-blue,
- .line-blue,
- .lines-blue {
- color: var(--blue);
- }
- .text-purple,
- .line-purple,
- .lines-purple {
- color: var(--purple);
- }
- .text-mauve,
- .line-mauve,
- .lines-mauve {
- color: var(--mauve);
- }
- .text-pink,
- .line-pink,
- .lines-pink {
- color: var(--pink);
- }
- .text-brown,
- .line-brown,
- .lines-brown {
- color: var(--brown);
- }
- .text-grey,
- .line-grey,
- .lines-grey {
- color: var(--grey);
- }
- .text-gray,
- .line-gray,
- .lines-gray {
- color: var(--gray);
- }
- .text-black,
- .line-black,
- .lines-black {
- color: var(--black);
- }
- .text-white,
- .line-white,
- .lines-white {
- color: var(--white);
- }
|