123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910 |
- // Function
- //-- Must be defined before variables
- @function rem($multiplier) {
- $font-size: 10px;
- @return $multiplier * $font-size;
- }
- // Typography
- // ------------------------------
- $font-family: Roboto, 'Helvetica Neue', sans-serif !default;
- $font-size: 10px;
- $display-4-font-size-base: rem(11.20) !default;
- $display-3-font-size-base: rem(5.600) !default;
- $display-2-font-size-base: rem(4.500) !default;
- $display-1-font-size-base: rem(3.400) !default;
- $headline-font-size-base: rem(2.400) !default;
- $title-font-size-base: rem(2.000) !default;
- $subhead-font-size-base: rem(1.600) !default;
- $body-font-size-base: rem(1.400) !default;
- $caption-font-size-base: rem(1.200) !default;
- // Layout
- // ------------------------------
- $baseline-grid: 8px !default;
- $layout-breakpoint-sm: 600px !default;
- $layout-breakpoint-md: 960px !default;
- $layout-breakpoint-lg: 1200px !default;
- $layout-gutter-width: ($baseline-grid * 2) !default;
- // App bar variables
- $app-bar-height: 64px;
- $toast-height: $baseline-grid * 3 !default;
- $toast-margin: $baseline-grid * 1 !default;
- // Whiteframes
- $shadow-key-umbra-opacity: 0.2;
- $shadow-key-penumbra-opacity: 0.14;
- $shadow-ambient-shadow-opacity: 0.12;
- // NOTE(shyndman): gulp-sass seems to be failing if I split the shadow defs across
- // multiple lines. Ugly. Sorry.
- $whiteframe-shadow-1dp: 0px 1px 3px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 1px 1px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 2px 1px -1px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-2dp: 0px 1px 5px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 2px 2px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 1px -2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-3dp: 0px 1px 8px 0px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 3px 4px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 3px -2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-4dp: 0px 2px 4px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 4px 5px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 10px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-5dp: 0px 3px 5px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 5px 8px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 14px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-6dp: 0px 3px 5px -1px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 6px 10px 0px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 1px 18px 0px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-7dp: 0px 4px 5px -2px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 7px 10px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 2px 16px 1px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-8dp: 0px 5px 5px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 8px 10px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 14px 2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-9dp: 0px 5px 6px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 9px 12px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 3px 16px 2px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-10dp: 0px 6px 6px -3px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 10px 14px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 4px 18px 3px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-11dp: 0px 6px 7px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 11px 15px 1px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 4px 20px 3px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-12dp: 0px 7px 8px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 12px 17px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 22px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-13dp: 0px 7px 8px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 13px 19px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 24px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-14dp: 0px 7px 9px -4px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 14px 21px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 5px 26px 4px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-15dp: 0px 8px 9px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 15px 22px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 28px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-16dp: 0px 8px 10px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 16px 24px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 30px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-17dp: 0px 8px 11px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 17px 26px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 6px 32px 5px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-18dp: 0px 9px 11px -5px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 18px 28px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 7px 34px 6px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-19dp: 0px 9px 12px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 19px 29px 2px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 7px 36px 6px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-20dp: 0px 10px 13px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 20px 31px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 38px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-21dp: 0px 10px 13px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 21px 33px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 40px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-22dp: 0px 10px 14px -6px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 22px 35px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 8px 42px 7px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-23dp: 0px 11px 14px -7px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 23px 36px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 9px 44px 8px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- $whiteframe-shadow-24dp: 0px 11px 15px -7px rgba(0, 0, 0, $shadow-key-umbra-opacity), 0px 24px 38px 3px rgba(0, 0, 0, $shadow-key-penumbra-opacity), 0px 9px 46px 8px rgba(0, 0, 0, $shadow-ambient-shadow-opacity) !default;
- // Z-indexes
- //--------------------------------------------
- $z-index-tooltip: 100 !default;
- $z-index-menu: 99 !default;
- $z-index-select: 99 !default;
- $z-index-dialog: 80 !default;
- $z-index-toast: 90 !default;
- $z-index-bottom-sheet: 70 !default;
- $z-index-scroll-mask: 65 !default;
- $z-index-sidenav: 60 !default;
- $z-index-backdrop: 50 !default;
- $z-index-fab: 20 !default;
- // Easing Curves
- //--------------------------------------------
- $swift-ease-out-duration: 0.4s !default;
- $swift-ease-out-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
- $swift-ease-out: all $swift-ease-out-duration $swift-ease-out-timing-function !default;
- $swift-ease-in-duration: 0.3s !default;
- $swift-ease-in-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2) !default;
- $swift-ease-in: all $swift-ease-in-duration $swift-ease-in-timing-function !default;
- $swift-ease-in-out-duration: 0.5s !default;
- $swift-ease-in-out-timing-function: cubic-bezier(0.35, 0, 0.25, 1) !default;
- $swift-ease-in-out: all $swift-ease-in-out-duration $swift-ease-in-out-timing-function !default;
- $swift-linear-duration: 0.08s !default;
- $swift-linear-timing-function: linear !default;
- $swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
- // Fab Buttons (shared between buttons.scss and fab*.scss)
- // -------------------------------------------
- $button-fab-width: rem(5.600) !default;
- $button-fab-height: rem(5.600) !default;
- $button-fab-padding: rem(1.60) !default;
- @mixin margin-selectors($before:1em, $after:1em, $start:0px, $end:0px) {
- -webkit-margin-before: $before;
- -webkit-margin-after: $after;
- -webkit-margin-start: $start;
- -webkit-margin-end: $end;
- }
- @mixin not-selectable($value:none) {
- -webkit-touch-callout: $value;
- -webkit-user-select: $value;
- -khtml-user-select: $value;
- -moz-user-select: $value;
- -ms-user-select: $value;
- user-select: $value;
- }
- @mixin input-placeholder-color($color) {
- &::-webkit-input-placeholder,
- &::-moz-placeholder,
- &:-moz-placeholder,
- &:-ms-input-placeholder {
- color: $color;
- }
- }
- @mixin pie-clearfix {
- &:after {
- content: '';
- display: table;
- clear: both;
- }
- }
- @mixin md-shadow-bottom-z-1() {
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
- }
- @mixin md-shadow-bottom-z-2() {
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
- }
- // Mixin for a "flat" input that can be used for components that contain an input
- // (datepicker, autocomplete).
- @mixin md-flat-input() {
- font-size: 14px;
- box-sizing: border-box;
- border: none;
- box-shadow: none;
- outline: none;
- background: transparent;
- // The the "clear X" that IE adds to input[type="search"]
- &::-ms-clear {
- display: none;
- }
- }
- // Typography mixins
- @mixin md-title() {
- font-size: $title-font-size-base;
- font-weight: 500;
- letter-spacing: 0.005em;
- }
- @mixin md-body-1() {
- font-size: $body-font-size-base;
- font-weight: 400;
- letter-spacing: 0.010em;
- line-height: rem(2);
- }
- @mixin md-body-2() {
- font-size: $body-font-size-base;
- font-weight: 500;
- letter-spacing: 0.010em;
- line-height: rem(2.4);
- }
- @mixin md-subhead() {
- font-size: $subhead-font-size-base;
- font-weight: 400;
- letter-spacing: 0.010em;
- line-height: rem(2.4);
- }
- @function map-to-string($map) {
- $map-str: '{';
- $keys: map-keys($map);
- $len: length($keys);
- @for $i from 1 through $len {
- $key: nth($keys, $i);
- $value: map-get($map, $key);
- $map-str: $map-str + '_' + $key + '_: _' + map-get($map, $key) + '_';
- @if $i != $len {
- $map-str: $map-str + ',';
- }
- }
- @return $map-str + '}';
- }
- // mixin definition ; sets LTR and RTL within the same style call
- // @see https://css-tricks.com/almanac/properties/d/direction/
- @mixin rtl($prop, $value, $rtl-value) {
- #{$prop}: $value;
- html[dir=rtl] & {
- #{$prop}: $rtl-value;
- unicode-bidi: embed;
- }
- body[dir=rtl] & {
- #{$prop}: $rtl-value;
- unicode-bidi: embed;
- }
- bdo[dir=rtl] {
- direction: rtl;
- unicode-bidi: bidi-override;
- }
- bdo[dir=ltr] {
- direction: ltr;
- unicode-bidi: bidi-override;
- }
- }
- // Position a FAB button.
- @mixin fab-position($spot, $top: auto, $right: auto, $bottom: auto, $left: auto) {
- &.md-fab-#{$spot} {
- top: $top;
- right: $right;
- bottom: $bottom;
- left: $left;
- position: absolute;
- }
- }
- @mixin fab-all-positions() {
- @include fab-position(bottom-right, auto, ($button-fab-width - $button-fab-padding)/2, ($button-fab-height - $button-fab-padding)/2, auto);
- @include fab-position(bottom-left, auto, auto, ($button-fab-height - $button-fab-padding)/2, ($button-fab-width - $button-fab-padding)/2);
- @include fab-position(top-right, ($button-fab-height - $button-fab-padding)/2, ($button-fab-width - $button-fab-padding)/2, auto, auto);
- @include fab-position(top-left, ($button-fab-height - $button-fab-padding)/2, auto, auto, ($button-fab-width - $button-fab-padding)/2);
- }
- html, body {
- height: 100%;
- color: rgba(0,0,0,0.87);
- background: white;
- position: relative;
- }
- body {
- margin: 0;
- padding: 0;
- }
- [tabindex='-1']:focus {
- outline: none;
- }
- .inset {
- padding: 10px;
- }
- button.md-no-style {
- font-weight: normal;
- background-color: inherit;
- text-align: left;
- border: none;
- padding: 0;
- margin: 0;
- }
- select,
- button,
- textarea,
- input {
- vertical-align: baseline;
- }
- // Fix Android 4.0 button bugs
- input[type="reset"],
- input[type="submit"],
- html input[type="button"],
- button {
- cursor: pointer;
- -webkit-appearance: button;
- &[disabled] {
- cursor: default;
- }
- }
- textarea {
- vertical-align: top;
- overflow: auto;
- }
- input {
- &[type="search"] {
- -webkit-appearance: textfield;
- box-sizing: content-box;
- -webkit-box-sizing: content-box;
- &::-webkit-search-decoration,
- &::-webkit-search-cancel-button {
- -webkit-appearance: none;
- }
- }
- }
- .md-visually-hidden {
- border: 0;
- clip: rect(0 0 0 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- text-transform: none;
- width: 1px;
- }
- .md-shadow {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- border-radius: inherit;
- pointer-events: none;
- }
- .md-shadow-bottom-z-1 {
- @include md-shadow-bottom-z-1();
- }
- .md-shadow-bottom-z-2 {
- @include md-shadow-bottom-z-2();
- }
- .md-shadow-animated.md-shadow {
- transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
- }
- /*
- * A container inside of a rippling element (eg a button),
- * which contains all of the individual ripples
- */
- .md-ripple-container {
- pointer-events: none;
- position: absolute;
- overflow: hidden;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- transition: all 0.55s $swift-ease-out-timing-function;
- }
- .md-ripple {
- position: absolute;
- transform: translate(-50%, -50%) scale(0);
- transform-origin: 50% 50%;
- opacity: 0;
- border-radius: 50%;
- &.md-ripple-placed {
- $sizeDuration: 0.45s * 2;
- transition: margin $sizeDuration $swift-ease-out-timing-function,
- border $sizeDuration $swift-ease-out-timing-function,
- width $sizeDuration $swift-ease-out-timing-function,
- height $sizeDuration $swift-ease-out-timing-function,
- opacity $sizeDuration $swift-ease-out-timing-function,
- transform $sizeDuration $swift-ease-out-timing-function;
- }
- &.md-ripple-scaled {
- transform: translate(-50%, -50%) scale(1);
- }
- &.md-ripple-active, &.md-ripple-full, &.md-ripple-visible {
- opacity: 0.20;
- }
- }
- .md-padding {
- padding: 8px;
- }
- .md-margin {
- margin: 8px;
- }
- .md-scroll-mask {
- position: absolute;
- background-color: transparent;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- > .md-scroll-mask-bar {
- display: block;
- position: absolute;
- background-color: #fafafa;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: $z-index-scroll-mask;
- box-shadow: inset 0px 0px 1px rgba(0, 0, 0, 0.3)
- }
- }
- @media (min-width: $layout-breakpoint-sm) {
- .md-padding {
- padding: 16px;
- }
- }
- // Global page styles
- //
- // [2] Ensure the page always fills at least the entire height of the viewport.
- // [3] Prevent iOS text size adjust after orientation change, without disabling user zoom
- // [4] Fonts on OSX will look more consistent with other systems that do not
- // render text using sub-pixel anti-aliasing.
- html, body {
- -webkit-tap-highlight-color: rgba(0,0,0,0);
- -webkit-touch-callout: none;
- min-height: 100%; // [2]
- -webkit-text-size-adjust: 100%; // [3]
- -ms-text-size-adjust: 100%; // [3]
- -webkit-font-smoothing: antialiased; // [4]
- -moz-osx-font-smoothing: grayscale; // [4]
- }
- md-select, md-card, md-list, md-toolbar,
- ul, ol, p, h1, h2, h3, h4, h5, h6 {
- //text-rendering: optimizeLegibility;
- }
- /************
- * Headings
- ************/
- .md-display-4 {
- font-size: $display-4-font-size-base;
- font-weight: 300;
- letter-spacing: -0.010em;
- line-height: $display-4-font-size-base;
- }
- .md-display-3 {
- font-size: $display-3-font-size-base;
- font-weight: 400;
- letter-spacing: -0.005em;
- line-height: $display-3-font-size-base;
- }
- .md-display-2 {
- font-size: $display-2-font-size-base;
- font-weight: 400;
- line-height: rem(6.4);
- }
- .md-display-1 {
- font-size: $display-1-font-size-base;
- font-weight: 400;
- line-height: rem(4);
- }
- .md-headline {
- font-size: $headline-font-size-base;
- font-weight: 400;
- line-height: rem(3.2);
- }
- .md-title {
- @include md-title();
- }
- .md-subhead {
- @include md-subhead();
- }
- /************
- * Body Copy
- ************/
- .md-body-1 {
- @include md-body-1();
- }
- .md-body-2 {
- @include md-body-2();
- }
- .md-caption {
- font-size: $caption-font-size-base;
- letter-spacing: 0.020em;
- }
- .md-button {
- letter-spacing: 0.010em;
- }
- /************
- * Defaults
- ************/
- button,
- select,
- html,
- textarea,
- input {
- font-family: $font-family;
- }
- select,
- button,
- textarea,
- input {
- font-size: 100%;
- }
- /*
- *
- * Responsive attributes
- *
- * References:
- * 1) https://scotch.io/tutorials/a-visual-guide-to-css3-flexbox-properties#flex
- * 2) https://css-tricks.com/almanac/properties/f/flex/
- * 3) https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
- * 4) http://godban.com.ua/projects/flexgrid
- *
- */
- @-moz-document url-prefix() {
- .layout-fill {
- margin: 0;
- width: 100%;
- min-height: 100%;
- height: 100%;
- }
- }
- @mixin flex-order-for-name($sizes:null) {
- @if $sizes == null {
- $sizes : '';
- .flex-order {
- order : 0;
- }
- }
- @for $i from 0 through 19 {
- $order : '';
- $suffix : '';
- @each $s in $sizes {
- @if $s != '' { $suffix : '#{$s}-#{$i}'; }
- @else { $suffix : '#{$i}'; }
- $order : '.flex-order-#{$suffix}';
- }
- #{$order} {
- order: #{$i};
- }
- }
- }
- @mixin offset-for-name($sizes:null) {
- @if $sizes == null { $sizes : ''; }
- @for $i from 0 through 19 {
- $offsets : '';
- $suffix : '';
- @each $s in $sizes {
- @if $s != '' { $suffix : '#{$s}-#{$i * 5}'; }
- @else { $suffix : '#{$i * 5}'; }
- $offsets : '.offset-#{$suffix}, .flex-offset-#{$suffix}';
- }
- #{$offsets} {
- margin-left: #{$i * 5 + '%'};
- }
- }
- @each $i in 33, 34 {
- $offsets : '';
- $suffix : '';
- @each $s in $sizes {
- @if $s != '' { $suffix : '#{$s}-#{$i}'; }
- @else { $suffix : '#{$i}'; }
- $offsets : '.offset-#{$suffix}, .flex-offset-#{$suffix} ';
- }
- #{$offsets} {
- margin-left: #{$i+'%'};
- }
- }
- @each $i in 66, 67 {
- $offsets : '';
- $suffix : '';
- @each $s in $sizes {
- @if $s != '' { $suffix : '#{$s}-#{$i}'; }
- @else { $suffix : '#{$i}'; }
- $offsets : '.offset-#{$suffix}, .flex-offset-#{$suffix} ';
- }
- #{$offsets} {
- margin-left: #{$i+'%'};
- }
- }
- }
- @mixin layout-for-name($name: null) {
- @if $name == null { $name : ''; }
- @if $name != '' { $name : '-#{$name}'; }
- .layout#{$name}, .layout#{$name}-column, .layout#{$name}-row, {
- box-sizing: border-box;
- display: -webkit-box;
- display: -webkit-flex;
- display: -moz-box;
- display: -ms-flexbox;
- display: flex;
- }
- .layout#{$name}-column { flex-direction: column; }
- .layout#{$name}-row { flex-direction: row; }
- }
- @mixin flex-properties-for-name($name: null) {
- $flexName: 'flex';
- @if $name != null {
- $flexName: 'flex-#{$name}';
- $name : '-#{$name}';
- } @else {
- $name : '';
- }
- .#{$flexName} { flex: 1; box-sizing: border-box; } // === flex: 1 1 0%;
- .#{$flexName}-grow { flex: 1 1 100%; box-sizing: border-box; }
- .#{$flexName}-initial { flex: 0 1 auto; box-sizing: border-box; }
- .#{$flexName}-auto { flex: 1 1 auto; box-sizing: border-box; }
- .#{$flexName}-none { flex: 0 0 auto; box-sizing: border-box; }
- // (1-20) * 5 = 0-100%
- @for $i from 0 through 20 {
- $value : #{$i * 5 + '%'};
- .#{$flexName}-#{$i * 5} {
- flex: 0 0 #{$value};
- max-width: #{$value};
- max-height: 100%;
- box-sizing: border-box;
- }
- .layout-row > .#{$flexName}-#{$i * 5},
- .layout#{$name}-row > .#{$flexName}-#{$i * 5} {
- flex: 0 0 #{$value};
- max-width: #{$value};
- max-height: 100%;
- box-sizing: border-box;
- }
- .layout-column > .#{$flexName}-#{$i * 5},
- .layout#{$name}-column > .#{$flexName}-#{$i * 5} {
- flex: 0 0 #{$value};
- max-width: 100%;
- max-height: #{$value};
- box-sizing: border-box;
- }
- }
- .layout-row, .layout#{$name}-row {
- > .#{$flexName}-33 , > .#{$flexName}-33 { flex: 0 0 33%; max-width: 33%; max-height: 100%; box-sizing: border-box; }
- > .#{$flexName}-34 , > .#{$flexName}-34 { flex: 0 0 34%; max-width: 34%; max-height: 100%; box-sizing: border-box; }
- > .#{$flexName}-66 , > .#{$flexName}-66 { flex: 0 0 66%; max-width: 66%; max-height: 100%; box-sizing: border-box; }
- > .#{$flexName}-67 , > .#{$flexName}-67 { flex: 0 0 67%; max-width: 67%; max-height: 100%; box-sizing: border-box; }
- }
- .layout-column, .layout#{$name}-column {
- > .#{$flexName}-33 , > .#{$flexName}-33 { flex: 0 0 33%; max-width: 100%; max-height: 33%; box-sizing: border-box; }
- > .#{$flexName}-34 , > .#{$flexName}-34 { flex: 0 0 34%; max-width: 100%; max-height: 34%; box-sizing: border-box; }
- > .#{$flexName}-66 , > .#{$flexName}-66 { flex: 0 0 66%; max-width: 100%; max-height: 66%; box-sizing: border-box; }
- > .#{$flexName}-67 , > .#{$flexName}-67 { flex: 0 0 67%; max-width: 100%; max-height: 67%; box-sizing: border-box; }
- }
- }
- @mixin layout-align-for-name($suffix: null) {
- // Alignment attributes for layout containers' children
- // Arrange on the Main Axis
- // center, start, end, space-between, space-around
- // flex-start is the default for justify-content
- // ------------------------------
- $name: 'layout-align';
- @if $suffix != null {
- $name: 'layout-align-#{$suffix}';
- }
- // Main Axis Center
- .#{$name}-center, //stretch
- .#{$name}-center-center,
- .#{$name}-center-start,
- .#{$name}-center-end,
- {
- justify-content: center;
- }
- // Main Axis End
- .#{$name}-end, //stretch
- .#{$name}-end-center,
- .#{$name}-end-start,
- .#{$name}-end-end,
- {
- justify-content: flex-end;
- }
- // Main Axis Space Around
- .#{$name}-space-around, //stretch
- .#{$name}-space-around-center,
- .#{$name}-space-around-start,
- .#{$name}-space-around-end,
- {
- justify-content: space-around;
- }
- // Main Axis Space Between
- .#{$name}-space-between, //stretch
- .#{$name}-space-between-center,
- .#{$name}-space-between-start,
- .#{$name}-space-between-end,
- {
- justify-content: space-between;
- }
- // Arrange on the Cross Axis
- // center, start, end
- // stretch is the default for align-items
- // ------------------------------
- // Cross Axis Start
- .#{$name}-center-start,
- .#{$name}-start-start,
- .#{$name}-end-start,
- .#{$name}-space-between-start,
- .#{$name}-space-around-start,
- {
- align-items: flex-start;
- }
- // Cross Axis Center
- .#{$name}-center-center,
- .#{$name}-start-center,
- .#{$name}-end-center,
- .#{$name}-space-between-center,
- .#{$name}-space-around-center,
- {
- align-items: center;
- max-width: 100%;
- }
- // Cross Axis Center IE overflow fix
- .#{$name}-center-center > *,
- .#{$name}-start-center > *,
- .#{$name}-end-center > *,
- .#{$name}-space-between-center > *,
- .#{$name}-space-around-center > *,
- {
- max-width: 100%;
- box-sizing: border-box;
- }
- // Cross Axis End
- .#{$name}-center-end,
- .#{$name}-start-end,
- .#{$name}-end-end,
- .#{$name}-space-between-end,
- .#{$name}-space-around-end,
- {
- align-items: flex-end;
- }
- }
- @mixin layout-padding-margin() {
- .layout-padding > .flex-sm, .layout-padding > .flex-lt-md {
- padding: $layout-gutter-width / 4;
- }
- .layout-padding,
- .layout-padding > .flex,
- .layout-padding > .flex-gt-sm,
- .layout-padding > .flex-md,
- .layout-padding > .flex-lt-lg
- {
- padding: $layout-gutter-width / 2;
- }
- .layout-padding > .flex-gt-md,
- .layout-padding > .flex-lg
- {
- padding: $layout-gutter-width / 1;
- }
- .layout-margin > .flex-sm,
- .layout-margin > .flex-lt-md
- {
- margin: $layout-gutter-width / 4;
- }
- .layout-margin,
- .layout-margin > .flex,
- .layout-margin > .flex-gt-sm,
- .layout-margin > .flex-md,
- .layout-margin > .flex-lt-lg
- {
- margin: $layout-gutter-width / 2;
- }
- .layout-margin > .flex-gt-md,
- .layout-margin > .flex-lg
- {
- margin: $layout-gutter-width / 1;
- }
- .layout-wrap {
- flex-wrap: wrap;
- }
- .layout-nowrap {
- flex-wrap: nowrap;
- }
- .layout-fill {
- margin: 0;
- width: 100%;
- min-height: 100%;
- height: 100%;
- }
- }
- @mixin layouts_for_breakpoint($name:null) {
- @include flex-order-for-name($name);
- @include offset-for-name($name);
- @include layout-align-for-name($name);
- @include flex-properties-for-name($name);
- @include layout-for-name($name);
- }
- /*
- * Apply Mixins to create Layout/Flexbox styles
- *
- */
- @include layouts_for_breakpoint();
- @include layout-padding-margin();
- /**
- * `hide-gt-sm show-gt-lg` should hide from 600px to 1200px
- * `show-md hide-gt-sm` should show from 0px to 960px and hide at >960px
- * `hide-gt-md show-gt-sm` should show everywhere (show overrides hide)`
- *
- * hide means hide everywhere
- * Sizes:
- * 0 <= size < 600 Phone
- * 600 <= size < 960 Tablet
- * 960 <= size < 1200 Tablet-Landscape
- */
- @media (max-width: $layout-breakpoint-sm - 1) {
- // SMALL SCREEN
- .hide-sm, .hide {
- &:not(.show-sm):not(.show) {
- display: none;
- }
- }
- @include layouts_for_breakpoint(sm);
- }
- @media (min-width: $layout-breakpoint-sm) {
- // BIGGER THAN SMALL SCREEN
- @include layouts_for_breakpoint(gt-sm);
- }
- @media (min-width: $layout-breakpoint-sm) and (max-width: $layout-breakpoint-md - 1) {
- // MEDIUM SCREEN
- .hide, .hide-gt-sm {
- &:not(.show-gt-sm):not(.show-md):not(.show) {
- display: none;
- }
- }
- .hide-md:not(.show-md):not(.show) {
- display: none;
- }
- @include layouts_for_breakpoint(md);
- }
- @media (min-width: $layout-breakpoint-md) {
- // BIGGER THAN MEDIUM SCREEN
- @include layouts_for_breakpoint(gt-md);
- }
- @media (min-width: $layout-breakpoint-md) and (max-width: $layout-breakpoint-lg - 1) {
- // LARGE SCREEN
- .hide, .hide-gt-sm, .hide-gt-md {
- &:not(.show-gt-sm):not(.show-gt-md):not(.show-lg):not(.show) {
- display: none;
- }
- }
- .hide-lg:not(.show-lg):not(.show) {
- display: none;
- }
- @include layouts_for_breakpoint(lg);
- }
- @media (min-width: $layout-breakpoint-lg) {
- // BIGGER THAN LARGE SCREEN
- .hide-gt-sm, .hide-gt-md, .hide-gt-lg, .hide {
- &:not(.show-gt-sm):not(.show-gt-md):not(.show-gt-lg):not(.show) {
- display: none;
- }
- }
- @include layouts_for_breakpoint(gt-lg);
- }
- $autocomplete-option-height: 48px;
- $input-container-padding: 2px !default;
- $input-error-height: 24px !default;
- @keyframes md-autocomplete-list-out {
- 0% {
- animation-timing-function: linear;
- }
- 50% {
- opacity: 0;
- height: 40px;
- animation-timing-function: ease-in;
- }
- 100% {
- height: 0;
- opacity: 0;
- }
- }
- @keyframes md-autocomplete-list-in {
- 0% {
- opacity: 0;
- height: 0;
- animation-timing-function: ease-out;
- }
- 50% {
- opacity: 0;
- height: 40px;
- }
- 100% {
- opacity: 1;
- height: 40px;
- }
- }
- md-autocomplete {
- border-radius: 2px;
- display: block;
- height: 40px;
- position: relative;
- overflow: visible;
- min-width: 190px;
- &[disabled] {
- input {
- cursor: not-allowed;
- }
- }
- &[md-floating-label] {
- border-radius: 0;
- background: transparent;
- height: auto;
- md-input-container {
- padding-bottom: $input-container-padding + $input-error-height;
- // When we have ng-messages, remove the input error height from our bottom padding, since the
- // ng-messages wrapper has a min-height of 1 error (so we don't adjust height as often; see
- // input.scss file)
- &.md-input-has-messages {
- padding-bottom: $input-container-padding;
- }
- }
- md-autocomplete-wrap {
- height: auto;
- }
- button {
- position: absolute;
- top: auto;
- bottom: 0;
- right: 0;
- width: 30px;
- height: 30px;
- }
- }
- md-autocomplete-wrap {
- display: block;
- position: relative;
- overflow: visible;
- height: 40px;
- &.md-menu-showing {
- z-index: $z-index-backdrop + 1;
- }
- md-progress-linear {
- position: absolute;
- bottom: -2px;
- left: 0;
- .md-mode-indeterminate {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 3px;
- transition: none;
- .md-container {
- transition: none;
- height: 3px;
- }
- &.ng-enter {
- transition: opacity 0.15s linear;
- &.ng-enter-active {
- opacity: 1;
- }
- }
- &.ng-leave {
- transition: opacity 0.15s linear;
- &.ng-leave-active {
- opacity: 0;
- }
- }
- }
- }
- }
- input:not(.md-input) {
- @include md-flat-input();
- width: 100%;
- padding: 0 15px;
- line-height: 40px;
- height: 40px;
- }
- button {
- position: relative;
- line-height: 20px;
- text-align: center;
- width: 30px;
- height: 30px;
- cursor: pointer;
- border: none;
- border-radius: 50%;
- padding: 0;
- font-size: 12px;
- background: transparent;
- margin: auto 5px;
- &:after {
- content: '';
- position: absolute;
- top: -6px;
- right: -6px;
- bottom: -6px;
- left: -6px;
- border-radius: 50%;
- transform: scale(0);
- opacity: 0;
- transition: $swift-ease-out;
- }
- &:focus {
- outline: none;
- &:after {
- transform: scale(1);
- opacity: 1;
- }
- }
- md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0) scale(0.9);
- path {
- stroke-width: 0;
- }
- }
- &.ng-enter {
- transform: scale(0);
- transition: transform 0.15s ease-out;
- &.ng-enter-active {
- transform: scale(1);
- }
- }
- &.ng-leave {
- transition: transform 0.15s ease-out;
- &.ng-leave-active {
- transform: scale(0);
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- $border-color: #fff;
- input {
- border: 1px solid $border-color;
- }
- li:focus {
- color: #fff;
- }
- }
- }
- .md-virtual-repeat-container.md-autocomplete-suggestions-container {
- position: absolute;
- box-shadow: 0 2px 5px rgba(black, 0.25);
- height: 41px * 5.5;
- max-height: 41px * 5.5;
- z-index: $z-index-tooltip;
- }
- .md-autocomplete-suggestions {
- margin: 0;
- list-style: none;
- padding: 0;
- li {
- font-size: 14px;
- overflow: hidden;
- padding: 0 15px;
- line-height: $autocomplete-option-height;
- height: $autocomplete-option-height;
- transition: background 0.15s linear;
- margin: 0;
- white-space: nowrap;
- text-overflow: ellipsis;
- &:focus {
- outline: none;
- }
- &:not(.md-not-found-wrapper) {
- cursor: pointer;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-autocomplete,
- .md-autocomplete-suggestions {
- border: 1px solid #fff;
- }
- }
- // !!Important - Theme-based Background-color can be configured in backdrop-theme.scss
- // - Animate background-color opacityy only for `.md-opaque` styles
- md-backdrop {
- transition: opacity 450ms;
- position: absolute;
- top:0;
- bottom:0;
- left: 0;
- right: 0;
- z-index: $z-index-backdrop;
- &.md-menu-backdrop {
- position: fixed !important;
- z-index: $z-index-menu - 1;
- }
- &.md-select-backdrop {
- z-index: $z-index-dialog + 1;
- transition-duration: 0;
- }
- &.md-dialog-backdrop {
- z-index: $z-index-dialog - 1;
- }
- &.md-bottom-sheet-backdrop {
- z-index: $z-index-bottom-sheet - 1;
- }
- &.md-sidenav-backdrop {
- z-index: $z-index-sidenav - 1;
- }
- &.md-click-catcher {
- position: absolute;
- }
- &.md-opaque {
- opacity: .48;
- &.ng-enter {
- opacity: 0;
- }
- &.ng-enter.md-opaque.ng-enter-active {
- opacity: .48;
- }
- &.ng-leave {
- opacity: .48;
- transition: opacity 400ms;
- }
- &.ng-leave.md-opaque.ng-leave-active {
- opacity: 0;
- }
- }
- }
- $bottom-sheet-horizontal-padding: 2 * $baseline-grid !default;
- $bottom-sheet-vertical-padding: 1 * $baseline-grid !default;
- $bottom-sheet-icon-after-margin: 4 * $baseline-grid !default;
- $bottom-sheet-list-item-height: 6 * $baseline-grid !default;
- $bottom-sheet-hidden-bottom-padding: 80px !default;
- $bottom-sheet-header-height: 7 * $baseline-grid !default;
- $bottom-sheet-grid-font-weight: 400 !default;
- md-bottom-sheet {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- padding: $bottom-sheet-vertical-padding $bottom-sheet-horizontal-padding $bottom-sheet-vertical-padding + $bottom-sheet-hidden-bottom-padding $bottom-sheet-horizontal-padding;
- z-index: $z-index-bottom-sheet;
- border-top-width: 1px;
- border-top-style: solid;
- transform: translate3d(0, $bottom-sheet-hidden-bottom-padding, 0);
- transition: $swift-ease-out;
- transition-property: transform;
- &.md-has-header {
- padding-top: 0;
- }
- &.ng-enter {
- opacity: 0;
- transform: translate3d(0, 100%, 0);
- }
- &.ng-enter-active {
- opacity: 1;
- display: block;
- transform: translate3d(0, $bottom-sheet-hidden-bottom-padding, 0) !important;
- }
- &.ng-leave-active {
- transform: translate3d(0, 100%, 0) !important;
- transition: $swift-ease-in;
- }
- .md-subheader {
- background-color: transparent;
- font-family: $font-family;
- line-height: $bottom-sheet-header-height;
- padding: 0;
- white-space: nowrap;
- }
- md-inline-icon {
- display: inline-block;
- height: 24px;
- width: 24px;
- fill: #444;
- }
- md-list-item {
- display: flex;
- outline: none;
- &:hover {
- cursor: pointer;
- }
- }
- &.md-list {
- md-list-item {
- padding: 0;
- align-items: center;
- height: $bottom-sheet-list-item-height;
- div.md-icon-container {
- display: inline-block;
- height: 3 * $baseline-grid;
- margin-right: $bottom-sheet-icon-after-margin;
- }
- }
- }
- &.md-grid {
- padding-left: 3 * $baseline-grid;
- padding-right: 3 * $baseline-grid;
- padding-top: 0;
- md-list {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- transition: all 0.5s;
- align-items: center;
- }
- md-list-item {
- flex-direction: column;
- align-items: center;
- transition: all 0.5s;
- height: 12 * $baseline-grid;
- margin-top: $baseline-grid;
- margin-bottom: $baseline-grid;
- /* Mixin for how many grid items to show per row */
- @mixin grid-items-per-row($num, $alignEdges: false) {
- $width: 100% / $num;
- flex: 1 1 $width;
- max-width: $width;
- @if $alignEdges {
- &:nth-of-type(#{$num}n + 1) {
- align-items: flex-start;
- }
- &:nth-of-type(#{$num}n) {
- align-items: flex-end;
- }
- }
- }
-
- @media screen and (max-width: $layout-breakpoint-sm) {
- @include grid-items-per-row(3, true);
- }
- @media screen and (min-width: $layout-breakpoint-sm) and (max-width: $layout-breakpoint-md) {
- @include grid-items-per-row(4);
- }
- @media screen and (min-width: $layout-breakpoint-md) and (max-width: $layout-breakpoint-lg) {
- @include grid-items-per-row(6);
- }
- @media screen and (min-width: $layout-breakpoint-lg) {
- @include grid-items-per-row(7);
- }
- .md-list-item-content {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 6 * $baseline-grid;
- padding-bottom: 2 * $baseline-grid;
- }
- .md-grid-item-content {
- border: 1px solid transparent;
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 10 * $baseline-grid;
- }
- .md-icon-container {
- display: inline-block;
- box-sizing: border-box;
- height: 6 * $baseline-grid;
- width: 6 * $baseline-grid;
- margin: 0 0;
- }
- .md-grid-text {
- font-weight: $bottom-sheet-grid-font-weight;
- line-height: 2 * $baseline-grid;
- font-size: 2 * $baseline-grid - 3;
- margin: 0;
- white-space: nowrap;
- width: 8 * $baseline-grid;
- text-align: center;
- text-transform: none;
- padding-top: 1 * $baseline-grid;
- }
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-bottom-sheet {
- border: 1px solid #fff;
- }
- }
- $button-border-radius: 3px !default;
- $button-fab-border-radius: 50% !default;
- $button-icon-border-radius: $button-fab-border-radius;
- $button-line-height: rem(3.60) !default;
- $button-padding: 0 rem(0.600) !default;
- $button-margin: rem(0.600) rem(0.800) !default;
- $button-min-width: rem(8.800) !default;
- // Fab buttons
- $button-fab-line-height: rem(5.600) !default;
- $button-fab-mini-width: rem(4.00) !default;
- $button-fab-mini-height: rem(4.00) !default;
- $button-fab-mini-line-height: rem(4.00) !default;
- $button-fab-toast-offset: $button-fab-height * 0.75 !default;
- $icon-button-height: rem(4.800) !default;
- $icon-button-width: rem(4.800) !default;
- $icon-button-margin: rem(0.600) !default;
- // Fix issue causing buttons in Firefox to be 2px bigger than they should
- button.md-button::-moz-focus-inner {
- border: 0;
- }
- .md-button {
- border-radius: $button-border-radius;
- box-sizing: border-box;
- color: currentColor;
- user-select: none;
- position: relative; //for child absolute-positioned <canvas>
- outline: none;
- border: 0;
- display: inline-block;
- align-items: center;
- padding: $button-padding;
- margin: $button-margin;
- line-height: $button-line-height;
- min-height: $button-line-height;
- background: transparent;
- white-space: nowrap;
- // override for FAB, icon buttons, etc.
- min-width: $button-min-width;
- text-align: center;
- // Always uppercase buttons
- text-transform: uppercase;
- font-weight: 500;
- font-size: $body-font-size-base;
- font-style: inherit;
- font-variant: inherit;
- font-family: inherit;
- text-decoration: none;
- cursor: pointer;
- overflow: hidden; // for ink containment
- transition: box-shadow $swift-ease-out-duration $swift-ease-out-timing-function,
- background-color $swift-ease-out-duration $swift-ease-out-timing-function;
- &:focus {
- outline: none;
- }
- &:hover, &:focus {
- text-decoration: none;
- }
- &.ng-hide, &.ng-leave {
- transition: none;
- }
- &.md-cornered {
- border-radius: 0;
- }
- &.md-icon {
- padding: 0;
- background: none;
- }
- &.md-raised {
- &:not([disabled]) {
- @include md-shadow-bottom-z-1();
- }
- }
- &.md-icon-button {
- margin: 0 $icon-button-margin;
- height: $icon-button-height;
- min-width: 0;
- line-height: $icon-button-height;
- padding-left: 0;
- padding-right: 0;
- width: $icon-button-width;
- border-radius: $button-icon-border-radius;
- .md-ripple-container {
- border-radius: $button-icon-border-radius;
- background-clip: padding-box;
- overflow: hidden;
- // The following hack causes Safari/Chrome to respect overflow hidden for ripples
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC');
- }
- }
- &.md-fab {
- // Include the top/left/bottom/right fab positions
- @include fab-all-positions();
- z-index: $z-index-fab;
- line-height: $button-fab-line-height;
- min-width: 0;
- width: $button-fab-width;
- height: $button-fab-height;
- vertical-align: middle;
- @include md-shadow-bottom-z-1();
- border-radius: $button-fab-border-radius;
- background-clip: padding-box;
- overflow: hidden;
- transition: 0.2s linear;
- transition-property: background-color, box-shadow;
- .md-ripple-container {
- border-radius: $button-fab-border-radius;
- background-clip: padding-box;
- overflow: hidden;
- // The following hack causes Safari/Chrome to respect overflow hidden for ripples
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC');
- }
- &.md-mini {
- line-height: $button-fab-mini-line-height;
- width: $button-fab-mini-width;
- height: $button-fab-mini-height;
- }
- }
- &:not([disabled]) {
- &.md-raised,
- &.md-fab {
- &.md-focused {
- @include md-shadow-bottom-z-1();
- }
- &:active {
- @include md-shadow-bottom-z-2();
- }
- }
- }
- .md-ripple-container {
- border-radius: $button-border-radius;
- background-clip: padding-box;
- overflow: hidden;
- // The following hack causes Safari/Chrome to respect overflow hidden for ripples
- -webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC');
- }
- }
- .md-toast-open-top {
- .md-button.md-fab-top-left,
- .md-button.md-fab-top-right {
- transform: translate3d(0, $button-fab-toast-offset, 0);
- &:not([disabled]) {
- &.md-focused,
- &:hover {
- transform: translate3d(0, $button-fab-toast-offset - 1, 0);
- }
- }
- }
- }
- .md-toast-open-bottom {
- .md-button.md-fab-bottom-left,
- .md-button.md-fab-bottom-right {
- transform: translate3d(0, -$button-fab-toast-offset, 0);
- &:not([disabled]) {
- &.md-focused,
- &:hover {
- transform: translate3d(0, -$button-fab-toast-offset - 1, 0);
- }
- }
- }
- }
- .md-button-group {
- display: flex;
- flex: 1;
- width: 100%;
- }
- .md-button-group > .md-button {
- flex: 1;
- display: block;
- overflow: hidden;
- width: 0;
- border-width: 1px 0px 1px 1px;
- border-radius: 0;
- text-align: center;
- text-overflow: ellipsis;
- white-space: nowrap;
- &:first-child {
- border-radius: 2px 0px 0px 2px;
- }
- &:last-child {
- border-right-width: 1px;
- border-radius: 0px 2px 2px 0px;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- .md-button.md-raised,
- .md-button.md-fab {
- border: 1px solid #fff;
- }
- }
- $card-padding: 16px !default;
- $card-box-shadow: $whiteframe-shadow-1dp !default;
- md-card {
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- margin: $baseline-grid;
- box-shadow: $card-box-shadow;
- > img,
- > :not(md-card-content) img {
- display: flex;
- flex: 0 0 auto;
- width: 100%;
- height: auto;
- }
- md-card-content {
- padding: $card-padding;
- }
- .md-actions {
- margin: 0;
- .md-button {
- margin-bottom: $baseline-grid;
- margin-top: $baseline-grid;
- margin-right: $baseline-grid * .5;
- margin-left: $baseline-grid * .5;
- }
- }
- md-card-footer {
- margin-top: auto;
- padding: $card-padding;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-card {
- border: 1px solid #fff;
- }
- }
- $checkbox-width: 18px !default;
- $checkbox-height: $checkbox-width !default;
- $checkbox-margin: 8px !default;
- $checkbox-border-radius: 2px !default;
- $checkbox-border-width: 2px !default;
- $checkbox-text-margin: 10px !default;
- $checkbox-top-left: 12px !default;
- md-checkbox {
- box-sizing: border-box;
- display: block;
- margin: $checkbox-margin;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- user-select: none;
- @include rtl(padding-left, $checkbox-width, 0);
- @include rtl(padding-right, 0, $checkbox-width);
- position: relative;
- line-height: $checkbox-width + $checkbox-margin;
- min-width: $checkbox-width;
- min-height: $checkbox-width;
- &.md-focused:not([disabled]) {
- .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px;
- }
- &:not(.md-checked) {
- .md-container:before {
- background-color: rgba(0, 0, 0, 0.12);
- }
- }
- }
- .md-container {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- box-sizing: border-box;
- display: inline-block;
- width: $checkbox-width;
- height: $checkbox-height;
- @include rtl(left, 0, auto);
- @include rtl(right, auto, 0);
- &:before {
- box-sizing: border-box;
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto;
- }
- &:after {
- box-sizing: border-box;
- content: '';
- position: absolute;
- top: -10px;
- right: -10px;
- bottom: -10px;
- left: -10px;
- }
- .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -15px;
- top: -15px;
- right: -15px;
- bottom: -15px;
- }
- }
- &.md-align-top-left > div.md-container {
- top: $checkbox-top-left;
- }
- // unchecked
- .md-icon {
- box-sizing: border-box;
- transition: 240ms;
- position: absolute;
- top: 0;
- left: 0;
- width: $checkbox-width;
- height: $checkbox-height;
- border-width: $checkbox-border-width;
- border-style: solid;
- border-radius: $checkbox-border-radius;
- }
- &.md-checked .md-icon {
- border: none;
- }
- // disabled
- &[disabled] {
- cursor: no-drop;
- }
- &.md-checked .md-icon:after {
- box-sizing: border-box;
- transform: rotate(45deg);
- position: absolute;
- left: $checkbox-width / 3;
- top: $checkbox-width / 9;
- display: table;
- width: $checkbox-width / 3;
- height: $checkbox-width * 2 / 3;
- border-width: $checkbox-border-width;
- border-style: solid;
- border-top: 0;
- border-left: 0;
- content: '';
- }
- .md-label {
- box-sizing: border-box;
- position: relative;
- display: inline-block;
- vertical-align: middle;
- white-space: normal;
- user-select: text;
- @include rtl(margin-left, $checkbox-text-margin, 0);
- @include rtl(margin-right, 0, $checkbox-text-margin);
- }
- }
- $chip-font-size: rem(1.6) !default;
- $chip-height: rem(3.2) !default;
- $chip-padding: 0 rem(1.2) 0 rem(1.2) !default;
- $chip-remove-padding-right: rem(2.2) !default;
- $chip-remove-line-height: rem(2.2) !default;
- $chip-margin: rem(0.8) rem(0.8) 0 0 !default;
- $chip-wrap-padding: 0 0 rem(0.8) rem(0.3) !default;
- $chip-delete-icon-size: rem(1.8) !default;
- $contact-chip-padding: 0 rem(2.5) 0 0 !default;
- $contact-chip-suggestion-image-height: rem(4.0) !default;
- $contact-chip-suggestion-margin: rem(0.8) !default;
- $contact-chip-name-width: rem(12) !default;
- .md-contact-chips {
- .md-chips {
- .md-chip {
- padding: $contact-chip-padding;
- .md-contact-avatar {
- float: left;
- img {
- height: $chip-height;
- border-radius: $chip-height / 2;
- }
- }
- .md-contact-name {
- display: inline-block;
- height: $chip-height;
- margin-left: rem(0.8);
- }
- }
- }
- }
- .md-contact-suggestion {
- height: ($contact-chip-suggestion-margin * 2) + $contact-chip-suggestion-image-height;
- img {
- height: $contact-chip-suggestion-image-height;
- border-radius: $contact-chip-suggestion-image-height / 2;
- margin-top: $contact-chip-suggestion-margin;
- }
- .md-contact-name {
- margin-left: $contact-chip-suggestion-margin;
- width: $contact-chip-name-width;
- }
- .md-contact-name, .md-contact-email {
- display: inline-block;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- .md-contact-chips-suggestions li {
- height: 100%;
- }
- .md-chips {
- @include pie-clearfix();
- display: block;
- font-family: $font-family;
- font-size: $chip-font-size;
- padding: $chip-wrap-padding;
- vertical-align: middle;
- &:not(.md-readonly) {
- cursor: text;
- .md-chip {
- padding-right: $chip-remove-padding-right;
- }
- }
- .md-chip {
- cursor: default;
- border-radius: $chip-height / 2;
- display: block;
- height: $chip-height;
- line-height: $chip-height;
- margin: $chip-margin;
- padding: $chip-padding;
- float: left;
- box-sizing: border-box;
- max-width: 100%;
- position: relative;
- .md-chip-content {
- display: block;
- padding-right:rem(0.4);
- float: left;
- white-space: nowrap;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- &:focus {
- outline: none;
- }
- }
- .md-chip-remove-container {
- position: absolute;
- right: 0;
- line-height: $chip-remove-line-height;
- }
- .md-chip-remove {
- text-align: center;
- width: $chip-height;
- height: $chip-height;
- min-width: 0;
- padding: 0;
- background: transparent;
- border: none;
- box-shadow: none;
- margin: 0;
- position: relative;
- md-icon {
- height: $chip-delete-icon-size;
- width: $chip-delete-icon-size;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0);
- }
- }
- }
- .md-chip-input-container {
- display: block;
- line-height: $chip-height;
- margin: $chip-margin;
- padding: $chip-padding;
- float: left;
- input {
- &:not([type]),&[type="email"],&[type="number"],&[type="tel"],&[type="url"],&[type="text"] {
- border: 0;
- height: $chip-height;
- line-height: $chip-height;
- padding: 0;
- &:focus {
- outline: none;
- }
- }
- }
- md-autocomplete, md-autocomplete-wrap {
- background: transparent;
- height: $chip-height;
- }
- md-autocomplete {
- md-autocomplete-wrap {
- box-shadow: none;
- }
- input {
- position: relative;
- }
- }
- input {
- border:0;
- height: $chip-height;
- line-height: $chip-height;
- padding: 0;
- &:focus {
- outline:none;
- }
- }
- md-autocomplete, md-autocomplete-wrap {
- height: $chip-height;
- }
- md-autocomplete {
- box-shadow: none;
- input {
- position: relative;
- }
- }
- &:not(:first-child) {
- margin: $chip-margin;
- }
- input {
- background:transparent;
- border-width: 0;
- }
- }
- md-autocomplete {
- button {
- display: none;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- .md-chip-input-container,
- md-chip {
- border: 1px solid #fff;
- }
- .md-chip-input-container md-autocomplete {
- border: none;
- }
- }
- md-content {
- display: block;
- position: relative;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
- &[md-scroll-y] {
- overflow-y: auto;
- overflow-x: hidden;
- }
- &[md-scroll-x] {
- overflow-x: auto;
- overflow-y: hidden;
- }
- &[md-scroll-xy] {
- }
- // For iOS allow disabling of momentum scrolling
- // @see issue #2640.
- &.autoScroll {
- -webkit-overflow-scrolling: auto;
- }
- }
- $dialog-padding: $baseline-grid * 3;
- .md-dialog-is-showing {
- max-height: 100%;
- }
- .md-dialog-container {
- display: flex;
- justify-content: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: $z-index-dialog;
- overflow: hidden;
- }
- md-dialog {
- &.md-transition-in {
- opacity: 1;
- transition: $swift-ease-out;
- transform: translate3d(0,0,0) scale(1.0);
- }
- &.md-transition-out {
- opacity: 0;
- transition: $swift-ease-out;
- transform: translate3d(0,100%,0) scale(0.2);
- }
- opacity: 0;
- min-width: 240px;
- max-width: 80%;
- max-height: 80%;
- position: relative;
- overflow: auto; // stop content from leaking out of dialog parent and fix IE
- box-shadow: $whiteframe-shadow-13dp;
- display: flex;
- flex-direction: column;
- &> form {
- display: flex;
- flex-direction: column;
- overflow: auto;
- }
- .md-dialog-content {
- padding: $dialog-padding;
- }
- md-dialog-content {
- order: 1;
- flex-direction: column;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
- &:not([layout=row]) > *:first-child:not(.md-subheader) {
- margin-top: 0;
- }
- &:focus {
- outline: none;
- }
- .md-subheader {
- margin: 0;
- &.sticky-clone {
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16);
- }
- }
- &.sticky-container {
- padding: 0;
- &> div {
- padding: $dialog-padding;
- padding-top: 0;
- }
- }
- .md-dialog-content-body {
- width:100%;
- }
- }
- .md-actions {
- display: flex;
- order: 2;
- box-sizing: border-box;
- align-items: center;
- justify-content: flex-end;
- margin-bottom: 0;
- padding-right: $baseline-grid;
- padding-left: $baseline-grid * 2;
- min-height: $baseline-grid * 6.5;
- overflow: hidden;
- .md-button {
- margin-bottom: $baseline-grid;
- margin-left: $baseline-grid;
- margin-right: 0;
- margin-top: $baseline-grid;
- }
- }
- &.md-content-overflow .md-actions {
- border-top-width: 1px;
- border-top-style: solid;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-dialog {
- border: 1px solid #fff;
- }
- }
- md-divider {
- display: block;
- border-top-width: 1px;
- border-top-style: solid;
- margin: 0;
- &[md-inset] {
- margin-left: $baseline-grid * 10;
- }
- }
- /** Styles for mdCalendar. */
- $md-calendar-cell-size: 44px !default;
- $md-calendar-header-height: 40px;
- $md-calendar-cell-emphasis-size: 40px !default;
- $md-calendar-side-padding: 16px !default;
- $md-calendar-weeks-to-show: 7 !default;
- $md-calendar-month-label-padding: 8px !default;
- $md-calendar-month-label-font-size: 14px !default;
- $md-calendar-scroll-cue-shadow-radius: 6px;
- $md-calendar-width: (7 * $md-calendar-cell-size) + (2 * $md-calendar-side-padding);
- $md-calendar-height:
- ($md-calendar-weeks-to-show * $md-calendar-cell-size) + $md-calendar-header-height;
- // Styles for date cells, including day-of-the-week header cells.
- @mixin md-calendar-cell() {
- height: $md-calendar-cell-size;
- width: $md-calendar-cell-size;
- text-align: center;
- // Remove all padding and borders so we can completely
- // control the size of the table cells.
- padding: 0;
- border: none;
- // The left / right padding is applied to the cells instead of the wrapper
- // because we want the header background and the month dividing border to
- // extend the entire width of the calendar.
- &:first-child {
- padding-left: $md-calendar-side-padding;
- }
- &:last-child {
- padding-right: $md-calendar-side-padding;
- }
- }
- // Styles for tables used in mdCalendar (the day-of-the-week header and the table of dates itself).
- @mixin md-calendar-table() {
- // Fixed table layout makes IE faster.
- // https://msdn.microsoft.com/en-us/library/ms533020(VS.85).aspx
- table-layout: fixed;
- border-spacing: 0;
- border-collapse: collapse;
- }
- md-calendar {
- font-size: 13px;
- user-select: none;
- }
- // Wrap the scroll with overflow: hidden in order to hide the scrollbar.
- // The inner .md-calendar-scroll-container will using a padding-right to push the
- // scrollbar into the hidden area (done with javascript).
- .md-calendar-scroll-mask {
- display: inline-block;
- overflow: hidden;
- height: $md-calendar-weeks-to-show * $md-calendar-cell-size;
- // The actual scrolling element.
- .md-virtual-repeat-scroller {
- // These two properties are needed to get touch momentum to work.
- // See https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- &::-webkit-scrollbar {
- display: none;
- }
- }
- // Offsetter is the element that is translateY'ed into view of the user and contains the
- // calendar content.
- .md-virtual-repeat-offsetter {
- width: 100%;
- }
- }
- // Contains the scrolling element (this is the md-virtual-repeat-container).
- .md-calendar-scroll-container {
- // Add an inset shadow to help cue users that the calendar is scrollable. Use a negative x
- // offset to push the vertical edge shadow off to the right so that it's cut off by the edge
- // of the calendar container.
- box-shadow: inset -3px 3px $md-calendar-scroll-cue-shadow-radius rgba(black, 0.2);
- display: inline-block;
- height: $md-calendar-weeks-to-show * $md-calendar-cell-size;
- // Add the shadow radius to the width so that the shadow os pushed off to the side and cut off.
- width: $md-calendar-width + $md-calendar-scroll-cue-shadow-radius;
- }
- // A single date cell in the calendar table.
- .md-calendar-date {
- @include md-calendar-cell();
- &.md-calendar-date-disabled {
- cursor: default;
- }
- }
- // Circle element inside of every date cell used to indicate selection or focus.
- .md-calendar-date-selection-indicator {
- transition: background-color, color $swift-ease-out-duration $swift-ease-out-timing-function;
- border-radius: 50%;
- display: inline-block;
- width: $md-calendar-cell-emphasis-size;
- height: $md-calendar-cell-emphasis-size;
- line-height: $md-calendar-cell-emphasis-size;
- .md-calendar-date:not(.md-disabled) & {
- cursor: pointer;
- }
- }
- // The label above each month (containing the month name and the year, e.g. "Jun 2014").
- .md-calendar-month-label {
- height: $md-calendar-cell-size;
- font-size: $md-calendar-month-label-font-size;
- font-weight: 500; // Roboto Medium
- padding: 0 0 0 $md-calendar-side-padding + $md-calendar-month-label-padding;
- }
- // Table containing the day-of-the-week header.
- .md-calendar-day-header {
- @include md-calendar-table();
- th {
- @include md-calendar-cell();
- font-weight: normal;
- height: $md-calendar-header-height;
- }
- }
- // Primary table containing all date cells. Each month is a tbody in this table.
- .md-calendar {
- @include md-calendar-table();
- // Divider between months.
- tr:last-child td {
- border-bottom-width: 1px;
- border-bottom-style: solid;
- }
- // The divider between months doesn't actually change the height of the tbody in which the
- // border appear; it changes the height of the following tbody. The causes the first-child to be
- // 1px shorter than the other months. We fix this by adding an invisible border-top.
- &:first-child {
- border-top: 1px solid transparent;
- }
- }
- /** Styles for mdDatepicker. */
- $md-datepicker-button-gap: 12px; // Space between the text input and the calendar-icon button.
- $md-datepicker-border-bottom-gap: 5px; // Space between input and the grey underline.
- $md-datepicker-open-animation-duration: 0.2s;
- md-datepicker {
- // Don't let linebreaks happen between the open icon-button and the input.
- white-space: nowrap;
- }
- // The calendar icon button used to open the calendar pane.
- // Need absurd specificty to override md-button.md-icon-button.
- .md-datepicker-button {
- display: inline-block;
- box-sizing: border-box;
- background: none;
- }
- // The input into which the user can type the date.
- .md-datepicker-input {
- @include md-flat-input();
- min-width: 120px;
- max-width: $md-calendar-width - $md-datepicker-button-gap;
- }
- // Container for the datepicker input.
- .md-datepicker-input-container {
- // Position relative in order to absolutely position the down-triangle button within.
- position: relative;
- padding-bottom: $md-datepicker-border-bottom-gap;
- border-bottom-width: 1px;
- border-bottom-style: solid;
- display: inline-block;
- width: auto;
- margin-left: $md-datepicker-button-gap;
- &.md-datepicker-focused {
- border-bottom-width: 2px;
- }
- }
- // Floating pane that contains the calendar at the bottom of the input.
- .md-datepicker-calendar-pane {
- position: absolute;
- top: 0;
- left: 0;
- z-index: $z-index-menu;
- border-width: 1px;
- border-style: solid;
- background: transparent;
- transform: scale(0);
- transform-origin: 0 0;
- transition: transform $md-datepicker-open-animation-duration $swift-ease-out-timing-function;
- &.md-pane-open {
- transform: scale(1);
- }
- }
- // Portion of the floating panel that sits, invisibly, on top of the input.
- .md-datepicker-input-mask {
- height: 40px;
- width: $md-calendar-width;
- position: relative;
- background: transparent;
- pointer-events: none;
- cursor: text;
- }
- .md-datepicker-input-mask-opaque {
- position: absolute;
- right: 0;
- left: 120px;
- height: 100%;
- }
- // The calendar portion of the floating pane (vs. the input mask).
- .md-datepicker-calendar {
- opacity: 0;
- // Use a modified timing function (from swift-ease-out) so that the opacity part of the
- // animation doesn't come in as quickly so that the floating pane doesn't ever seem to
- // cover up the trigger input.
- transition: opacity $md-datepicker-open-animation-duration cubic-bezier(0.5, 0, 0.25, 1);
- .md-pane-open & {
- opacity: 1;
- }
- md-calendar:focus {
- outline: none;
- }
- }
- // Down triangle/arrow indicating that the datepicker can be opened.
- // We can do this entirely with CSS without needing to load an icon.
- // See https://css-tricks.com/snippets/css/css-triangle/
- $md-date-arrow-size: 5px;
- .md-datepicker-expand-triangle {
- // Center the triangle inside of the button so that the
- // ink ripple origin looks correct.
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- width: 0;
- height: 0;
- border-left: $md-date-arrow-size solid transparent;
- border-right: $md-date-arrow-size solid transparent;
- border-top: $md-date-arrow-size solid;
- }
- // Button containing the down "disclosure" triangle/arrow.
- .md-datepicker-triangle-button {
- position: absolute;
- right: 0;
- top: 0;
- // TODO(jelbourn): This position isn't great on all platforms.
- transform: translateY(-25%) translateX(45%);
- }
- // Need crazy specificity to override .md-button.md-icon-button.
- // Only apply this high specifiy to the property we need to override.
- .md-datepicker-triangle-button.md-button.md-icon-button {
- height: 100%;
- width: 36px;
- position: absolute;
- }
- // Disabled state for all elements of the picker.
- md-datepicker[disabled] {
- .md-datepicker-input-container {
- border-bottom-color: transparent;
- }
- .md-datepicker-triangle-button {
- display: none;
- }
- }
- // Open state for all of the elements of the picker.
- .md-datepicker-open {
- .md-datepicker-input-container {
- margin-left: -$md-datepicker-button-gap;
- border: none;
- }
- .md-datepicker-input {
- margin-left: 24px;
- height: 40px;
- }
- .md-datepicker-triangle-button {
- display: none;
- }
- }
- // When the position of the floating calendar pane is adjusted to remain inside
- // of the viewport, hide the inputput mask, as the text input will no longer be
- // directly underneath it.
- .md-datepicker-pos-adjusted .md-datepicker-input-mask {
- display: none;
- }
- // Animate the calendar inside of the floating calendar pane such that it appears to "scroll" into
- // view while the pane is opening. This is done as a cue to users that the calendar is scrollable.
- .md-datepicker-calendar-pane {
- .md-calendar {
- transform: translateY(-85px);
- transition: transform 0.65s $swift-ease-out-timing-function;
- transition-delay: 0.125s;
- }
- &.md-pane-open .md-calendar {
- transform: translateY(0);
- }
- }
- md-fab-speed-dial {
- position: relative;
- display: flex;
- align-items: center;
- // Include the top/left/bottom/right fab positions and set the z-index for absolute positioning
- @include fab-all-positions();
- z-index: $z-index-fab;
- // Allow users to enable/disable hovering over the entire speed dial (i.e. the empty space where
- // items will eventually appear)
- &:not(.md-hover-full) {
- // Turn off pointer events when closed
- pointer-events: none;
- md-fab-trigger, .md-fab-action-item {
- // Always make the trigger and action items always have pointer events (the tooltip looks
- // for the first parent with pointer-events, so we must set this for tooltips to work)
- pointer-events: auto;
- }
- &.md-is-open {
- // Turn on pointer events when open
- pointer-events: auto;
- }
- }
- .md-css-variables {
- z-index: $z-index-fab;
- }
- &.md-is-open {
- .md-fab-action-item {
- visibility: visible;
- align-items: center;
- }
- }
- md-fab-actions {
- display: flex;
- // Set the height so that the z-index in the JS animation works
- height: auto;
- .md-fab-action-item {
- visibility: hidden;
- transition: $swift-ease-in;
- }
- }
- &.md-down {
- flex-direction: column;
- md-fab-trigger {
- order: 1;
- }
- md-fab-actions {
- flex-direction: column;
- order: 2;
- }
- }
- &.md-up {
- flex-direction: column;
- md-fab-trigger {
- order: 2;
- }
- md-fab-actions {
- flex-direction: column-reverse;
- order: 1;
- }
- }
- &.md-left {
- flex-direction: row;
- md-fab-trigger {
- order: 2;
- }
- md-fab-actions {
- flex-direction: row-reverse;
- order: 1;
- .md-fab-action-item {
- transition: $swift-ease-in;
- }
- }
- }
- &.md-right {
- flex-direction: row;
- md-fab-trigger {
- order: 1;
- }
- md-fab-actions {
- flex-direction: row;
- order: 2;
- .md-fab-action-item {
- transition: $swift-ease-in;
- }
- }
- }
- /*
- * Handle the animations
- */
- &.md-scale {
- .md-fab-action-item {
- opacity: 0;
- transform: scale(0);
- transition: $swift-ease-in;
- // Make the scale animation a bit faster since we are delaying each item
- transition-duration: $swift-ease-in-duration / 2.1;
- }
- }
- }
- $button-fab-width: rem(5.600) !default;
- $icon-button-margin: rem(0.600) !default;
- md-fab-toolbar {
- $icon-delay: 200ms;
- // Include the top/left/bottom/right fab positions
- @include fab-all-positions();
- display: block;
- /*
- * Closed styling
- */
- .md-fab-toolbar-wrapper {
- display: block;
- position: relative;
- overflow: hidden;
- // Account for the size of the trigger plus it's margin/shadow
- height: $button-fab-width + ($icon-button-margin * 2);
- }
- md-fab-trigger {
- position: absolute;
- z-index: $z-index-fab;
- button {
- overflow: visible !important;
- }
- .md-fab-toolbar-background {
- display: block;
- position: absolute;
- z-index: $z-index-fab + 1;
- opacity: 1;
- transition: $swift-ease-in;
- }
- md-icon {
- position: relative;
- z-index: $z-index-fab + 2;
- opacity: 1;
- // Hide the icon very quickly
- transition: all $icon-delay ease-in;
- }
- }
- &.md-left {
- md-fab-trigger {
- right: 0;
- }
- .md-toolbar-tools {
- flex-direction: row-reverse;
- > .md-button:first-child {
- margin-right: 0.6rem;
- }
- > .md-button:first-child {
- margin-left: -0.8rem;
- }
- > .md-button:last-child {
- margin-right: 8px;
- }
- }
- }
- &.md-right {
- md-fab-trigger {
- left: 0;
- }
- .md-toolbar-tools {
- flex-direction: row;
- }
- }
- md-toolbar {
- background-color: transparent !important;
- pointer-events: none;
- z-index: $z-index-fab + 3;
- .md-toolbar-tools {
- // Fix some spacing issues with the icons and the trigger
- padding: 0 20px;
- margin-top: 3px;
- }
- .md-fab-action-item {
- opacity: 0;
- transform: scale(0);
- transition: $swift-ease-in;
- // Cut the action item's animation time in half since we delay it in the JS
- transition-duration: $swift-ease-in-duration / 2;
- }
- }
- /*
- * Hover styling
- */
- &.md-is-open {
- md-fab-trigger > button {
- box-shadow: none;
- md-icon {
- opacity: 0;
- }
- }
- .md-fab-action-item {
- opacity: 1;
- transform: scale(1);
- }
- }
- }
- md-grid-list {
- box-sizing: border-box;
- display: block;
- position: relative;
- md-grid-tile,
- md-grid-tile > figure,
- md-grid-tile-header,
- md-grid-tile-footer {
- box-sizing: border-box;
- }
- md-grid-tile {
- display: block;
- position: absolute;
- figure {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 0;
- margin: 0;
- }
- // Headers & footers
- md-grid-tile-header,
- md-grid-tile-footer {
- display: flex;
- flex-direction: row;
- align-items: center;
- height: 48px;
- color: #fff;
- background: rgba(0, 0, 0, 0.18);
- overflow: hidden;
- // Positioning
- position: absolute;
- left: 0;
- right: 0;
- h3,
- h4 {
- font-weight: 400;
- margin: 0 0 0 16px;
- }
- h3 {
- font-size: 14px;
- }
- h4 {
- font-size: 12px;
- }
- }
- md-grid-tile-header {
- top: 0;
- }
- md-grid-tile-footer {
- bottom: 0;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-grid-tile {
- border: 1px solid #fff;
- }
- md-grid-tile-footer {
- border-top: 1px solid #fff;
- }
- }
- $icon-size: rem(2.4);
- md-icon {
- margin: auto;
- background-repeat: no-repeat no-repeat;
- display: inline-block;
- vertical-align: middle;
- fill: currentColor;
- height: $icon-size;
- width: $icon-size;
- svg {
- pointer-events: none;
- }
- &[md-font-icon] {
- line-height: 1;
- width: auto;
- }
- }
- //
- //@font-face {
- // font-family:"material";
- // src:url("/dist/material-font/material.eot");
- // font-weight:normal;
- // font-style:normal;
- //}
- //
- //@font-face {
- // font-family:"material";
- // src:url("/dist/material-font/material.eot");
- // src:url("/dist/material-font/material.eot?#iefix") format("embedded-opentype"),
- // url("/dist/material-font/material.woff") format("woff"),
- // url("/dist/material-font/material.ttf") format("truetype"),
- // url("/dist/material-font/material.svg?#material") format("svg");
- // font-weight:normal;
- // font-style:normal;
- //}
- //
- ///* Bootstrap Overrides */
- //[class^="icon-"]:before,
- //[class*=" icon-"]:before {
- // font-family:"material";
- // display:inline-block;
- // vertical-align:middle;
- // line-height:1;
- // font-weight:normal;
- // font-style:normal;
- // speak:none;
- // text-decoration:inherit;
- // text-transform:none;
- // text-rendering:optimizeLegibility;
- // -webkit-font-smoothing:antialiased;
- // -moz-osx-font-smoothing:grayscale;
- //}
- $input-container-padding: 2px !default;
- $input-label-default-offset: 24px !default;
- $input-label-default-scale: 1.0 !default;
- $input-label-float-offset: 6px !default;
- $input-label-float-scale: 0.75 !default;
- $input-placeholder-offset: $input-label-default-offset !default;
- $input-border-width-default: 1px !default;
- $input-border-width-focused: 2px !default;
- $input-line-height: 26px !default;
- $input-padding-top: 2px !default;
- $input-error-font-size: 12px !default;
- $input-error-height: 24px !default;
- $icon-offset : 36px !default;
- $icon-float-top: -16px !default;
- $icon-float-focused-top: -8px !default;
- md-input-container {
- display: flex;
- position: relative;
- flex-direction: column;
- padding: $input-container-padding;
- padding-bottom: $input-container-padding + $input-error-height;
- // When we have ng-messages, remove the input error height from our bottom padding, since the
- // ng-messages wrapper has a min-height of 1 error (so we don't adjust height as often; see below)
- &.md-input-has-messages {
- padding-bottom: $input-container-padding;
- }
- > md-icon {
- position: absolute;
- top: 5px;
- left: 2px;
- + input {
- margin-left: $icon-offset;
- }
- }
- textarea,
- input[type="text"],
- input[type="password"],
- input[type="datetime"],
- input[type="datetime-local"],
- input[type="date"],
- input[type="month"],
- input[type="time"],
- input[type="week"],
- input[type="number"],
- input[type="email"],
- input[type="url"],
- input[type="search"],
- input[type="tel"],
- input[type="color"] {
- /* remove default appearance from all input/textarea */
- -moz-appearance: none;
- -webkit-appearance: none;
- }
- input[type="date"],
- input[type="datetime-local"],
- input[type="month"],
- input[type="time"],
- input[type="week"] {
- min-height: $input-line-height;
- }
- textarea {
- resize: none;
- overflow: hidden;
- }
- textarea.md-input {
- min-height: $input-line-height;
- -ms-flex-preferred-size: auto; //IE fix
- }
- label {
- position: relative;
- top: -2px;
- }
- label:not(.md-no-float),
- .md-placeholder {
- order: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased;
- padding-left: $input-container-padding;
- z-index: 1;
- transform: translate3d(0, $input-label-default-offset + 4, 0) scale($input-label-default-scale);
- transition: transform $swift-ease-out-timing-function 0.25s;
- @include rtl(transform-origin, left top, right top);
- }
- .md-placeholder {
- position: absolute;
- top: 0;
- opacity: 0;
- transition-property: opacity, transform;
- transform: translate3d(0, $input-placeholder-offset + $baseline-grid * 0.75, 0);
- &.md-static {
- position: static;
- }
- }
- &.md-input-focused .md-placeholder {
- opacity: 1;
- transform: translate3d(0, $input-placeholder-offset, 0);
- }
- // Placeholder should immediately disappear when the user starts typing
- &.md-input-has-value .md-placeholder {
- transition: none;
- opacity: 0;
- }
- &:not( .md-input-has-value ) input:not( :focus ),
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-ampm-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-day-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-hour-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-millisecond-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-minute-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-month-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-second-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-week-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-year-field,
- &:not( .md-input-has-value ) input:not( :focus )::-webkit-datetime-edit-text {
- color: transparent;
- }
- /*
- * The .md-input class is added to the input/textarea
- */
- .md-input {
- order: 2;
- display: block;
- margin-top: 0;
- background: none;
- padding-top: $input-padding-top;
- padding-bottom: $input-border-width-focused - $input-border-width-default;
- padding-left: 2px;
- padding-right: 2px;
- border-width: 0 0 $input-border-width-default 0;
- line-height: $input-line-height;
- -ms-flex-preferred-size: $input-line-height; //IE fix
- border-radius: 0;
- border-style: solid; // Firefox fix
- // Fix number inputs in Firefox to be full-width
- width: auto;
- &:focus {
- outline: none;
- }
- &:invalid {
- outline: none;
- box-shadow: none;
- }
- &.md-no-flex {
- flex: none !important;
- }
- }
- .md-char-counter {
- position: absolute;
- right: $input-container-padding;
- bottom: 7px;
- }
- ng-messages, data-ng-messages, x-ng-messages,
- [ng-messages], [data-ng-messages], [x-ng-messages] {
- position: relative;
- order: 4;
- min-height: $input-error-height;
- .md-char-counter {
- position: absolute;
- top: 0;
- right: 0;
- bottom: auto;
- }
- }
- ng-message, data-ng-message, x-ng-message,
- [ng-message], [data-ng-message], [x-ng-message],
- [ng-message-exp], [data-ng-message-exp], [x-ng-message-exp],
- .md-char-counter {
- $input-error-line-height: $input-error-font-size + 2px;
- //-webkit-font-smoothing: antialiased;
- font-size: $input-error-font-size;
- line-height: $input-error-line-height;
- overflow: hidden;
- // Add some top padding which is equal to half the difference between the expected height
- // and the actual height
- $error-padding-top: ($input-error-height - $input-error-line-height) / 2;
- padding-top: $error-padding-top;
- &:not(.md-char-counter) {
- padding-right: rem(5);
- }
- &.ng-enter {
- transition: $swift-ease-in;
- // Delay the enter transition so it happens after the leave
- transition-delay: $swift-ease-in-duration / 1.5;
- // Since we're delaying the transition, we speed up the duration a little bit to compensate
- transition-duration: $swift-ease-in-duration / 1.5;
- }
- &.ng-leave {
- transition: $swift-ease-out;
- // Speed up the duration (see enter comment above)
- transition-duration: $swift-ease-out-duration / 1.5;
- }
- &.ng-enter,
- &.ng-leave.ng-leave-active {
- // Move the error upwards off the screen and fade it out
- margin-top: -$input-error-line-height - $error-padding-top;
- opacity: 0;
- }
- &.ng-leave,
- &.ng-enter.ng-enter-active {
- // Move the error down into position and fade it in
- margin-top: 0;
- opacity: 1;
- }
- }
- &.md-input-focused,
- &.md-input-has-placeholder,
- &.md-input-has-value {
- label:not(.md-no-float) {
- transform: translate3d(0,$input-label-float-offset,0) scale($input-label-float-scale);
- }
- }
- // If we have an existing value; don't animate the transform as it happens on page load and
- // causes erratic/unnecessary animation
- &.md-input-has-value {
- label {
- transition: none;
- }
- }
- // Use wide border in error state or in focused state
- &.md-input-focused .md-input,
- .md-input.ng-invalid.ng-dirty {
- padding-bottom: 0; // Increase border width by 1px, decrease padding by 1
- border-width: 0 0 $input-border-width-focused 0;
- }
- .md-input {
- &[disabled],
- [disabled] & {
- background-position: 0 bottom;
- // This background-size is coordinated with a linear-gradient set in input-theme.scss
- // to create a dotted line under the input.
- background-size: 4px 1px;
- background-repeat: repeat-x;
- margin-bottom: -1px; // Shift downward so dotted line is positioned the same as other bottom borders
- }
- }
- }
- md-input-container.md-icon-float {
- margin-top : $icon-float-top;
- transition : margin-top 0.5s $swift-ease-out-timing-function ;
- > label {
- pointer-events:none;
- position:absolute;
- margin-left: $icon-offset;
- }
- > md-icon {
- top: 26px;
- left: 2px;
- + input,
- + textarea {
- margin-left: $icon-offset;
- }
- }
- > input,
- > textarea {
- padding-top : $input-line-height - $input-container-padding;
- }
- &.md-input-focused,
- &.md-input-has-value {
- margin-top: $icon-float-focused-top;
- label {
- transform: translate3d(0,$input-label-float-offset,0) scale($input-label-float-scale);
- transition: transform $swift-ease-out-timing-function 0.5s;
- }
- }
- }
- md-input-container.md-icon-right {
- input {
- margin-right: $icon-offset;
- + md-icon {
- top: 26px;
- right: 2px;
- margin-right: 0;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-input-container.md-default-theme > md-icon {
- fill: #fff;
- }
- }
- $list-h3-margin: 0 0 0px 0 !default;
- $list-h4-margin: 3px 0 1px 0 !default;
- $list-h4-font-weight: 400 !default;
- $list-header-line-height: 1.2em !default;
- $list-p-margin: 0 0 0 0 !default;
- $list-p-line-height: 1.6em !default;
- $list-padding-top: $baseline-grid !default;
- $list-padding-right: 0px !default;
- $list-padding-left: 0px !default;
- $list-padding-bottom: $baseline-grid !default;
- $item-padding-top: 0px !default;
- $item-padding-right: 0px !default;
- $item-padding-left: 0px !default;
- $item-padding-bottom: 0px !default;
- $list-item-padding-vertical: 0px !default;
- $list-item-padding-horizontal: $baseline-grid * 2 !default;
- $list-item-primary-width: $baseline-grid * 7 !default;
- $list-item-primary-avatar-width: $baseline-grid * 5 !default;
- $list-item-primary-icon-width: $baseline-grid * 3 !default;
- $list-item-secondary-left-margin: $baseline-grid * 2 !default;
- $list-item-secondary-button-width: $baseline-grid * 6 !default;
- $list-item-inset-divider-offset: 12 * $baseline-grid !default;
- $list-item-height: 6 * $baseline-grid !default;
- $list-item-two-line-height: 9 * $baseline-grid !default;
- $list-item-three-line-height: 11 * $baseline-grid !default;
- md-list {
- display: block;
- padding: $list-padding-top $list-padding-right $list-padding-bottom $list-padding-left;
- .md-subheader {
- font-size: $body-font-size-base;
- font-weight: 500;
- letter-spacing: 0.010em;
- line-height: $list-header-line-height;
- }
- }
- md-list-item {
- &.md-proxy-focus.md-focused .md-no-style {
- transition: background-color 0.15s linear;
- }
- &.md-no-proxy,
- .md-no-style {
- position: relative;
- padding: $list-item-padding-vertical $list-item-padding-horizontal;
- flex: 1 1 auto;
-
- &.md-button {
- font-size: inherit;
- height: inherit;
- text-align: left;
- text-transform: none;
- width: 100%;
- white-space: normal;
- flex-direction: inherit;
- align-items: inherit;
- }
- &:focus {
- outline: none
- }
- }
- &.md-with-secondary {
- position: relative;
- }
- &.md-clickable:hover {
- cursor: pointer;
- }
- md-divider {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- &[md-inset] {
- left: $list-item-inset-divider-offset;
- width: calc(100% - #{$list-item-inset-divider-offset});
- margin: 0;
- }
- }
- }
- md-list-item, md-list-item .md-list-item-inner {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- min-height: $list-item-height;
- height:auto;
- // Layout for controls in primary or secondary divs, or auto-infered first child
- & > div.md-primary > md-icon:not(.md-avatar-icon),
- & > div.md-secondary > md-icon:not(.md-avatar-icon),
- & > md-icon:first-child:not(.md-avatar-icon),
- > md-icon.md-secondary:not(.md-avatar-icon) {
- width: $list-item-primary-icon-width;
- margin-top: 16px;
- margin-bottom: 12px;
- box-sizing: content-box;
- }
- & > div.md-primary > md-checkbox,
- & > div.md-secondary > md-checkbox,
- & > md-checkbox:first-child,
- md-checkbox.md-secondary {
- align-self: center;
- .md-label { display: none; }
- }
- & > md-icon:first-child:not(.md-avatar-icon) {
- margin-right: $list-item-primary-width - $list-item-primary-icon-width;
- }
- & > md-checkbox:first-child {
- width: 3 * $baseline-grid;
- margin-left: 3px;
- margin-right: 29px;
- }
- & > .md-avatar, .md-avatar-icon {
- margin-top: $baseline-grid;
- margin-bottom: $baseline-grid;
- margin-right: $list-item-primary-width - $list-item-primary-avatar-width;
- border-radius: 50%;
- box-sizing: content-box;
- }
- & > .md-avatar {
- width: $list-item-primary-avatar-width;
- height: $list-item-primary-avatar-width;
- }
- & > .md-avatar-icon {
- padding: 8px;
- }
- md-checkbox.md-secondary,
- md-switch.md-secondary {
- margin-right: 0;
- margin-top: 0;
- margin-bottom: 0;
- }
- button.md-button.md-secondary-container {
- background-color: transparent;
- align-self: center;
- border-radius: 50%;
- margin: 0px;
- min-width: 0px;
- .md-ripple,
- .md-ripple-container {
- border-radius: 50%;
- }
- }
- .md-secondary-container,
- .md-secondary {
- margin-left: $list-item-secondary-left-margin;
- position: absolute;
- right: $list-item-padding-horizontal;
- top: 50%;
- transform: translate3d(0, -50%, 0);
- }
- & > .md-button.md-secondary-container > .md-secondary {
- margin-left: 0px;
- position: static;
- }
- & > p, & > .md-list-item-inner > p {
- flex: 1;
- margin: 0;
- }
- }
- md-list-item.md-2-line,
- md-list-item.md-2-line > .md-no-style,
- md-list-item.md-3-line,
- md-list-item.md-3-line > .md-no-style {
- align-items: flex-start;
- justify-content: center;
- .md-list-item-text {
- flex: 1;
- margin: auto;
- text-overflow: ellipsis;
- &.md-offset {
- margin-left: $list-item-primary-width;
- }
- h3 {
- font-size: $subhead-font-size-base;
- font-weight: 400;
- letter-spacing: 0.010em;
- margin: $list-h3-margin;
- line-height: $list-header-line-height;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- h4 {
- font-size: $body-font-size-base;
- letter-spacing: 0.010em;
- margin: $list-h4-margin;
- font-weight: $list-h4-font-weight;
- line-height: $list-header-line-height;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- p {
- font-size: $body-font-size-base;
- font-weight: 500;
- letter-spacing: 0.010em;
- margin: $list-p-margin;
- line-height: $list-p-line-height;
- }
- }
- }
- md-list-item.md-2-line,
- md-list-item.md-2-line > .md-no-style {
- height:auto;
- min-height: $list-item-two-line-height;
- &.md-long-text {
- margin:1.6em;
- }
- > .md-avatar, .md-avatar-icon {
- margin-top: $baseline-grid * 1.5;
- }
- > md-icon:first-child {
- align-self: flex-start;
- }
- .md-list-item-text {
- flex: 1;
- }
- }
- md-list-item.md-3-line,
- md-list-item.md-3-line > .md-no-style {
- height:auto;
- min-height: $list-item-three-line-height;
- &.md-long-text {
- margin:1.6em;
- }
- > md-icon:first-child,
- > .md-avatar {
- margin-top: $baseline-grid * 2;
- }
- }
- $menu-border-radius: 2px;
- $max-visible-items: 6;
- $menu-item-height: 6 * $baseline-grid;
- $dense-menu-item-height: 4 * $baseline-grid;
- $max-menu-height: 2 * $baseline-grid + $max-visible-items * $menu-item-height;
- $max-dense-menu-height: 2 * $baseline-grid + $max-visible-items * $dense-menu-item-height;
- .md-open-menu-container {
- position: fixed;
- left: 0;
- top: 0;
- z-index: $z-index-menu;
- opacity: 0;
- border-radius: $menu-border-radius;
- md-menu-divider {
- margin-top: $baseline-grid / 2;
- margin-bottom: $baseline-grid / 2;
- height: 1px;
- width: 100%;
- }
- md-menu-content > * {
- opacity: 0;
- }
- // Don't let the user click something until it's animated
- &:not(.md-clickable) {
- pointer-events: none;
- }
- // enter: menu scales in, then list fade in.
- &.md-active {
- opacity: 1;
- transition: $swift-ease-out;
- transition-duration: 200ms;
- > md-menu-content > * {
- opacity: 1;
- transition: $swift-ease-in;
- transition-duration: 200ms;
- transition-delay: 100ms;
- }
- }
- // leave: the container fades out
- &.md-leave {
- opacity: 0;
- transition: $swift-ease-in;
- transition-duration: 250ms;
- }
- }
- md-menu-content {
- display: flex;
- flex-direction: column;
- padding: $baseline-grid 0;
- max-height: $max-menu-height;
- overflow-y: auto;
- &.md-dense {
- max-height: $max-dense-menu-height;
- md-menu-item {
- height: $dense-menu-item-height;
- min-height: 0px;
- }
- }
- }
- md-menu-item {
- display: flex;
- flex-direction: row;
- min-height: $menu-item-height;
- height: $menu-item-height;
- align-content: center;
- justify-content: flex-start;
- > * {
- width: 100%;
- margin: auto 0;
- padding-left: 2*$baseline-grid;
- padding-right: 2*$baseline-grid;
- }
- > a.md-button {
- display: flex;
- }
- > .md-button {
- border-radius: 0;
- margin: auto 0;
- font-size: (2*$baseline-grid) - 1;
- text-transform: none;
- font-weight: 400;
- text-align: start;
- height: 100%;
- padding-left: 2*$baseline-grid;
- padding-right: 2*$baseline-grid;
- display: inline-block;
- align-items: baseline;
- align-content: left;
- width:100%;
- md-icon {
- margin: auto 2*$baseline-grid auto 0;
- }
- p {
- display:inline-block;
- margin: auto;
- }
- span {
- margin-top: auto;
- margin-bottom: auto;
- }
- .md-ripple-container {
- border-radius: inherit;
- }
- }
- }
- .md-menu {
- padding: $baseline-grid 0;
- }
- md-toolbar {
- .md-menu {
- height: auto;
- margin: auto;
- }
- }
- @media (max-width: $layout-breakpoint-sm - 1) {
- md-menu-content {
- min-width: 112px;
- }
- @for $i from 3 through 7 {
- md-menu-content[width="#{$i}"] {
- min-width: $i * 56px;
- }
- }
- }
- @media (min-width: $layout-breakpoint-sm) {
- md-menu-content {
- min-width: 96px;
- }
- @for $i from 3 through 7 {
- md-menu-content[width="#{$i}"] {
- min-width: $i * 64px;
- }
- }
- }
- md-toolbar.md-menu-toolbar {
- h2.md-toolbar-tools {
- line-height: 1rem;
- height: auto;
- padding: 3.5 * $baseline-grid;
- padding-bottom: 1.5 * $baseline-grid;
- }
- }
- md-menu-bar {
- padding: 0 2.5 * $baseline-grid;
- display: block;
- position: relative;
- z-index: 2;
- .md-menu {
- display: inline-block;
- padding: 0;
- position: relative;
- }
- button {
- font-size: rem(1.4);
- padding: 0 1.25 * $baseline-grid;
- margin: 0;
- border: 0;
- background-color: transparent;
- height: 5 * $baseline-grid;
- }
- md-backdrop.md-menu-backdrop {
- z-index: -2;
- }
- }
- md-menu-content.md-menu-bar-menu.md-dense {
- max-height: none;
- padding: 2 * $baseline-grid 0;
- md-menu-item.md-indent {
- position: relative;
- > md-icon {
- position: absolute;
- padding: 0;
- width: 24px;
- top: 0.75 * $baseline-grid;
- left: 3 * $baseline-grid;
- }
- > .md-button, .md-menu > .md-button {
- padding: 0 4 * $baseline-grid 0 8 * $baseline-grid;
- }
- }
- .md-button {
- min-height: 0;
- height: 4 * $baseline-grid;
- display: flex;
- span {
- flex-grow: 1;
- }
- span.md-alt-text {
- flex-grow: 0;
- align-self: flex-end;
- margin: 0 $baseline-grid;
- }
- }
- md-menu-divider {
- margin: $baseline-grid 0;
- }
- .md-menu {
- padding: 0;
- > .md-button {
- position: relative;
- margin: 0;
- width: 100%;
- text-align: left;
- text-align: start;
- text-transform: none;
- font-weight: normal;
- border-radius: 0px;
- padding-left: 2 * $baseline-grid;
- &:after {
- display: block;
- content: '\25BC';
- position: absolute;
- top: 0px;
- speak: none;
- transform: rotate(270deg) scaleY(0.45) scaleX(0.9);
- right: 3.5 * $baseline-grid;
- }
- }
- }
- }
- $progress-circular-ease-in-out : cubic-bezier(0.35, 0, 0.25, 1) !default;
- $progress-circular-duration : 5.25s !default;
- $progress-circular-circle-duration : $progress-circular-duration * 0.25 !default;
- $progress-circular-outer-duration : $progress-circular-duration * (5 / 9) !default;
- $progress-circular-sporadic-duration : $progress-circular-duration !default;
- $progress-border-width : 10px;
- $progress-circular-size : 10 * $progress-border-width !default;
- md-progress-circular {
- display: block;
- position: relative;
- width: $progress-circular-size;
- height: $progress-circular-size;
- padding-top: 0 !important;
- margin-bottom: 0 !important;
- transform: scale(0.5);
- .md-spinner-wrapper {
- display:block;
- position: relative;
- overflow: hidden;
- .md-inner {
- width: $progress-circular-size;
- height: $progress-circular-size;
- position: relative;
- .md-gap {
- position: absolute;
- left: $progress-circular-size * 0.5 - 1;
- right: $progress-circular-size * 0.5 - 1;
- top: 0;
- bottom: 0;
- border-top-width: $progress-border-width;
- border-top-style: solid;
- box-sizing: border-box;
- }
- .md-left, .md-right {
- position: absolute;
- top: 0;
- height: $progress-circular-size;
- width: $progress-circular-size * 0.50;
- overflow: hidden;
- .md-half-circle {
- position: absolute;
- top: 0;
- width: $progress-circular-size;
- height: $progress-circular-size;
- box-sizing: border-box;
- border-width: $progress-border-width;
- border-style: solid;
- border-bottom-color: transparent;
- border-radius: 50%;
- }
- }
- .md-left {
- left: 0;
- .md-half-circle {
- left: 0;
- border-right-color: transparent;
- }
- }
- .md-right {
- right: 0;
- .md-half-circle {
- right: 0;
- border-left-color: transparent;
- }
- }
- }
- }
- .md-spinner-wrapper.md-mode-indeterminate {
- animation: outer-rotate $progress-circular-outer-duration linear infinite;
- .md-inner {
- animation: sporadic-rotate $progress-circular-sporadic-duration $progress-circular-ease-in-out infinite;
- .md-left, .md-right {
- .md-half-circle {
- animation-iteration-count: infinite;
- animation-duration: ($progress-circular-duration * 0.25);
- animation-timing-function: $progress-circular-ease-in-out;
- }
- }
- .md-left {
- .md-half-circle {
- animation-name: left-wobble;
- }
- }
- .md-right {
- .md-half-circle {
- animation-name: right-wobble;
- }
- }
- }
- }
- md-progress-circular.ng-hide {
- .md-spinner-wrapper {
- animation: none;
- .md-inner {
- animation: none;
- .md-left {
- .md-half-circle {
- animation-name: none;
- }
- }
- .md-right {
- .md-half-circle {
- animation-name: none;
- }
- }
- }
- }
- }
- .md-spinner-wrapper.ng-hide {
- animation: none;
- .md-inner {
- animation: none;
- .md-left {
- .md-half-circle {
- animation-name: none;
- }
- }
- .md-right {
- .md-half-circle {
- animation-name: none;
- }
- }
- }
- }
- }
- //
- // Keyframe animation for the Indeterminate Progress
- //
- @keyframes outer-rotate {
- 100% { transform: rotate(360deg); }
- }
- @keyframes left-wobble {
- 0%, 100% { transform: rotate(130deg); }
- 50% { transform: rotate( -5deg); }
- }
- @keyframes right-wobble {
- 0%, 100% { transform: rotate(-130deg); }
- 50% { transform: rotate( 5deg); }
- }
- @keyframes sporadic-rotate {
- 12.5% { transform: rotate( 135deg); }
- 25% { transform: rotate( 270deg); }
- 37.5% { transform: rotate( 405deg); }
- 50% { transform: rotate( 540deg); }
- 62.5% { transform: rotate( 675deg); }
- 75% { transform: rotate( 810deg); }
- 87.5% { transform: rotate( 945deg); }
- 100% { transform: rotate(1080deg); }
- }
- $radio-width: 16px !default;
- $radio-height: $radio-width !default;
- $radio-text-margin: 10px !default;
- $radio-top-left: -15px !default;
- md-radio-button,
- .md-switch-thumb { // Used in switch
- box-sizing: border-box;
- display: block;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer;
- .md-container {
- box-sizing: border-box;
- position: relative;
- top: 4px;
- display: inline-block;
- width: $radio-width;
- height: $radio-width;
- cursor: pointer;
- .md-ripple-container {
- position: absolute;
- display: block;
- width: $radio-width * 3;
- height: $radio-width * 3;
- left: -$radio-width;
- top: -$radio-width;
- }
- &:before {
- box-sizing: border-box;
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto;
- }
- }
- &.md-align-top-left > div.md-container {
- top: $radio-top-left;
- }
- .md-off {
- box-sizing: border-box;
- position: absolute;
- top: 0;
- left: 0;
- width: $radio-width;
- height: $radio-width;
- border-style: solid;
- border-width: 2px;
- border-radius: 50%;
- transition: border-color ease 0.28s;
- }
- .md-on {
- box-sizing: border-box;
- position: absolute;
- top: 0;
- left: 0;
- width: $radio-width;
- height: $radio-width;
- border-radius: 50%;
- transition: transform ease 0.28s;
- transform: scale(0);
- }
- &.md-checked .md-on {
- transform: scale(0.50);
- }
- .md-label {
- box-sizing: border-box;
- position: relative;
- display: inline-block;
- @include rtl(margin-left, $radio-text-margin, 0);
- @include rtl(margin-right, 0, $radio-text-margin);
- vertical-align: middle;
- white-space: normal;
- pointer-events: none;
- width: auto;
- }
- .circle {
- border-radius: 50%;
- }
- }
- md-radio-group {
- &:focus {
- outline: none;
- }
- &.md-focused {
- .md-checked .md-container:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-radio-button.md-default-theme .md-on {
- background-color: #fff;
- }
- }
- $progress-linear-bar-height: 5px !default;
- md-progress-linear {
- display: block;
- position: relative;
- width: 100%;
- height: $progress-linear-bar-height;
- padding-top: 0 !important;
- margin-bottom: 0 !important;
- .md-container {
- display:block;
- position: relative;
- overflow: hidden;
- width:100%;
- height: $progress-linear-bar-height;
- transform: translate(0, 0) scale(1, 1);;
- .md-bar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 100%;
- height: $progress-linear-bar-height;
- }
- .md-dashed:before {
- content: "";
- display: none;
- position: absolute;
- margin-top: 0;
- height: $progress-linear-bar-height;
- width: 100%;
- background-color: transparent;
- background-size: 10px 10px !important;
- background-position: 0px -23px;
- }
- .md-bar1, .md-bar2 {
- // Just set the transition information here.
- // Note: the actual transform values are calculated in JS
- transition: transform 0.2s linear;
- }
- // ************************************************************
- // Animations for modes: Determinate, InDeterminate, and Query
- // ************************************************************
- &.md-mode-query {
- .md-bar1 {
- display: none;
- }
- .md-bar2 {
- transition: all 0.2s linear;
- animation: query .8s infinite cubic-bezier(0.390, 0.575, 0.565, 1.000);
- }
- }
- &.md-mode-determinate {
- .md-bar1 {
- display: none;
- }
- }
- &.md-mode-indeterminate {
- .md-bar1 {
- animation: md-progress-linear-indeterminate-scale-1 4s infinite,
- md-progress-linear-indeterminate-1 4s infinite;
- }
- .md-bar2 {
- animation: md-progress-linear-indeterminate-scale-2 4s infinite,
- md-progress-linear-indeterminate-2 4s infinite;
- }
- }
- &.ng-hide {
- animation: none;
- .md-bar1 {
- animation-name: none;
- }
- .md-bar2 {
- animation-name: none;
- }
- }
- }
- // Special animations for the `buffer` mode
- .md-container.md-mode-buffer {
- background-color: transparent !important;
- transition: all 0.2s linear;
- .md-dashed:before {
- display: block;
- animation: buffer 3s infinite linear;
- }
- }
- }
- @keyframes query {
- 0% {
- opacity: 1;
- transform: translateX(35%) scale(.3, 1);
- }
- 100% {
- opacity: 0;
- transform: translateX(-50%) scale(0, 1);
- }
- }
- @keyframes buffer {
- 0% {
- opacity: 1;
- background-position: 0px -23px;
- }
- 50% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- background-position: -200px -23px;
- }
- }
- @keyframes md-progress-linear-indeterminate-scale-1 {
- 0% {
- transform: scaleX(0.1);
- animation-timing-function: linear;
- }
- 36.6% {
- transform: scaleX(0.1);
- animation-timing-function: cubic-bezier(0.334731432, 0.124819821, 0.785843996, 1);
- }
- 69.15% {
- transform: scaleX(0.83);
- animation-timing-function: cubic-bezier(0.225732004, 0, 0.233648906, 1.3709798);
- }
- 100% {
- transform: scaleX(0.1);
- }
- }
- @keyframes md-progress-linear-indeterminate-1 {
- 0% {
- left: -378.6 * 100% / 360;
- animation-timing-function: linear;
- }
- 20% {
- left: -378.6 * 100% / 360;
- animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495818703);
- }
- 69.15% {
- left: 77.4 * 100% / 360;
- animation-timing-function: cubic-bezier(0.302435, 0.38135197, 0.55, 0.956352125);
- }
- 100% {
- left: 343.6 * 100% / 360;
- }
- }
- @keyframes md-progress-linear-indeterminate-scale-2 {
- 0% {
- transform: scaleX(0.1);
- animation-timing-function: cubic-bezier(0.205028172, 0.057050836, 0.57660995, 0.453970841);
- }
- 19.15% {
- transform: scaleX(0.57);
- animation-timing-function: cubic-bezier(0.152312994, 0.196431957, 0.648373778, 1.00431535);
- }
- 44.15% {
- transform: scaleX(0.91);
- animation-timing-function: cubic-bezier(0.25775882, -0.003163357, 0.211761916, 1.38178961);
- }
- 100% {
- transform: scaleX(0.1);
- }
- }
- @keyframes md-progress-linear-indeterminate-2 {
- 0% {
- left: -197.6 * 100% / 360;
- animation-timing-function: cubic-bezier(0.15, 0, 0.5150584, 0.409684966);
- }
- 25% {
- left: -62.1 * 100% / 360;
- animation-timing-function: cubic-bezier(0.3103299, 0.284057684, 0.8, 0.733718979);
- }
- 48.35% {
- left: 106.2 * 100% / 360;
- animation-timing-function: cubic-bezier(0.4, 0.627034903, 0.6, 0.902025796);
- }
- 100% {
- left: 422.6 * 100% / 360;
- }
- }
- $select-option-height: 48px;
- $select-option-padding: 16px;
- $select-container-padding: 16px;
- $select-container-transition-duration: 350ms;
- $select-max-visible-options: 5;
- .md-select-menu-container {
- position: fixed;
- left: 0;
- top: 0;
- z-index: $z-index-select;
- opacity: 0;
- // Don't let the user select a new choice while it's animating
- &:not(.md-clickable) {
- pointer-events: none;
- }
- md-progress-circular {
- display: table;
- margin: 3*$baseline-grid auto !important;
- }
- // enter: md-select scales in, then options fade in.
- &.md-active {
- opacity: 1;
- md-select-menu {
- transition: $swift-ease-out;
- transition-duration: 150ms;
- > * {
- opacity: 1;
- transition: $swift-ease-in;
- transition-duration: 150ms;
- transition-delay: 100ms;
- }
- }
- }
- // leave: the container fades out
- &.md-leave {
- opacity: 0;
- transition: $swift-ease-in;
- transition-duration: 250ms;
- }
- }
- md-input-container > md-select {
- margin: 0;
- order: 2;
- }
- md-select {
- display: flex;
- margin: 2.5*$baseline-grid 0 3*$baseline-grid + 2 0;
- &[disabled] .md-select-value {
- background-position: 0 bottom;
- // This background-size is coordinated with a linear-gradient set in select-theme.scss
- // to create a dotted line under the input.
- background-size: 4px 1px;
- background-repeat: repeat-x;
- margin-bottom: -1px; // Shift downward so dotted line is positioned the same as other bottom borders
- }
- &:focus {
- outline: none;
- }
- &[disabled]:hover {
- cursor: default;
- }
- &:not([disabled]) {
- &:hover {
- cursor: pointer
- }
- &.ng-invalid.ng-dirty {
- .md-select-value {
- border-bottom: 2px solid;
- padding-bottom: 0;
- }
- }
- &:focus {
- .md-select-value {
- border-bottom-width: 2px;
- border-bottom-style: solid;
- padding-bottom: 0;
- }
- }
- }
- }
- .md-select-value {
- display: flex;
- align-items: center;
- padding: 2px 2px 1px;
- border-bottom-width: 1px;
- border-bottom-style: solid;
- background-color: rgba(0,0,0,0);
- position: relative;
- box-sizing: content-box;
- min-width: 8 * $baseline-grid;
- min-height: 26px;
- flex-grow: 1;
- *:first-child {
- flex: 1;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: calc(100% - 2*#{$baseline-grid});
- transform: translate3d(0, 2px, 0);
- }
- .md-select-icon {
- display: block;
- align-items: flex-end;
- text-align: end;
- width: 3 * $baseline-grid;
- margin: 0 .5 * $baseline-grid;
- transform: translate3d(0, 1px, 0);
- }
- .md-select-icon:after {
- display: block;
- content: '\25BC';
- position: relative;
- top: 2px;
- speak: none;
- transform: scaleY(0.6) scaleX(1);
- }
- &.md-select-placeholder {
- display: flex;
- order: 1;
- pointer-events: none;
- -webkit-font-smoothing: antialiased;
- padding-left: 2px;
- z-index: 1;
- }
- }
- md-select-menu {
- display: flex;
- flex-direction: column;
- &.md-reverse {
- flex-direction: column-reverse;
- }
- &:not(.md-overflow) {
- md-content {
- padding-top: $baseline-grid;
- padding-bottom: $baseline-grid;
- }
- }
- box-shadow: $whiteframe-shadow-1dp;
- max-height: ($select-option-height * $select-max-visible-options) + 2 * $baseline-grid;
- min-height: $select-option-height;
- overflow-y: hidden;
- @include rtl(transform-origin, left top, right top);
- transform: scale(1.0);
- md-content {
- min-width: 136px;
- min-height: $select-option-height;
- max-height: ($select-option-height * $select-max-visible-options) + 2 * $baseline-grid;
- overflow-y: auto;
- }
- > * {
- opacity: 0;
- }
- }
- md-option {
- cursor: pointer;
- position: relative;
- display: flex;
- align-items: center;
- width: auto;
- &:focus {
- outline: none;
- }
- .md-text {
- @include not-selectable();
- width: auto;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: rem(1.6);
- }
- padding: 0 $select-option-padding 0 $select-option-padding;
- height: $select-option-height;
- }
- md-optgroup {
- display: block;
- label {
- display: block;
- font-size: rem(1.4);
- text-transform: uppercase;
- padding: $baseline-grid * 2;
- font-weight: 500;
- }
- md-option {
- padding-left: $select-option-padding * 2;
- padding-right: $select-option-padding * 2;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- .md-select-backdrop {
- background-color: transparent;
- }
- md-select-menu {
- border: 1px solid #fff;
- }
- }
- $sidenav-default-width: 304px !default;
- $sidenav-min-space: 56px !default;
- md-sidenav {
- box-sizing: border-box;
- position: absolute;
- flex-direction: column;
- z-index: $z-index-sidenav;
- width: $sidenav-default-width;
- min-width: $sidenav-default-width;
- max-width: $sidenav-default-width;
- bottom: 0;
- overflow: auto;
- ul {
- list-style: none;
- }
- &.md-closed {
- display: none;
- }
- &.md-closed-add,
- &.md-closed-remove {
- display: flex;
- transition: 0.2s ease-in all;
- }
- &.md-closed-add.md-closed-add-active,
- &.md-closed-remove.md-closed-remove-active {
- transition: $swift-ease-out;
- }
- &.md-locked-open-add,
- &.md-locked-open-remove {
- position: static;
- display: flex;
- transform: translate3d(0, 0, 0);
- }
- &.md-locked-open {
- width: $sidenav-default-width;
- min-width: $sidenav-default-width;
- max-width: $sidenav-default-width;
- }
- &.md-locked-open,
- &.md-locked-open.md-closed,
- &.md-locked-open.md-closed.md-sidenav-left,
- &.md-locked-open.md-closed.md-sidenav-right,
- &.md-locked-open-remove.md-closed {
- position: static;
- display: flex;
- transform: translate3d(0, 0, 0);
- }
- &.md-locked-open-remove-active {
- transition: width $swift-ease-in-duration $swift-ease-in-timing-function,
- min-width $swift-ease-in-duration $swift-ease-in-timing-function;
- width: 0;
- min-width: 0;
- }
- &.md-closed.md-locked-open-add {
- width: 0;
- min-width: 0;
- transform: translate3d(0%, 0, 0);
- }
- &.md-closed.md-locked-open-add-active {
- transition: width $swift-ease-in-duration $swift-ease-in-timing-function,
- min-width $swift-ease-in-duration $swift-ease-in-timing-function;
- width: $sidenav-default-width;
- min-width: $sidenav-default-width;
- transform: translate3d(0%, 0, 0);
- }
- @extend .md-sidenav-left;
- }
- .md-sidenav-backdrop.md-locked-open {
- display: none;
- }
- .md-sidenav-left {
- left: 0;
- top: 0;
- transform: translate3d(0%, 0, 0);
- &.md-closed {
- transform: translate3d(-100%, 0, 0);
- }
- }
- .md-sidenav-right {
- left: 100%;
- top: 0;
- transform: translate3d(-100%, 0, 0);
- &.md-closed {
- transform: translate3d(0%, 0, 0);
- }
- }
- @media (max-width: $sidenav-default-width + $sidenav-min-space) {
- md-sidenav {
- width: 85%;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- .md-sidenav-left {
- border-right: 1px solid #fff;
- }
- .md-sidenav-right {
- border-left: 1px solid #fff;
- }
- }
- $slider-background-color: rgb(200, 200, 200) !default;
- $slider-height: 48px !default;
- $slider-track-height: 2px !default;
- $slider-thumb-width: 32px !default;
- $slider-thumb-height: $slider-thumb-width !default;
- $slider-thumb-default-scale: 0.5 !default;
- $slider-thumb-hover-scale: 0.6 !default;
- $slider-thumb-focus-scale: 0.85 !default;
- $slider-thumb-disabled-scale: 0.35 !default;
- $slider-thumb-disabled-border: 6px !default;
- $slider-focus-thumb-width: 48px !default;
- $slider-focus-thumb-height: $slider-focus-thumb-width !default;
- $slider-focus-ring-border-width: 3px !default;
- $slider-arrow-height: 16px !default;
- $slider-arrow-width: 28px !default;
- $slider-sign-height: 28px !default;
- $slider-sign-width: 28px !default;
- $slider-sign-top: ($slider-height / 2) - ($slider-thumb-default-scale * $slider-thumb-height / 2) - ($slider-sign-height) - ($slider-arrow-height) + 8px !default;
- @keyframes sliderFocusThumb {
- 0% {
- opacity: 0;
- transform: scale(0.0);
- }
- 50% {
- transform: scale(1.0);
- opacity: 1;
- }
- 100% {
- opacity: 0;
- }
- }
- @mixin slider-thumb-position($width: $slider-thumb-width, $height: $slider-thumb-height) {
- position: absolute;
- left: -$width / 2;
- top: ($slider-height / 2) - ($height / 2);
- width: $width;
- height: $height;
- border-radius: max($width, $height);
- }
- md-slider {
- height: $slider-height;
- position: relative;
- display: block;
- margin-left: 4px;
- margin-right: 4px;
- padding: 0;
- *, *:after {
- box-sizing: border-box;
- }
- .md-slider-wrapper {
- position: relative;
- }
- /**
- * Track
- */
- .md-track-container {
- width: 100%;
- position: absolute;
- top: ($slider-height / 2) - ($slider-track-height) / 2;
- height: $slider-track-height;
- }
- .md-track {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%;
- }
- .md-track-fill {
- transition: width 0.05s linear;
- }
- .md-track-ticks {
- position: absolute;
- left: 0;
- right: 0;
- height: 100%;
- }
- .md-track-ticks canvas {
- // Restrict the width of the canvas so that ticks are rendered correctly
- // when parent elements are resized. Else, the position of the ticks might
- // be incorrect as we only update the canvas width attribute on window resize.
- width: 100%;
- }
- /**
- * Slider thumb
- */
- .md-thumb-container {
- position: absolute;
- left: 0;
- top: 50%;
- transform: translate3d(-50%,-50%,0);
- transition: left 0.1s linear;
- }
- .md-thumb {
- z-index: 1;
- // Positioning the outer area of the thumb 6px bigger than it needs to be keeps
- // the :after area being clipped by the background of the focus-thumb animation.
- @include slider-thumb-position($slider-thumb-width + 6, $slider-thumb-height + 6);
- // We render thumb in an :after selector to fix an obscure problem with the
- // thumb being clipped by the focus-ring and focus-thumb while running the focus
- // animation.
- &:after {
- content: '';
- position: absolute;
- left: 3px;
- top: 3px;
- width: $slider-thumb-width;
- height: $slider-thumb-height;
- border-radius: max($slider-thumb-width, $slider-thumb-height);
- border-width: 3px;
- border-style: solid;
- }
- transform: scale($slider-thumb-default-scale);
- transition: all 0.1s linear;
- }
- /* The sign that's focused in discrete mode */
- .md-sign {
- /* Center the children (slider-thumb-text) */
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- left: -($slider-sign-height / 2);
- top: $slider-sign-top;
- width: $slider-sign-width;
- height: $slider-sign-height;
- border-radius: max($slider-sign-height, $slider-sign-width);
- transform: scale(0.4) translate3d(0,(-$slider-sign-top + 8) / 0.4,0);
- transition: all 0.2s ease-in-out;
- /* The arrow pointing down under the sign */
- &:after {
- position: absolute;
- content: '';
- left: -($slider-sign-width / 2 - $slider-arrow-width / 2);
- border-radius: $slider-arrow-height;
- top: 19px;
- border-left: $slider-arrow-width / 2 solid transparent;
- border-right: $slider-arrow-width / 2 solid transparent;
- border-top-width: $slider-arrow-height;
- border-top-style: solid;
- opacity: 0;
- transform: translate3d(0,-8px,0);
- transition: all 0.2s ease-in-out;
- }
- .md-thumb-text {
- z-index: 1;
- font-size: 12px;
- font-weight: bold;
- }
- }
- /**
- * The border/background that comes in when focused in non-discrete mode
- */
- .md-focus-thumb {
- @include slider-thumb-position($slider-focus-thumb-width, $slider-focus-thumb-height);
- display: none;
- opacity: 0;
- background-color: #C0C0C0;
- animation: sliderFocusThumb 0.4s linear;
- }
- .md-focus-ring {
- @include slider-thumb-position($slider-focus-thumb-width, $slider-focus-thumb-height);
- transform: scale(0);
- transition: all 0.2s linear;
- opacity: 0.26;
- }
- .md-disabled-thumb {
- @include slider-thumb-position(
- $slider-thumb-width + $slider-thumb-disabled-border * 2,
- $slider-thumb-height + $slider-thumb-disabled-border * 2
- );
- transform: scale($slider-thumb-disabled-scale);
- border-width: $slider-thumb-disabled-border;
- border-style: solid;
- display: none;
- }
- &.md-min {
- .md-thumb {
- &:after {
- background-color: white;
- }
- }
- .md-sign {
- opacity: 0;
- }
- }
- &:focus {
- outline: none;
- }
- /* Don't animate left/right while panning */
- &.md-dragging {
- .md-thumb-container,
- .md-track-fill {
- transition: none;
- }
- }
- &:not([md-discrete]) {
- /* Hide the sign and ticks in non-discrete mode */
- .md-track-ticks,
- .md-sign {
- display: none;
- }
- &:not([disabled]) {
- &:hover {
- .md-thumb {
- transform: scale($slider-thumb-hover-scale);
- }
- }
- &:focus,
- &.md-active {
- .md-focus-thumb {
- display: block;
- }
- .md-focus-ring {
- transform: scale(1);
- }
- .md-thumb {
- transform: scale($slider-thumb-focus-scale);
- }
- }
- }
- }
- &[md-discrete] {
- /* Hide the focus thumb in discrete mode */
- .md-focus-thumb,
- .md-focus-ring {
- display: none;
- }
- &:not([disabled]) {
- &:focus,
- &.md-active {
- .md-sign,
- .md-sign:after {
- opacity: 1;
- transform: translate3d(0,0,0) scale(1.0);
- }
- }
- }
- }
- &[disabled] {
- .md-track-fill {
- display: none;
- }
- .md-sign {
- display: none;
- }
- .md-thumb {
- transform: scale($slider-thumb-disabled-scale);
- }
- .md-disabled-thumb {
- display: block;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-slider.md-default-theme .md-track {
- border-bottom: 1px solid #fff;
- }
- }
- .md-sticky-clone {
- z-index: 2;
- top: 0;
- left: 0;
- right: 0;
- position: absolute !important;
- transform: translate3d(-9999px,-9999px,0);
- &[sticky-state="active"] {
- transform: translate3d(0, 0, 0);
- &:not(.md-sticky-no-effect) .md-subheader-inner {
- animation: subheaderStickyHoverIn 0.3s ease-out both;
- }
- }
- }
- $subheader-line-height: 1em !default;
- $subheader-font-size: rem(1.4) !default;
- $subheader-padding: ($baseline-grid * 2) 0px ($baseline-grid * 2) ($baseline-grid * 2) !default;
- $subheader-font-weight: 500 !default;
- $subheader-margin: 0 0 0 0 !default;
- $subheader-margin-right: 16px !default;
- $subheader-sticky-shadow: 0px 2px 4px 0 rgba(0,0,0,0.16) !default;
- @keyframes subheaderStickyHoverIn {
- 0% {
- box-shadow: 0 0 0 0 transparent;
- }
- 100% {
- box-shadow: $subheader-sticky-shadow;
- }
- }
- @keyframes subheaderStickyHoverOut {
- 0% {
- box-shadow: $subheader-sticky-shadow;
- }
- 100% {
- box-shadow: 0 0 0 0 transparent;
- }
- }
- .md-subheader-wrapper {
- &:not(.md-sticky-no-effect) {
- .md-subheader {
- margin: 0;
- }
- transition: 0.2s ease-out margin;
- &.md-sticky-clone {
- z-index: 2;
- }
- &[sticky-state="active"] {
- margin-top: -2px;
- }
- &:not(.md-sticky-clone)[sticky-prev-state="active"] .md-subheader-inner:after {
- animation: subheaderStickyHoverOut 0.3s ease-out both;
- }
- }
- }
- .md-subheader {
- display: block;
- font-size: $subheader-font-size;
- font-weight: $subheader-font-weight;
- line-height: $subheader-line-height;
- margin: $subheader-margin;
- margin-right: $subheader-margin-right;
- position: relative;
- .md-subheader-inner {
- display: block;
- padding: $subheader-padding;
- }
- .md-subheader-content {
- display: block;
- z-index: 1;
- position: relative;
- }
- }
- $switch-width: 36px !default;
- $switch-height: $baseline-grid * 3 !default;
- $switch-bar-height: 14px !default;
- $switch-thumb-size: 20px !default;
- md-switch {
- display: flex;
- align-items: center;
- margin: 15px;
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- user-select: none;
- .md-container {
- cursor: grab;
- width: $switch-width;
- height: $switch-height;
- position: relative;
- user-select: none;
- margin-right: 8px;
- }
- // If the user moves his mouse off the switch, stil display grabbing cursor
- &:not([disabled]) {
- .md-dragging,
- &.md-dragging .md-container {
- cursor: grabbing;
- }
- }
- &.md-focused:not([disabled]) {
- .md-thumb:before {
- left: -8px;
- top: -8px;
- right: -8px;
- bottom: -8px;
- }
- &:not(.md-checked) {
- .md-thumb:before {
- background-color: rgba(0, 0, 0, 0.12);
- }
- }
- }
- .md-label {
- border-color: transparent;
- border-width: 0;
- }
- .md-bar {
- left: 1px;
- width: $switch-width - 2px;
- top: $switch-height / 2 - $switch-bar-height / 2;
- height: $switch-bar-height;
- border-radius: 8px;
- position: absolute;
- }
- .md-thumb-container {
- top: $switch-height / 2 - $switch-thumb-size / 2;
- left: 0;
- width: $switch-width - $switch-thumb-size;
- position: absolute;
- transform: translate3d(0,0,0);
- z-index: 1;
- }
- &.md-checked .md-thumb-container {
- transform: translate3d(100%,0,0);
- }
- .md-thumb {
- position: absolute;
- margin: 0;
- left: 0;
- top: 0;
- outline: none;
- height: $switch-thumb-size;
- width: $switch-thumb-size;
- border-radius: 50%;
- box-shadow: $whiteframe-shadow-1dp;
- &:before {
- background-color: transparent;
- border-radius: 50%;
- content: '';
- position: absolute;
- display: block;
- height: auto;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.5s;
- width: auto;
- }
- .md-ripple-container {
- position: absolute;
- display: block;
- width: auto;
- height: auto;
- left: -$switch-thumb-size;
- top: -$switch-thumb-size;
- right: -$switch-thumb-size;
- bottom: -$switch-thumb-size;
- }
- }
- &:not(.md-dragging) {
- .md-bar,
- .md-thumb-container,
- .md-thumb {
- transition: $swift-linear;
- transition-property: transform, background-color;
- }
- .md-bar,
- .md-thumb {
- transition-delay: 0.05s;
- }
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-switch.md-default-theme .md-bar {
- background-color: #666;
- }
- md-switch.md-default-theme.md-checked .md-bar {
- background-color: #9E9E9E;
- }
- md-switch.md-default-theme .md-thumb {
- background-color: #fff;
- }
- }
- // See height set globally, depended on by buttons
- md-toast {
- display: flex;
- position:absolute;
- z-index: $z-index-toast;
- box-sizing: border-box;
- align-items: center;
- min-height: 48px;
- padding-left: 24px;
- padding-right: 24px;
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
- border-radius: 2px;
- font-size: 14px;
- cursor: default;
- height: 0px;
- max-height: 7*$toast-height;
- max-width: 100%;
- overflow:hidden;
- &.md-capsule {
- border-radius: 24px;
- }
- opacity: 1;
- transform: translate3d(0,0,0) rotateZ(0deg);
- transition: $swift-ease-out;
- &.ng-leave-active {
- transition: $swift-ease-in;
- }
- /* Transition differently when swiping */
- &.md-swipeleft,
- &.md-swiperight,
- &.md-swipeup,
- &.md-swipedown {
- transition: $swift-ease-out;
- }
- &.ng-enter {
- transform: translate3d(0, 100%, 0);
- &.md-top {
- transform: translate3d(0, -100%, 0);
- }
- opacity: 0;
- &.ng-enter-active {
- transform: translate3d(0, 0, 0);
- opacity: 1;
- }
- }
- &.ng-leave.ng-leave-active {
- opacity: 0;
- transform: translate3d(0, 100%, 0);
- &.md-top {
- transform: translate3d(0, -100%, 0);
- }
- &.md-swipeleft {
- transform: translate3d(-100%, 0%, 0);
- }
- &.md-swiperight {
- transform: translate3d(100%, 0%, 0);
- }
- }
- .md-action {
- line-height: 19px;
- margin-left: 24px;
- cursor: pointer;
- text-transform: uppercase;
- float: right;
- &.md-button {
- min-width: 0;
- }
- }
- }
- @media (max-width: $layout-breakpoint-sm) {
- md-toast {
- left: 0;
- right: 0;
- width: 100%;
- max-width: 100%;
- min-width: 0;
- border-radius: 0;
- bottom: 0;
- &.md-top {
- bottom: auto;
- top: 0;
- }
- }
- }
- @media (min-width: $layout-breakpoint-sm) {
- md-toast {
- min-width: 288px;
- &.md-bottom {
- bottom: $toast-margin;
- }
- &.md-left {
- left: $toast-margin;
- }
- &.md-right {
- right: $toast-margin;
- }
- &.md-top {
- top: $toast-margin;
- }
- /*
- * When the toast doesn't take up the whole screen,
- * make it rotate when the user swipes it away
- */
- &.ng-leave.ng-leave-active {
- &.md-swipeleft {
- transform: translate3d(-100%, 25%, 0) rotateZ(-15deg);
- }
- &.md-swiperight {
- transform: translate3d(100%, 25%, 0) rotateZ(15deg);
- }
- &.md-top {
- &.md-swipeleft {
- transform: translate3d(-100%, 0, 0) rotateZ(-15deg);
- }
- &.md-swiperight {
- transform: translate3d(100%, 0, 0) rotateZ(15deg);
- }
- }
- }
- }
- }
- @media (min-width: $layout-breakpoint-lg) {
- md-toast {
- max-width: $baseline-grid * 71;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- md-toast {
- border: 1px solid #fff;
- }
- }
- $tabs-paginator-width: $baseline-grid * 4 !default;
- $tabs-tab-width: $baseline-grid * 12 !default;
- $tabs-header-height: 48px !default;
- @keyframes md-tab-content-hide {
- 0% { opacity: 1; }
- 50% { opacity: 1; }
- 100% { opacity: 0; }
- }
- md-tab-data {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: -1;
- opacity: 0;
- }
- md-tabs {
- display: block;
- margin: 0;
- border-radius: 2px;
- overflow: hidden;
- position: relative;
- flex-shrink: 0;
- &:not(.md-no-tab-content):not(.md-dynamic-height) {
- min-height: 200 + $tabs-header-height;
- }
- &[md-align-tabs="bottom"] {
- padding-bottom: $tabs-header-height;
- md-tabs-wrapper {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- height: $tabs-header-height;
- z-index: 2;
- }
- md-tabs-content-wrapper {
- top: 0;
- bottom: $tabs-header-height;
- }
- }
- &.md-dynamic-height {
- md-tabs-content-wrapper {
- min-height: 0;
- position: relative;
- top: auto;
- left: auto;
- right: auto;
- bottom: auto;
- overflow: visible;
- }
- md-tab-content {
- &.md-active {
- position: relative;
- }
- }
- }
- &[md-border-bottom] {
- md-tabs-wrapper {
- border-width: 0 0 1px;
- border-style: solid;
- }
- &:not(.md-dynamic-height) {
- md-tabs-content-wrapper {
- top: $tabs-header-height + 1;
- }
- }
- }
- }
- md-tabs-wrapper {
- display: block;
- position: relative;
- md-prev-button, md-next-button {
- height: 100%;
- width: $tabs-paginator-width;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- line-height: 1em;
- z-index: 2;
- cursor: pointer;
- font-size: 16px;
- background: transparent no-repeat center center;
- transition: $swift-ease-in-out;
- &:focus {
- outline: none;
- }
- &.md-disabled {
- opacity: 0.25;
- cursor: default;
- }
- &.ng-leave {
- transition: none;
- }
- md-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate3d(-50%, -50%, 0);
- }
- }
- md-prev-button {
- left: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg==');
- }
- md-next-button {
- right: 0;
- background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K');
- md-icon {
- transform: translate3d(-50%, -50%, 0) rotate(180deg);
- }
- }
- &.md-stretch-tabs {
- md-pagination-wrapper {
- width: 100%;
- display: flex;
- flex-direction: row;
- md-tab-item {
- flex-grow: 1;
- }
- }
- }
- }
- md-tabs-canvas {
- @include pie-clearfix;
- position: relative;
- overflow: hidden;
- display: block;
- height: $tabs-header-height;
- .md-dummy-wrapper {
- position: absolute;
- top: 0;
- left: 0;
- }
- &.md-paginated {
- margin: 0 $tabs-paginator-width;
- }
- &.md-center-tabs {
- display: flex;
- flex-direction: column;
- text-align: center;
- .md-tab {
- float: none;
- display: inline-block;
- }
- }
- }
- md-pagination-wrapper {
- @include pie-clearfix;
- height: $tabs-header-height;
- display: block;
- transition: transform $swift-ease-in-out-duration $swift-ease-in-out-timing-function;
- position: absolute;
- width: 999999px;
- left: 0;
- transform: translate3d(0, 0, 0);
- &.md-center-tabs {
- position: relative;
- width: initial;
- margin: 0 auto;
- }
- }
- md-tabs-content-wrapper {
- display: block;
- position: absolute;
- top: $tabs-header-height;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden;
- }
- md-tab-content {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- transform: translateX(0);
- transition: transform $swift-ease-in-out-duration $swift-ease-in-out-timing-function;
- overflow: auto;
- &.md-no-scroll {
- bottom: auto;
- overflow: hidden;
- }
- &.ng-leave, &.md-no-transition {
- transition: none;
- }
- &.md-left {
- transform: translateX(-100%);
- animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
- opacity: 0;
- * {
- transition: visibility 0s linear;
- transition-delay: $swift-ease-in-out-duration;
- visibility: hidden;
- }
- }
- &.md-right {
- transform: translateX(100%);
- animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
- opacity: 0;
- * {
- transition: visibility 0s linear;
- transition-delay: $swift-ease-in-out-duration;
- visibility: hidden;
- }
- }
- > div.ng-leave {
- animation: 2 * $swift-ease-in-out-duration md-tab-content-hide;
- }
- }
- md-ink-bar {
- $duration: $swift-ease-in-out-duration * 0.5;
- $multiplier: 0.5;
- position: absolute;
- left: auto;
- right: auto;
- bottom: 0;
- height: 2px;
- &.md-left {
- transition: left ($duration * $multiplier) $swift-ease-in-out-timing-function,
- right $duration $swift-ease-in-out-timing-function;
- }
- &.md-right {
- transition: left $duration $swift-ease-in-out-timing-function,
- right ($duration * $multiplier) $swift-ease-in-out-timing-function;
- }
- }
- md-tab {
- position: absolute;
- z-index: -1;
- left: -9999px;
- }
- .md-tab {
- font-size: 14px;
- text-align: center;
- line-height: $tabs-header-height - 24;
- padding: 12px 24px;
- transition: background-color 0.35s $swift-ease-in-out-timing-function;
- cursor: pointer;
- white-space: nowrap;
- position: relative;
- text-transform: uppercase;
- float: left;
- font-weight: 500;
- box-sizing: border-box;
- overflow: hidden;
- text-overflow: ellipsis;
- &.md-focused {
- box-shadow: none;
- outline: none;
- }
- &.md-active {
- cursor: default;
- }
- &.md-disabled {
- pointer-events: none;
- touch-action: pan-y;
- user-select: none;
- -webkit-user-drag: none;
- opacity: 0.5;
- cursor: default;
- }
- &.ng-leave {
- transition: none;
- }
- }
- md-toolbar + md-tabs {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- }
- // Standard/Desktop Heights
- $toolbar-tools-height: 64px !default;
- $toolbar-height: 64px !default;
- $toolbar-medium-tall-height: 88px !default;
- $toolbar-tall-height: 128px !default;
- // Mobile portrait heights
- $toolbar-tools-height-mobile-portrait: 56px !default;
- $toolbar-height-mobile-portrait: 56px !default;
- // Mobile landscape heights
- $toolbar-tools-height-mobile-landscape: 48px !default;
- $toolbar-height-mobile-landscape: 48px !default;
- $toolbar-indent-margin: 64px !default;
- $toolbar-padding: 16px !default;
- $icon-button-margin-offset: rem(-0.800) !default;
- md-toolbar {
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- position: relative;
- z-index: 2;
- font-size: rem(2.0);
- min-height: $baseline-grid * 8;
- width: 100%;
- &.md-whiteframe-z1-add, &.md-whiteframe-z1-remove {
- transition: box-shadow $swift-ease-in-out-duration linear;
- }
- md-toolbar-filler {
- width: 9 * $baseline-grid;
- }
- *,
- *:before,
- *:after {
- box-sizing: border-box;
- }
- &.md-tall {
- height: $toolbar-tall-height;
- min-height: $toolbar-tall-height;
- max-height: $toolbar-tall-height;
- }
- &.md-medium-tall {
- height: $toolbar-medium-tall-height;
- min-height: $toolbar-medium-tall-height;
- max-height: $toolbar-medium-tall-height;
- .md-toolbar-tools {
- height: 48px;
- min-height: 48px;
- max-height: 48px;
- }
- }
- > .md-indent {
- margin-left: $toolbar-indent-margin;
- }
- ~ md-content {
- > md-list {
- padding: 0;
- md-list-item:last-child {
- md-divider {
- display: none;
- }
- }
- }
- }
- }
- .md-toolbar-tools {
- font-size: $title-font-size-base;
- letter-spacing: 0.005em;
- box-sizing: border-box;
- font-weight: 400;
- display: flex;
- align-items: center;
- flex-direction: row;
- width: 100%;
- height: $toolbar-tools-height;
- max-height: $toolbar-tools-height;
- padding: 0 $toolbar-padding;
- margin: 0;
- h1, h2, h3 {
- font-size: inherit;
- font-weight: inherit;
- margin: inherit;
- }
- a {
- color: inherit;
- text-decoration: none;
- }
- .fill-height {
- display: flex;
- align-items: center;
- }
- .md-button {
- margin-top: 0;
- margin-bottom: 0;
- }
- &> .md-button:first-child {
- margin-left: $icon-button-margin-offset;
- }
- &> .md-button:last-child {
- margin-right: $icon-button-margin-offset;
- }
- &> md-menu:last-child {
- margin-right: $icon-button-margin-offset;
- & > .md-button {
- margin-right: 0;
- }
- }
- @media screen and (-ms-high-contrast: active) {
- border-bottom: 1px solid #fff;
- }
- }
- // Handle mobile portrait
- @media only screen and (min-width: 0) and (max-width: $layout-breakpoint-sm) and
- (orientation: portrait) {
- md-toolbar {
- min-height: $toolbar-height-mobile-portrait;
- }
- .md-toolbar-tools {
- height: $toolbar-height-mobile-portrait;
- max-height: $toolbar-height-mobile-portrait;
- }
- }
- // Handle mobile landscape
- @media only screen and (min-width: 0) and (max-width: $layout-breakpoint-sm) and
- (orientation: landscape) {
- md-toolbar {
- min-height: $toolbar-height-mobile-landscape;
- }
- .md-toolbar-tools {
- height: $toolbar-height-mobile-landscape;
- max-height: $toolbar-height-mobile-landscape;
- }
- }
- $tooltip-fontsize-lg: rem(1);
- $tooltip-fontsize-sm: rem(1.4);
- $tooltip-height-lg: rem(2.2);
- $tooltip-height-sm: rem(3.2);
- $tooltip-top-margin-lg: rem(1.4);
- $tooltip-top-margin-sm: rem(2.4);
- $tooltip-lr-padding-lg: rem(0.8);
- $tooltip-lr-padding-sm: rem(1.6);
- $tooltip-max-width: rem(3.20);
- md-tooltip {
- position: absolute;
- z-index: $z-index-tooltip;
- overflow: hidden;
- pointer-events: none;
- border-radius: 4px;
- font-weight: 500;
- font-size: $tooltip-fontsize-sm;
- @media screen and (min-width: $layout-breakpoint-sm) {
- font-size: $tooltip-fontsize-lg;
- }
- .md-background {
- position: absolute;
- border-radius: 50%;
- transform: translate(-50%, -50%) scale(0);
- opacity: 1;
- &.md-show-add {
- transition: $swift-ease-out;
- transform: translate(-50%, -50%) scale(0);
- opacity: 0;
- }
- &.md-show, &.md-show-add-active {
- transform: translate(-50%, -50%) scale(1);
- opacity: 1;
- }
- &.md-show-remove {
- transition: $swift-ease-in;
- &.md-show-remove-active {
- transform: translate(-50%, -50%) scale(0);
- opacity: 0;
- }
- }
- }
- .md-content {
- position: relative;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- background: transparent;
- opacity: 0;
- height: $tooltip-height-sm;
- line-height: $tooltip-height-sm;
- padding-left: $tooltip-lr-padding-sm;
- padding-right: $tooltip-lr-padding-sm;
- @media screen and (min-width: $layout-breakpoint-sm) {
- height: $tooltip-height-lg;
- line-height: $tooltip-height-lg;
- padding-left: $tooltip-lr-padding-lg;
- padding-right: $tooltip-lr-padding-lg;
- }
- &.md-show-add {
- transition: $swift-ease-out;
- opacity: 0;
- }
- &.md-show, &.md-show-add-active {
- opacity: 1;
- }
- &.md-show-remove {
- transition: $swift-ease-in;
- &.md-show-remove-active {
- opacity: 0;
- }
- }
- }
- &.md-hide {
- transition: $swift-ease-in;
- }
- &.md-show {
- transition: $swift-ease-out;
- pointer-events: auto;
- transform: translate3d(0,0,0);
- }
- }
- $virtual-repeat-scrollbar-width: 16px;
- .md-virtual-repeat-container {
- box-sizing: border-box;
- display: block;
- margin: 0;
- overflow: hidden;
- padding: 0;
- position: relative;
- .md-virtual-repeat-scroller {
- bottom: 0;
- box-sizing: border-box;
- left: 0;
- margin: 0;
- overflow-x: hidden;
- padding: 0;
- position: absolute;
- right: 0;
- top: 0;
- }
- .md-virtual-repeat-sizer {
- box-sizing: border-box;
- height: 1px;
- display: block;
- margin: 0;
- padding: 0;
- width: 1px;
- }
- .md-virtual-repeat-offsetter {
- box-sizing: border-box;
- left: 0;
- margin: 0;
- padding: 0;
- position: absolute;
- right: 0;
- top: 0;
- }
- }
- .md-virtual-repeat-container.md-orient-horizontal {
- .md-virtual-repeat-scroller {
- overflow-x: auto;
- overflow-y: hidden;
- }
- .md-virtual-repeat-offsetter {
- // Leave room for the scroll bar.
- // TODO: Will probably need to perform measurements at runtime.
- bottom: $virtual-repeat-scrollbar-width;
- right: auto;
- white-space: nowrap;
- }
- }
- .md-whiteframe-1dp, .md-whiteframe-z1 {
- box-shadow: $whiteframe-shadow-1dp;
- }
- .md-whiteframe-2dp {
- box-shadow: $whiteframe-shadow-2dp;
- }
- .md-whiteframe-3dp {
- box-shadow: $whiteframe-shadow-3dp;
- }
- .md-whiteframe-4dp, .md-whiteframe-z2{
- box-shadow: $whiteframe-shadow-4dp;
- }
- .md-whiteframe-5dp {
- box-shadow: $whiteframe-shadow-5dp;
- }
- .md-whiteframe-6dp {
- box-shadow: $whiteframe-shadow-6dp;
- }
- .md-whiteframe-7dp, .md-whiteframe-z3 {
- box-shadow: $whiteframe-shadow-7dp;
- }
- .md-whiteframe-8dp {
- box-shadow: $whiteframe-shadow-8dp;
- }
- .md-whiteframe-9dp {
- box-shadow: $whiteframe-shadow-9dp;
- }
- .md-whiteframe-10dp, .md-whiteframe-z4 {
- box-shadow: $whiteframe-shadow-10dp;
- }
- .md-whiteframe-11dp {
- box-shadow: $whiteframe-shadow-11dp;
- }
- .md-whiteframe-12dp {
- box-shadow: $whiteframe-shadow-12dp;
- }
- .md-whiteframe-13dp, .md-whiteframe-z5{
- box-shadow: $whiteframe-shadow-13dp;
- }
- .md-whiteframe-14dp {
- box-shadow: $whiteframe-shadow-14dp;
- }
- .md-whiteframe-15dp {
- box-shadow: $whiteframe-shadow-15dp;
- }
- .md-whiteframe-16dp {
- box-shadow: $whiteframe-shadow-16dp;
- }
- .md-whiteframe-17dp {
- box-shadow: $whiteframe-shadow-17dp;
- }
- .md-whiteframe-18dp {
- box-shadow: $whiteframe-shadow-18dp;
- }
- .md-whiteframe-19dp {
- box-shadow: $whiteframe-shadow-19dp;
- }
- .md-whiteframe-20dp {
- box-shadow: $whiteframe-shadow-20dp;
- }
- .md-whiteframe-21dp {
- box-shadow: $whiteframe-shadow-21dp;
- }
- .md-whiteframe-22dp {
- box-shadow: $whiteframe-shadow-22dp;
- }
- .md-whiteframe-23dp {
- box-shadow: $whiteframe-shadow-23dp;
- }
- .md-whiteframe-24dp {
- box-shadow: $whiteframe-shadow-24dp;
- }
- @media screen and (-ms-high-contrast: active) {
- md-whiteframe {
- border: 1px solid #fff;
- }
- }
|