Button.scss 331 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919
  1. /** @class Ext.button.Button */
  2. /**
  3. * @var {number}
  4. * The default width for a button's {@link #cfg-menu} arrow
  5. */
  6. $button-arrow-width: dynamic(8px);
  7. /**
  8. * @var {number}
  9. * The default height for a button's {@link #cfg-menu} arrow
  10. */
  11. $button-arrow-height: dynamic(8px);
  12. /**
  13. * @var {number}
  14. * The default width for a {@link Ext.button.Split Split Button}'s arrow
  15. */
  16. $button-split-width: dynamic(14px);
  17. /**
  18. * @var {number}
  19. * The default height for a {@link Ext.button.Split Split Button}'s arrow
  20. */
  21. $button-split-height: dynamic(14px);
  22. /**
  23. * @var {number}
  24. * The default width for a {@link Ext.button.Split Split Button}'s line.
  25. * Themes that include the line in the arrow background image should set this to 0
  26. */
  27. $button-split-line-width: dynamic(0);
  28. /**
  29. * @var {number}
  30. * The default space between a button's icon and text
  31. */
  32. $button-icon-spacing: dynamic(4px);
  33. /**
  34. * @var {number}
  35. * The default border-radius for a small {@link #scale} button
  36. */
  37. $button-small-border-radius: dynamic(3px);
  38. /**
  39. * @var {number}
  40. * The default border-width for a small {@link #scale} button
  41. */
  42. $button-small-border-width: dynamic(1px);
  43. /**
  44. * @var {number}
  45. * The default padding for a small {@link #scale} button
  46. */
  47. $button-small-padding: dynamic(2px);
  48. /**
  49. * @var {number}
  50. * The default horizontal padding to add to the left and right of the text element for
  51. * a small {@link #scale} button
  52. */
  53. $button-small-text-padding: dynamic(4px);
  54. /**
  55. * @var {number}
  56. * The default font-size for a small {@link #scale} button
  57. */
  58. $button-small-font-size: dynamic(ceil($font-size * .9)); //11px
  59. /**
  60. * @var {number}
  61. * The default font-size for a small {@link #scale} button when the cursor is over the button
  62. */
  63. $button-small-font-size-over: dynamic($button-small-font-size);
  64. /**
  65. * @var {number}
  66. * The default font-size for a small {@link #scale} button when the button is focused
  67. */
  68. $button-small-font-size-focus: dynamic($button-small-font-size-over);
  69. /**
  70. * @var {number}
  71. * The default font-size for a small {@link #scale} button when the button is pressed
  72. */
  73. $button-small-font-size-pressed: dynamic($button-small-font-size);
  74. /**
  75. * @var {number}
  76. * The default font-size for a small {@link #scale} button when the button is focused and
  77. * the cursor is over the button
  78. */
  79. $button-small-font-size-focus-over: dynamic($button-small-font-size-over);
  80. /**
  81. * @var {number}
  82. * The default font-size for a small {@link #scale} button when the button is focused and pressed
  83. */
  84. $button-small-font-size-focus-pressed: dynamic($button-small-font-size-pressed);
  85. /**
  86. * @var {number}
  87. * The default font-size for a small {@link #scale} button when the button is disabled
  88. */
  89. $button-small-font-size-disabled: dynamic($button-small-font-size);
  90. /**
  91. * @var {string}
  92. * The default font-weight for a small {@link #scale} button
  93. */
  94. $button-small-font-weight: dynamic($font-weight);
  95. /**
  96. * @var {string}
  97. * The default font-weight for a small {@link #scale} button when the cursor is over the button
  98. */
  99. $button-small-font-weight-over: dynamic($button-small-font-weight);
  100. /**
  101. * @var {string}
  102. * The default font-weight for a small {@link #scale} button when the button is focused
  103. */
  104. $button-small-font-weight-focus: dynamic($button-small-font-weight-over);
  105. /**
  106. * @var {string}
  107. * The default font-weight for a small {@link #scale} button when the button is pressed
  108. */
  109. $button-small-font-weight-pressed: dynamic($button-small-font-weight);
  110. /**
  111. * @var {string}
  112. * The default font-weight for a small {@link #scale} button when the button is focused
  113. * and the cursor is over the button
  114. */
  115. $button-small-font-weight-focus-over: dynamic($button-small-font-weight-over);
  116. /**
  117. * @var {string}
  118. * The default font-weight for a small {@link #scale} button when the button is focused
  119. * and pressed
  120. */
  121. $button-small-font-weight-focus-pressed: dynamic($button-small-font-weight-pressed);
  122. /**
  123. * @var {string}
  124. * The default font-weight for a small {@link #scale} button when the button is disabled
  125. */
  126. $button-small-font-weight-disabled: dynamic($button-small-font-weight);
  127. /**
  128. * @var {string}
  129. * The default font-family for a small {@link #scale} button
  130. */
  131. $button-small-font-family: dynamic($font-family);
  132. /**
  133. * @var {string}
  134. * The default font-family for a small {@link #scale} button when the cursor is over the button
  135. */
  136. $button-small-font-family-over: dynamic($button-small-font-family);
  137. /**
  138. * @var {string}
  139. * The default font-family for a small {@link #scale} button when the button is focused
  140. */
  141. $button-small-font-family-focus: dynamic($button-small-font-family-over);
  142. /**
  143. * @var {string}
  144. * The default font-family for a small {@link #scale} button when the button is pressed
  145. */
  146. $button-small-font-family-pressed: dynamic($button-small-font-family);
  147. /**
  148. * @var {string}
  149. * The default font-family for a small {@link #scale} button when the button is focused
  150. * and the cursor is over the button
  151. */
  152. $button-small-font-family-focus-over: dynamic($button-small-font-family-over);
  153. /**
  154. * @var {string}
  155. * The default font-family for a small {@link #scale} button when the button is focused
  156. * and pressed
  157. */
  158. $button-small-font-family-focus-pressed: dynamic($button-small-font-family-pressed);
  159. /**
  160. * @var {string}
  161. * The default font-family for a small {@link #scale} button when the button is disabled
  162. */
  163. $button-small-font-family-disabled: dynamic($button-small-font-family);
  164. /**
  165. * @var {number}
  166. * The line-height for the text in a small {@link #scale} button
  167. */
  168. $button-small-line-height: dynamic(16px);
  169. /**
  170. * @var {number}
  171. * The default icon size for a small {@link #scale} button
  172. */
  173. $button-small-icon-size: dynamic(16px);
  174. /**
  175. * @var {number}
  176. * The the font-size for small {@link #scale} button glyphs
  177. */
  178. $button-small-glyph-font-size: dynamic($button-small-icon-size);
  179. /**
  180. * @var {number}
  181. * The space between a small {@link #scale} button's icon and text
  182. */
  183. $button-small-icon-spacing: dynamic($button-icon-spacing);
  184. /**
  185. * @var {number}
  186. * The default width of a small {@link #scale} button's {@link #cfg-menu} arrow
  187. */
  188. $button-small-arrow-width: dynamic($button-arrow-width);
  189. /**
  190. * @var {number}
  191. * The default height of a small {@link #scale} button's {@link #cfg-menu} arrow
  192. */
  193. $button-small-arrow-height: dynamic($button-arrow-height);
  194. /**
  195. * @var {string/list}
  196. * Glyph for a small button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  197. */
  198. $button-small-arrow-glyph: dynamic($fa-var-caret-down 16px $font-icon-font-family);
  199. /**
  200. * @var {number}
  201. * The default width of a small {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  202. */
  203. $button-small-split-width: dynamic($button-split-width);
  204. /**
  205. * @var {number}
  206. * The default height of a small {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  207. */
  208. $button-small-split-height: dynamic($button-split-height);
  209. /**
  210. * @var {number}
  211. * The width of a small {@link #scale} {@link Ext.button.Split Split Button}'s line.
  212. * Themes that include the line in the arrow background image should set this to 0
  213. */
  214. $button-small-split-line-width: dynamic($button-split-line-width);
  215. /**
  216. * @var {number}
  217. * The default border-radius for a medium {@link #scale} button
  218. */
  219. $button-medium-border-radius: dynamic(3px);
  220. /**
  221. * @var {number}
  222. * The default border-width for a medium {@link #scale} button
  223. */
  224. $button-medium-border-width: dynamic(1px);
  225. /**
  226. * @var {number}
  227. * The default padding for a medium {@link #scale} button
  228. */
  229. $button-medium-padding: dynamic(3px);
  230. /**
  231. * @var {number}
  232. * The default horizontal padding to add to the left and right of the text element for
  233. * a medium {@link #scale} button
  234. */
  235. $button-medium-text-padding: dynamic(4px);
  236. /**
  237. * @var {number}
  238. * The default font-size for a medium {@link #scale} button
  239. */
  240. $button-medium-font-size: dynamic($font-size); //11px
  241. /**
  242. * @var {number}
  243. * The default font-size for a medium {@link #scale} button when the cursor is over the button
  244. */
  245. $button-medium-font-size-over: dynamic($button-medium-font-size);
  246. /**
  247. * @var {number}
  248. * The default font-size for a medium {@link #scale} button when the button is focused
  249. */
  250. $button-medium-font-size-focus: dynamic($button-medium-font-size-over);
  251. /**
  252. * @var {number}
  253. * The default font-size for a medium {@link #scale} button when the button is pressed
  254. */
  255. $button-medium-font-size-pressed: dynamic($button-medium-font-size);
  256. /**
  257. * @var {number}
  258. * The default font-size for a medium {@link #scale} button when the button is focused
  259. * and the cursor is over the button
  260. */
  261. $button-medium-font-size-focus-over: dynamic($button-medium-font-size-over);
  262. /**
  263. * @var {number}
  264. * The default font-size for a medium {@link #scale} button when the button is focused
  265. * and pressed
  266. */
  267. $button-medium-font-size-focus-pressed: dynamic($button-medium-font-size-pressed);
  268. /**
  269. * @var {number}
  270. * The default font-size for a medium {@link #scale} button when the button is disabled
  271. */
  272. $button-medium-font-size-disabled: dynamic($button-medium-font-size);
  273. /**
  274. * @var {string}
  275. * The default font-weight for a medium {@link #scale} button
  276. */
  277. $button-medium-font-weight: dynamic($font-weight);
  278. /**
  279. * @var {string}
  280. * The default font-weight for a medium {@link #scale} button when the cursor is over the button
  281. */
  282. $button-medium-font-weight-over: dynamic($button-medium-font-weight);
  283. /**
  284. * @var {string}
  285. * The default font-weight for a medium {@link #scale} button when the button is focused
  286. */
  287. $button-medium-font-weight-focus: dynamic($button-medium-font-weight-over);
  288. /**
  289. * @var {string}
  290. * The default font-weight for a medium {@link #scale} button when the button is pressed
  291. */
  292. $button-medium-font-weight-pressed: dynamic($button-medium-font-weight);
  293. /**
  294. * @var {string}
  295. * The default font-weight for a medium {@link #scale} button when the button is focused
  296. * and the cursor is over the button
  297. */
  298. $button-medium-font-weight-focus-over: dynamic($button-medium-font-weight-over);
  299. /**
  300. * @var {string}
  301. * The default font-weight for a medium {@link #scale} button when the button is focused
  302. * and pressed
  303. */
  304. $button-medium-font-weight-focus-pressed: dynamic($button-medium-font-weight-pressed);
  305. /**
  306. * @var {string}
  307. * The default font-weight for a medium {@link #scale} button when the button is disabled
  308. */
  309. $button-medium-font-weight-disabled: dynamic($button-medium-font-weight);
  310. /**
  311. * @var {string}
  312. * The default font-family for a medium {@link #scale} button
  313. */
  314. $button-medium-font-family: dynamic($font-family);
  315. /**
  316. * @var {string}
  317. * The default font-family for a medium {@link #scale} button when the cursor is over the button
  318. */
  319. $button-medium-font-family-over: dynamic($button-medium-font-family);
  320. /**
  321. * @var {string}
  322. * The default font-family for a medium {@link #scale} button when the button is focused
  323. */
  324. $button-medium-font-family-focus: dynamic($button-medium-font-family-over);
  325. /**
  326. * @var {string}
  327. * The default font-family for a medium {@link #scale} button when the button is pressed
  328. */
  329. $button-medium-font-family-pressed: dynamic($button-medium-font-family);
  330. /**
  331. * @var {string}
  332. * The default font-family for a medium {@link #scale} button when the button is focused
  333. * and the cursor is over the button
  334. */
  335. $button-medium-font-family-focus-over: dynamic($button-medium-font-family-over);
  336. /**
  337. * @var {string}
  338. * The default font-family for a medium {@link #scale} button when the button is focused
  339. * and pressed
  340. */
  341. $button-medium-font-family-focus-pressed: dynamic($button-medium-font-family-pressed);
  342. /**
  343. * @var {string}
  344. * The default font-family for a medium {@link #scale} button when the button is disabled
  345. */
  346. $button-medium-font-family-disabled: dynamic($button-medium-font-family);
  347. /**
  348. * @var {number}
  349. * The line-height for the text in a medium {@link #scale} button
  350. */
  351. $button-medium-line-height: dynamic(16px);
  352. /**
  353. * @var {number}
  354. * The default icon size for a medium {@link #scale} button
  355. */
  356. $button-medium-icon-size: dynamic(24px);
  357. /**
  358. * @var {number}
  359. * The the font-size for medium {@link #scale} button glyphs
  360. */
  361. $button-medium-glyph-font-size: dynamic($button-medium-icon-size);
  362. /**
  363. * @var {number}
  364. * The space between a medium {@link #scale} button's icon and text
  365. */
  366. $button-medium-icon-spacing: dynamic($button-icon-spacing);
  367. /**
  368. * @var {number}
  369. * The default width of a medium {@link #scale} button's {@link #cfg-menu} arrow
  370. */
  371. $button-medium-arrow-width: dynamic($button-arrow-width);
  372. /**
  373. * @var {number}
  374. * The default height of a medium {@link #scale} button's {@link #cfg-menu} arrow
  375. */
  376. $button-medium-arrow-height: dynamic($button-arrow-height);
  377. /**
  378. * @var {string/list}
  379. * Glyph for a medium button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  380. */
  381. $button-medium-arrow-glyph: dynamic($fa-var-caret-down 20px $font-icon-font-family);
  382. /**
  383. * @var {number}
  384. * The default width of a medium {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  385. */
  386. $button-medium-split-width: dynamic($button-split-width);
  387. /**
  388. * @var {number}
  389. * The default height of a medium {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  390. */
  391. $button-medium-split-height: dynamic($button-split-height);
  392. /**
  393. * @var {number}
  394. * The width of a medium {@link #scale} {@link Ext.button.Split Split Button}'s line.
  395. * Themes that include the line in the arrow background image should set this to 0
  396. */
  397. $button-medium-split-line-width: dynamic($button-split-line-width);
  398. /**
  399. * @var {number}
  400. * The default border-radius for a large {@link #scale} button
  401. */
  402. $button-large-border-radius: dynamic(3px);
  403. /**
  404. * @var {number}
  405. * The default border-width for a large {@link #scale} button
  406. */
  407. $button-large-border-width: dynamic(1px);
  408. /**
  409. * @var {number}
  410. * The default padding for a large {@link #scale} button
  411. */
  412. $button-large-padding: dynamic(3px);
  413. /**
  414. * @var {number}
  415. * The default horizontal padding to add to the left and right of the text element for
  416. * a large {@link #scale} button
  417. */
  418. $button-large-text-padding: dynamic(4px);
  419. /**
  420. * @var {number}
  421. * The default font-size for a large {@link #scale} button
  422. */
  423. $button-large-font-size: dynamic($font-size); //11px
  424. /**
  425. * @var {number}
  426. * The default font-size for a large {@link #scale} button when the cursor is over the button
  427. */
  428. $button-large-font-size-over: dynamic($button-large-font-size);
  429. /**
  430. * @var {number}
  431. * The default font-size for a large {@link #scale} button when the button is focused
  432. */
  433. $button-large-font-size-focus: dynamic($button-large-font-size-over);
  434. /**
  435. * @var {number}
  436. * The default font-size for a large {@link #scale} button when the button is pressed
  437. */
  438. $button-large-font-size-pressed: dynamic($button-large-font-size);
  439. /**
  440. * @var {number}
  441. * The default font-size for a large {@link #scale} button when the button is focused
  442. * and the cursor is over the button
  443. */
  444. $button-large-font-size-focus-over: dynamic($button-large-font-size-over);
  445. /**
  446. * @var {number}
  447. * The default font-size for a large {@link #scale} button when the button is focused
  448. * and pressed
  449. */
  450. $button-large-font-size-focus-pressed: dynamic($button-large-font-size-pressed);
  451. /**
  452. * @var {number}
  453. * The default font-size for a large {@link #scale} button when the button is disabled
  454. */
  455. $button-large-font-size-disabled: dynamic($button-large-font-size);
  456. /**
  457. * @var {string}
  458. * The default font-weight for a large {@link #scale} button
  459. */
  460. $button-large-font-weight: dynamic($font-weight);
  461. /**
  462. * @var {string}
  463. * The default font-weight for a large {@link #scale} button when the cursor is over the button
  464. */
  465. $button-large-font-weight-over: dynamic($button-large-font-weight);
  466. /**
  467. * @var {string}
  468. * The default font-weight for a large {@link #scale} button when the button is focused
  469. */
  470. $button-large-font-weight-focus: dynamic($button-large-font-weight-over);
  471. /**
  472. * @var {string}
  473. * The default font-weight for a large {@link #scale} button when the button is pressed
  474. */
  475. $button-large-font-weight-pressed: dynamic($button-large-font-weight);
  476. /**
  477. * @var {string}
  478. * The default font-weight for a large {@link #scale} button when the button is focused
  479. * and the cursor is over the button
  480. */
  481. $button-large-font-weight-focus-over: dynamic($button-large-font-weight-over);
  482. /**
  483. * @var {string}
  484. * The default font-weight for a large {@link #scale} button when the button is focused
  485. * and pressed
  486. */
  487. $button-large-font-weight-focus-pressed: dynamic($button-large-font-weight-pressed);
  488. /**
  489. * @var {string}
  490. * The default font-weight for a large {@link #scale} button when the button is disabled
  491. */
  492. $button-large-font-weight-disabled: dynamic($button-large-font-weight);
  493. /**
  494. * @var {string}
  495. * The default font-family for a large {@link #scale} button
  496. */
  497. $button-large-font-family: dynamic($font-family);
  498. /**
  499. * @var {string}
  500. * The default font-family for a large {@link #scale} button when the cursor is over the button
  501. */
  502. $button-large-font-family-over: dynamic($button-large-font-family);
  503. /**
  504. * @var {string}
  505. * The default font-family for a large {@link #scale} button when the button is focused
  506. */
  507. $button-large-font-family-focus: dynamic($button-large-font-family-over);
  508. /**
  509. * @var {string}
  510. * The default font-family for a large {@link #scale} button when the button is pressed
  511. */
  512. $button-large-font-family-pressed: dynamic($button-large-font-family);
  513. /**
  514. * @var {string}
  515. * The default font-family for a large {@link #scale} button when the button is focused
  516. * and the cursor is over the button
  517. */
  518. $button-large-font-family-focus-over: dynamic($button-large-font-family-over);
  519. /**
  520. * @var {string}
  521. * The default font-family for a large {@link #scale} button when the button is focused
  522. * and pressed
  523. */
  524. $button-large-font-family-focus-pressed: dynamic($button-large-font-family-pressed);
  525. /**
  526. * @var {string}
  527. * The default font-family for a large {@link #scale} button when the button is disabled
  528. */
  529. $button-large-font-family-disabled: dynamic($button-large-font-family);
  530. /**
  531. * @var {number}
  532. * The line-height for the text in a large {@link #scale} button
  533. */
  534. $button-large-line-height: dynamic(16px);
  535. /**
  536. * @var {number}
  537. * The default icon size for a large {@link #scale} button
  538. */
  539. $button-large-icon-size: dynamic(32px);
  540. /**
  541. * @var {number}
  542. * The the font-size for large {@link #scale} button glyphs
  543. */
  544. $button-large-glyph-font-size: dynamic($button-large-icon-size);
  545. /**
  546. * @var {number}
  547. * The space between a large {@link #scale} button's icon and text
  548. */
  549. $button-large-icon-spacing: dynamic($button-icon-spacing);
  550. /**
  551. * @var {number}
  552. * The default width of a large {@link #scale} button's {@link #cfg-menu} arrow
  553. */
  554. $button-large-arrow-width: dynamic($button-arrow-width);
  555. /**
  556. * @var {number}
  557. * The default height of a large {@link #scale} button's {@link #cfg-menu} arrow
  558. */
  559. $button-large-arrow-height: dynamic($button-arrow-height);
  560. /**
  561. * @var {string/list}
  562. * Glyph for a large button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  563. */
  564. $button-large-arrow-glyph: dynamic($fa-var-caret-down 24px $font-icon-font-family);
  565. /**
  566. * @var {number}
  567. * The default width of a large {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  568. */
  569. $button-large-split-width: dynamic($button-split-width);
  570. /**
  571. * @var {number}
  572. * The default height of a large {@link #scale} {@link Ext.button.Split Split Button}'s arrow
  573. */
  574. $button-large-split-height: dynamic($button-split-height);
  575. /**
  576. * @var {number}
  577. * The width of a large {@link #scale} {@link Ext.button.Split Split Button}'s line.
  578. * Themes that include the line in the arrow background image should set this to 0
  579. */
  580. $button-large-split-line-width: dynamic($button-split-line-width);
  581. /**
  582. * @var {color}
  583. * The base color for the `default` button UI
  584. */
  585. $button-default-base-color: dynamic($base-color);
  586. /**
  587. * @var {color}
  588. * The base color for the `default` button UI when the cursor is over the button
  589. */
  590. $button-default-base-color-over: dynamic(button-default-background-color-over($button-default-base-color));
  591. /**
  592. * @var {color}
  593. * The base color for the `default` button UI when the button is focused
  594. */
  595. $button-default-base-color-focus: dynamic(button-default-background-color-focus($button-default-base-color));
  596. /**
  597. * @var {color}
  598. * The base color for the `default` button UI when the button is pressed
  599. */
  600. $button-default-base-color-pressed: dynamic(button-default-background-color-pressed($button-default-base-color));
  601. /**
  602. * @var {color}
  603. * The base color for the `default` button UI when the button is focused and the cursor
  604. * is over the button
  605. */
  606. $button-default-base-color-focus-over: dynamic($button-default-base-color-over);
  607. /**
  608. * @var {color}
  609. * The base color for the `default` button UI when the button is focused and pressed
  610. */
  611. $button-default-base-color-focus-pressed: dynamic($button-default-base-color-pressed);
  612. /**
  613. * @var {color}
  614. * The base color for the `default` button UI when the button is disabled
  615. */
  616. $button-default-base-color-disabled: dynamic(button-default-background-color-disabled($button-default-base-color));
  617. /**
  618. * @var {color}
  619. * The border-color for the `default` button UI
  620. */
  621. $button-default-border-color: dynamic($button-default-base-color);
  622. /**
  623. * @var {color}
  624. * The border-color for the `default` button UI when the cursor is over the button
  625. */
  626. $button-default-border-color-over: dynamic(button-default-border-color-over($button-default-border-color));
  627. /**
  628. * @var {color}
  629. * The border-color for the `default` button UI when the button is focused
  630. */
  631. $button-default-border-color-focus: dynamic(button-default-border-color-focus($button-default-border-color));
  632. /**
  633. * @var {color}
  634. * The border-color for the `default` button UI when the button is pressed
  635. */
  636. $button-default-border-color-pressed: dynamic(button-default-border-color-pressed($button-default-border-color));
  637. /**
  638. * @var {color}
  639. * The border-color for the `default` button UI when the button is focused and the cursor
  640. * is over the button
  641. */
  642. $button-default-border-color-focus-over: dynamic($button-default-border-color-over);
  643. /**
  644. * @var {color}
  645. * The border-color for the `default` button UI when the button is focused and pressed
  646. */
  647. $button-default-border-color-focus-pressed: dynamic($button-default-border-color-pressed);
  648. /**
  649. * @var {color}
  650. * The border-color for the `default` button UI when the button is disabled
  651. */
  652. $button-default-border-color-disabled: dynamic(button-default-border-color-disabled($button-default-border-color));
  653. /**
  654. * @var {color}
  655. * The background-color for the `default` button UI
  656. */
  657. $button-default-background-color: dynamic($button-default-base-color);
  658. /**
  659. * @var {color}
  660. * The background-color for the `default` button UI when the cursor is over the button
  661. */
  662. $button-default-background-color-over: dynamic($button-default-base-color-over);
  663. /**
  664. * @var {color}
  665. * The background-color for the `default` button UI when the button is focused
  666. */
  667. $button-default-background-color-focus: dynamic($button-default-base-color-focus);
  668. /**
  669. * @var {color}
  670. * The background-color for the `default` button UI when the button is pressed
  671. */
  672. $button-default-background-color-pressed: dynamic($button-default-base-color-pressed);
  673. /**
  674. * @var {color}
  675. * The background-color for the `default` button UI when the button is focused and the
  676. * cursor is over the button
  677. */
  678. $button-default-background-color-focus-over: dynamic($button-default-background-color-over);
  679. /**
  680. * @var {color}
  681. * The background-color for the `default` button UI when the button is focused and pressed
  682. */
  683. $button-default-background-color-focus-pressed: dynamic($button-default-background-color-pressed);
  684. /**
  685. * @var {color}
  686. * The background-color for the `default` button UI when the button is disabled
  687. */
  688. $button-default-background-color-disabled: dynamic($button-default-base-color-disabled);
  689. /**
  690. * @var {string/list}
  691. * The background-gradient for the `default` button UI. Can be either the name of a
  692. * predefined gradient or a list of color stops. Used as the `$type` parameter for
  693. * {@link Global_CSS#background-gradient}.
  694. */
  695. $button-default-background-gradient: dynamic('glossy-button');
  696. /**
  697. * @var {string/list}
  698. * The background-gradient for the `default` button UI when the cursor is over the button.
  699. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  700. * `$type` parameter for {@link Global_CSS#background-gradient}.
  701. */
  702. $button-default-background-gradient-over: dynamic('glossy-button-over');
  703. /**
  704. * @var {string/list}
  705. * The background-gradient for the `default` button UI when the button is focused. Can be
  706. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  707. * parameter for {@link Global_CSS#background-gradient}.
  708. */
  709. $button-default-background-gradient-focus: dynamic($button-default-background-gradient-over);
  710. /**
  711. * @var {string/list}
  712. * The background-gradient for the `default` button UI when the button is pressed. Can be
  713. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  714. * parameter for {@link Global_CSS#background-gradient}.
  715. */
  716. $button-default-background-gradient-pressed: dynamic('glossy-button-pressed');
  717. /**
  718. * @var {string/list}
  719. * The background-gradient for the `default` button UI when the button is focused and the
  720. * cursor is over the button. Can be either the name of a predefined gradient or a list
  721. * of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  722. */
  723. $button-default-background-gradient-focus-over: dynamic($button-default-background-gradient-over);
  724. /**
  725. * @var {string/list}
  726. * The background-gradient for the `default` button UI when the button is focused and
  727. * pressed. Can be either the name of a predefined gradient or a list of color stops.
  728. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  729. */
  730. $button-default-background-gradient-focus-pressed: dynamic($button-default-background-gradient-pressed);
  731. /**
  732. * @var {string/list}
  733. * The background-gradient for the `default` button UI when the button is disabled. Can be
  734. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  735. * parameter for {@link Global_CSS#background-gradient}.
  736. */
  737. $button-default-background-gradient-disabled: dynamic('glossy-button-disabled');
  738. /**
  739. * @var {color}
  740. * The text color for the `default` button UI
  741. */
  742. $button-default-color: dynamic(#000);
  743. /**
  744. * @var {color}
  745. * The text color for the `default` button UI when the cursor is over the button
  746. */
  747. $button-default-color-over: dynamic(button-default-color-over($button-default-color));
  748. /**
  749. * @var {color}
  750. * The text color for the `default` button UI when the button is focused
  751. */
  752. $button-default-color-focus: dynamic(button-default-color-focus($button-default-color));
  753. /**
  754. * @var {color}
  755. * The text color for the `default` button UI when the button is pressed
  756. */
  757. $button-default-color-pressed: dynamic(button-default-color-pressed($button-default-color));
  758. /**
  759. * @var {color}
  760. * The text color for the `default` button UI when the button is focused and the cursor
  761. * is over the button
  762. */
  763. $button-default-color-focus-over: dynamic($button-default-color-over);
  764. /**
  765. * @var {color}
  766. * The text color for the `default` button UI when the button is focused and pressed
  767. */
  768. $button-default-color-focus-pressed: dynamic($button-default-color-pressed);
  769. /**
  770. * @var {color}
  771. * The text color for the `default` button UI when the button is disabled
  772. */
  773. $button-default-color-disabled: dynamic(button-default-color-disabled($button-default-color));
  774. /**
  775. * @var {number/list}
  776. * The inner border-width for the `default` button UI
  777. */
  778. $button-default-inner-border-width: dynamic('none');
  779. /**
  780. * @var {number/list}
  781. * The inner border-width for the `default` button UI when the cursor is over the button
  782. */
  783. $button-default-inner-border-width-over: dynamic($button-default-inner-border-width);
  784. /**
  785. * @var {number/list}
  786. * The inner border-width for the `default` button UI when the button is focused
  787. */
  788. $button-default-inner-border-width-focus: dynamic($button-default-inner-border-width);
  789. /**
  790. * @var {number/list}
  791. * The inner border-width for the `default` button UI when the button is pressed
  792. */
  793. $button-default-inner-border-width-pressed: dynamic($button-default-inner-border-width);
  794. /**
  795. * @var {number/list}
  796. * The inner border-width for the `default` button UI when the button is focused and the
  797. * cursor is over the button
  798. */
  799. $button-default-inner-border-width-focus-over: dynamic($button-default-inner-border-width-focus);
  800. /**
  801. * @var {number/list}
  802. * The inner border-width for the `default` button UI when the button is focused and pressed
  803. */
  804. $button-default-inner-border-width-focus-pressed: dynamic($button-default-inner-border-width-focus);
  805. /**
  806. * @var {number/lipressed}
  807. * The inner border-width for the `default` button UI when the button is disabled
  808. */
  809. $button-default-inner-border-width-disabled: dynamic($button-default-inner-border-width);
  810. /**
  811. * @var {color}
  812. * The inner border-color for the `default` button UI
  813. */
  814. $button-default-inner-border-color: dynamic(button-default-inner-border-color($button-default-background-color, $button-default-color));
  815. /**
  816. * @var {color}
  817. * The inner border-color for the `default` button UI when the cursor is over the button
  818. */
  819. $button-default-inner-border-color-over: dynamic(button-default-inner-border-color-over($button-default-background-color-over, $button-default-color-over));
  820. /**
  821. * @var {color}
  822. * The inner border-color for the `default` button UI when the button is focused
  823. */
  824. $button-default-inner-border-color-focus: dynamic(button-default-inner-border-color-focus($button-default-background-color-focus, $button-default-color-focus));
  825. /**
  826. * @var {color}
  827. * The inner border-color for the `default` button UI when the button is pressed
  828. */
  829. $button-default-inner-border-color-pressed: dynamic(button-default-inner-border-color-pressed($button-default-background-color-pressed, $button-default-color-pressed));
  830. /**
  831. * @var {color}
  832. * The inner border-color for the `default` button UI when the button is focused and the
  833. * cursor is over the button
  834. */
  835. $button-default-inner-border-color-focus-over: dynamic(button-default-inner-border-color-focus-over($button-default-background-color-focus-over, $button-default-color-focus-over));
  836. /**
  837. * @var {color}
  838. * The inner border-color for the `default` button UI when the button is focused and pressed
  839. */
  840. $button-default-inner-border-color-focus-pressed: dynamic(button-default-inner-border-color-focus-pressed($button-default-background-color-focus-pressed, $button-default-color-focus-pressed));
  841. /**
  842. * @var {color}
  843. * The inner border-color for the `default` button UI when the button is disabled
  844. */
  845. $button-default-inner-border-color-disabled: dynamic(button-default-inner-border-color-disabled($button-default-background-color-disabled, $button-default-color-disabled));
  846. /**
  847. * @var {number}
  848. * The body outline width for the `default` button UI when the button is focused
  849. */
  850. $button-default-body-outline-width-focus: dynamic(0);
  851. /**
  852. * @var {string}
  853. * The body outline-style for the `default` button UI when the button is focused
  854. */
  855. $button-default-body-outline-style-focus: dynamic(dotted);
  856. /**
  857. * @var {color}
  858. * The body outline color for the `default` button UI when the button is focused
  859. */
  860. $button-default-body-outline-color-focus: dynamic($button-default-color);
  861. /**
  862. * @var {color}
  863. * The color of the {@link #glyph} icon for the `default` button UI
  864. */
  865. $button-default-glyph-color: dynamic($button-default-color);
  866. /**
  867. * @var {string/list}
  868. * Glyph color for the button arrow of the `default` button UI when
  869. * {@link Global_CSS#$enable-font-icons} is `true`.
  870. */
  871. $button-default-arrow-glyph-color: dynamic($button-default-color);
  872. /**
  873. * @var {color}
  874. * The color for a {@link Ext.button.Split Split Button}'s line in the `default` button UI.
  875. * Only applicable when {@link #$button-split-width} is greater than 0.
  876. */
  877. $button-default-split-line-color: dynamic($button-default-arrow-glyph-color);
  878. /**
  879. * @var {color}
  880. * The opacity of the {@link #glyph} icon for the `default` button UI
  881. */
  882. $button-default-glyph-opacity: dynamic(0.5);
  883. /**
  884. * @var {color}
  885. * The border-color for the `default-toolbar` button UI
  886. */
  887. $button-toolbar-border-color: dynamic($base-color);
  888. /**
  889. * @var {color}
  890. * The border-color for the `default-toolbar` button UI when the cursor is over the button
  891. */
  892. $button-toolbar-border-color-over: dynamic(button-toolbar-border-color-over($button-toolbar-border-color));
  893. /**
  894. * @var {color}
  895. * The border-color for the `default-toolbar` button UI when the button is focused
  896. */
  897. $button-toolbar-border-color-focus: dynamic(button-toolbar-border-color-focus($button-toolbar-border-color));
  898. /**
  899. * @var {color}
  900. * The border-color for the `default-toolbar` button UI when the button is pressed
  901. */
  902. $button-toolbar-border-color-pressed: dynamic(button-toolbar-border-color-pressed($button-toolbar-border-color));
  903. /**
  904. * @var {color}
  905. * The border-color for the `default-toolbar` button UI when the button is focused and the
  906. * cursor is over the button
  907. */
  908. $button-toolbar-border-color-focus-over: dynamic($button-toolbar-border-color-over);
  909. /**
  910. * @var {color}
  911. * The border-color for the `default-toolbar` button UI when the button is focused and
  912. * pressed
  913. */
  914. $button-toolbar-border-color-focus-pressed: dynamic($button-toolbar-border-color-pressed);
  915. /**
  916. * @var {color}
  917. * The border-color for the `default-toolbar` button UI when the button is disabled
  918. */
  919. $button-toolbar-border-color-disabled: dynamic(button-toolbar-border-color-disabled($button-toolbar-border-color));
  920. /**
  921. * @var {color}
  922. * The background-color for the `default-toolbar` button UI
  923. */
  924. $button-toolbar-background-color: dynamic($base-color);
  925. /**
  926. * @var {color}
  927. * The background-color for the `default-toolbar` button UI when the cursor is over the button
  928. */
  929. $button-toolbar-background-color-over: dynamic(button-toolbar-background-color-over($button-toolbar-background-color));
  930. /**
  931. * @var {color}
  932. * The background-color for the `default-toolbar` button UI when the button is focused
  933. */
  934. $button-toolbar-background-color-focus: dynamic(button-toolbar-background-color-focus($button-toolbar-background-color));
  935. /**
  936. * @var {color}
  937. * The background-color for the `default-toolbar` button UI when the button is pressed
  938. */
  939. $button-toolbar-background-color-pressed: dynamic(button-toolbar-background-color-pressed($button-toolbar-background-color));
  940. /**
  941. * @var {color}
  942. * The background-color for the `default-toolbar` button UI when the button is focused
  943. * and the cursor is over the button
  944. */
  945. $button-toolbar-background-color-focus-over: dynamic($button-toolbar-background-color-over);
  946. /**
  947. * @var {color}
  948. * The background-color for the `default-toolbar` button UI when the button is focused
  949. * and pressed
  950. */
  951. $button-toolbar-background-color-focus-pressed: dynamic($button-toolbar-background-color-pressed);
  952. /**
  953. * @var {color}
  954. * The background-color for the `default-toolbar` button UI when the button is disabled
  955. */
  956. $button-toolbar-background-color-disabled: dynamic(button-toolbar-background-color-disabled($button-toolbar-background-color));
  957. /**
  958. * @var {string/list}
  959. * The background-gradient for the `default-toolbar` button UI. Can be either the name of
  960. * a predefined gradient or a list of color stops. Used as the `$type` parameter for
  961. * {@link Global_CSS#background-gradient}.
  962. */
  963. $button-toolbar-background-gradient: dynamic('glossy-button');
  964. /**
  965. * @var {string/list}
  966. * The background-gradient for the `default-toolbar` button UI when the cursor is over the
  967. * button. Can be either the name of a predefined gradient or a list of color stops. Used
  968. * as the `$type` parameter for {@link Global_CSS#background-gradient}.
  969. */
  970. $button-toolbar-background-gradient-over: dynamic('glossy-button-over');
  971. /**
  972. * @var {string/list}
  973. * The background-gradient for the `default-toolbar` button UI when the button is focused.
  974. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  975. * `$type` parameter for {@link Global_CSS#background-gradient}.
  976. */
  977. $button-toolbar-background-gradient-focus: dynamic($button-toolbar-background-gradient-over);
  978. /**
  979. * @var {string/list}
  980. * The background-gradient for the `default-toolbar` button UI when the button is pressed.
  981. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  982. * `$type` parameter for {@link Global_CSS#background-gradient}.
  983. */
  984. $button-toolbar-background-gradient-pressed: dynamic('glossy-button-pressed');
  985. /**
  986. * @var {string/list}
  987. * The background-gradient for the `default-toolbar` button UI when the button is focused
  988. * and the cursor is over the button. Can be either the name of a predefined gradient or a
  989. * list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  990. */
  991. $button-toolbar-background-gradient-focus-over: dynamic($button-toolbar-background-gradient-over);
  992. /**
  993. * @var {string/list}
  994. * The background-gradient for the `default-toolbar` button UI when the button is focused
  995. * and pressed. Can be either the name of a predefined gradient or a list of color stops.
  996. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  997. */
  998. $button-toolbar-background-gradient-focus-pressed: dynamic($button-toolbar-background-gradient-pressed);
  999. /**
  1000. * @var {string/list}
  1001. * The background-gradient for the `default-toolbar` button UI when the button is disabled.
  1002. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  1003. * `$type` parameter for {@link Global_CSS#background-gradient}.
  1004. */
  1005. $button-toolbar-background-gradient-disabled: dynamic('glossy-button-disabled');
  1006. /**
  1007. * @var {color}
  1008. * The text color for the `default-toolbar` button UI
  1009. */
  1010. $button-toolbar-color: dynamic(#000);
  1011. /**
  1012. * @var {color}
  1013. * The text color for the `default-toolbar` button UI when the cursor is over the button
  1014. */
  1015. $button-toolbar-color-over: dynamic(button-toolbar-color-over($button-toolbar-color));
  1016. /**
  1017. * @var {color}
  1018. * The text color for the `default-toolbar` button UI when the button is focused
  1019. */
  1020. $button-toolbar-color-focus: dynamic(button-toolbar-color-focus($button-toolbar-color));
  1021. /**
  1022. * @var {color}
  1023. * The text color for the `default-toolbar` button UI when the button is pressed
  1024. */
  1025. $button-toolbar-color-pressed: dynamic(button-toolbar-color-pressed($button-toolbar-color));
  1026. /**
  1027. * @var {color}
  1028. * The text color for the `default-toolbar` button UI when the button is focused and the
  1029. * cursor is over the button
  1030. */
  1031. $button-toolbar-color-focus-over: dynamic($button-toolbar-color-over);
  1032. /**
  1033. * @var {color}
  1034. * The text color for the `default-toolbar` button UI when the button is focused and pressed
  1035. */
  1036. $button-toolbar-color-focus-pressed: dynamic($button-toolbar-color-pressed);
  1037. /**
  1038. * @var {color}
  1039. * The text color for the `default-toolbar` button UI when the button is disabled
  1040. */
  1041. $button-toolbar-color-disabled: dynamic(button-toolbar-color-disabled($button-toolbar-color));
  1042. /**
  1043. * @var {number/list}
  1044. * The inner border-width for the `default-toolbar` button UI
  1045. */
  1046. $button-toolbar-inner-border-width: dynamic('none');
  1047. /**
  1048. * @var {number/list}
  1049. * The inner border-width for the `default-toolbar` button UI when the cursor is over the button
  1050. */
  1051. $button-toolbar-inner-border-width-over: dynamic($button-toolbar-inner-border-width);
  1052. /**
  1053. * @var {number/list}
  1054. * The inner border-width for the `default-toolbar` button UI when the button is focused
  1055. */
  1056. $button-toolbar-inner-border-width-focus: dynamic($button-toolbar-inner-border-width);
  1057. /**
  1058. * @var {number/list}
  1059. * The inner border-width for the `default-toolbar` button UI when the button is pressed
  1060. */
  1061. $button-toolbar-inner-border-width-pressed: dynamic($button-toolbar-inner-border-width);
  1062. /**
  1063. * @var {number/list}
  1064. * The inner border-width for the `default-toolbar` button UI when the button is focused
  1065. * and the cursor is over the button
  1066. */
  1067. $button-toolbar-inner-border-width-focus-over: dynamic($button-toolbar-inner-border-width-focus);
  1068. /**
  1069. * @var {number/list}
  1070. * The inner border-width for the `default-toolbar` button UI when the button is focused
  1071. * and pressed
  1072. */
  1073. $button-toolbar-inner-border-width-focus-pressed: dynamic($button-toolbar-inner-border-width-focus);
  1074. /**
  1075. * @var {number/list}
  1076. * The inner border-width for the `default-toolbar` button UI when the button is disabled
  1077. */
  1078. $button-toolbar-inner-border-width-disabled: dynamic($button-toolbar-inner-border-width);
  1079. /**
  1080. * @var {color}
  1081. * The inner border-color for the `default-toolbar` button UI
  1082. */
  1083. $button-toolbar-inner-border-color: dynamic(button-toolbar-inner-border-color($button-toolbar-background-color, $button-toolbar-color));
  1084. /**
  1085. * @var {color}
  1086. * The inner border-color for the `default-toolbar` button UI when the cursor is over the button
  1087. */
  1088. $button-toolbar-inner-border-color-over: dynamic(button-toolbar-inner-border-color-over($button-toolbar-background-color-over, $button-toolbar-color-over));
  1089. /**
  1090. * @var {color}
  1091. * The inner border-color for the `default-toolbar` button UI when the button is focused
  1092. */
  1093. $button-toolbar-inner-border-color-focus: dynamic(button-toolbar-inner-border-color-focus($button-toolbar-background-color-focus, $button-toolbar-color-focus));
  1094. /**
  1095. * @var {color}
  1096. * The inner border-color for the `default-toolbar` button UI when the button is pressed
  1097. */
  1098. $button-toolbar-inner-border-color-pressed: dynamic(button-toolbar-inner-border-color-pressed($button-toolbar-background-color-pressed, $button-toolbar-color-pressed));
  1099. /**
  1100. * @var {color}
  1101. * The inner border-color for the `default-toolbar` button UI when the button is focused
  1102. * and the cursor is over the button
  1103. */
  1104. $button-toolbar-inner-border-color-focus-over: dynamic(button-toolbar-inner-border-color-focus-over($button-toolbar-background-color-focus-over, $button-toolbar-color-focus-over));
  1105. /**
  1106. * @var {color}
  1107. * The inner border-color for the `default-toolbar` button UI when the button is focused
  1108. * and pressed
  1109. */
  1110. $button-toolbar-inner-border-color-focus-pressed: dynamic(button-toolbar-inner-border-color-focus-pressed($button-toolbar-background-color-focus-pressed, $button-toolbar-color-focus-pressed));
  1111. /**
  1112. * @var {color}
  1113. * The inner border-color for the `default-toolbar` button UI when the button is disabled
  1114. */
  1115. $button-toolbar-inner-border-color-disabled: dynamic(button-toolbar-inner-border-color-disabled($button-toolbar-background-color-disabled, $button-toolbar-color-disabled));
  1116. /**
  1117. * @var {number}
  1118. * The body outline width for the `default-toolbar` button UI when the button is focused
  1119. */
  1120. $button-toolbar-body-outline-width-focus: dynamic($button-default-body-outline-width-focus);
  1121. /**
  1122. * @var {string}
  1123. * The body outline-style for the `default-toolbar` button UI when the button is focused
  1124. */
  1125. $button-toolbar-body-outline-style-focus: dynamic($button-default-body-outline-style-focus);
  1126. /**
  1127. * @var {color}
  1128. * The body outline color for the `default-toolbar` button UI when the button is focused
  1129. */
  1130. $button-toolbar-body-outline-color-focus: dynamic($button-default-body-outline-color-focus);
  1131. /**
  1132. * @var {color}
  1133. * The color of the {@link #glyph} icon for the `default-toolbar` button UI
  1134. */
  1135. $button-toolbar-glyph-color: dynamic($button-toolbar-color);
  1136. /**
  1137. * @var {string/list}
  1138. * Glyph color for the button arrow of the `default-toolbar` button UI when when
  1139. * {@link Global_CSS#$enable-font-icons} is `true`.
  1140. */
  1141. $button-toolbar-arrow-glyph-color: dynamic($button-toolbar-color);
  1142. /**
  1143. * @var {color}
  1144. * The color for a {@link Ext.button.Split Split Button}'s line in the `toolbar` button UI.
  1145. * Only applicable when {@link #$button-split-width} is greater than 0.
  1146. */
  1147. $button-toolbar-split-line-color: dynamic($button-toolbar-arrow-glyph-color);
  1148. /**
  1149. * @var {color}
  1150. * The opacity of the {@link #glyph} icon for the `default-toolbar` button UI
  1151. */
  1152. $button-toolbar-glyph-opacity: dynamic(.5);
  1153. /**
  1154. * @var {boolean} $button-include-ui-menu-arrows
  1155. * True to use a different image url for the menu button arrows for each button UI
  1156. */
  1157. $button-include-ui-menu-arrows: dynamic(false);
  1158. /**
  1159. * @var {boolean} $button-include-ui-split-arrows
  1160. * True to use a different image url for the split button arrows for each button UI
  1161. */
  1162. $button-include-ui-split-arrows: dynamic(false);
  1163. /**
  1164. * @var {boolean} $button-include-split-over-arrows
  1165. * True to include different split arrows for buttons' hover state.
  1166. */
  1167. $button-include-split-over-arrows: dynamic(false);
  1168. /**
  1169. * @var {boolean} $button-include-split-noline-arrows
  1170. * True to include "noline" split arrows for buttons in their default state.
  1171. */
  1172. $button-include-split-noline-arrows: dynamic(false);
  1173. /**
  1174. * @var {boolean} $button-toolbar-include-split-noline-arrows
  1175. * True to include "noline" split arrows for toolbar buttons in their default state.
  1176. */
  1177. $button-toolbar-include-split-noline-arrows: dynamic(false);
  1178. /**
  1179. * @var {number} $button-opacity-disabled
  1180. * opacity to apply to the button's main element when the buton is disabled
  1181. */
  1182. $button-opacity-disabled: dynamic(0.5);
  1183. /**
  1184. * @var {number} $button-inner-opacity-disabled
  1185. * opacity to apply to the button's inner elements (icon and text) when the buton is disabled
  1186. */
  1187. $button-inner-opacity-disabled: dynamic(1);
  1188. /**
  1189. * @var {number} $button-toolbar-opacity-disabled
  1190. * opacity to apply to the toolbar button's main element when the button is disabled
  1191. */
  1192. $button-toolbar-opacity-disabled: dynamic(0.5);
  1193. /**
  1194. * @var {number} $button-toolbar-inner-opacity-disabled
  1195. * opacity to apply to the toolbar button's inner elements (icon and text) when the buton is disabled
  1196. */
  1197. $button-toolbar-inner-opacity-disabled: dynamic(1);
  1198. /**
  1199. * @var {boolean}
  1200. * True to include the "default" button UI
  1201. */
  1202. $include-button-default-ui: dynamic($include-default-uis);
  1203. /**
  1204. * @var {boolean}
  1205. * True to include the "default" button UI for "small" scale buttons
  1206. */
  1207. $include-button-default-small-ui: dynamic($include-button-default-ui);
  1208. /**
  1209. * @var {boolean}
  1210. * True to include the "default" button UI for "medium" scale buttons
  1211. */
  1212. $include-button-default-medium-ui: dynamic($include-button-default-ui);
  1213. /**
  1214. * @var {boolean}
  1215. * True to include the "default" button UI for "large" scale buttons
  1216. */
  1217. $include-button-default-large-ui: dynamic($include-button-default-ui);
  1218. /**
  1219. * @var {boolean}
  1220. * True to include the "default" button UI for buttons rendered inside a grid cell (Slightly smaller height than default)
  1221. */
  1222. $include-button-grid-cell-ui: dynamic($include-button-default-ui);
  1223. /**
  1224. * @var {boolean}
  1225. * True to include the "default-toolbar" button UI
  1226. */
  1227. $include-button-default-toolbar-ui: dynamic($include-default-uis);
  1228. /**
  1229. * @var {boolean}
  1230. * True to include the "default-toolbar" button UI for "small" scale buttons
  1231. */
  1232. $include-button-default-toolbar-small-ui: dynamic($include-button-default-toolbar-ui);
  1233. /**
  1234. * @var {boolean}
  1235. * True to include the "default-toolbar" button UI for "medium" scale buttons
  1236. */
  1237. $include-button-default-toolbar-medium-ui: dynamic($include-button-default-toolbar-ui);
  1238. /**
  1239. * @var {boolean}
  1240. * True to include the "default-toolbar" button UI for "large" scale buttons
  1241. */
  1242. $include-button-default-toolbar-large-ui: dynamic($include-button-default-toolbar-ui);
  1243. /**
  1244. * @var {number}
  1245. * The default width for a grid cell button's {@link #cfg-menu} arrow
  1246. */
  1247. $button-grid-cell-arrow-width: dynamic($button-arrow-width);
  1248. /**
  1249. * @var {number}
  1250. * The default height for a grid cell button's {@link #cfg-menu} arrow
  1251. */
  1252. $button-grid-cell-arrow-height: dynamic($button-arrow-height);
  1253. /**
  1254. * @var {string/list}
  1255. * Glyph for a grid cell button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  1256. */
  1257. $button-grid-cell-arrow-glyph: dynamic($button-small-arrow-glyph);
  1258. /**
  1259. * @var {number}
  1260. * The default width a grid cell {@link Ext.button.Split Split Button}'s arrow
  1261. */
  1262. $button-grid-cell-split-width: dynamic($button-split-width);
  1263. /**
  1264. * @var {number}
  1265. * The default height a grid cell {@link Ext.button.Split Split Button}'s arrow
  1266. */
  1267. $button-grid-cell-split-height: dynamic($button-split-height);
  1268. /**
  1269. * @var {number}
  1270. * The default space between a grid cell button's icon and text
  1271. */
  1272. $button-grid-cell-icon-spacing: dynamic($button-icon-spacing);
  1273. /**
  1274. * @var {number}
  1275. * The default border-radius for a grid cell button
  1276. */
  1277. $button-grid-cell-border-radius: dynamic($button-small-border-radius);
  1278. /**
  1279. * @var {number}
  1280. * The default border-width for a grid cell button
  1281. */
  1282. $button-grid-cell-border-width: dynamic($button-small-border-width);
  1283. /**
  1284. * @var {number}
  1285. * The default padding for a grid cell button
  1286. */
  1287. $button-grid-cell-padding: dynamic($button-small-padding);
  1288. /**
  1289. * @var {number}
  1290. * The default horizontal padding to add to the left and right of the text element for
  1291. * a grid cell button
  1292. */
  1293. $button-grid-cell-text-padding: dynamic($button-small-text-padding);
  1294. /**
  1295. * @var {number}
  1296. * The default font-size for a grid cell button
  1297. */
  1298. $button-grid-cell-font-size: dynamic($button-small-font-size); //11px
  1299. /**
  1300. * @var {number}
  1301. * The default font-size for a grid cell button when the cursor is over the button
  1302. */
  1303. $button-grid-cell-font-size-over: dynamic($button-grid-cell-font-size);
  1304. /**
  1305. * @var {number}
  1306. * The default font-size for a grid cell button when the button is focused
  1307. */
  1308. $button-grid-cell-font-size-focus: dynamic($button-grid-cell-font-size-over);
  1309. /**
  1310. * @var {number}
  1311. * The default font-size for a grid cell button when the button is pressed
  1312. */
  1313. $button-grid-cell-font-size-pressed: dynamic($button-grid-cell-font-size);
  1314. /**
  1315. * @var {number}
  1316. * The default font-size for a grid cell button when the button is focused and the cursor
  1317. * is over the button
  1318. */
  1319. $button-grid-cell-font-size-focus-over: dynamic($button-grid-cell-font-size-over);
  1320. /**
  1321. * @var {number}
  1322. * The default font-size for a grid cell button when the button is focused and pressed
  1323. */
  1324. $button-grid-cell-font-size-focus-pressed: dynamic($button-grid-cell-font-size-pressed);
  1325. /**
  1326. * @var {number}
  1327. * The default font-size for a grid cell button when the button is disabled
  1328. */
  1329. $button-grid-cell-font-size-disabled: dynamic($button-grid-cell-font-size);
  1330. /**
  1331. * @var {string}
  1332. * The default font-weight for a grid cell button
  1333. */
  1334. $button-grid-cell-font-weight: dynamic($button-small-font-weight);
  1335. /**
  1336. * @var {string}
  1337. * The default font-weight for a grid cell button when the cursor is over the button
  1338. */
  1339. $button-grid-cell-font-weight-over: dynamic($button-grid-cell-font-weight);
  1340. /**
  1341. * @var {string}
  1342. * The default font-weight for a grid cell button when the button is focused
  1343. */
  1344. $button-grid-cell-font-weight-focus: dynamic($button-grid-cell-font-weight-over);
  1345. /**
  1346. * @var {string}
  1347. * The default font-weight for a grid cell button when the button is pressed
  1348. */
  1349. $button-grid-cell-font-weight-pressed: dynamic($button-grid-cell-font-weight);
  1350. /**
  1351. * @var {string}
  1352. * The default font-weight for a grid cell button when the button is focused and the
  1353. * cursor is over the button
  1354. */
  1355. $button-grid-cell-font-weight-focus-over: dynamic($button-grid-cell-font-weight-over);
  1356. /**
  1357. * @var {string}
  1358. * The default font-weight for a grid cell button when the button is focused and pressed
  1359. */
  1360. $button-grid-cell-font-weight-focus-pressed: dynamic($button-grid-cell-font-weight-pressed);
  1361. /**
  1362. * @var {string}
  1363. * The default font-weight for a grid cell button when the button is disabled
  1364. */
  1365. $button-grid-cell-font-weight-disabled: dynamic($button-grid-cell-font-weight);
  1366. /**
  1367. * @var {string}
  1368. * The default font-family for a grid cell button
  1369. */
  1370. $button-grid-cell-font-family: dynamic($button-small-font-family);
  1371. /**
  1372. * @var {string}
  1373. * The default font-family for a grid cell button when the cursor is over the button
  1374. */
  1375. $button-grid-cell-font-family-over: dynamic($button-grid-cell-font-family);
  1376. /**
  1377. * @var {string}
  1378. * The default font-family for a grid cell button when the button is focused
  1379. */
  1380. $button-grid-cell-font-family-focus: dynamic($button-grid-cell-font-family-over);
  1381. /**
  1382. * @var {string}
  1383. * The default font-family for a grid cell button when the button is pressed
  1384. */
  1385. $button-grid-cell-font-family-pressed: dynamic($button-grid-cell-font-family);
  1386. /**
  1387. * @var {string}
  1388. * The default font-family for a grid cell button when the button is focused and the
  1389. * cursor is over the button
  1390. */
  1391. $button-grid-cell-font-family-focus-over: dynamic($button-grid-cell-font-family-over);
  1392. /**
  1393. * @var {string}
  1394. * The default font-family for a grid cell button when the button is focused and pressed
  1395. */
  1396. $button-grid-cell-font-family-focus-pressed: dynamic($button-grid-cell-font-family-pressed);
  1397. /**
  1398. * @var {string}
  1399. * The default font-family for a grid cell button when the button is disabled
  1400. */
  1401. $button-grid-cell-font-family-disabled: dynamic($button-grid-cell-font-family);
  1402. /**
  1403. * @var {number}
  1404. * The line-height for the text in a grid cell button
  1405. */
  1406. $button-grid-cell-line-height: dynamic($button-small-line-height);
  1407. /**
  1408. * @var {number}
  1409. * The default icon size for a grid cell button
  1410. */
  1411. $button-grid-cell-icon-size: dynamic($button-small-icon-size);
  1412. /**
  1413. * @var {number}
  1414. * The the font-size for grid cell button glyphs
  1415. */
  1416. $button-grid-cell-glyph-font-size: dynamic($button-grid-cell-icon-size);
  1417. /**
  1418. * @var {color}
  1419. * The border-color for the `cell` button UI
  1420. */
  1421. $button-grid-cell-border-color: dynamic($button-default-border-color);
  1422. /**
  1423. * @var {color}
  1424. * The border-color for the `cell` button UI when the cursor is over the button
  1425. */
  1426. $button-grid-cell-border-color-over: dynamic(button-default-border-color-over($button-grid-cell-border-color));
  1427. /**
  1428. * @var {color}
  1429. * The border-color for the `cell` button UI when the button is focused
  1430. */
  1431. $button-grid-cell-border-color-focus: dynamic(button-default-border-color-focus($button-grid-cell-border-color));
  1432. /**
  1433. * @var {color}
  1434. * The border-color for the `cell` button UI when the button is pressed
  1435. */
  1436. $button-grid-cell-border-color-pressed: dynamic(button-default-border-color-pressed($button-grid-cell-border-color));
  1437. /**
  1438. * @var {color}
  1439. * The border-color for the `cell` button UI when the button is focused and the cursor
  1440. * is over the button
  1441. */
  1442. $button-grid-cell-border-color-focus-over: dynamic($button-grid-cell-border-color-over);
  1443. /**
  1444. * @var {color}
  1445. * The border-color for the `cell` button UI when the button is focused and pressed
  1446. */
  1447. $button-grid-cell-border-color-focus-pressed: dynamic($button-grid-cell-border-color-pressed);
  1448. /**
  1449. * @var {color}
  1450. * The border-color for the `cell` button UI when the button is disabled
  1451. */
  1452. $button-grid-cell-border-color-disabled: dynamic(button-default-border-color-disabled($button-grid-cell-border-color));
  1453. /**
  1454. * @var {color}
  1455. * The background-color for the `cell` button UI
  1456. */
  1457. $button-grid-cell-background-color: dynamic($button-default-background-color);
  1458. /**
  1459. * @var {color}
  1460. * The background-color for the `cell` button UI when the cursor is over the button
  1461. */
  1462. $button-grid-cell-background-color-over: dynamic(button-default-background-color-over($button-grid-cell-background-color));
  1463. /**
  1464. * @var {color}
  1465. * The background-color for the `cell` button UI when the button is focused
  1466. */
  1467. $button-grid-cell-background-color-focus: dynamic(button-default-background-color-focus($button-grid-cell-background-color));
  1468. /**
  1469. * @var {color}
  1470. * The background-color for the `cell` button UI when the button is pressed
  1471. */
  1472. $button-grid-cell-background-color-pressed: dynamic(button-default-background-color-pressed($button-grid-cell-background-color));
  1473. /**
  1474. * @var {color}
  1475. * The background-color for the `cell` button UI when the button is focused and the cursor
  1476. * is over the button
  1477. */
  1478. $button-grid-cell-background-color-focus-over: dynamic($button-grid-cell-background-color-over);
  1479. /**
  1480. * @var {color}
  1481. * The background-color for the `cell` button UI when the button is focused and pressed
  1482. */
  1483. $button-grid-cell-background-color-focus-pressed: dynamic($button-grid-cell-background-color-pressed);
  1484. /**
  1485. * @var {color}
  1486. * The background-color for the `cell` button UI when the button is disabled
  1487. */
  1488. $button-grid-cell-background-color-disabled: dynamic(button-default-background-color-disabled($button-grid-cell-background-color));
  1489. /**
  1490. * @var {string/list}
  1491. * The background-gradient for the `cell` button UI. Can be either the name of a
  1492. * predefined gradient or a list of color stops. Used as the `$type` parameter for
  1493. * {@link Global_CSS#background-gradient}.
  1494. */
  1495. $button-grid-cell-background-gradient: dynamic($button-default-background-gradient);
  1496. /**
  1497. * @var {string/list}
  1498. * The background-gradient for the `cell` button UI when the cursor is over the button.
  1499. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  1500. * `$type` parameter for {@link Global_CSS#background-gradient}.
  1501. */
  1502. $button-grid-cell-background-gradient-over: dynamic($button-default-background-gradient-over);
  1503. /**
  1504. * @var {string/list}
  1505. * The background-gradient for the `cell` button UI when the button is focused. Can be
  1506. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  1507. * parameter for {@link Global_CSS#background-gradient}.
  1508. */
  1509. $button-grid-cell-background-gradient-focus: dynamic($button-grid-cell-background-gradient-over);
  1510. /**
  1511. * @var {string/list}
  1512. * The background-gradient for the `cell` button UI when the button is pressed. Can be
  1513. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  1514. * parameter for {@link Global_CSS#background-gradient}.
  1515. */
  1516. $button-grid-cell-background-gradient-pressed: dynamic($button-default-background-gradient-pressed);
  1517. /**
  1518. * @var {string/list}
  1519. * The background-gradient for the `cell` button UI when the button is focused and the
  1520. * cursor is over the button. Can be either the name of a predefined gradient or a list
  1521. * of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  1522. */
  1523. $button-grid-cell-background-gradient-focus-over: dynamic($button-grid-cell-background-gradient-over);
  1524. /**
  1525. * @var {string/list}
  1526. * The background-gradient for the `cell` button UI when the button is focused and pressed.
  1527. * Can be either the name of a predefined gradient or a list of color stops. Used as the
  1528. * `$type` parameter for {@link Global_CSS#background-gradient}.
  1529. */
  1530. $button-grid-cell-background-gradient-focus-pressed: dynamic($button-grid-cell-background-gradient-pressed);
  1531. /**
  1532. * @var {string/list}
  1533. * The background-gradient for the `cell` button UI when the button is disabled. Can be
  1534. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  1535. * parameter for {@link Global_CSS#background-gradient}.
  1536. */
  1537. $button-grid-cell-background-gradient-disabled: dynamic($button-default-background-gradient-disabled);
  1538. /**
  1539. * @var {color}
  1540. * The text color for the `cell` button UI
  1541. */
  1542. $button-grid-cell-color: dynamic($button-default-color);
  1543. /**
  1544. * @var {color}
  1545. * The text color for the `cell` button UI when the cursor is over the button
  1546. */
  1547. $button-grid-cell-color-over: dynamic(button-default-color-over($button-grid-cell-color));
  1548. /**
  1549. * @var {color}
  1550. * The text color for the `cell` button UI when the button is focused
  1551. */
  1552. $button-grid-cell-color-focus: dynamic(button-default-color-focus($button-grid-cell-color));
  1553. /**
  1554. * @var {color}
  1555. * The text color for the `cell` button UI when the button is pressed
  1556. */
  1557. $button-grid-cell-color-pressed: dynamic(button-default-color-pressed($button-grid-cell-color));
  1558. /**
  1559. * @var {color}
  1560. * The text color for the `cell` button UI when the button is focused and the cursor is
  1561. * over the button
  1562. */
  1563. $button-grid-cell-color-focus-over: dynamic($button-grid-cell-color-over);
  1564. /**
  1565. * @var {color}
  1566. * The text color for the `cell` button UI when the button is focused and pressed
  1567. */
  1568. $button-grid-cell-color-focus-pressed: dynamic($button-grid-cell-color-pressed);
  1569. /**
  1570. * @var {color}
  1571. * The text color for the `cell` button UI when the button is disabled
  1572. */
  1573. $button-grid-cell-color-disabled: dynamic(button-default-color-disabled($button-grid-cell-color));
  1574. /**
  1575. * @var {number/list}
  1576. * The inner border-width for the `cell` button UI
  1577. */
  1578. $button-grid-cell-inner-border-width: dynamic('none');
  1579. /**
  1580. * @var {number/list}
  1581. * The inner border-width for the `cell` button UI when the cursor is over the button
  1582. */
  1583. $button-grid-cell-inner-border-width-over: dynamic($button-grid-cell-inner-border-width);
  1584. /**
  1585. * @var {number/list}
  1586. * The inner border-width for the `cell` button UI when the button is focused
  1587. */
  1588. $button-grid-cell-inner-border-width-focus: dynamic($button-grid-cell-inner-border-width);
  1589. /**
  1590. * @var {number/list}
  1591. * The inner border-width for the `cell` button UI when the button is pressed
  1592. */
  1593. $button-grid-cell-inner-border-width-pressed: dynamic($button-grid-cell-inner-border-width);
  1594. /**
  1595. * @var {number/list}
  1596. * The inner border-width for the `cell` button UI when the button is focused and the
  1597. * cursor is over the button
  1598. */
  1599. $button-grid-cell-inner-border-width-focus-over: dynamic($button-grid-cell-inner-border-width-focus);
  1600. /**
  1601. * @var {number/list}
  1602. * The inner border-width for the `cell` button UI when the button is focused and pressed
  1603. */
  1604. $button-grid-cell-inner-border-width-focus-pressed: dynamic($button-grid-cell-inner-border-width-focus);
  1605. /**
  1606. * @var {number/list}
  1607. * The inner border-width for the `cell` button UI when the button is disabled
  1608. */
  1609. $button-grid-cell-inner-border-width-disabled: dynamic($button-grid-cell-inner-border-width);
  1610. /**
  1611. * @var {color}
  1612. * The inner border-color for the `cell` button UI
  1613. */
  1614. $button-grid-cell-inner-border-color: dynamic(button-default-inner-border-color($button-grid-cell-background-color, $button-grid-cell-color));
  1615. /**
  1616. * @var {color}
  1617. * The inner border-color for the `cell` button UI when the cursor is over the button
  1618. */
  1619. $button-grid-cell-inner-border-color-over: dynamic(button-default-inner-border-color-over($button-grid-cell-background-color-over, $button-grid-cell-color-over));
  1620. /**
  1621. * @var {color}
  1622. * The inner border-color for the `cell` button UI when the button is focused
  1623. */
  1624. $button-grid-cell-inner-border-color-focus: dynamic(button-default-inner-border-color-focus($button-grid-cell-background-color-focus, $button-grid-cell-color-focus));
  1625. /**
  1626. * @var {color}
  1627. * The inner border-color for the `cell` button UI when the button is pressed
  1628. */
  1629. $button-grid-cell-inner-border-color-pressed: dynamic(button-default-inner-border-color-pressed($button-grid-cell-background-color-pressed, $button-grid-cell-color-pressed));
  1630. /**
  1631. * @var {color}
  1632. * The inner border-color for the `cell` button UI when the button is focused and the
  1633. * cursor is over the button
  1634. */
  1635. $button-grid-cell-inner-border-color-focus-over: dynamic(button-default-inner-border-color-focus-over($button-grid-cell-background-color-focus-over, $button-grid-cell-color-focus-over));
  1636. /**
  1637. * @var {color}
  1638. * The inner border-color for the `cell` button UI when the button is focused and pressed
  1639. */
  1640. $button-grid-cell-inner-border-color-focus-pressed: dynamic(button-default-inner-border-color-focus-pressed($button-grid-cell-background-color-focus-pressed, $button-grid-cell-color-focus-pressed));
  1641. /**
  1642. * @var {color}
  1643. * The inner border-color for the `cell` button UI when the button is disabled
  1644. */
  1645. $button-grid-cell-inner-border-color-disabled: dynamic(button-default-inner-border-color-disabled($button-grid-cell-background-color-disabled, $button-grid-cell-color-disabled));
  1646. /**
  1647. * @var {number}
  1648. * The body outline width for the `cell` button UI when the button is focused
  1649. */
  1650. $button-grid-cell-body-outline-width-focus: dynamic($button-default-body-outline-width-focus);
  1651. /**
  1652. * @var {string}
  1653. * The body outline-style for the `cell` button UI when the button is focused
  1654. */
  1655. $button-grid-cell-body-outline-style-focus: dynamic($button-default-body-outline-style-focus);
  1656. /**
  1657. * @var {color}
  1658. * The body outline color for the `cell` button UI when the button is focused
  1659. */
  1660. $button-grid-cell-body-outline-color-focus: dynamic($button-default-body-outline-color-focus);
  1661. /**
  1662. * @var {color}
  1663. * The color of the {@link #glyph} icon for the `cell` button UI
  1664. */
  1665. $button-grid-cell-glyph-color: dynamic($button-grid-cell-color);
  1666. /**
  1667. * @var {string/list}
  1668. * Glyph color for the button arrow of the `cell` button UI when when
  1669. * {@link Global_CSS#$enable-font-icons} is `true`.
  1670. */
  1671. $button-grid-cell-arrow-glyph-color: dynamic($button-grid-cell-color);
  1672. /**
  1673. * @var {color}
  1674. * The width for a {@link Ext.button.Split Split Button}'s line in the `cell` button UI.
  1675. */
  1676. $button-grid-cell-split-line-width: dynamic($button-small-split-line-width);
  1677. /**
  1678. * @var {color}
  1679. * The color for a {@link Ext.button.Split Split Button}'s line in the `cell` button UI.
  1680. * Only applicable when {@link #$button-grid-cell-split-line-width} is greater than 0.
  1681. */
  1682. $button-grid-cell-split-line-color: dynamic($button-grid-cell-arrow-glyph-color);
  1683. /**
  1684. * @var {color}
  1685. * The opacity of the {@link #glyph} icon for the `cell` button UI
  1686. */
  1687. $button-grid-cell-glyph-opacity: dynamic($button-default-glyph-opacity);
  1688. /**
  1689. * @var {number} $button-grid-cell-opacity-disabled
  1690. * opacity to apply to the button's main element when the button is disabled
  1691. */
  1692. $button-grid-cell-opacity-disabled: dynamic($button-opacity-disabled);
  1693. /**
  1694. * @var {number} $button-grid-cell-inner-opacity-disabled
  1695. * opacity to apply to the button's inner elements (icon and text) when the buton is disabled
  1696. */
  1697. $button-grid-cell-inner-opacity-disabled: dynamic($button-inner-opacity-disabled);
  1698. /**
  1699. * Creates a visual theme for a Button. This mixin is not {@link #scale} aware, and therefore
  1700. * does not provide defaults for most parameters, so it is advisable to use one of the
  1701. * following mixins instead when creating a custom buttonUI:
  1702. *
  1703. * #extjs-button-small-ui - creates a button UI for a small button
  1704. * #extjs-button-medium-ui - creates a button UI for a medium button
  1705. * #extjs-button-large-ui - creates a button UI for a large button
  1706. * #extjs-button-toolbar-small-ui - creates a button UI for a small toolbar button
  1707. * #extjs-button-toolbar-medium-ui - creates a button UI for a medium toolbar button
  1708. * #extjs-button-toolbar-large-ui - creates a button UI for a large toolbar button
  1709. *
  1710. * @param {string} $ui
  1711. * The name of the UI being created. Can not included spaces or special punctuation
  1712. * (used in CSS class names).
  1713. *
  1714. * @param {number} [$border-radius=0px]
  1715. * The border-radius of the button
  1716. *
  1717. * @param {number} [$border-width=0px]
  1718. * The border-width of the button
  1719. *
  1720. * @param {color} $border-color
  1721. * The border-color of the button
  1722. *
  1723. * @param {color} $border-color-over
  1724. * The border-color of the button when the cursor is over the button
  1725. *
  1726. * @param {color} $border-color-focus
  1727. * The border-color of the button when focused
  1728. *
  1729. * @param {color} $border-color-pressed
  1730. * The border-color of the button when pressed
  1731. *
  1732. * @param {color} $border-color-focus-over
  1733. * The border-color of the button when the button is focused and the cursor is over the
  1734. * button
  1735. *
  1736. * @param {color} $border-color-focus-pressed
  1737. * The border-color of the button when focused and pressed
  1738. *
  1739. * @param {color} $border-color-disabled
  1740. * The border-color of the button when disabled
  1741. *
  1742. * @param {number} $padding
  1743. * The amount of padding inside the border of the button on all sides
  1744. *
  1745. * @param {number} $text-padding
  1746. * The amount of horizontal space to add to the left and right of the button text
  1747. *
  1748. * @param {color} $background-color
  1749. * The background-color of the button
  1750. *
  1751. * @param {color} $background-color-over
  1752. * The background-color of the button when the cursor is over the button
  1753. *
  1754. * @param {color} $background-color-focus
  1755. * The background-color of the button when focused
  1756. *
  1757. * @param {color} $background-color-pressed
  1758. * The background-color of the button when pressed
  1759. *
  1760. * @param {color} $background-color-focus-over
  1761. * The background-color of the button when the button is focused and the cursor is over
  1762. * the button
  1763. *
  1764. * @param {color} $background-color-focus-pressed
  1765. * The background-color of the button when focused and pressed
  1766. *
  1767. * @param {color} $background-color-disabled
  1768. * The background-color of the button when disabled
  1769. *
  1770. * @param {string/list} $background-gradient
  1771. * The background-gradient for the button. Can be either the name of a predefined gradient
  1772. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  1773. *
  1774. * @param {string} $background-gradient-over
  1775. * The background-gradient to use when the cursor is over the button. Can be either the
  1776. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  1777. * for {@link Global_CSS#background-gradient}.
  1778. *
  1779. * @param {string} $background-gradient-focus
  1780. * The background-gradient to use when the the button is focused. Can be either the name
  1781. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  1782. * {@link Global_CSS#background-gradient}.
  1783. *
  1784. * @param {string} $background-gradient-pressed
  1785. * The background-gradient to use when the the button is pressed. Can be either the name
  1786. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  1787. * {@link Global_CSS#background-gradient}.
  1788. *
  1789. * @param {string} $background-gradient-focus-over
  1790. * The background-gradient to use when the the button is focused and the cursor is over
  1791. * the button. Can be either the name of a predefined gradient or a list of color stops.
  1792. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  1793. *
  1794. * @param {string} $background-gradient-focus-pressed
  1795. * The background-gradient to use when the the button is focused and pressed. Can be
  1796. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  1797. * parameter for {@link Global_CSS#background-gradient}.
  1798. *
  1799. * @param {string} $background-gradient-disabled
  1800. * The background-gradient to use when the the button is disabled. Can be either the name
  1801. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  1802. * {@link Global_CSS#background-gradient}.
  1803. *
  1804. * @param {color} $color
  1805. * The text color of the button
  1806. *
  1807. * @param {color} $color-over
  1808. * The text color of the button when the cursor is over the button
  1809. *
  1810. * @param {color} $color-focus
  1811. * The text color of the button when the button is focused
  1812. *
  1813. * @param {color} $color-pressed
  1814. * The text color of the button when the button is pressed
  1815. *
  1816. * @param {color} $color-focus-over
  1817. * The text color of the button when the button is focused and the cursor is over the button
  1818. *
  1819. * @param {color} $color-focus-pressed
  1820. * The text color of the button when the button is focused and pressed
  1821. *
  1822. * @param {color} $color-disabled
  1823. * The text color of the button when the button is disabled
  1824. *
  1825. * @param {number/list} $inner-border-width
  1826. * The inner border-width of the button
  1827. *
  1828. * @param {number/list} $inner-border-width-over
  1829. * The inner border-width of the button when the cursor is over the button
  1830. *
  1831. * @param {number/list} $inner-border-width-focus
  1832. * The inner border-width of the button when focused
  1833. *
  1834. * @param {number/list} $inner-border-width-pressed
  1835. * The inner border-width of the button when pressed
  1836. *
  1837. * @param {number/list} $inner-border-width-focus-over
  1838. * The inner border-width of the button when the button is focused and the cursor is over
  1839. * the button
  1840. *
  1841. * @param {number/list} $inner-border-width-focus-pressed
  1842. * The inner border-width of the button when focused and pressed
  1843. *
  1844. * @param {number/list} $inner-border-width-disabled
  1845. * The inner border-width of the button when disabled
  1846. *
  1847. * @param {color} $inner-border-color
  1848. * The inner border-color of the button
  1849. *
  1850. * @param {color} $inner-border-color-over
  1851. * The inner border-color of the button when the cursor is over the button
  1852. *
  1853. * @param {color} $inner-border-color-focus
  1854. * The inner border-color of the button when focused
  1855. *
  1856. * @param {color} $inner-border-color-pressed
  1857. * The inner border-color of the button when pressed
  1858. *
  1859. * @param {color} $inner-border-color-focus-over
  1860. * The inner border-color of the button when the button is focused and the cursor is over
  1861. * the button
  1862. *
  1863. * @param {color} $inner-border-color-focus-pressed
  1864. * The inner border-color of the button when focused and pressed
  1865. *
  1866. * @param {color} $inner-border-color-disabled
  1867. * The inner border-color of the button when disabled
  1868. *
  1869. * @param {number} $body-outline-width-focus
  1870. * The body outline width of the button when focused
  1871. *
  1872. * @param {string} $body-outline-style-focus
  1873. * The body outline-style of the button when focused
  1874. *
  1875. * @param {color} $body-outline-color-focus
  1876. * The body outline color of the button when focused
  1877. *
  1878. * @param {number} $font-size
  1879. * The font-size of the button
  1880. *
  1881. * @param {number} $font-size-over
  1882. * The font-size of the button when the cursor is over the button
  1883. *
  1884. * @param {number} $font-size-focus
  1885. * The font-size of the button when the button is focused
  1886. *
  1887. * @param {number} $font-size-pressed
  1888. * The font-size of the button when the button is pressed
  1889. *
  1890. * @param {number} $font-size-focus-over
  1891. * The font-size of the button when the button is focused and the cursor is over the
  1892. * button
  1893. *
  1894. * @param {number} $font-size-focus-pressed
  1895. * The font-size of the button when the button is focused and pressed
  1896. *
  1897. * @param {number} $font-size-disabled
  1898. * The font-size of the button when the button is disabled
  1899. *
  1900. * @param {string} $font-weight
  1901. * The font-weight of the button
  1902. *
  1903. * @param {string} $font-weight-over
  1904. * The font-weight of the button when the cursor is over the button
  1905. *
  1906. * @param {string} $font-weight-focus
  1907. * The font-weight of the button when the button is focused
  1908. *
  1909. * @param {string} $font-weight-pressed
  1910. * The font-weight of the button when the button is pressed
  1911. *
  1912. * @param {string} $font-weight-focus-over
  1913. * The font-weight of the button when the button is focused and the cursor is over the
  1914. * button
  1915. *
  1916. * @param {string} $font-weight-focus-pressed
  1917. * The font-weight of the button when the button is focused and pressed
  1918. *
  1919. * @param {string} $font-weight-disabled
  1920. * The font-weight of the button when the button is disabled
  1921. *
  1922. * @param {string} $font-family
  1923. * The font-family of the button
  1924. *
  1925. * @param {string} $font-family-over
  1926. * The font-family of the button when the cursor is over the button
  1927. *
  1928. * @param {string} $font-family-focus
  1929. * The font-family of the button when the button is focused
  1930. *
  1931. * @param {string} $font-family-pressed
  1932. * The font-family of the button when the button is pressed
  1933. *
  1934. * @param {string} $font-family-focus-over
  1935. * The font-family of the button when the button is focused and the cursor is over the
  1936. * button
  1937. *
  1938. * @param {string} $font-family-focus-pressed
  1939. * The font-family of the button when the button is focused and pressed
  1940. *
  1941. * @param {string} $font-family-disabled
  1942. * The font-family of the button when the button is disabled
  1943. *
  1944. * @param {number} $icon-size
  1945. * The size of the button icon
  1946. *
  1947. * @param {number} $glyph-font-size
  1948. * The font-size for the button glyph
  1949. *
  1950. * @param {number} [$line-height=$icon-size]
  1951. * The line-height for the button glyph
  1952. *
  1953. * @param {number} $icon-spacing
  1954. * The space between the button's icon and text
  1955. *
  1956. * @param {color} $glyph-color
  1957. * The color of the button's {@link #glyph} icon
  1958. *
  1959. * @param {number} [$glyph-opacity=1]
  1960. * The opacity of the button's {@link #glyph} icon
  1961. *
  1962. * @param {number} $arrow-width
  1963. * The width of the button's {@link #cfg-menu} arrow
  1964. *
  1965. * @param {number} $arrow-height
  1966. * The height of the button's {@link #cfg-menu} arrow
  1967. *
  1968. * @param {string/list} $arrow-glyph
  1969. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  1970. *
  1971. * @param {string/list} $arrow-glyph-color
  1972. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  1973. *
  1974. * @param {number} $split-width
  1975. * The width of a {@link Ext.button.Split Split Button}'s arrow
  1976. *
  1977. * @param {number} $split-height
  1978. * The height of a {@link Ext.button.Split Split Button}'s arrow
  1979. *
  1980. * @param {number} $split-line-width
  1981. * The default width for a {@link Ext.button.Split Split Button}'s line.
  1982. * Themes that include the line in the arrow background image should set this to 0
  1983. *
  1984. * @param {color} $split-line-color
  1985. * The color for a {@link Ext.button.Split Split Button}'s line.
  1986. * Only applicable when `$split-line-width` is greater than 0.
  1987. *
  1988. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  1989. * True to include the UI name in the file name of the {@link #cfg-menu}
  1990. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  1991. *
  1992. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  1993. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  1994. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  1995. *
  1996. * @param {boolean} [$include-split-noline-arrows=$button-include-split-noline-arrows]
  1997. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  1998. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  1999. * state.
  2000. *
  2001. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  2002. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  2003. * is over the button. The over icon file name will have a "-o" suffix
  2004. *
  2005. * @param {number} [$opacity-disabled=1]
  2006. * The opacity of the button when it is disabled
  2007. *
  2008. * @param {number} [$inner-opacity-disabled=1]
  2009. * The opacity of the button's text and icon elements when when the button is disabled
  2010. *
  2011. * @member Ext.button.Button
  2012. */
  2013. @mixin extjs-button-ui(
  2014. $ui,
  2015. $border-radius: 0px,
  2016. $border-width: 0px,
  2017. $border-color: null,
  2018. $border-color-over: null,
  2019. $border-color-focus: null,
  2020. $border-color-pressed: null,
  2021. $border-color-focus-over: null,
  2022. $border-color-focus-pressed: null,
  2023. $border-color-disabled: null,
  2024. $padding: null,
  2025. $text-padding: null,
  2026. $background-color: null,
  2027. $background-color-over: null,
  2028. $background-color-focus: null,
  2029. $background-color-pressed: null,
  2030. $background-color-focus-over: null,
  2031. $background-color-focus-pressed: null,
  2032. $background-color-disabled: null,
  2033. $background-gradient: null,
  2034. $background-gradient-over: null,
  2035. $background-gradient-focus: null,
  2036. $background-gradient-pressed: null,
  2037. $background-gradient-focus-over: null,
  2038. $background-gradient-focus-pressed: null,
  2039. $background-gradient-disabled: null,
  2040. $color: null,
  2041. $color-over: null,
  2042. $color-focus: null,
  2043. $color-pressed: null,
  2044. $color-focus-over: null,
  2045. $color-focus-pressed: null,
  2046. $color-disabled: null,
  2047. $inner-border-width: null,
  2048. $inner-border-width-over: null,
  2049. $inner-border-width-focus: null,
  2050. $inner-border-width-pressed: null,
  2051. $inner-border-width-focus-over: null,
  2052. $inner-border-width-focus-pressed: null,
  2053. $inner-border-width-disabled: null,
  2054. $inner-border-color: null,
  2055. $inner-border-color-over: null,
  2056. $inner-border-color-focus: null,
  2057. $inner-border-color-pressed: null,
  2058. $inner-border-color-focus-over: null,
  2059. $inner-border-color-focus-pressed: null,
  2060. $inner-border-color-disabled: null,
  2061. $body-outline-width-focus: null,
  2062. $body-outline-style-focus: null,
  2063. $body-outline-color-focus: null,
  2064. $font-size: null,
  2065. $font-size-over: null,
  2066. $font-size-focus: null,
  2067. $font-size-pressed: null,
  2068. $font-size-focus-over: null,
  2069. $font-size-focus-pressed: null,
  2070. $font-size-disabled: null,
  2071. $font-weight: null,
  2072. $font-weight-over: null,
  2073. $font-weight-focus: null,
  2074. $font-weight-pressed: null,
  2075. $font-weight-focus-over: null,
  2076. $font-weight-focus-pressed: null,
  2077. $font-weight-disabled: null,
  2078. $font-family: null,
  2079. $font-family-over: null,
  2080. $font-family-focus: null,
  2081. $font-family-pressed: null,
  2082. $font-family-focus-over: null,
  2083. $font-family-focus-pressed: null,
  2084. $font-family-disabled: null,
  2085. $icon-size: null,
  2086. $glyph-font-size: null,
  2087. $line-height: $icon-size,
  2088. $icon-spacing: $button-icon-spacing,
  2089. $glyph-color: $button-default-glyph-color,
  2090. $glyph-opacity: $button-default-glyph-opacity,
  2091. $arrow-width: null,
  2092. $arrow-height: null,
  2093. $arrow-glyph: null,
  2094. $arrow-glyph-color: null,
  2095. $split-width: null,
  2096. $split-height: null,
  2097. $split-line-width: null,
  2098. $split-line-color: null,
  2099. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  2100. $include-ui-split-arrows: $button-include-ui-split-arrows,
  2101. $include-split-noline-arrows: $button-include-split-noline-arrows,
  2102. $include-split-over-arrows: $button-include-split-over-arrows,
  2103. $opacity-disabled: $button-opacity-disabled,
  2104. $inner-opacity-disabled: $button-inner-opacity-disabled
  2105. ) {
  2106. $inner-border-max: max(
  2107. max(top($inner-border-width) right($inner-border-width) bottom($inner-border-width) left($inner-border-width))
  2108. max(top($inner-border-width-over) right($inner-border-width-over) bottom($inner-border-width-over) left($inner-border-width-over))
  2109. max(top($inner-border-width-focus) right($inner-border-width-focus) bottom($inner-border-width-focus) left($inner-border-width-focus))
  2110. max(top($inner-border-width-pressed) right($inner-border-width-pressed) bottom($inner-border-width-pressed) left($inner-border-width-pressed))
  2111. max(top($inner-border-width-disabled) right($inner-border-width-disabled) bottom($inner-border-width-disabled) left($inner-border-width-disabled))
  2112. );
  2113. $frame-size: frame-size($border-width, $inner-border-max, $border-radius);
  2114. @include x-frame(
  2115. $cls: 'btn',
  2116. $ui: $ui,
  2117. $border-radius: $border-radius,
  2118. $border-width: $border-width,
  2119. $padding: $padding,
  2120. $background-color: $background-color,
  2121. $background-gradient: $background-gradient,
  2122. $table: true,
  2123. $inner-border-width: $inner-border-width
  2124. );
  2125. .#{$prefix}btn-#{$ui} {
  2126. border-color: $border-color;
  2127. @if not is-null($inner-border-width) and not is-null($inner-border-color) and $inner-border-width != 0 {
  2128. @include inner-border($inner-border-width, $inner-border-color);
  2129. }
  2130. }
  2131. .#{$prefix}btn-button-#{$ui} {
  2132. min-height: max($icon-size, $line-height);
  2133. @if $include-ie {
  2134. // In ie9m this element is a table cell, so height works like min-height
  2135. .#{$prefix}ie9m & {
  2136. min-height: auto;
  2137. height: max($icon-size, $line-height);
  2138. }
  2139. }
  2140. }
  2141. .#{$prefix}btn-inner-#{$ui} {
  2142. font: $font-weight #{$font-size}/#{$line-height} $font-family;
  2143. color: $color;
  2144. @if $text-padding != 0 {
  2145. padding: 0 $text-padding;
  2146. }
  2147. // Where table-based layouts are used (IE8/9) inner el requires max-width in order
  2148. // for ellipsis to work. Safari also requires max width because of a bug in its
  2149. // -webkit-box layout that allows an element to expand beyond its flexed width if
  2150. // its content is larger than the flexed width.
  2151. // Rather than target the max rule to all the browsers that need it, we'll just add
  2152. // it everywhere, and then disable it where it causes problems (IE10p)
  2153. max-width: 100%;
  2154. .#{$prefix}btn-icon-right > &,
  2155. .#{$prefix}btn-icon-left > & {
  2156. // since calc is only supported in IE9+ ellipsis will not work in IE8 when
  2157. // there is a left or right icon present
  2158. @if $include-ie {
  2159. .#{$prefix}ie9 & {
  2160. max-width: calc(100% - #{$icon-size});
  2161. }
  2162. }
  2163. // Safari calc() does not handle sub-pixel sizes correctly and therefore the max width
  2164. // can be larger than its parent and causes text-overflow. We remove 1px from the
  2165. // calculation to prevent overflow.
  2166. .#{$prefix}safari8m & {
  2167. max-width: calc(100% - #{$icon-size - 1px});
  2168. }
  2169. }
  2170. // Max-width interferes with the layout in IE11. Fortunately we don't need the hack there
  2171. .#{$prefix}ie10p & {
  2172. max-width: none;
  2173. }
  2174. }
  2175. .#{$prefix}btn-icon-el-#{$ui} {
  2176. font-size: $glyph-font-size;
  2177. height: $icon-size;
  2178. color: $glyph-color;
  2179. line-height: $icon-size;
  2180. .#{$prefix}btn-icon-left > &,
  2181. .#{$prefix}btn-icon-right > & {
  2182. width: $icon-size;
  2183. }
  2184. .#{$prefix}btn-icon-top > &,
  2185. .#{$prefix}btn-icon-bottom > & {
  2186. min-width: $icon-size;
  2187. }
  2188. &.#{$prefix}btn-glyph {
  2189. @if $glyph-opacity != 1 {
  2190. // do not use the opacity mixin because we do not want IE's filter version of
  2191. // opacity to be included. We emulate the opacity setting in IE8m by mixing
  2192. // the icon color into the background color. (see below)
  2193. opacity: $glyph-opacity;
  2194. }
  2195. // In IE8 and below when a glyph contains partially transparent pixels, we
  2196. // can't apply an opacity filter to the glyph element, because IE8m will render
  2197. // the partially transparent pixels of the glyph as black. To work around this,
  2198. // we emulate the approximate color that the glyph would have if it had opacity
  2199. // applied by mixing the glyph color with the button's background-color.
  2200. $mix-color: $background-color;
  2201. @if $mix-color == transparent {
  2202. $mix-color: #fff;
  2203. }
  2204. @if $include-ie {
  2205. .#{$prefix}ie8 & {
  2206. color: mix($glyph-color, $mix-color, $glyph-opacity * 100);
  2207. }
  2208. }
  2209. }
  2210. // when the button contains both icon and text, add $icon-spacing to the icon
  2211. .#{$prefix}btn-text.#{$prefix}btn-icon-left > & {
  2212. margin-right: max($icon-spacing - $text-padding, 0);
  2213. @if $include-rtl {
  2214. &.#{$prefix}rtl {
  2215. margin-right: 0;
  2216. margin-left: max($icon-spacing - $text-padding, 0);
  2217. }
  2218. }
  2219. }
  2220. .#{$prefix}btn-text.#{$prefix}btn-icon-right > & {
  2221. margin-left: max($icon-spacing - $text-padding, 0);
  2222. @if $include-rtl {
  2223. &.#{$prefix}rtl {
  2224. margin-left: 0;
  2225. margin-right: max($icon-spacing - $text-padding, 0);
  2226. }
  2227. }
  2228. }
  2229. .#{$prefix}btn-text.#{$prefix}btn-icon-top > & {
  2230. margin-bottom: $icon-spacing;
  2231. }
  2232. .#{$prefix}btn-text.#{$prefix}btn-icon-bottom > & {
  2233. margin-top: $icon-spacing;
  2234. }
  2235. }
  2236. .#{$prefix}btn-arrow-right > {
  2237. .#{$prefix}btn-icon.#{$prefix}btn-no-text.#{$prefix}btn-button-#{$ui} {
  2238. padding-right: $icon-spacing;
  2239. }
  2240. .#{$prefix}btn-text.#{$prefix}btn-icon-right > .#{$prefix}btn-icon-el-#{$ui} {
  2241. margin-right: $text-padding;
  2242. }
  2243. }
  2244. .#{$prefix}btn-arrow-bottom,
  2245. .#{$prefix}btn-split-bottom {
  2246. > .#{$prefix}btn-button-#{$ui} {
  2247. padding-bottom: bottom($padding);
  2248. }
  2249. }
  2250. .#{$prefix}btn-wrap-#{$ui} {
  2251. &.#{$prefix}btn-arrow-right:after {
  2252. width: $arrow-width;
  2253. @if $enable-font-icons and ($arrow-glyph != null) {
  2254. @include font-icon($glyph: $arrow-glyph, $pseudo: false);
  2255. color: $arrow-glyph-color;
  2256. } @else {
  2257. @if $include-ui-menu-arrows {
  2258. background-image: theme-background-image('button/#{$ui}-arrow');
  2259. } @else {
  2260. background-image: theme-background-image('button/arrow');
  2261. }
  2262. // The arrow can get smashed into oblivion by an outer containing element if
  2263. // the container is smaller than the button. padding prevents this.
  2264. padding-right: $arrow-width;
  2265. }
  2266. }
  2267. @if $include-rtl and ((not $enable-font-icons) or ($arrow-glyph == null)) {
  2268. &.#{$prefix}rtl.#{$prefix}btn-arrow-right:after {
  2269. @if $include-ui-menu-arrows {
  2270. background-image: theme-background-image('button/#{$ui}-arrow-rtl');
  2271. } @else {
  2272. background-image: theme-background-image('button/arrow-rtl');
  2273. }
  2274. }
  2275. }
  2276. &.#{$prefix}btn-arrow-bottom:after {
  2277. height: $arrow-height;
  2278. @if $enable-font-icons and ($arrow-glyph != null) {
  2279. @include font-icon($glyph: $arrow-glyph, $pseudo: false, $line-height: $arrow-height);
  2280. color: $arrow-glyph-color;
  2281. } @else {
  2282. @if $include-ui-menu-arrows {
  2283. background-image: theme-background-image('button/#{$ui}-arrow');
  2284. } @else {
  2285. background-image: theme-background-image('button/arrow');
  2286. }
  2287. }
  2288. }
  2289. }
  2290. $arrow-prefix: '';
  2291. @if $include-ui-split-arrows {
  2292. $arrow-prefix: $ui + '-';
  2293. }
  2294. $arrow-suffix: '';
  2295. @if $include-split-noline-arrows {
  2296. $arrow-suffix: '-noline';
  2297. }
  2298. .#{$prefix}btn-wrap-#{$ui} {
  2299. &.#{$prefix}btn-split-right {
  2300. @if $split-line-width > 0 {
  2301. > .#{$prefix}btn-button {
  2302. padding-right: right($padding);
  2303. @if $include-rtl {
  2304. &.#{$prefix}rtl {
  2305. padding-right: 0;
  2306. padding-left: right($padding);
  2307. }
  2308. }
  2309. &:after {
  2310. border-right: $split-line-width solid $split-line-color;
  2311. }
  2312. }
  2313. }
  2314. &:after {
  2315. width: $split-width;
  2316. @if $enable-font-icons and ($arrow-glyph != null) {
  2317. @include font-icon($glyph: $arrow-glyph, $pseudo: false);
  2318. color: $arrow-glyph-color;
  2319. padding-left: right($padding); // center the arrow in the trigger area
  2320. } @else {
  2321. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow#{$arrow-suffix}');
  2322. // The arrow can get smashed into oblivion by an outer containing element if
  2323. // the container is smaller than the button. padding prevents this.
  2324. padding-right: $split-width;
  2325. }
  2326. }
  2327. }
  2328. @if $include-rtl {
  2329. &.#{$prefix}rtl.#{$prefix}btn-split-right:after {
  2330. @if $enable-font-icons and ($arrow-glyph != null) {
  2331. padding-left: 0;
  2332. padding-right: right($padding);
  2333. } @else {
  2334. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow#{$arrow-suffix}-rtl');
  2335. }
  2336. }
  2337. }
  2338. &.#{$prefix}btn-split-bottom {
  2339. @if $split-line-width > 0 {
  2340. > .#{$prefix}btn-button:after {
  2341. border-bottom: $split-line-width solid $split-line-color;
  2342. }
  2343. }
  2344. @if $enable-font-icons and ($arrow-glyph != null) {
  2345. // negate the effect of bottom padding so that the split arrow icon
  2346. // appears roughly vertically centered by virtue of its line-height
  2347. margin-bottom: -(bottom($padding));
  2348. }
  2349. &:after {
  2350. height: $split-height;
  2351. @if $enable-font-icons and ($arrow-glyph != null) {
  2352. @include font-icon($glyph: $arrow-glyph, $pseudo: false, $line-height: $split-height);
  2353. color: $arrow-glyph-color;
  2354. } @else {
  2355. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow-b#{$arrow-suffix}');
  2356. }
  2357. }
  2358. }
  2359. }
  2360. @if $include-split-over-arrows and ((not $enable-font-icons) or ($arrow-glyph == null)) {
  2361. .#{$prefix}btn-over > {
  2362. .#{$prefix}btn-wrap-#{$ui} {
  2363. &.#{$prefix}btn-split-right:after {
  2364. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow-o');
  2365. }
  2366. @if $include-rtl {
  2367. &.#{$prefix}rtl.#{$prefix}btn-split-right:after {
  2368. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow-o-rtl');
  2369. }
  2370. }
  2371. &.#{$prefix}btn-split-bottom:after {
  2372. background-image: theme-background-image('button/#{$arrow-prefix}s-arrow-bo');
  2373. }
  2374. }
  2375. }
  2376. }
  2377. .#{$prefix}btn-split-right > {
  2378. .#{$prefix}btn-icon.#{$prefix}btn-no-text.#{$prefix}btn-button-#{$ui} {
  2379. padding-right: $icon-spacing;
  2380. }
  2381. .#{$prefix}btn-text.#{$prefix}btn-icon-right > .#{$prefix}btn-icon-el-#{$ui} {
  2382. margin-right: $text-padding;
  2383. }
  2384. }
  2385. .#{$prefix}btn-focus.#{$prefix}btn-#{$ui} {
  2386. .#{$prefix}keyboard-mode & {
  2387. @if $border-color-focus != $border-color {
  2388. border-color: $border-color-focus;
  2389. }
  2390. @if $background-color-focus != null {
  2391. @include background-gradient($background-color-focus, $background-gradient-focus);
  2392. }
  2393. @if not is-null($inner-border-width-focus) and not is-null($inner-border-color-focus) {
  2394. @include inner-border($inner-border-width-focus, $inner-border-color-focus);
  2395. }
  2396. @if not is-null($body-outline-width-focus) and $body-outline-width-focus != 0 {
  2397. .#{$prefix}btn-wrap {
  2398. $outline-color: if(not is-null($body-outline-color-focus), $body-outline-color-focus, $color);
  2399. $outline-style: if(not is-null($body-outline-style-focus), $body-outline-style-focus, dotted);
  2400. outline: $body-outline-width-focus $outline-style $outline-color;
  2401. }
  2402. }
  2403. .#{$prefix}btn-inner {
  2404. @if $color-focus != $color {
  2405. color: $color-focus;
  2406. }
  2407. @if $font-weight-focus != $font-weight {
  2408. font-weight: $font-weight-focus;
  2409. }
  2410. @if $font-size-focus != $font-size {
  2411. font-size: $font-size-focus;
  2412. }
  2413. @if $font-family-focus != $font-family {
  2414. font-family: $font-family-focus;
  2415. }
  2416. }
  2417. }
  2418. }
  2419. .#{$prefix}btn-#{$ui} .#{$prefix}btn-arrow-el {
  2420. position: absolute;
  2421. top: 0;
  2422. right: 0;
  2423. height: 100%;
  2424. width: $split-width + right($padding);
  2425. pointer-events: none;
  2426. @if $include-rtl {
  2427. &.#{$prefix}rtl {
  2428. right: inherit;
  2429. left: 0;
  2430. }
  2431. }
  2432. }
  2433. .#{$prefix}btn-#{$ui}.#{$prefix}arrow-focus .#{$prefix}btn-arrow-el {
  2434. .#{$prefix}keyboard-mode & {
  2435. @if not is-null($inner-border-width-focus) and not is-null($inner-border-color-focus) {
  2436. border: $inner-border-width-focus solid $inner-border-color-focus;
  2437. }
  2438. }
  2439. }
  2440. .#{$prefix}btn-over.#{$prefix}btn-#{$ui} {
  2441. @if $border-color-over != $border-color {
  2442. border-color: $border-color-over;
  2443. }
  2444. @if $background-color-over != null {
  2445. @include background-gradient($background-color-over, $background-gradient-over);
  2446. }
  2447. @if not is-null($inner-border-width-over) and not is-null($inner-border-color-over) {
  2448. @include inner-border($inner-border-width-over, $inner-border-color-over);
  2449. }
  2450. .#{$prefix}btn-inner {
  2451. @if $color-over != $color {
  2452. color: $color-over;
  2453. }
  2454. @if $font-weight-over != $font-weight {
  2455. font-weight: $font-weight-over;
  2456. }
  2457. @if $font-size-over != $font-size {
  2458. font-size: $font-size-over;
  2459. }
  2460. @if $font-family-over != $font-family {
  2461. font-family: $font-family-over;
  2462. }
  2463. }
  2464. }
  2465. .#{$prefix}btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui} {
  2466. .#{$prefix}keyboard-mode & {
  2467. @if $border-color-focus-over != $border-color-over {
  2468. border-color: $border-color-focus-over;
  2469. }
  2470. @if $background-color-focus-over != $background-color-over or $background-gradient-focus-over != $background-gradient-over {
  2471. @include background-gradient($background-color-focus-over, $background-gradient-focus-over);
  2472. }
  2473. @if not is-null($inner-border-width-focus-over) and not is-null($inner-border-color-focus-over) {
  2474. @include inner-border($inner-border-width-focus-over, $inner-border-color-focus-over);
  2475. }
  2476. .#{$prefix}btn-inner {
  2477. @if $color-focus-over != $color-over {
  2478. color: $color-focus-over;
  2479. }
  2480. @if $font-weight-focus-over != $font-weight-over {
  2481. font-weight: $font-weight-focus-over;
  2482. }
  2483. @if $font-size-focus-over != $font-size-over {
  2484. font-size: $font-size-focus-over;
  2485. }
  2486. @if $font-family-focus-over != $font-family-over {
  2487. font-family: $font-family-focus-over;
  2488. }
  2489. }
  2490. }
  2491. }
  2492. // add x-btn class to increase specificity over focus-over rule above
  2493. .#{$prefix}btn.#{$prefix}btn-menu-active.#{$prefix}btn-#{$ui},
  2494. .#{$prefix}btn.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui} {
  2495. @if $border-color-pressed != $border-color {
  2496. border-color: $border-color-pressed;
  2497. }
  2498. @if $background-color-pressed != null {
  2499. @include background-gradient($background-color-pressed, $background-gradient-pressed);
  2500. }
  2501. @if not is-null($inner-border-width-pressed) and not is-null($inner-border-color-pressed) {
  2502. @include inner-border($inner-border-width-pressed, $inner-border-color-pressed);
  2503. }
  2504. .#{$prefix}btn-inner {
  2505. @if $color-pressed != $color {
  2506. color: $color-pressed;
  2507. }
  2508. @if $font-weight-pressed != $font-weight {
  2509. font-weight: $font-weight-pressed;
  2510. }
  2511. @if $font-size-pressed != $font-size {
  2512. font-size: $font-size-pressed;
  2513. }
  2514. @if $font-family-pressed != $font-family {
  2515. font-family: $font-family-pressed;
  2516. }
  2517. }
  2518. }
  2519. .#{$prefix}btn-focus.#{$prefix}btn-menu-active.#{$prefix}btn-#{$ui},
  2520. .#{$prefix}btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui} {
  2521. .#{$prefix}keyboard-mode & {
  2522. @if $border-color-focus-pressed != $border-color-pressed {
  2523. border-color: $border-color-focus-pressed;
  2524. }
  2525. @if $background-color-focus-pressed != $background-color-pressed or $background-gradient-focus-pressed != $background-gradient-pressed {
  2526. @include background-gradient($background-color-focus-pressed, $background-gradient-focus-pressed);
  2527. }
  2528. @if not is-null($inner-border-width-focus-pressed) and not is-null($inner-border-color-focus-pressed) {
  2529. @include inner-border($inner-border-width-focus-pressed, $inner-border-color-focus-pressed);
  2530. }
  2531. .#{$prefix}btn-inner {
  2532. @if $color-focus-pressed != $color-pressed {
  2533. color: $color-focus-pressed;
  2534. }
  2535. @if $font-weight-focus-pressed != $font-weight-pressed {
  2536. font-weight: $font-weight-focus-pressed;
  2537. }
  2538. @if $font-size-focus-pressed != $font-size-pressed {
  2539. font-size: $font-size-focus-pressed;
  2540. }
  2541. @if $font-family-focus-pressed != $font-family-pressed {
  2542. font-family: $font-family-focus-pressed;
  2543. }
  2544. }
  2545. }
  2546. }
  2547. // add x-btn class to increase specificity over focus-pressed
  2548. .#{$prefix}btn.#{$prefix}btn-disabled.#{$prefix}btn-#{$ui} {
  2549. @if $border-color-disabled != $border-color {
  2550. border-color: $border-color-disabled;
  2551. }
  2552. @if not is-null($background-color-disabled) {
  2553. @include background-gradient($background-color-disabled, $background-gradient-disabled);
  2554. }
  2555. @if not is-null($inner-border-width-disabled) and not is-null($inner-border-color-disabled) {
  2556. @include inner-border($inner-border-width-disabled, $inner-border-color-disabled);
  2557. }
  2558. .#{$prefix}btn-inner {
  2559. @if $color-disabled != $color {
  2560. color: $color-disabled;
  2561. }
  2562. @if $font-weight-disabled != $font-weight {
  2563. font-weight: $font-weight-disabled;
  2564. }
  2565. @if $font-size-disabled != $font-size {
  2566. font-size: $font-size-disabled;
  2567. }
  2568. @if $font-family-disabled != $font-family {
  2569. font-family: $font-family-disabled;
  2570. }
  2571. }
  2572. }
  2573. @if $include-slicer-border-radius {
  2574. .#{$prefix}btn-focus {
  2575. .#{$prefix}keyboard-mode & {
  2576. $stretch: slicer-background-stretch('btn-focus.#{$prefix}btn-#{$ui}', 'bottom');
  2577. $frame: slicer-frame('btn-focus.#{$prefix}btn-#{$ui}', $frame-size);
  2578. .#{$prefix}btn-#{$ui}-tl,
  2579. .#{$prefix}btn-#{$ui}-bl,
  2580. .#{$prefix}btn-#{$ui}-tr,
  2581. .#{$prefix}btn-#{$ui}-br,
  2582. .#{$prefix}btn-#{$ui}-tc,
  2583. .#{$prefix}btn-#{$ui}-bc {
  2584. background-image: slicer-corner-sprite('btn-focus.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-corners');
  2585. }
  2586. .#{$prefix}btn-#{$ui}-ml,
  2587. .#{$prefix}btn-#{$ui}-mr {
  2588. background-image: slicer-sides-sprite('btn-focus.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-sides');
  2589. }
  2590. .#{$prefix}btn-#{$ui}-mc {
  2591. background-color: $background-color-focus;
  2592. @if $background-gradient-focus != null {
  2593. background-image: slicer-frame-background-image('btn-focus.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-fbg');
  2594. }
  2595. }
  2596. }
  2597. }
  2598. .#{$prefix}btn-over {
  2599. $stretch: slicer-background-stretch('btn-over.#{$prefix}btn-#{$ui}', 'bottom');
  2600. $frame: slicer-frame('btn-over.#{$prefix}btn-#{$ui}', $frame-size);
  2601. .#{$prefix}btn-#{$ui}-tl,
  2602. .#{$prefix}btn-#{$ui}-bl,
  2603. .#{$prefix}btn-#{$ui}-tr,
  2604. .#{$prefix}btn-#{$ui}-br,
  2605. .#{$prefix}btn-#{$ui}-tc,
  2606. .#{$prefix}btn-#{$ui}-bc {
  2607. background-image: slicer-corner-sprite('btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-over-corners');
  2608. }
  2609. .#{$prefix}btn-#{$ui}-ml,
  2610. .#{$prefix}btn-#{$ui}-mr {
  2611. background-image: slicer-sides-sprite('btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-over-sides');
  2612. }
  2613. .#{$prefix}btn-#{$ui}-mc {
  2614. background-color: $background-color-over;
  2615. @if $background-gradient-over != null {
  2616. background-image: slicer-frame-background-image('btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-over-fbg');
  2617. }
  2618. }
  2619. }
  2620. .#{$prefix}btn-focus.#{$prefix}btn-over {
  2621. .#{$prefix}keyboard-mode & {
  2622. $stretch: slicer-background-stretch('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}', 'bottom');
  2623. $frame: slicer-frame('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}', $frame-size);
  2624. .#{$prefix}btn-#{$ui}-tl,
  2625. .#{$prefix}btn-#{$ui}-bl,
  2626. .#{$prefix}btn-#{$ui}-tr,
  2627. .#{$prefix}btn-#{$ui}-br,
  2628. .#{$prefix}btn-#{$ui}-tc,
  2629. .#{$prefix}btn-#{$ui}-bc {
  2630. background-image: slicer-corner-sprite('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-over-corners');
  2631. }
  2632. .#{$prefix}btn-#{$ui}-ml,
  2633. .#{$prefix}btn-#{$ui}-mr {
  2634. background-image: slicer-sides-sprite('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-over-sides');
  2635. }
  2636. .#{$prefix}btn-#{$ui}-mc {
  2637. background-color: $background-color-focus-over;
  2638. @if $background-gradient-focus-over != null {
  2639. background-image: slicer-frame-background-image('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-over-fbg');
  2640. }
  2641. }
  2642. }
  2643. }
  2644. // add x-btn class to increase specificity over focus-over rules above
  2645. .#{$prefix}btn.#{$prefix}btn-menu-active,
  2646. .#{$prefix}btn.#{$prefix}btn-pressed {
  2647. $stretch: slicer-background-stretch('btn-pressed.#{$prefix}btn-#{$ui}', 'bottom');
  2648. $frame: slicer-frame('btn-pressed.#{$prefix}btn-#{$ui}', $frame-size);
  2649. .#{$prefix}btn-#{$ui}-tl,
  2650. .#{$prefix}btn-#{$ui}-bl,
  2651. .#{$prefix}btn-#{$ui}-tr,
  2652. .#{$prefix}btn-#{$ui}-br,
  2653. .#{$prefix}btn-#{$ui}-tc,
  2654. .#{$prefix}btn-#{$ui}-bc {
  2655. background-image: slicer-corner-sprite('btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-pressed-corners');
  2656. }
  2657. .#{$prefix}btn-#{$ui}-ml,
  2658. .#{$prefix}btn-#{$ui}-mr {
  2659. background-image: slicer-sides-sprite('btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-pressed-sides');
  2660. }
  2661. .#{$prefix}btn-#{$ui}-mc {
  2662. background-color: $background-color-pressed;
  2663. @if $background-gradient-focus-pressed != null {
  2664. background-image: slicer-frame-background-image('btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-pressed-fbg');
  2665. }
  2666. }
  2667. }
  2668. .#{$prefix}btn-focus.#{$prefix}btn-menu-active,
  2669. .#{$prefix}btn-focus.#{$prefix}btn-pressed {
  2670. .#{$prefix}keyboard-mode & {
  2671. $stretch: slicer-background-stretch('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}', 'bottom');
  2672. $frame: slicer-frame('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}', $frame-size);
  2673. .#{$prefix}btn-#{$ui}-tl,
  2674. .#{$prefix}btn-#{$ui}-bl,
  2675. .#{$prefix}btn-#{$ui}-tr,
  2676. .#{$prefix}btn-#{$ui}-br,
  2677. .#{$prefix}btn-#{$ui}-tc,
  2678. .#{$prefix}btn-#{$ui}-bc {
  2679. background-image: slicer-corner-sprite('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-pressed-corners');
  2680. }
  2681. .#{$prefix}btn-#{$ui}-ml,
  2682. .#{$prefix}btn-#{$ui}-mr {
  2683. background-image: slicer-sides-sprite('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-pressed-sides');
  2684. }
  2685. .#{$prefix}btn-#{$ui}-mc {
  2686. background-color: $background-color-focus-pressed;
  2687. @if $background-gradient-focus-pressed != null {
  2688. background-image: slicer-frame-background-image('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-focus-pressed-fbg');
  2689. }
  2690. }
  2691. }
  2692. }
  2693. // add x-btn class to increase specificity over focus-pressed
  2694. .#{$prefix}btn.#{$prefix}btn-disabled {
  2695. $stretch: slicer-background-stretch('btn-disabled.#{$prefix}btn-#{$ui}', 'bottom');
  2696. $frame: slicer-frame('btn-disabled.#{$prefix}btn-#{$ui}', $frame-size);
  2697. .#{$prefix}btn-#{$ui}-tl,
  2698. .#{$prefix}btn-#{$ui}-bl,
  2699. .#{$prefix}btn-#{$ui}-tr,
  2700. .#{$prefix}btn-#{$ui}-br,
  2701. .#{$prefix}btn-#{$ui}-tc,
  2702. .#{$prefix}btn-#{$ui}-bc {
  2703. background-image: slicer-corner-sprite('btn-disabled.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-disabled-corners');
  2704. }
  2705. .#{$prefix}btn-#{$ui}-ml,
  2706. .#{$prefix}btn-#{$ui}-mr {
  2707. background-image: slicer-sides-sprite('btn-disabled.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-disabled-sides');
  2708. }
  2709. .#{$prefix}btn-#{$ui}-mc {
  2710. background-color: $background-color-disabled;
  2711. @if $background-gradient-disabled != null {
  2712. background-image: slicer-frame-background-image('btn-disabled.#{$prefix}btn-#{$ui}', 'btn/btn-#{$ui}-disabled-fbg');
  2713. }
  2714. }
  2715. }
  2716. }
  2717. @if $include-slicer-border-radius {
  2718. .#{$prefix}nbr .#{$prefix}btn-#{$ui} {
  2719. background-image: none;
  2720. }
  2721. }
  2722. @if $opacity-disabled != 1 {
  2723. .#{$prefix}btn-disabled.#{$prefix}btn-#{$ui} {
  2724. @include opacity($opacity-disabled);
  2725. }
  2726. }
  2727. @if $inner-opacity-disabled != 1 {
  2728. .#{$prefix}btn-disabled.#{$prefix}btn-#{$ui} {
  2729. .#{$prefix}btn-inner,
  2730. .#{$prefix}btn-icon-el {
  2731. @include opacity($inner-opacity-disabled);
  2732. }
  2733. }
  2734. }
  2735. @if $include-ext-button-segmented and $include-slicer-border-radius {
  2736. // These rules must use !important to overcome the !important border/padding
  2737. // removal rules from x-frame()
  2738. .#{$prefix}nbr {
  2739. .#{$prefix}segmented-button-item-horizontal.#{$prefix}btn-#{$ui} {
  2740. &.#{$prefix}segmented-button-first {
  2741. border-right-width: right($border-width) !important;
  2742. .#{$prefix}btn-#{$ui}-mc {
  2743. padding-right: right($padding) !important;
  2744. }
  2745. }
  2746. &.#{$prefix}segmented-button-middle {
  2747. border-right-width: right($border-width) !important;
  2748. .#{$prefix}btn-#{$ui}-mc {
  2749. padding-right: right($padding) !important;
  2750. padding-left: left($padding) !important;
  2751. }
  2752. }
  2753. &.#{$prefix}segmented-button-last {
  2754. .#{$prefix}btn-#{$ui}-mc {
  2755. padding-left: left($padding) !important;
  2756. }
  2757. }
  2758. }
  2759. .#{$prefix}segmented-button-item-vertical.#{$prefix}btn-#{$ui} {
  2760. &.#{$prefix}segmented-button-first {
  2761. border-bottom-width: bottom($border-width) !important;
  2762. .#{$prefix}btn-#{$ui}-mc {
  2763. padding-bottom: bottom($padding) !important;
  2764. }
  2765. }
  2766. &.#{$prefix}segmented-button-middle {
  2767. border-bottom-width: bottom($border-width) !important;
  2768. .#{$prefix}btn-#{$ui}-mc {
  2769. padding-top: top($padding) !important;
  2770. padding-bottom: bottom($padding) !important;
  2771. }
  2772. }
  2773. &.#{$prefix}segmented-button-last {
  2774. .#{$prefix}btn-#{$ui}-mc {
  2775. padding-top: top($padding) !important;
  2776. }
  2777. }
  2778. }
  2779. .#{$prefix}segmented-button-item.#{$prefix}btn-#{$ui}:after {
  2780. // Inner borders are contained in the framing elements of a button. Since
  2781. // we have suppressed the borders on the inner edges to remove the rounded
  2782. // corners, we need to simulate the inner-border using a pseudo el.
  2783. // Always set up the positioning of the pseudo element just in case
  2784. // it is needed by the following rules
  2785. content: ' ';
  2786. border-style: solid;
  2787. border-width: 0;
  2788. position: absolute;
  2789. @if not is-null($inner-border-width) and not is-null($inner-border-color) and $inner-border-width != 0 {
  2790. border-width: $inner-border-width;
  2791. border-color: $inner-border-color;
  2792. }
  2793. }
  2794. .#{$prefix}segmented-button-item-horizontal.#{$prefix}btn-#{$ui} {
  2795. &:after {
  2796. top: $border-width;
  2797. right: 0;
  2798. bottom: $border-width;
  2799. left: 0;
  2800. }
  2801. &.#{$prefix}segmented-button-first:after {
  2802. left: $border-width;
  2803. }
  2804. &.#{$prefix}segmented-button-last:after {
  2805. right: $border-width;
  2806. }
  2807. }
  2808. .#{$prefix}segmented-button-item-vertical.#{$prefix}btn-#{$ui} {
  2809. &:after {
  2810. top: 0;
  2811. right: $border-width;
  2812. bottom: 0;
  2813. left: $border-width;
  2814. }
  2815. &.#{$prefix}segmented-button-first:after {
  2816. top: $border-width;
  2817. }
  2818. &.#{$prefix}segmented-button-last:after {
  2819. bottom: $border-width;
  2820. }
  2821. }
  2822. .#{$prefix}segmented-button-item {
  2823. @if not is-null($inner-border-width-focus) and not is-null($inner-border-color-focus) {
  2824. &.#{$prefix}btn-focus.#{$prefix}btn-#{$ui}:after {
  2825. .#{$prefix}keyboard-mode & {
  2826. border-width: $inner-border-width-focus;
  2827. border-color: $inner-border-color-focus;
  2828. }
  2829. }
  2830. }
  2831. @if not is-null($inner-border-width-over) and not is-null($inner-border-color-over) {
  2832. &.#{$prefix}btn-over.#{$prefix}btn-#{$ui}:after {
  2833. border-width: $inner-border-width-over;
  2834. border-color: $inner-border-color-over;
  2835. }
  2836. }
  2837. @if not is-null($inner-border-width-focus-over) and not is-null($inner-border-color-focus-over) {
  2838. &.#{$prefix}btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}:after {
  2839. .#{$prefix}keyboard-mode & {
  2840. border-width: $inner-border-width-focus-over;
  2841. border-color: $inner-border-color-focus-over;
  2842. }
  2843. }
  2844. }
  2845. @if not is-null($inner-border-width-pressed) and not is-null($inner-border-color-pressed) {
  2846. &.#{$prefix}btn.#{$prefix}btn-menu-active.#{$prefix}btn-#{$ui}:after,
  2847. &.#{$prefix}btn.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}:after {
  2848. border-width: $inner-border-width-pressed;
  2849. border-color: $inner-border-color-pressed;
  2850. }
  2851. }
  2852. @if not is-null($inner-border-width-focus-pressed) and not is-null($inner-border-color-focus-pressed) {
  2853. &.#{$prefix}btn-focus.#{$prefix}btn-menu-active.#{$prefix}btn-#{$ui}:after,
  2854. &.#{$prefix}btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}:after {
  2855. .#{$prefix}keyboard-mode & {
  2856. border-width: $inner-border-width-focus-pressed;
  2857. border-color: $inner-border-color-focus-pressed;
  2858. }
  2859. }
  2860. }
  2861. @if not is-null($inner-border-width-disabled) and not is-null($inner-border-color-disabled) {
  2862. &.#{$prefix}btn.#{$prefix}btn-disabled.#{$prefix}btn-#{$ui}:after {
  2863. border-width: $inner-border-width-disabled;
  2864. border-color: $inner-border-color-disabled;
  2865. }
  2866. }
  2867. }
  2868. }
  2869. }
  2870. @include x-slicer('btn-focus.#{$prefix}btn-#{$ui}');
  2871. @include x-slicer('btn-over.#{$prefix}btn-#{$ui}');
  2872. @include x-slicer('btn-focus.#{$prefix}btn-over.#{$prefix}btn-#{$ui}');
  2873. @include x-slicer('btn-pressed.#{$prefix}btn-#{$ui}');
  2874. @include x-slicer('btn-focus.#{$prefix}btn-pressed.#{$prefix}btn-#{$ui}');
  2875. @include x-slicer('btn-disabled.#{$prefix}btn-#{$ui}');
  2876. // Button field or subclass inside cell - calculate top/bottom padding to keep row height correct
  2877. @if $include-ext-grid-column-widget {
  2878. $ui-height: $icon-size + vertical($padding) + vertical($border-width);
  2879. .#{$prefix}button-#{$ui}-cell > .#{$prefix}grid-cell-inner {
  2880. padding-top: max(ceil(($grid-row-height - $ui-height) / 2), 0);
  2881. padding-bottom: max(floor(($grid-row-height - $ui-height) / 2), 0);
  2882. // vertical-align: top needed when in grid cells to avoid margin stretching the cell-inner
  2883. >.#{$prefix}btn-#{$ui} {
  2884. vertical-align: top;
  2885. }
  2886. }
  2887. }
  2888. }
  2889. /**
  2890. * Creates a visual theme for a {@link #scale large} Button.
  2891. *
  2892. * @param {string} $ui
  2893. * The name of the UI being created. Can not included spaces or special punctuation
  2894. * (used in CSS class names).
  2895. *
  2896. * @param {number} [$border-radius=$button-large-border-radius]
  2897. * The border-radius of the button
  2898. *
  2899. * @param {number} [$border-width=$button-large-border-width]
  2900. * The border-width of the button
  2901. *
  2902. * @param {color} [$border-color=$button-default-border-color]
  2903. * The border-color of the button
  2904. *
  2905. * @param {color} [$border-color-over=$button-default-border-color-over]
  2906. * The border-color of the button when the cursor is over the button
  2907. *
  2908. * @param {color} [$border-color-focus=$button-default-border-color-focus]
  2909. * The border-color of the button when focused
  2910. *
  2911. * @param {color} [$border-color-pressed=$button-default-border-color-pressed]
  2912. * The border-color of the button when pressed
  2913. *
  2914. * @param {color} [$border-color-focus-over=$button-default-border-color-focus-over]
  2915. * The border-color of the button when the button is focused and the cursor is over the
  2916. * button
  2917. *
  2918. * @param {color} [$border-color-focus-pressed=$button-default-border-color-focus-pressed]
  2919. * The border-color of the button when focused and pressed
  2920. *
  2921. * @param {color} [$border-color-disabled=$button-default-border-color-disabled]
  2922. * The border-color of the button when disabled
  2923. *
  2924. * @param {number} [$padding=$button-large-padding]
  2925. * The amount of padding inside the border of the button on all sides
  2926. *
  2927. * @param {number} [$text-padding=$button-large-text-padding]
  2928. * The amount of horizontal space to add to the left and right of the button text
  2929. *
  2930. * @param {color} [$background-color=$button-default-background-color]
  2931. * The background-color of the button
  2932. *
  2933. * @param {color} [$background-color-over=$button-default-background-color-over]
  2934. * The background-color of the button when the cursor is over the button
  2935. *
  2936. * @param {color} [$background-color-focus=$button-default-background-color-focus]
  2937. * The background-color of the button when focused
  2938. *
  2939. * @param {color} [$background-color-pressed=$button-default-background-color-pressed]
  2940. * The background-color of the button when pressed
  2941. *
  2942. * @param {color} [$background-color-focus-over=$button-default-background-color-focus-over]
  2943. * The background-color of the button when the button is focused and the cursor is over
  2944. * the button
  2945. *
  2946. * @param {color} [$background-color-focus-pressed=$button-default-background-color-focus-pressed]
  2947. * The background-color of the button when focused and pressed
  2948. *
  2949. * @param {color} [$background-color-disabled=$button-default-background-color-disabled]
  2950. * The background-color of the button when disabled
  2951. *
  2952. * @param {string/list} [$background-gradient=$button-default-background-gradient]
  2953. * The background-gradient for the button. Can be either the name of a predefined gradient
  2954. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  2955. *
  2956. * @param {string/list} [$background-gradient-over=$button-default-background-gradient-over]
  2957. * The background-gradient to use when the cursor is over the button. Can be either the
  2958. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  2959. * for {@link Global_CSS#background-gradient}.
  2960. *
  2961. * @param {string/list} [$background-gradient-focus=$button-default-background-gradient-focus]
  2962. * The background-gradient to use when the the button is focused. Can be either the name
  2963. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  2964. * {@link Global_CSS#background-gradient}.
  2965. *
  2966. * @param {string/list} [$background-gradient-pressed=$button-default-background-gradient-pressed]
  2967. * The background-gradient to use when the the button is pressed. Can be either the name
  2968. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  2969. * {@link Global_CSS#background-gradient}.
  2970. *
  2971. * @param {string} [$background-gradient-focus-over=$button-default-background-gradient-focus-over]
  2972. * The background-gradient to use when the the button is focused and the cursor is over
  2973. * the button. Can be either the name of a predefined gradient or a list of color stops.
  2974. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  2975. *
  2976. * @param {string} [$background-gradient-focus-pressed=$button-default-background-gradient-focus-pressed]
  2977. * The background-gradient to use when the the button is focused and pressed. Can be
  2978. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  2979. * parameter for {@link Global_CSS#background-gradient}.
  2980. *
  2981. * @param {string/list} [$background-gradient-disabled=$button-default-background-gradient-disabled]
  2982. * The background-gradient to use when the the button is disabled. Can be either the name
  2983. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  2984. * {@link Global_CSS#background-gradient}.
  2985. *
  2986. * @param {color} [$color=$button-default-color]
  2987. * The text color of the button
  2988. *
  2989. * @param {color} [$color-over=$button-default-color-over]
  2990. * The text color of the button when the cursor is over the button
  2991. *
  2992. * @param {color} [$color-focus=$button-default-color-focus]
  2993. * The text color of the button when the button is focused
  2994. *
  2995. * @param {color} [$color-pressed=$button-default-color-pressed]
  2996. * The text color of the button when the button is pressed
  2997. *
  2998. * @param {color} [$color-focus-over=$button-default-color-focus-over]
  2999. * The text color of the button when the button is focused and the cursor is over the button
  3000. *
  3001. * @param {color} [$color-focus-pressed=$button-default-color-focus-pressed]
  3002. * The text color of the button when the button is focused and pressed
  3003. *
  3004. * @param {color} [$color-disabled=$button-default-color-disabled]
  3005. * The text color of the button when the button is disabled
  3006. *
  3007. * @param {number/list} [$inner-border-width=$button-default-inner-border-width]
  3008. * The inner border-width of the button
  3009. *
  3010. * @param {number/list} [$inner-border-width-over=$button-default-inner-border-width-over]
  3011. * The inner border-width of the button when the cursor is over the button
  3012. *
  3013. * @param {number/list} [$inner-border-width-focus=$button-default-inner-border-width-focus]
  3014. * The inner border-width of the button when focused
  3015. *
  3016. * @param {number/list} [$inner-border-width-pressed=$button-default-inner-border-width-pressed]
  3017. * The inner border-width of the button when pressed
  3018. *
  3019. * @param {number/list} [$inner-border-width-focus-over=$button-default-inner-border-width-focus-over]
  3020. * The inner border-width of the button when the button is focused and the cursor is over
  3021. * the button
  3022. *
  3023. * @param {number/list} [$inner-border-width-focus-pressed=$button-default-inner-border-width-focus-pressed]
  3024. * The inner border-width of the button when focused and pressed
  3025. *
  3026. * @param {number/list} [$inner-border-width-disabled=$button-default-inner-border-width-disabled]
  3027. * The inner border-width of the button when disabled
  3028. *
  3029. * @param {color} [$inner-border-color=$button-default-inner-border-color]
  3030. * The inner border-color of the button
  3031. *
  3032. * @param {color} [$inner-border-color-over=$button-default-inner-border-color-over]
  3033. * The inner border-color of the button when the cursor is over the button
  3034. *
  3035. * @param {color} [$inner-border-color-focus=$button-default-inner-border-color-focus]
  3036. * The inner border-color of the button when focused
  3037. *
  3038. * @param {color} [$inner-border-color-pressed=$button-default-inner-border-color-pressed]
  3039. * The inner border-color of the button when pressed
  3040. *
  3041. * @param {color} [$inner-border-color-focus-over=$button-default-inner-border-color-focus-over]
  3042. * The inner border-color of the button when the button is focused and the cursor is over
  3043. * the button
  3044. *
  3045. * @param {color} [$inner-border-color-focus-pressed=$button-default-inner-border-color-focus-pressed]
  3046. * The inner border-color of the button when focused and pressed
  3047. *
  3048. * @param {color} [$inner-border-color-disabled=$button-default-inner-border-color-disabled]
  3049. * The inner border-color of the button when disabled
  3050. *
  3051. * @param {number} [$body-outline-width-focus=$button-default-body-outline-width-focus]
  3052. * The body outline width of the button when focused
  3053. *
  3054. * @param {number} [$body-outline-style-focus=$button-default-body-outline-style-focus]
  3055. * The body outline-style of the button when focused
  3056. *
  3057. * @param {number} [$body-outline-color-focus=$button-default-body-outline-color-focus]
  3058. * The body outline color of the button when focused
  3059. *
  3060. * @param {number} [$font-size=$button-large-font-size]
  3061. * The font-size of the button
  3062. *
  3063. * @param {number} [$font-size-over=$button-large-font-size-over]
  3064. * The font-size of the button when the cursor is over the button
  3065. *
  3066. * @param {number} [$font-size-focus=$button-large-font-size-focus]
  3067. * The font-size of the button when the button is focused
  3068. *
  3069. * @param {number} [$font-size-pressed=$button-large-font-size-pressed]
  3070. * The font-size of the button when the button is pressed
  3071. *
  3072. * @param {number} [$font-size-focus-over=$button-large-font-size-focus-over]
  3073. * The font-size of the button when the button is focused and the cursor is over the
  3074. * button
  3075. *
  3076. * @param {number} [$font-size-focus-pressed=$button-large-font-size-focus-pressed]
  3077. * The font-size of the button when the button is focused and pressed
  3078. *
  3079. * @param {number} [$font-size-disabled=$button-large-font-size-disabled]
  3080. * The font-size of the button when the button is disabled
  3081. *
  3082. * @param {string} [$font-weight=$button-large-font-weight]
  3083. * The font-weight of the button
  3084. *
  3085. * @param {string} [$font-weight-over=$button-large-font-weight-over]
  3086. * The font-weight of the button when the cursor is over the button
  3087. *
  3088. * @param {string} [$font-weight-focus=$button-large-font-weight-focus]
  3089. * The font-weight of the button when the button is focused
  3090. *
  3091. * @param {string} [$font-weight-pressed=$button-large-font-weight-pressed]
  3092. * The font-weight of the button when the button is pressed
  3093. *
  3094. * @param {string} [$font-weight-focus-over=$button-large-font-weight-focus-over]
  3095. * The font-weight of the button when the button is focused and the cursor is over the
  3096. * button
  3097. *
  3098. * @param {string} [$font-weight-focus-pressed=$button-large-font-weight-focus-pressed]
  3099. * The font-weight of the button when the button is focused and pressed
  3100. *
  3101. * @param {string} [$font-weight-disabled=$button-large-font-weight-disabled]
  3102. * The font-weight of the button when the button is disabled
  3103. *
  3104. * @param {string} [$font-family=$button-large-font-family]
  3105. * The font-family of the button
  3106. *
  3107. * @param {string} [$font-family-over=$button-large-font-family-over]
  3108. * The font-family of the button when the cursor is over the button
  3109. *
  3110. * @param {string} [$font-family-focus=$button-large-font-family-focus]
  3111. * The font-family of the button when the button is focused
  3112. *
  3113. * @param {string} [$font-family-pressed=$button-large-font-family-pressed]
  3114. * The font-family of the button when the button is pressed
  3115. *
  3116. * @param {string} [$font-family-focus-over=$button-large-font-family-focus-over]
  3117. * The font-family of the button when the button is focused and the cursor is over the
  3118. * button
  3119. *
  3120. * @param {string} [$font-family-focus-pressed=$button-large-font-family-focus-pressed]
  3121. * The font-family of the button when the button is focused and pressed
  3122. *
  3123. * @param {string} [$font-family-disabled=$button-large-font-family-disabled]
  3124. * The font-family of the button when the button is disabled
  3125. *
  3126. * @param {number} [$line-height=$button-large-line-height]
  3127. * The line-height of the button text
  3128. *
  3129. * @param {number} [$icon-size=$button-large-icon-size]
  3130. * The size of the button icon
  3131. *
  3132. * @param {number} [$glyph-font-size=$button-large-glyph-font-size]
  3133. * The font-size for the button glyph
  3134. *
  3135. * @param {number} [$icon-spacing=$button-large-icon-spacing]
  3136. * The space between the button's icon and text
  3137. *
  3138. * @param {color} [$glyph-color=$button-default-glyph-color]
  3139. * The color of the button's {@link #glyph} icon
  3140. *
  3141. * @param {number} [$glyph-opacity=$button-default-glyph-opacity]
  3142. * The opacity of the button's {@link #glyph} icon
  3143. *
  3144. * @param {number} [$arrow-width=$button-large-arrow-width]
  3145. * The width of the button's {@link #cfg-menu} arrow
  3146. *
  3147. * @param {number} [$arrow-height=$button-large-arrow-height]
  3148. * The height of the button's {@link #cfg-menu} arrow
  3149. *
  3150. * @param {string/list} [$arrow-glyph=$button-large-arrow-glyph]
  3151. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  3152. *
  3153. * @param {string/list} [$arrow-glyph-color=$button-default-arrow-glyph-color]
  3154. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  3155. *
  3156. * @param {number} [$split-width=$button-large-split-width]
  3157. * The width of a {@link Ext.button.Split Split Button}'s arrow
  3158. *
  3159. * @param {number} [$split-height=$button-large-split-height]
  3160. * The height of a {@link Ext.button.Split Split Button}'s arrow
  3161. *
  3162. * @param {number} [$split-line-width=$button-large-split-line-width]
  3163. * The default width for a {@link Ext.button.Split Split Button}'s line.
  3164. * Themes that include the line in the arrow background image should set this to 0
  3165. *
  3166. * @param {color} [$split-line-color=$button-default-split-line-color]
  3167. * The color for a {@link Ext.button.Split Split Button}'s line.
  3168. * Only applicable when `$split-line-width` is greater than 0.
  3169. *
  3170. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  3171. * True to include the UI name in the file name of the {@link #cfg-menu}
  3172. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  3173. *
  3174. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  3175. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  3176. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  3177. *
  3178. * @param {boolean} [$include-split-noline-arrows=$button-include-split-noline-arrows]
  3179. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  3180. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  3181. * state.
  3182. *
  3183. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  3184. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  3185. * is over the button. The over icon file name will have a "-o" suffix
  3186. *
  3187. * @param {number} [$opacity-disabled=$button-opacity-disabled]
  3188. * The opacity of the button when it is disabled
  3189. *
  3190. * @param {number} [$inner-opacity-disabled=$button-inner-opacity-disabled]
  3191. * The opacity of the button's text and icon elements when when the button is disabled
  3192. *
  3193. * @member Ext.button.Button
  3194. */
  3195. @mixin extjs-button-large-ui(
  3196. $ui,
  3197. $border-radius: $button-large-border-radius,
  3198. $border-width: $button-large-border-width,
  3199. $border-color: null,
  3200. $border-color-over: null,
  3201. $border-color-focus: null,
  3202. $border-color-pressed: null,
  3203. $border-color-focus-over: null,
  3204. $border-color-focus-pressed: null,
  3205. $border-color-disabled: null,
  3206. $padding: $button-large-padding,
  3207. $text-padding: $button-large-text-padding,
  3208. $background-color: null,
  3209. $background-color-over: null,
  3210. $background-color-focus: null,
  3211. $background-color-pressed: null,
  3212. $background-color-focus-over: null,
  3213. $background-color-focus-pressed: null,
  3214. $background-color-disabled: null,
  3215. $background-gradient: $button-default-background-gradient,
  3216. $background-gradient-over: $button-default-background-gradient-over,
  3217. $background-gradient-focus: $button-default-background-gradient-focus,
  3218. $background-gradient-pressed: $button-default-background-gradient-pressed,
  3219. $background-gradient-focus-over: $button-default-background-gradient-focus-over,
  3220. $background-gradient-focus-pressed: $button-default-background-gradient-focus-pressed,
  3221. $background-gradient-disabled: $button-default-background-gradient-disabled,
  3222. $color: null,
  3223. $color-over: null,
  3224. $color-focus: null,
  3225. $color-pressed: null,
  3226. $color-focus-over: null,
  3227. $color-focus-pressed: null,
  3228. $color-disabled: null,
  3229. $inner-border-width: null,
  3230. $inner-border-width-over: null,
  3231. $inner-border-width-focus: null,
  3232. $inner-border-width-pressed: null,
  3233. $inner-border-width-focus-over: null,
  3234. $inner-border-width-focus-pressed: null,
  3235. $inner-border-width-disabled: null,
  3236. $inner-border-color: null,
  3237. $inner-border-color-over: null,
  3238. $inner-border-color-focus: null,
  3239. $inner-border-color-pressed: null,
  3240. $inner-border-color-focus-over: null,
  3241. $inner-border-color-focus-pressed: null,
  3242. $inner-border-color-disabled: null,
  3243. $body-outline-width-focus: $button-default-body-outline-width-focus,
  3244. $body-outline-style-focus: $button-default-body-outline-style-focus,
  3245. $body-outline-color-focus: $button-default-body-outline-color-focus,
  3246. $font-size: null,
  3247. $font-size-over: null,
  3248. $font-size-focus: null,
  3249. $font-size-pressed: null,
  3250. $font-size-focus-over: null,
  3251. $font-size-focus-pressed: null,
  3252. $font-size-disabled: null,
  3253. $font-weight: null,
  3254. $font-weight-over: null,
  3255. $font-weight-focus: null,
  3256. $font-weight-pressed: null,
  3257. $font-weight-focus-over: null,
  3258. $font-weight-focus-pressed: null,
  3259. $font-weight-disabled: null,
  3260. $font-family: null,
  3261. $font-family-over: null,
  3262. $font-family-focus: null,
  3263. $font-family-pressed: null,
  3264. $font-family-focus-over: null,
  3265. $font-family-focus-pressed: null,
  3266. $font-family-disabled: null,
  3267. $line-height: $button-large-line-height,
  3268. $icon-size: $button-large-icon-size,
  3269. $glyph-font-size: $button-large-glyph-font-size,
  3270. $icon-spacing: $button-large-icon-spacing,
  3271. $glyph-color: $button-default-glyph-color,
  3272. $glyph-opacity: $button-default-glyph-opacity,
  3273. $arrow-width: $button-large-arrow-width,
  3274. $arrow-height: $button-large-arrow-height,
  3275. $arrow-glyph: $button-large-arrow-glyph,
  3276. $arrow-glyph-color: $button-default-arrow-glyph-color,
  3277. $split-width: $button-large-split-width,
  3278. $split-height: $button-large-split-height,
  3279. $split-line-width: $button-large-split-line-width,
  3280. $split-line-color: $button-default-split-line-color,
  3281. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  3282. $include-ui-split-arrows: $button-include-ui-split-arrows,
  3283. $include-split-noline-arrows: $button-include-split-noline-arrows,
  3284. $include-split-over-arrows: $button-include-split-over-arrows,
  3285. $opacity-disabled: $button-opacity-disabled,
  3286. $inner-opacity-disabled: $button-inner-opacity-disabled
  3287. ) {
  3288. @if $border-color == null {
  3289. $border-color: $button-default-border-color;
  3290. @if $border-color-over == null {
  3291. $border-color-over: $button-default-border-color-over;
  3292. }
  3293. @if $border-color-focus == null {
  3294. $border-color-focus: $button-default-border-color-focus;
  3295. }
  3296. @if $border-color-pressed == null {
  3297. $border-color-pressed: $button-default-border-color-pressed;
  3298. }
  3299. @if $border-color-focus-over == null {
  3300. $border-color-focus-over: $button-default-border-color-focus-over;
  3301. }
  3302. @if $border-color-focus-pressed == null {
  3303. $border-color-focus-pressed: $button-default-border-color-focus-pressed;
  3304. }
  3305. @if $border-color-disabled == null {
  3306. $border-color-disabled: $button-default-border-color-disabled;
  3307. }
  3308. } @else {
  3309. @if $border-color-over == null {
  3310. $border-color-over: button-default-border-color-over($border-color);
  3311. }
  3312. @if $border-color-focus == null {
  3313. $border-color-focus: button-default-border-color-focus($border-color);
  3314. }
  3315. @if $border-color-pressed == null {
  3316. $border-color-pressed: button-default-border-color-pressed($border-color);
  3317. }
  3318. @if $border-color-focus-over == null {
  3319. $border-color-focus-over: $border-color-over;
  3320. }
  3321. @if $border-color-focus-pressed == null {
  3322. $border-color-focus-pressed: $border-color-pressed;
  3323. }
  3324. @if $border-color-disabled == null {
  3325. $border-color-disabled: button-default-border-color-disabled($border-color);
  3326. }
  3327. }
  3328. @if $background-color == null {
  3329. $background-color: $button-default-background-color;
  3330. @if $background-color-over == null {
  3331. $background-color-over: $button-default-background-color-over;
  3332. }
  3333. @if $background-color-focus == null {
  3334. $background-color-focus: $button-default-background-color-focus;
  3335. }
  3336. @if $background-color-pressed == null {
  3337. $background-color-pressed: $button-default-background-color-pressed;
  3338. }
  3339. @if $background-color-focus-over == null {
  3340. $background-color-focus-over: $button-default-background-color-focus-over;
  3341. }
  3342. @if $background-color-focus-pressed == null {
  3343. $background-color-focus-pressed: $button-default-background-color-focus-pressed;
  3344. }
  3345. @if $background-color-disabled == null {
  3346. $background-color-disabled: $button-default-background-color-disabled;
  3347. }
  3348. } @else {
  3349. @if $background-color-over == null {
  3350. $background-color-over: button-default-background-color-over($background-color);
  3351. }
  3352. @if $background-color-focus == null {
  3353. $background-color-focus: button-default-background-color-focus($background-color);
  3354. }
  3355. @if $background-color-pressed == null {
  3356. $background-color-pressed: button-default-background-color-pressed($background-color);
  3357. }
  3358. @if $background-color-focus-over == null {
  3359. $background-color-focus-over: $background-color-over;
  3360. }
  3361. @if $background-color-focus-pressed == null {
  3362. $background-color-focus-pressed: $background-color-pressed;
  3363. }
  3364. @if $background-color-disabled == null {
  3365. $background-color-disabled: button-default-background-color-disabled($background-color);
  3366. }
  3367. }
  3368. @if $color == null {
  3369. $color: $button-default-color;
  3370. @if $color-over == null {
  3371. $color-over: $button-default-color-over;
  3372. }
  3373. @if $color-focus == null {
  3374. $color-focus: $button-default-color-focus;
  3375. }
  3376. @if $color-pressed == null {
  3377. $color-pressed: $button-default-color-pressed;
  3378. }
  3379. @if $color-focus-over == null {
  3380. $color-focus-over: $button-default-color-focus-over;
  3381. }
  3382. @if $color-focus-pressed == null {
  3383. $color-focus-pressed: $button-default-color-focus-pressed;
  3384. }
  3385. @if $color-disabled == null {
  3386. $color-disabled: $button-default-color-disabled;
  3387. }
  3388. } @else {
  3389. @if $color-over == null {
  3390. $color-over: button-default-color-over($color);
  3391. }
  3392. @if $color-focus == null {
  3393. $color-focus: button-default-color-focus($color);
  3394. }
  3395. @if $color-pressed == null {
  3396. $color-pressed: button-default-color-pressed($color);
  3397. }
  3398. @if $color-focus-over == null {
  3399. $color-focus-over: $color-over;
  3400. }
  3401. @if $color-focus-pressed == null {
  3402. $color-focus-pressed: $color-pressed;
  3403. }
  3404. @if $color-disabled == null {
  3405. $color-disabled: button-default-color-disabled($color);
  3406. }
  3407. }
  3408. @if $inner-border-width == null {
  3409. $inner-border-width: $button-default-inner-border-width;
  3410. @if $inner-border-width-over == null {
  3411. $inner-border-width-over: $button-default-inner-border-width-over;
  3412. }
  3413. @if $inner-border-width-focus == null {
  3414. $inner-border-width-focus: $button-default-inner-border-width-focus;
  3415. }
  3416. @if $inner-border-width-pressed == null {
  3417. $inner-border-width-pressed: $button-default-inner-border-width-pressed;
  3418. }
  3419. @if $inner-border-width-focus-over == null {
  3420. $inner-border-width-focus-over: $button-default-inner-border-width-focus-over;
  3421. }
  3422. @if $inner-border-width-focus-pressed == null {
  3423. $inner-border-width-focus-pressed: $button-default-inner-border-width-focus-pressed;
  3424. }
  3425. @if $inner-border-width-disabled == null {
  3426. $inner-border-width-disabled: $button-default-inner-border-width-disabled;
  3427. }
  3428. } @else {
  3429. @if $inner-border-width-over == null {
  3430. $inner-border-width-over: $inner-border-width;
  3431. }
  3432. @if $inner-border-width-focus == null {
  3433. $inner-border-width-focus: $inner-border-width;
  3434. }
  3435. @if $inner-border-width-pressed == null {
  3436. $inner-border-width-pressed: $inner-border-width;
  3437. }
  3438. @if $inner-border-width-focus-over == null {
  3439. $inner-border-width-focus-over: $inner-border-width-over;
  3440. }
  3441. @if $inner-border-width-focus-pressed == null {
  3442. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  3443. }
  3444. @if $inner-border-width-disabled == null {
  3445. $inner-border-width-disabled: $inner-border-width;
  3446. }
  3447. }
  3448. @if $inner-border-color == null {
  3449. $inner-border-color: $button-default-inner-border-color;
  3450. @if $inner-border-color-over == null {
  3451. $inner-border-color-over: $button-default-inner-border-color-over;
  3452. }
  3453. @if $inner-border-color-focus == null {
  3454. $inner-border-color-focus: $button-default-inner-border-color-focus;
  3455. }
  3456. @if $inner-border-color-pressed == null {
  3457. $inner-border-color-pressed: $button-default-inner-border-color-pressed;
  3458. }
  3459. @if $inner-border-color-focus-over == null {
  3460. $inner-border-color-focus-over: $button-default-inner-border-color-focus-over;
  3461. }
  3462. @if $inner-border-color-focus-pressed == null {
  3463. $inner-border-color-focus-pressed: $button-default-inner-border-color-focus-pressed;
  3464. }
  3465. @if $inner-border-color-disabled == null {
  3466. $inner-border-color-disabled: $button-default-inner-border-color-disabled;
  3467. }
  3468. } @else {
  3469. @if $inner-border-color-over == null {
  3470. $inner-border-color-over: button-default-inner-border-color-over($background-color-over, $color-over);
  3471. }
  3472. @if $inner-border-color-focus == null {
  3473. $inner-border-color-focus: button-default-inner-border-color-focus($background-color-focus, $color-focus);
  3474. }
  3475. @if $inner-border-color-pressed == null {
  3476. $inner-border-color-pressed: button-default-inner-border-color-pressed($background-color-pressed, $color-pressed);
  3477. }
  3478. @if $inner-border-color-focus-over == null {
  3479. $inner-border-color-focus-over: button-default-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  3480. }
  3481. @if $inner-border-color-focus-pressed == null {
  3482. $inner-border-color-focus-pressed: button-default-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed);
  3483. }
  3484. @if $inner-border-color-disabled == null {
  3485. $inner-border-color-disabled: button-default-inner-border-color-disabled($background-color-disabled, $color-disabled);
  3486. }
  3487. }
  3488. @if $font-size == null {
  3489. $font-size: $button-large-font-size;
  3490. @if $font-size-over == null {
  3491. $font-size-over: $button-large-font-size-over;
  3492. }
  3493. @if $font-size-focus == null {
  3494. $font-size-focus: $button-large-font-size-focus;
  3495. }
  3496. @if $font-size-pressed == null {
  3497. $font-size-pressed: $button-large-font-size-pressed;
  3498. }
  3499. @if $font-size-focus-over == null {
  3500. $font-size-focus-over: $button-large-font-size-focus-over;
  3501. }
  3502. @if $font-size-focus-pressed == null {
  3503. $font-size-focus-pressed: $button-large-font-size-focus-pressed;
  3504. }
  3505. @if $font-size-disabled == null {
  3506. $font-size-disabled: $button-large-font-size-disabled;
  3507. }
  3508. } @else {
  3509. @if $font-size-over == null {
  3510. $font-size-over: $font-size;
  3511. }
  3512. @if $font-size-focus == null {
  3513. $font-size-focus: $font-size;
  3514. }
  3515. @if $font-size-pressed == null {
  3516. $font-size-pressed: $font-size;
  3517. }
  3518. @if $font-size-focus-over == null {
  3519. $font-size-focus-over: $font-size-over;
  3520. }
  3521. @if $font-size-focus-pressed == null {
  3522. $font-size-focus-pressed: $font-size-pressed;
  3523. }
  3524. @if $font-size-disabled == null {
  3525. $font-size-disabled: $font-size;
  3526. }
  3527. }
  3528. @if $font-weight == null {
  3529. $font-weight: $button-large-font-weight;
  3530. @if $font-weight-over == null {
  3531. $font-weight-over: $button-large-font-weight-over;
  3532. }
  3533. @if $font-weight-focus == null {
  3534. $font-weight-focus: $button-large-font-weight-focus;
  3535. }
  3536. @if $font-weight-pressed == null {
  3537. $font-weight-pressed: $button-large-font-weight-pressed;
  3538. }
  3539. @if $font-weight-focus-over == null {
  3540. $font-weight-focus-over: $button-large-font-weight-focus-over;
  3541. }
  3542. @if $font-weight-focus-pressed == null {
  3543. $font-weight-focus-pressed: $button-large-font-weight-focus-pressed;
  3544. }
  3545. @if $font-weight-disabled == null {
  3546. $font-weight-disabled: $button-large-font-weight-disabled;
  3547. }
  3548. } @else {
  3549. @if $font-weight-over == null {
  3550. $font-weight-over: $font-weight;
  3551. }
  3552. @if $font-weight-focus == null {
  3553. $font-weight-focus: $font-weight;
  3554. }
  3555. @if $font-weight-pressed == null {
  3556. $font-weight-pressed: $font-weight;
  3557. }
  3558. @if $font-weight-focus-over == null {
  3559. $font-weight-focus-over: $font-weight-over;
  3560. }
  3561. @if $font-weight-focus-pressed == null {
  3562. $font-weight-focus-pressed: $font-weight-pressed;
  3563. }
  3564. @if $font-weight-disabled == null {
  3565. $font-weight-disabled: $font-weight;
  3566. }
  3567. }
  3568. @if $font-family == null {
  3569. $font-family: $button-large-font-family;
  3570. @if $font-family-over == null {
  3571. $font-family-over: $button-large-font-family-over;
  3572. }
  3573. @if $font-family-focus == null {
  3574. $font-family-focus: $button-large-font-family-focus;
  3575. }
  3576. @if $font-family-pressed == null {
  3577. $font-family-pressed: $button-large-font-family-pressed;
  3578. }
  3579. @if $font-family-focus-over == null {
  3580. $font-family-focus-over: $button-large-font-family-focus-over;
  3581. }
  3582. @if $font-family-focus-pressed == null {
  3583. $font-family-focus-pressed: $button-large-font-family-focus-pressed;
  3584. }
  3585. @if $font-family-disabled == null {
  3586. $font-family-disabled: $button-large-font-family-disabled;
  3587. }
  3588. } @else {
  3589. @if $font-family-over == null {
  3590. $font-family-over: $font-family;
  3591. }
  3592. @if $font-family-focus == null {
  3593. $font-family-focus: $font-family;
  3594. }
  3595. @if $font-family-pressed == null {
  3596. $font-family-pressed: $font-family;
  3597. }
  3598. @if $font-family-focus-over == null {
  3599. $font-family-focus-over: $font-family-over;
  3600. }
  3601. @if $font-family-focus-pressed == null {
  3602. $font-family-focus-pressed: $font-family-pressed;
  3603. }
  3604. @if $font-family-disabled == null {
  3605. $font-family-disabled: $font-family;
  3606. }
  3607. }
  3608. @include extjs-button-ui(
  3609. $ui: '#{$ui}-large',
  3610. $border-radius: $border-radius,
  3611. $border-width: $border-width,
  3612. $border-color: $border-color,
  3613. $border-color-over: $border-color-over,
  3614. $border-color-focus: $border-color-focus,
  3615. $border-color-pressed: $border-color-pressed,
  3616. $border-color-focus-over: $border-color-focus-over,
  3617. $border-color-focus-pressed: $border-color-focus-pressed,
  3618. $border-color-disabled: $border-color-disabled,
  3619. $padding: $padding,
  3620. $text-padding: $text-padding,
  3621. $background-color: $background-color,
  3622. $background-color-over: $background-color-over,
  3623. $background-color-focus: $background-color-focus,
  3624. $background-color-pressed: $background-color-pressed,
  3625. $background-color-focus-over: $background-color-focus-over,
  3626. $background-color-focus-pressed: $background-color-focus-pressed,
  3627. $background-color-disabled: $background-color-disabled,
  3628. $background-gradient: $background-gradient,
  3629. $background-gradient-over: $background-gradient-over,
  3630. $background-gradient-focus: $background-gradient-focus,
  3631. $background-gradient-pressed: $background-gradient-pressed,
  3632. $background-gradient-focus-over: $background-gradient-focus-over,
  3633. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  3634. $background-gradient-disabled: $background-gradient-disabled,
  3635. $color: $color,
  3636. $color-over: $color-over,
  3637. $color-focus: $color-focus,
  3638. $color-pressed: $color-pressed,
  3639. $color-focus-over: $color-focus-over,
  3640. $color-focus-pressed: $color-focus-pressed,
  3641. $color-disabled: $color-disabled,
  3642. $inner-border-width: $inner-border-width,
  3643. $inner-border-width-over: $inner-border-width-over,
  3644. $inner-border-width-focus: $inner-border-width-focus,
  3645. $inner-border-width-pressed: $inner-border-width-pressed,
  3646. $inner-border-width-focus-over: $inner-border-width-focus-over,
  3647. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  3648. $inner-border-width-disabled: $inner-border-width-disabled,
  3649. $inner-border-color: $inner-border-color,
  3650. $inner-border-color-over: $inner-border-color-over,
  3651. $inner-border-color-focus: $inner-border-color-focus,
  3652. $inner-border-color-pressed: $inner-border-color-pressed,
  3653. $inner-border-color-focus-over: $inner-border-color-focus-over,
  3654. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  3655. $inner-border-color-disabled: $inner-border-color-disabled,
  3656. $body-outline-width-focus: $body-outline-width-focus,
  3657. $body-outline-style-focus: $body-outline-style-focus,
  3658. $body-outline-color-focus: $body-outline-color-focus,
  3659. $font-size: $font-size,
  3660. $font-size-over: $font-size-over,
  3661. $font-size-focus: $font-size-focus,
  3662. $font-size-pressed: $font-size-pressed,
  3663. $font-size-focus-over: $font-size-focus-over,
  3664. $font-size-focus-pressed: $font-size-focus-pressed,
  3665. $font-size-disabled: $font-size-disabled,
  3666. $font-weight: $font-weight,
  3667. $font-weight-over: $font-weight-over,
  3668. $font-weight-focus: $font-weight-focus,
  3669. $font-weight-pressed: $font-weight-pressed,
  3670. $font-weight-focus-over: $font-weight-focus-over,
  3671. $font-weight-focus-pressed: $font-weight-focus-pressed,
  3672. $font-weight-disabled: $font-weight-disabled,
  3673. $font-family: $font-family,
  3674. $font-family-over: $font-family-over,
  3675. $font-family-focus: $font-family-focus,
  3676. $font-family-pressed: $font-family-pressed,
  3677. $font-family-focus-over: $font-family-focus-over,
  3678. $font-family-focus-pressed: $font-family-focus-pressed,
  3679. $font-family-disabled: $font-family-disabled,
  3680. $line-height: $line-height,
  3681. $icon-size: $icon-size,
  3682. $glyph-font-size: $glyph-font-size,
  3683. $icon-spacing: $icon-spacing,
  3684. $glyph-color: $glyph-color,
  3685. $glyph-opacity: $glyph-opacity,
  3686. $arrow-width: $arrow-width,
  3687. $arrow-height: $arrow-height,
  3688. $arrow-glyph: $arrow-glyph,
  3689. $arrow-glyph-color: $arrow-glyph-color,
  3690. $split-width: $split-width,
  3691. $split-height: $split-height,
  3692. $split-line-width: $split-line-width,
  3693. $split-line-color: $split-line-color,
  3694. $include-ui-menu-arrows: $include-ui-menu-arrows,
  3695. $include-ui-split-arrows: $include-ui-split-arrows,
  3696. $include-split-noline-arrows: $include-split-noline-arrows,
  3697. $include-split-over-arrows: $include-split-over-arrows,
  3698. $opacity-disabled: $opacity-disabled,
  3699. $inner-opacity-disabled: $inner-opacity-disabled
  3700. );
  3701. }
  3702. /**
  3703. * Creates a visual theme for a {@link #scale small} Button.
  3704. *
  3705. * @param {string} $ui
  3706. * The name of the UI being created. Can not included spaces or special punctuation
  3707. * (used in CSS class names).
  3708. *
  3709. * @param {number} [$border-radius=$button-small-border-radius]
  3710. * The border-radius of the button
  3711. *
  3712. * @param {number} [$border-width=$button-small-border-width]
  3713. * The border-width of the button
  3714. *
  3715. * @param {color} [$border-color=$button-default-border-color]
  3716. * The border-color of the button
  3717. *
  3718. * @param {color} [$border-color-over=$button-default-border-color-over]
  3719. * The border-color of the button when the cursor is over the button
  3720. *
  3721. * @param {color} [$border-color-focus=$button-default-border-color-focus]
  3722. * The border-color of the button when focused
  3723. *
  3724. * @param {color} [$border-color-pressed=$button-default-border-color-pressed]
  3725. * The border-color of the button when pressed
  3726. *
  3727. * @param {color} [$border-color-focus-over=$button-default-border-color-focus-over]
  3728. * The border-color of the button when the button is focused and the cursor is over the
  3729. * button
  3730. *
  3731. * @param {color} [$border-color-focus-pressed=$button-default-border-color-focus-pressed]
  3732. * The border-color of the button when focused and pressed
  3733. *
  3734. * @param {color} [$border-color-disabled=$button-default-border-color-disabled]
  3735. * The border-color of the button when disabled
  3736. *
  3737. * @param {number} [$padding=$button-small-padding]
  3738. * The amount of padding inside the border of the button on all sides
  3739. *
  3740. * @param {number} [$text-padding=$button-small-text-padding]
  3741. * The amount of horizontal space to add to the left and right of the button text
  3742. *
  3743. * @param {color} [$background-color=$button-default-background-color]
  3744. * The background-color of the button
  3745. *
  3746. * @param {color} [$background-color-over=$button-default-background-color-over]
  3747. * The background-color of the button when the cursor is over the button
  3748. *
  3749. * @param {color} [$background-color-focus=$button-default-background-color-focus]
  3750. * The background-color of the button when focused
  3751. *
  3752. * @param {color} [$background-color-pressed=$button-default-background-color-pressed]
  3753. * The background-color of the button when pressed
  3754. *
  3755. * @param {color} [$background-color-focus-over=$button-default-background-color-focus-over]
  3756. * The background-color of the button when the button is focused and the cursor is over
  3757. * the button
  3758. *
  3759. * @param {color} [$background-color-focus-pressed=$button-default-background-color-focus-pressed]
  3760. * The background-color of the button when focused and pressed
  3761. *
  3762. * @param {color} [$background-color-disabled=$button-default-background-color-disabled]
  3763. * The background-color of the button when disabled
  3764. *
  3765. * @param {string/list} [$background-gradient=$button-default-background-gradient]
  3766. * The background-gradient for the button. Can be either the name of a predefined gradient
  3767. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  3768. *
  3769. * @param {string/list} [$background-gradient-over=$button-default-background-gradient-over]
  3770. * The background-gradient to use when the cursor is over the button. Can be either the
  3771. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  3772. * for {@link Global_CSS#background-gradient}.
  3773. *
  3774. * @param {string/list} [$background-gradient-focus=$button-default-background-gradient-focus]
  3775. * The background-gradient to use when the the button is focused. Can be either the name
  3776. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  3777. * {@link Global_CSS#background-gradient}.
  3778. *
  3779. * @param {string/list} [$background-gradient-pressed=$button-default-background-gradient-pressed]
  3780. * The background-gradient to use when the the button is pressed. Can be either the name
  3781. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  3782. * {@link Global_CSS#background-gradient}.
  3783. *
  3784. * @param {string} [$background-gradient-focus-over=$button-default-background-gradient-focus-over]
  3785. * The background-gradient to use when the the button is focused and the cursor is over
  3786. * the button. Can be either the name of a predefined gradient or a list of color stops.
  3787. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  3788. *
  3789. * @param {string} [$background-gradient-focus-pressed=$button-default-background-gradient-focus-pressed]
  3790. * The background-gradient to use when the the button is focused and pressed. Can be
  3791. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  3792. * parameter for {@link Global_CSS#background-gradient}.
  3793. *
  3794. * @param {string/list} [$background-gradient-disabled=$button-default-background-gradient-disabled]
  3795. * The background-gradient to use when the the button is disabled. Can be either the name
  3796. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  3797. * {@link Global_CSS#background-gradient}.
  3798. *
  3799. * @param {color} [$color=$button-default-color]
  3800. * The text color of the button
  3801. *
  3802. * @param {color} [$color-over=$button-default-color-over]
  3803. * The text color of the button when the cursor is over the button
  3804. *
  3805. * @param {color} [$color-focus=$button-default-color-focus]
  3806. * The text color of the button when the button is focused
  3807. *
  3808. * @param {color} [$color-pressed=$button-default-color-pressed]
  3809. * The text color of the button when the button is pressed
  3810. *
  3811. * @param {color} [$color-focus-over=$button-default-color-focus-over]
  3812. * The text color of the button when the button is focused and the cursor is over the button
  3813. *
  3814. * @param {color} [$color-focus-pressed=$button-default-color-focus-pressed]
  3815. * The text color of the button when the button is focused and pressed
  3816. *
  3817. * @param {color} [$color-disabled=$button-default-color-disabled]
  3818. * The text color of the button when the button is disabled
  3819. *
  3820. * @param {number/list} [$inner-border-width=$button-default-inner-border-width]
  3821. * The inner border-width of the button
  3822. *
  3823. * @param {number/list} [$inner-border-width-over=$button-default-inner-border-width-over]
  3824. * The inner border-width of the button when the cursor is over the button
  3825. *
  3826. * @param {number/list} [$inner-border-width-focus=$button-default-inner-border-width-focus]
  3827. * The inner border-width of the button when focused
  3828. *
  3829. * @param {number/list} [$inner-border-width-pressed=$button-default-inner-border-width-pressed]
  3830. * The inner border-width of the button when pressed
  3831. *
  3832. * @param {number/list} [$inner-border-width-focus-over=$button-default-inner-border-width-focus-over]
  3833. * The inner border-width of the button when the button is focused and the cursor is over
  3834. * the button
  3835. *
  3836. * @param {number/list} [$inner-border-width-focus-pressed=$button-default-inner-border-width-focus-pressed]
  3837. * The inner border-width of the button when focused and pressed
  3838. *
  3839. * @param {number/list} [$inner-border-width-disabled=$button-default-inner-border-width-disabled]
  3840. * The inner border-width of the button when disabled
  3841. *
  3842. * @param {color} [$inner-border-color=$button-default-inner-border-color]
  3843. * The inner border-color of the button
  3844. *
  3845. * @param {color} [$inner-border-color-over=$button-default-inner-border-color-over]
  3846. * The inner border-color of the button when the cursor is over the button
  3847. *
  3848. * @param {color} [$inner-border-color-focus=$button-default-inner-border-color-focus]
  3849. * The inner border-color of the button when focused
  3850. *
  3851. * @param {color} [$inner-border-color-pressed=$button-default-inner-border-color-pressed]
  3852. * The inner border-color of the button when pressed
  3853. *
  3854. * @param {color} [$inner-border-color-focus-over=$button-default-inner-border-color-focus-over]
  3855. * The inner border-color of the button when the button is focused and the cursor is over
  3856. * the button
  3857. *
  3858. * @param {color} [$inner-border-color-focus-pressed=$button-default-inner-border-color-focus-pressed]
  3859. * The inner border-color of the button when focused and pressed
  3860. *
  3861. * @param {color} [$inner-border-color-disabled=$button-default-inner-border-color-disabled]
  3862. * The inner border-color of the button when disabled
  3863. *
  3864. * @param {number} [$body-outline-width-focus=$button-default-body-outline-width-focus]
  3865. * The body outline width of the button when focused
  3866. *
  3867. * @param {number} [$body-outline-style-focus=$button-default-body-outline-style-focus]
  3868. * The body outline-style of the button when focused
  3869. *
  3870. * @param {number} [$body-outline-color-focus=$button-default-body-outline-color-focus]
  3871. * The body outline color of the button when focused
  3872. *
  3873. * @param {number} [$font-size=$button-small-font-size]
  3874. * The font-size of the button
  3875. *
  3876. * @param {number} [$font-size-over=$button-small-font-size-over]
  3877. * The font-size of the button when the cursor is over the button
  3878. *
  3879. * @param {number} [$font-size-focus=$button-small-font-size-focus]
  3880. * The font-size of the button when the button is focused
  3881. *
  3882. * @param {number} [$font-size-pressed=$button-small-font-size-pressed]
  3883. * The font-size of the button when the button is pressed
  3884. *
  3885. * @param {number} [$font-size-focus-over=$button-small-font-size-focus-over]
  3886. * The font-size of the button when the button is focused and the cursor is over the
  3887. * button
  3888. *
  3889. * @param {number} [$font-size-focus-pressed=$button-small-font-size-focus-pressed]
  3890. * The font-size of the button when the button is focused and pressed
  3891. *
  3892. * @param {number} [$font-size-disabled=$button-small-font-size-disabled]
  3893. * The font-size of the button when the button is disabled
  3894. *
  3895. * @param {string} [$font-weight=$button-small-font-weight]
  3896. * The font-weight of the button
  3897. *
  3898. * @param {string} [$font-weight-over=$button-small-font-weight-over]
  3899. * The font-weight of the button when the cursor is over the button
  3900. *
  3901. * @param {string} [$font-weight-focus=$button-small-font-weight-focus]
  3902. * The font-weight of the button when the button is focused
  3903. *
  3904. * @param {string} [$font-weight-pressed=$button-small-font-weight-pressed]
  3905. * The font-weight of the button when the button is pressed
  3906. *
  3907. * @param {string} [$font-weight-focus-over=$button-small-font-weight-focus-over]
  3908. * The font-weight of the button when the button is focused and the cursor is over the
  3909. * button
  3910. *
  3911. * @param {string} [$font-weight-focus-pressed=$button-small-font-weight-focus-pressed]
  3912. * The font-weight of the button when the button is focused and pressed
  3913. *
  3914. * @param {string} [$font-weight-disabled=$button-small-font-weight-disabled]
  3915. * The font-weight of the button when the button is disabled
  3916. *
  3917. * @param {string} [$font-family=$button-small-font-family]
  3918. * The font-family of the button
  3919. *
  3920. * @param {string} [$font-family-over=$button-small-font-family-over]
  3921. * The font-family of the button when the cursor is over the button
  3922. *
  3923. * @param {string} [$font-family-focus=$button-small-font-family-focus]
  3924. * The font-family of the button when the button is focused
  3925. *
  3926. * @param {string} [$font-family-pressed=$button-small-font-family-pressed]
  3927. * The font-family of the button when the button is pressed
  3928. *
  3929. * @param {string} [$font-family-focus-over=$button-small-font-family-focus-over]
  3930. * The font-family of the button when the button is focused and the cursor is over the
  3931. * button
  3932. *
  3933. * @param {string} [$font-family-focus-pressed=$button-small-font-family-focus-pressed]
  3934. * The font-family of the button when the button is focused and pressed
  3935. *
  3936. * @param {string} [$font-family-disabled=$button-small-font-family-disabled]
  3937. * The font-family of the button when the button is disabled
  3938. *
  3939. * @param {number} [$line-height=$button-small-line-height]
  3940. * The line-height of the button text
  3941. *
  3942. * @param {number} [$icon-size=$button-small-icon-size]
  3943. * The size of the button icon
  3944. *
  3945. * @param {number} [$glyph-font-size=$button-small-glyph-font-size]
  3946. * The font-size for the button glyph
  3947. *
  3948. * @param {number} [$icon-spacing=$button-small-icon-spacing]
  3949. * The space between the button's icon and text
  3950. *
  3951. * @param {color} [$glyph-color=$button-default-glyph-color]
  3952. * The color of the button's {@link #glyph} icon
  3953. *
  3954. * @param {number} [$glyph-opacity=$button-default-glyph-opacity]
  3955. * The opacity of the button's {@link #glyph} icon
  3956. *
  3957. * @param {number} [$arrow-width=$button-small-arrow-width]
  3958. * The width of the button's {@link #cfg-menu} arrow
  3959. *
  3960. * @param {number} [$arrow-height=$button-small-arrow-height]
  3961. * The height of the button's {@link #cfg-menu} arrow
  3962. *
  3963. * @param {string/list} [$arrow-glyph=$button-small-arrow-glyph]
  3964. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  3965. *
  3966. * @param {string/list} [$arrow-glyph-color=$button-default-arrow-glyph-color]
  3967. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  3968. *
  3969. * @param {number} [$split-width=$button-small-split-width]
  3970. * The width of a {@link Ext.button.Split Split Button}'s arrow
  3971. *
  3972. * @param {number} [$split-height=$button-small-split-height]
  3973. * The height of a {@link Ext.button.Split Split Button}'s arrow
  3974. *
  3975. * @param {number} [$split-line-width=$button-small-split-line-width]
  3976. * The default width for a {@link Ext.button.Split Split Button}'s line.
  3977. * Themes that include the line in the arrow background image should set this to 0
  3978. *
  3979. * @param {color} [$split-line-color=$button-default-split-line-color]
  3980. * The color for a {@link Ext.button.Split Split Button}'s line.
  3981. * Only applicable when `$split-line-width` is greater than 0.
  3982. *
  3983. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  3984. * True to include the UI name in the file name of the {@link #cfg-menu}
  3985. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  3986. *
  3987. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  3988. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  3989. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  3990. *
  3991. * @param {boolean} [$include-split-noline-arrows=$button-include-split-noline-arrows]
  3992. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  3993. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  3994. * state.
  3995. *
  3996. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  3997. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  3998. * is over the button. The over icon file name will have a "-o" suffix
  3999. *
  4000. * @param {number} [$opacity-disabled=$button-opacity-disabled]
  4001. * The opacity of the button when it is disabled
  4002. *
  4003. * @param {number} [$inner-opacity-disabled=$button-inner-opacity-disabled]
  4004. * The opacity of the button's text and icon elements when when the button is disabled
  4005. *
  4006. * @member Ext.button.Button
  4007. */
  4008. @mixin extjs-button-small-ui(
  4009. $ui,
  4010. $border-radius: $button-small-border-radius,
  4011. $border-width: $button-small-border-width,
  4012. $border-color: null,
  4013. $border-color-over: null,
  4014. $border-color-focus: null,
  4015. $border-color-pressed: null,
  4016. $border-color-focus-over: null,
  4017. $border-color-focus-pressed: null,
  4018. $border-color-disabled: null,
  4019. $padding: $button-small-padding,
  4020. $text-padding: $button-small-text-padding,
  4021. $background-color: null,
  4022. $background-color-over: null,
  4023. $background-color-focus: null,
  4024. $background-color-pressed: null,
  4025. $background-color-focus-over: null,
  4026. $background-color-focus-pressed: null,
  4027. $background-color-disabled: null,
  4028. $background-gradient: $button-default-background-gradient,
  4029. $background-gradient-over: $button-default-background-gradient-over,
  4030. $background-gradient-focus: $button-default-background-gradient-focus,
  4031. $background-gradient-pressed: $button-default-background-gradient-pressed,
  4032. $background-gradient-focus-over: $button-default-background-gradient-focus-over,
  4033. $background-gradient-focus-pressed: $button-default-background-gradient-focus-pressed,
  4034. $background-gradient-disabled: $button-default-background-gradient-disabled,
  4035. $color: null,
  4036. $color-over: null,
  4037. $color-focus: null,
  4038. $color-pressed: null,
  4039. $color-focus-over: null,
  4040. $color-focus-pressed: null,
  4041. $color-disabled: null,
  4042. $inner-border-width: null,
  4043. $inner-border-width-over: null,
  4044. $inner-border-width-focus: null,
  4045. $inner-border-width-pressed: null,
  4046. $inner-border-width-focus-over: null,
  4047. $inner-border-width-focus-pressed: null,
  4048. $inner-border-width-disabled: null,
  4049. $inner-border-color: null,
  4050. $inner-border-color-over: null,
  4051. $inner-border-color-focus: null,
  4052. $inner-border-color-pressed: null,
  4053. $inner-border-color-focus-over: null,
  4054. $inner-border-color-focus-pressed: null,
  4055. $inner-border-color-disabled: null,
  4056. $body-outline-width-focus: $button-default-body-outline-width-focus,
  4057. $body-outline-style-focus: $button-default-body-outline-style-focus,
  4058. $body-outline-color-focus: $button-default-body-outline-color-focus,
  4059. $font-size: null,
  4060. $font-size-over: null,
  4061. $font-size-focus: null,
  4062. $font-size-pressed: null,
  4063. $font-size-focus-over: null,
  4064. $font-size-focus-pressed: null,
  4065. $font-size-disabled: null,
  4066. $font-weight: null,
  4067. $font-weight-over: null,
  4068. $font-weight-focus: null,
  4069. $font-weight-pressed: null,
  4070. $font-weight-focus-over: null,
  4071. $font-weight-focus-pressed: null,
  4072. $font-weight-disabled: null,
  4073. $font-family: null,
  4074. $font-family-over: null,
  4075. $font-family-focus: null,
  4076. $font-family-pressed: null,
  4077. $font-family-focus-over: null,
  4078. $font-family-focus-pressed: null,
  4079. $font-family-disabled: null,
  4080. $line-height: $button-small-line-height,
  4081. $icon-size: $button-small-icon-size,
  4082. $glyph-font-size: $button-small-glyph-font-size,
  4083. $icon-spacing: $button-small-icon-spacing,
  4084. $glyph-color: $button-default-glyph-color,
  4085. $glyph-opacity: $button-default-glyph-opacity,
  4086. $arrow-width: $button-small-arrow-width,
  4087. $arrow-height: $button-small-arrow-height,
  4088. $arrow-glyph: $button-small-arrow-glyph,
  4089. $arrow-glyph-color: $button-default-arrow-glyph-color,
  4090. $split-width: $button-small-split-width,
  4091. $split-height: $button-small-split-height,
  4092. $split-line-width: $button-small-split-line-width,
  4093. $split-line-color: $button-default-split-line-color,
  4094. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  4095. $include-ui-split-arrows: $button-include-ui-split-arrows,
  4096. $include-split-noline-arrows: $button-include-split-noline-arrows,
  4097. $include-split-over-arrows: $button-include-split-over-arrows,
  4098. $opacity-disabled: $button-opacity-disabled,
  4099. $inner-opacity-disabled: $button-inner-opacity-disabled
  4100. ) {
  4101. @if $border-color == null {
  4102. $border-color: $button-default-border-color;
  4103. @if $border-color-over == null {
  4104. $border-color-over: $button-default-border-color-over;
  4105. }
  4106. @if $border-color-focus == null {
  4107. $border-color-focus: $button-default-border-color-focus;
  4108. }
  4109. @if $border-color-pressed == null {
  4110. $border-color-pressed: $button-default-border-color-pressed;
  4111. }
  4112. @if $border-color-focus-over == null {
  4113. $border-color-focus-over: $button-default-border-color-focus-over;
  4114. }
  4115. @if $border-color-focus-pressed == null {
  4116. $border-color-focus-pressed: $button-default-border-color-focus-pressed;
  4117. }
  4118. @if $border-color-disabled == null {
  4119. $border-color-disabled: $button-default-border-color-disabled;
  4120. }
  4121. } @else {
  4122. @if $border-color-over == null {
  4123. $border-color-over: button-default-border-color-over($border-color);
  4124. }
  4125. @if $border-color-focus == null {
  4126. $border-color-focus: button-default-border-color-focus($border-color);
  4127. }
  4128. @if $border-color-pressed == null {
  4129. $border-color-pressed: button-default-border-color-pressed($border-color);
  4130. }
  4131. @if $border-color-focus-over == null {
  4132. $border-color-focus-over: $border-color-over;
  4133. }
  4134. @if $border-color-focus-pressed == null {
  4135. $border-color-focus-pressed: $border-color-pressed;
  4136. }
  4137. @if $border-color-disabled == null {
  4138. $border-color-disabled: button-default-border-color-disabled($border-color);
  4139. }
  4140. }
  4141. @if $background-color == null {
  4142. $background-color: $button-default-background-color;
  4143. @if $background-color-over == null {
  4144. $background-color-over: $button-default-background-color-over;
  4145. }
  4146. @if $background-color-focus == null {
  4147. $background-color-focus: $button-default-background-color-focus;
  4148. }
  4149. @if $background-color-pressed == null {
  4150. $background-color-pressed: $button-default-background-color-pressed;
  4151. }
  4152. @if $background-color-focus-over == null {
  4153. $background-color-focus-over: $button-default-background-color-focus-over;
  4154. }
  4155. @if $background-color-focus-pressed == null {
  4156. $background-color-focus-pressed: $button-default-background-color-focus-pressed;
  4157. }
  4158. @if $background-color-disabled == null {
  4159. $background-color-disabled: $button-default-background-color-disabled;
  4160. }
  4161. } @else {
  4162. @if $background-color-over == null {
  4163. $background-color-over: button-default-background-color-over($background-color);
  4164. }
  4165. @if $background-color-focus == null {
  4166. $background-color-focus: button-default-background-color-focus($background-color);
  4167. }
  4168. @if $background-color-pressed == null {
  4169. $background-color-pressed: button-default-background-color-pressed($background-color);
  4170. }
  4171. @if $background-color-focus-over == null {
  4172. $background-color-focus-over: $background-color-over;
  4173. }
  4174. @if $background-color-focus-pressed == null {
  4175. $background-color-focus-pressed: $background-color-pressed;
  4176. }
  4177. @if $background-color-disabled == null {
  4178. $background-color-disabled: button-default-background-color-disabled($background-color);
  4179. }
  4180. }
  4181. @if $color == null {
  4182. $color: $button-default-color;
  4183. @if $color-over == null {
  4184. $color-over: $button-default-color-over;
  4185. }
  4186. @if $color-focus == null {
  4187. $color-focus: $button-default-color-focus;
  4188. }
  4189. @if $color-pressed == null {
  4190. $color-pressed: $button-default-color-pressed;
  4191. }
  4192. @if $color-focus-over == null {
  4193. $color-focus-over: $button-default-color-focus-over;
  4194. }
  4195. @if $color-focus-pressed == null {
  4196. $color-focus-pressed: $button-default-color-focus-pressed;
  4197. }
  4198. @if $color-disabled == null {
  4199. $color-disabled: $button-default-color-disabled;
  4200. }
  4201. } @else {
  4202. @if $color-over == null {
  4203. $color-over: button-default-color-over($color);
  4204. }
  4205. @if $color-focus == null {
  4206. $color-focus: button-default-color-focus($color);
  4207. }
  4208. @if $color-pressed == null {
  4209. $color-pressed: button-default-color-pressed($color);
  4210. }
  4211. @if $color-focus-over == null {
  4212. $color-focus-over: $color-over;
  4213. }
  4214. @if $color-focus-pressed == null {
  4215. $color-focus-pressed: $color-pressed;
  4216. }
  4217. @if $color-disabled == null {
  4218. $color-disabled: button-default-color-disabled($color);
  4219. }
  4220. }
  4221. @if $inner-border-width == null {
  4222. $inner-border-width: $button-default-inner-border-width;
  4223. @if $inner-border-width-over == null {
  4224. $inner-border-width-over: $button-default-inner-border-width-over;
  4225. }
  4226. @if $inner-border-width-focus == null {
  4227. $inner-border-width-focus: $button-default-inner-border-width-focus;
  4228. }
  4229. @if $inner-border-width-pressed == null {
  4230. $inner-border-width-pressed: $button-default-inner-border-width-pressed;
  4231. }
  4232. @if $inner-border-width-focus-over == null {
  4233. $inner-border-width-focus-over: $button-default-inner-border-width-focus-over;
  4234. }
  4235. @if $inner-border-width-focus-pressed == null {
  4236. $inner-border-width-focus-pressed: $button-default-inner-border-width-focus-pressed;
  4237. }
  4238. @if $inner-border-width-disabled == null {
  4239. $inner-border-width-disabled: $button-default-inner-border-width-disabled;
  4240. }
  4241. } @else {
  4242. @if $inner-border-width-over == null {
  4243. $inner-border-width-over: $inner-border-width;
  4244. }
  4245. @if $inner-border-width-focus == null {
  4246. $inner-border-width-focus: $inner-border-width;
  4247. }
  4248. @if $inner-border-width-pressed == null {
  4249. $inner-border-width-pressed: $inner-border-width;
  4250. }
  4251. @if $inner-border-width-focus-over == null {
  4252. $inner-border-width-focus-over: $inner-border-width-over;
  4253. }
  4254. @if $inner-border-width-focus-pressed == null {
  4255. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  4256. }
  4257. @if $inner-border-width-disabled == null {
  4258. $inner-border-width-disabled: $inner-border-width;
  4259. }
  4260. }
  4261. @if $inner-border-color == null {
  4262. $inner-border-color: $button-default-inner-border-color;
  4263. @if $inner-border-color-over == null {
  4264. $inner-border-color-over: $button-default-inner-border-color-over;
  4265. }
  4266. @if $inner-border-color-focus == null {
  4267. $inner-border-color-focus: $button-default-inner-border-color-focus;
  4268. }
  4269. @if $inner-border-color-pressed == null {
  4270. $inner-border-color-pressed: $button-default-inner-border-color-pressed;
  4271. }
  4272. @if $inner-border-color-focus-over == null {
  4273. $inner-border-color-focus-over: $button-default-inner-border-color-focus-over;
  4274. }
  4275. @if $inner-border-color-focus-pressed == null {
  4276. $inner-border-color-focus-pressed: $button-default-inner-border-color-focus-pressed;
  4277. }
  4278. @if $inner-border-color-disabled == null {
  4279. $inner-border-color-disabled: $button-default-inner-border-color-disabled;
  4280. }
  4281. } @else {
  4282. @if $inner-border-color-over == null {
  4283. $inner-border-color-over: button-default-inner-border-color-over($background-color-over, $color-over);
  4284. }
  4285. @if $inner-border-color-focus == null {
  4286. $inner-border-color-focus: button-default-inner-border-color-focus($background-color-focus, $color-focus);
  4287. }
  4288. @if $inner-border-color-pressed == null {
  4289. $inner-border-color-pressed: button-default-inner-border-color-pressed($background-color-pressed, $color-pressed);
  4290. }
  4291. @if $inner-border-color-focus-over == null {
  4292. $inner-border-color-focus-over: button-default-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  4293. }
  4294. @if $inner-border-color-focus-pressed == null {
  4295. $inner-border-color-focus-pressed: button-default-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed);
  4296. }
  4297. @if $inner-border-color-disabled == null {
  4298. $inner-border-color-disabled: button-default-inner-border-color-disabled($background-color-disabled, $color-disabled);
  4299. }
  4300. }
  4301. @if $font-size == null {
  4302. $font-size: $button-small-font-size;
  4303. @if $font-size-over == null {
  4304. $font-size-over: $button-small-font-size-over;
  4305. }
  4306. @if $font-size-focus == null {
  4307. $font-size-focus: $button-small-font-size-focus;
  4308. }
  4309. @if $font-size-pressed == null {
  4310. $font-size-pressed: $button-small-font-size-pressed;
  4311. }
  4312. @if $font-size-focus-over == null {
  4313. $font-size-focus-over: $button-small-font-size-focus-over;
  4314. }
  4315. @if $font-size-focus-pressed == null {
  4316. $font-size-focus-pressed: $button-small-font-size-focus-pressed;
  4317. }
  4318. @if $font-size-disabled == null {
  4319. $font-size-disabled: $button-small-font-size-disabled;
  4320. }
  4321. } @else {
  4322. @if $font-size-over == null {
  4323. $font-size-over: $font-size;
  4324. }
  4325. @if $font-size-focus == null {
  4326. $font-size-focus: $font-size;
  4327. }
  4328. @if $font-size-pressed == null {
  4329. $font-size-pressed: $font-size;
  4330. }
  4331. @if $font-size-focus-over == null {
  4332. $font-size-focus-over: $font-size-over;
  4333. }
  4334. @if $font-size-focus-pressed == null {
  4335. $font-size-focus-pressed: $font-size-pressed;
  4336. }
  4337. @if $font-size-disabled == null {
  4338. $font-size-disabled: $font-size;
  4339. }
  4340. }
  4341. @if $font-weight == null {
  4342. $font-weight: $button-small-font-weight;
  4343. @if $font-weight-over == null {
  4344. $font-weight-over: $button-small-font-weight-over;
  4345. }
  4346. @if $font-weight-focus == null {
  4347. $font-weight-focus: $button-small-font-weight-focus;
  4348. }
  4349. @if $font-weight-pressed == null {
  4350. $font-weight-pressed: $button-small-font-weight-pressed;
  4351. }
  4352. @if $font-weight-focus-over == null {
  4353. $font-weight-focus-over: $button-small-font-weight-focus-over;
  4354. }
  4355. @if $font-weight-focus-pressed == null {
  4356. $font-weight-focus-pressed: $button-small-font-weight-focus-pressed;
  4357. }
  4358. @if $font-weight-disabled == null {
  4359. $font-weight-disabled: $button-small-font-weight-disabled;
  4360. }
  4361. } @else {
  4362. @if $font-weight-over == null {
  4363. $font-weight-over: $font-weight;
  4364. }
  4365. @if $font-weight-focus == null {
  4366. $font-weight-focus: $font-weight;
  4367. }
  4368. @if $font-weight-pressed == null {
  4369. $font-weight-pressed: $font-weight;
  4370. }
  4371. @if $font-weight-focus-over == null {
  4372. $font-weight-focus-over: $font-weight-over;
  4373. }
  4374. @if $font-weight-focus-pressed == null {
  4375. $font-weight-focus-pressed: $font-weight-pressed;
  4376. }
  4377. @if $font-weight-disabled == null {
  4378. $font-weight-disabled: $font-weight;
  4379. }
  4380. }
  4381. @if $font-family == null {
  4382. $font-family: $button-small-font-family;
  4383. @if $font-family-over == null {
  4384. $font-family-over: $button-small-font-family-over;
  4385. }
  4386. @if $font-family-focus == null {
  4387. $font-family-focus: $button-small-font-family-focus;
  4388. }
  4389. @if $font-family-pressed == null {
  4390. $font-family-pressed: $button-small-font-family-pressed;
  4391. }
  4392. @if $font-family-focus-over == null {
  4393. $font-family-focus-over: $button-small-font-family-focus-over;
  4394. }
  4395. @if $font-family-focus-pressed == null {
  4396. $font-family-focus-pressed: $button-small-font-family-focus-pressed;
  4397. }
  4398. @if $font-family-disabled == null {
  4399. $font-family-disabled: $button-small-font-family-disabled;
  4400. }
  4401. } @else {
  4402. @if $font-family-over == null {
  4403. $font-family-over: $font-family;
  4404. }
  4405. @if $font-family-focus == null {
  4406. $font-family-focus: $font-family;
  4407. }
  4408. @if $font-family-pressed == null {
  4409. $font-family-pressed: $font-family;
  4410. }
  4411. @if $font-family-focus-over == null {
  4412. $font-family-focus-over: $font-family-over;
  4413. }
  4414. @if $font-family-focus-pressed == null {
  4415. $font-family-focus-pressed: $font-family-pressed;
  4416. }
  4417. @if $font-family-disabled == null {
  4418. $font-family-disabled: $font-family;
  4419. }
  4420. }
  4421. @include extjs-button-ui(
  4422. $ui: '#{$ui}-small',
  4423. $border-radius: $border-radius,
  4424. $border-width: $border-width,
  4425. $border-color: $border-color,
  4426. $border-color-over: $border-color-over,
  4427. $border-color-focus: $border-color-focus,
  4428. $border-color-pressed: $border-color-pressed,
  4429. $border-color-focus-over: $border-color-focus-over,
  4430. $border-color-focus-pressed: $border-color-focus-pressed,
  4431. $border-color-disabled: $border-color-disabled,
  4432. $padding: $padding,
  4433. $text-padding: $text-padding,
  4434. $background-color: $background-color,
  4435. $background-color-over: $background-color-over,
  4436. $background-color-focus: $background-color-focus,
  4437. $background-color-pressed: $background-color-pressed,
  4438. $background-color-focus-over: $background-color-focus-over,
  4439. $background-color-focus-pressed: $background-color-focus-pressed,
  4440. $background-color-disabled: $background-color-disabled,
  4441. $background-gradient: $background-gradient,
  4442. $background-gradient-over: $background-gradient-over,
  4443. $background-gradient-focus: $background-gradient-focus,
  4444. $background-gradient-pressed: $background-gradient-pressed,
  4445. $background-gradient-focus-over: $background-gradient-focus-over,
  4446. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  4447. $background-gradient-disabled: $background-gradient-disabled,
  4448. $color: $color,
  4449. $color-over: $color-over,
  4450. $color-focus: $color-focus,
  4451. $color-pressed: $color-pressed,
  4452. $color-focus-over: $color-focus-over,
  4453. $color-focus-pressed: $color-focus-pressed,
  4454. $color-disabled: $color-disabled,
  4455. $inner-border-width: $inner-border-width,
  4456. $inner-border-width-over: $inner-border-width-over,
  4457. $inner-border-width-focus: $inner-border-width-focus,
  4458. $inner-border-width-pressed: $inner-border-width-pressed,
  4459. $inner-border-width-focus-over: $inner-border-width-focus-over,
  4460. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  4461. $inner-border-width-disabled: $inner-border-width-disabled,
  4462. $inner-border-color: $inner-border-color,
  4463. $inner-border-color-over: $inner-border-color-over,
  4464. $inner-border-color-focus: $inner-border-color-focus,
  4465. $inner-border-color-pressed: $inner-border-color-pressed,
  4466. $inner-border-color-focus-over: $inner-border-color-focus-over,
  4467. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  4468. $inner-border-color-disabled: $inner-border-color-disabled,
  4469. $body-outline-width-focus: $body-outline-width-focus,
  4470. $body-outline-style-focus: $body-outline-style-focus,
  4471. $body-outline-color-focus: $body-outline-color-focus,
  4472. $font-size: $font-size,
  4473. $font-size-over: $font-size-over,
  4474. $font-size-focus: $font-size-focus,
  4475. $font-size-pressed: $font-size-pressed,
  4476. $font-size-focus-over: $font-size-focus-over,
  4477. $font-size-focus-pressed: $font-size-focus-pressed,
  4478. $font-size-disabled: $font-size-disabled,
  4479. $font-weight: $font-weight,
  4480. $font-weight-over: $font-weight-over,
  4481. $font-weight-focus: $font-weight-focus,
  4482. $font-weight-pressed: $font-weight-pressed,
  4483. $font-weight-focus-over: $font-weight-focus-over,
  4484. $font-weight-focus-pressed: $font-weight-focus-pressed,
  4485. $font-weight-disabled: $font-weight-disabled,
  4486. $font-family: $font-family,
  4487. $font-family-over: $font-family-over,
  4488. $font-family-focus: $font-family-focus,
  4489. $font-family-pressed: $font-family-pressed,
  4490. $font-family-focus-over: $font-family-focus-over,
  4491. $font-family-focus-pressed: $font-family-focus-pressed,
  4492. $font-family-disabled: $font-family-disabled,
  4493. $line-height: $line-height,
  4494. $icon-size: $icon-size,
  4495. $glyph-font-size: $glyph-font-size,
  4496. $icon-spacing: $icon-spacing,
  4497. $glyph-color: $glyph-color,
  4498. $glyph-opacity: $glyph-opacity,
  4499. $arrow-width: $arrow-width,
  4500. $arrow-height: $arrow-height,
  4501. $arrow-glyph: $arrow-glyph,
  4502. $arrow-glyph-color: $arrow-glyph-color,
  4503. $split-width: $split-width,
  4504. $split-height: $split-height,
  4505. $split-line-width: $split-line-width,
  4506. $split-line-color: $split-line-color,
  4507. $include-ui-menu-arrows: $include-ui-menu-arrows,
  4508. $include-ui-split-arrows: $include-ui-split-arrows,
  4509. $include-split-noline-arrows: $include-split-noline-arrows,
  4510. $include-split-over-arrows: $include-split-over-arrows,
  4511. $opacity-disabled: $opacity-disabled,
  4512. $inner-opacity-disabled: $inner-opacity-disabled
  4513. );
  4514. }
  4515. /**
  4516. * Creates a visual theme for a {@link #scale small} toolbar Button.
  4517. *
  4518. * @param {string} $ui
  4519. * The name of the UI being created. Can not included spaces or special punctuation
  4520. * (used in CSS class names).
  4521. *
  4522. * @param {number} [$border-radius=$button-small-border-radius]
  4523. * The border-radius of the button
  4524. *
  4525. * @param {number} [$border-width=$button-small-border-width]
  4526. * The border-width of the button
  4527. *
  4528. * @param {color} [$border-color=$button-toolbar-border-color]
  4529. * The border-color of the button
  4530. *
  4531. * @param {color} [$border-color-over=$button-toolbar-border-color-over]
  4532. * The border-color of the button when the cursor is over the button
  4533. *
  4534. * @param {color} [$border-color-focus=$button-toolbar-border-color-focus]
  4535. * The border-color of the button when focused
  4536. *
  4537. * @param {color} [$border-color-pressed=$button-toolbar-border-color-pressed]
  4538. * The border-color of the button when pressed
  4539. *
  4540. * @param {color} [$border-color-focus-over=$button-toolbar-border-color-focus-over]
  4541. * The border-color of the button when the button is focused and the cursor is over the
  4542. * button
  4543. *
  4544. * @param {color} [$border-color-focus-pressed=$button-toolbar-border-color-focus-pressed]
  4545. * The border-color of the button when focused and pressed
  4546. *
  4547. * @param {color} [$border-color-disabled=$button-toolbar-border-color-disabled]
  4548. * The border-color of the button when disabled
  4549. *
  4550. * @param {number} [$padding=$button-small-padding]
  4551. * The amount of padding inside the border of the button on all sides
  4552. *
  4553. * @param {number} [$text-padding=$button-small-text-padding]
  4554. * The amount of horizontal space to add to the left and right of the button text
  4555. *
  4556. * @param {color} [$background-color=$button-toolbar-background-color]
  4557. * The background-color of the button
  4558. *
  4559. * @param {color} [$background-color-over=$button-toolbar-background-color-over]
  4560. * The background-color of the button when the cursor is over the button
  4561. *
  4562. * @param {color} [$background-color-focus=$button-toolbar-background-color-focus]
  4563. * The background-color of the button when focused
  4564. *
  4565. * @param {color} [$background-color-pressed=$button-toolbar-background-color-pressed]
  4566. * The background-color of the button when pressed
  4567. *
  4568. * @param {color} [$background-color-focus-over=$button-toolbar-background-color-focus-over]
  4569. * The background-color of the button when the button is focused and the cursor is over
  4570. * the button
  4571. *
  4572. * @param {color} [$background-color-focus-pressed=$button-toolbar-background-color-focus-pressed]
  4573. * The background-color of the button when focused and pressed
  4574. *
  4575. * @param {color} [$background-color-disabled=$button-toolbar-background-color-disabled]
  4576. * The background-color of the button when disabled
  4577. *
  4578. * @param {string/list} [$background-gradient=$button-toolbar-background-gradient]
  4579. * The background-gradient for the button. Can be either the name of a predefined gradient
  4580. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  4581. *
  4582. * @param {string/list} [$background-gradient-over=$button-toolbar-background-gradient-over]
  4583. * The background-gradient to use when the cursor is over the button. Can be either the
  4584. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  4585. * for {@link Global_CSS#background-gradient}.
  4586. *
  4587. * @param {string/list} [$background-gradient-focus=$button-toolbar-background-gradient-focus]
  4588. * The background-gradient to use when the the button is focused. Can be either the name
  4589. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  4590. * {@link Global_CSS#background-gradient}.
  4591. *
  4592. * @param {string/list} [$background-gradient-pressed=$button-toolbar-background-gradient-pressed]
  4593. * The background-gradient to use when the the button is pressed. Can be either the name
  4594. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  4595. * {@link Global_CSS#background-gradient}.
  4596. *
  4597. * @param {string} [$background-gradient-focus-over=$button-toolbar-background-gradient-focus-over]
  4598. * The background-gradient to use when the the button is focused and the cursor is over
  4599. * the button. Can be either the name of a predefined gradient or a list of color stops.
  4600. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  4601. *
  4602. * @param {string} [$background-gradient-focus-pressed=$button-toolbar-background-gradient-focus-pressed]
  4603. * The background-gradient to use when the the button is focused and pressed. Can be
  4604. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  4605. * parameter for {@link Global_CSS#background-gradient}.
  4606. *
  4607. * @param {string/list} [$background-gradient-disabled=$button-toolbar-background-gradient-disabled]
  4608. * The background-gradient to use when the the button is disabled. Can be either the name
  4609. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  4610. * {@link Global_CSS#background-gradient}.
  4611. *
  4612. * @param {color} [$color=$button-toolbar-color]
  4613. * The text color of the button
  4614. *
  4615. * @param {color} [$color-over=$button-toolbar-color-over]
  4616. * The text color of the button when the cursor is over the button
  4617. *
  4618. * @param {color} [$color-focus=$button-toolbar-color-focus]
  4619. * The text color of the button when the button is focused
  4620. *
  4621. * @param {color} [$color-pressed=$button-toolbar-color-pressed]
  4622. * The text color of the button when the button is pressed
  4623. *
  4624. * @param {color} [$color-focus-over=$button-toolbar-color-focus-over]
  4625. * The text color of the button when the button is focused and the cursor is over the button
  4626. *
  4627. * @param {color} [$color-focus-pressed=$button-toolbar-color-focus-pressed]
  4628. * The text color of the button when the button is focused and pressed
  4629. *
  4630. * @param {color} [$color-disabled=$button-toolbar-color-disabled]
  4631. * The text color of the button when the button is disabled
  4632. *
  4633. * @param {number/list} [$inner-border-width=$button-toolbar-inner-border-width]
  4634. * The inner border-width of the button
  4635. *
  4636. * @param {number/list} [$inner-border-width-over=$button-toolbar-inner-border-width-over]
  4637. * The inner border-width of the button when the cursor is over the button
  4638. *
  4639. * @param {number/list} [$inner-border-width-focus=$button-toolbar-inner-border-width-focus]
  4640. * The inner border-width of the button when focused
  4641. *
  4642. * @param {number/list} [$inner-border-width-pressed=$button-toolbar-inner-border-width-pressed]
  4643. * The inner border-width of the button when pressed
  4644. *
  4645. * @param {number/list} [$inner-border-width-focus-over=$button-toolbar-inner-border-width-focus-over]
  4646. * The inner border-width of the button when the button is focused and the cursor is over
  4647. * the button
  4648. *
  4649. * @param {number/list} [$inner-border-width-focus-pressed=$button-toolbar-inner-border-width-focus-pressed]
  4650. * The inner border-width of the button when focused and pressed
  4651. *
  4652. * @param {number/list} [$inner-border-width-disabled=$button-toolbar-inner-border-width-disabled]
  4653. * The inner border-width of the button when disabled
  4654. *
  4655. * @param {color} [$inner-border-color=$button-toolbar-inner-border-color]
  4656. * The inner border-color of the button
  4657. *
  4658. * @param {color} [$inner-border-color-over=$button-toolbar-inner-border-color-over]
  4659. * The inner border-color of the button when the cursor is over the button
  4660. *
  4661. * @param {color} [$inner-border-color-focus=$button-toolbar-inner-border-color-focus]
  4662. * The inner border-color of the button when focused
  4663. *
  4664. * @param {color} [$inner-border-color-pressed=$button-toolbar-inner-border-color-pressed]
  4665. * The inner border-color of the button when pressed
  4666. *
  4667. * @param {color} [$inner-border-color-focus-over=$button-toolbar-inner-border-color-focus-over]
  4668. * The inner border-color of the button when the button is focused and the cursor is over
  4669. * the button
  4670. *
  4671. * @param {color} [$inner-border-color-focus-pressed=$button-toolbar-inner-border-color-focus-pressed]
  4672. * The inner border-color of the button when focused and pressed
  4673. *
  4674. * @param {color} [$inner-border-color-disabled=$button-toolbar-inner-border-color-disabled]
  4675. * The inner border-color of the button when disabled
  4676. *
  4677. * @param {number} [$body-outline-width-focus=$button-toolbar-body-outline-width-focus]
  4678. * The body outline width of the button when focused
  4679. *
  4680. * @param {number} [$body-outline-style-focus=$button-toolbar-body-outline-style-focus]
  4681. * The body outline-style of the button when focused
  4682. *
  4683. * @param {number} [$body-outline-color-focus=$button-toolbar-body-outline-color-focus]
  4684. * The body outline color of the button when focused
  4685. *
  4686. * @param {number} [$font-size=$button-small-font-size]
  4687. * The font-size of the button
  4688. *
  4689. * @param {number} [$font-size-over=$button-small-font-size-over]
  4690. * The font-size of the button when the cursor is over the button
  4691. *
  4692. * @param {number} [$font-size-focus=$button-small-font-size-focus]
  4693. * The font-size of the button when the button is focused
  4694. *
  4695. * @param {number} [$font-size-pressed=$button-small-font-size-pressed]
  4696. * The font-size of the button when the button is pressed
  4697. *
  4698. * @param {number} [$font-size-focus-over=$button-small-font-size-focus-over]
  4699. * The font-size of the button when the button is focused and the cursor is over the
  4700. * button
  4701. *
  4702. * @param {number} [$font-size-focus-pressed=$button-small-font-size-focus-pressed]
  4703. * The font-size of the button when the button is focused and pressed
  4704. *
  4705. * @param {number} [$font-size-disabled=$button-small-font-size-disabled]
  4706. * The font-size of the button when the button is disabled
  4707. *
  4708. * @param {string} [$font-weight=$button-small-font-weight]
  4709. * The font-weight of the button
  4710. *
  4711. * @param {string} [$font-weight-over=$button-small-font-weight-over]
  4712. * The font-weight of the button when the cursor is over the button
  4713. *
  4714. * @param {string} [$font-weight-focus=$button-small-font-weight-focus]
  4715. * The font-weight of the button when the button is focused
  4716. *
  4717. * @param {string} [$font-weight-pressed=$button-small-font-weight-pressed]
  4718. * The font-weight of the button when the button is pressed
  4719. *
  4720. * @param {string} [$font-weight-focus-over=$button-small-font-weight-focus-over]
  4721. * The font-weight of the button when the button is focused and the cursor is over the
  4722. * button
  4723. *
  4724. * @param {string} [$font-weight-focus-pressed=$button-small-font-weight-focus-pressed]
  4725. * The font-weight of the button when the button is focused and pressed
  4726. *
  4727. * @param {string} [$font-weight-disabled=$button-small-font-weight-disabled]
  4728. * The font-weight of the button when the button is disabled
  4729. *
  4730. * @param {string} [$font-family=$button-small-font-family]
  4731. * The font-family of the button
  4732. *
  4733. * @param {string} [$font-family-over=$button-small-font-family-over]
  4734. * The font-family of the button when the cursor is over the button
  4735. *
  4736. * @param {string} [$font-family-focus=$button-small-font-family-focus]
  4737. * The font-family of the button when the button is focused
  4738. *
  4739. * @param {string} [$font-family-pressed=$button-small-font-family-pressed]
  4740. * The font-family of the button when the button is pressed
  4741. *
  4742. * @param {string} [$font-family-focus-over=$button-small-font-family-focus-over]
  4743. * The font-family of the button when the button is focused and the cursor is over the
  4744. * button
  4745. *
  4746. * @param {string} [$font-family-focus-pressed=$button-small-font-family-focus-pressed]
  4747. * The font-family of the button when the button is focused and pressed
  4748. *
  4749. * @param {string} [$font-family-disabled=$button-small-font-family-disabled]
  4750. * The font-family of the button when the button is disabled
  4751. *
  4752. * @param {number} [$line-height=$button-small-line-height]
  4753. * The line-height of the button text
  4754. *
  4755. * @param {number} [$icon-size=$button-small-icon-size]
  4756. * The size of the button icon
  4757. *
  4758. * @param {number} [$glyph-font-size=$button-small-glyph-font-size]
  4759. * The font-size for the button glyph
  4760. *
  4761. * @param {number} [$icon-spacing=$button-small-icon-spacing]
  4762. * The space between the button's icon and text
  4763. *
  4764. * @param {color} [$glyph-color=$button-toolbar-glyph-color]
  4765. * The color of the button's {@link #glyph} icon
  4766. *
  4767. * @param {number} [$glyph-opacity=$button-toolbar-glyph-opacity]
  4768. * The opacity of the button's {@link #glyph} icon
  4769. *
  4770. * @param {number} [$arrow-width=$button-small-arrow-width]
  4771. * The width of the button's {@link #cfg-menu} arrow
  4772. *
  4773. * @param {number} [$arrow-height=$button-small-arrow-height]
  4774. * The height of the button's {@link #cfg-menu} arrow
  4775. *
  4776. * @param {string/list} [$arrow-glyph=$button-small-arrow-glyph]
  4777. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  4778. *
  4779. * @param {string/list} [$arrow-glyph-color=$button-toolbar-arrow-glyph-color]
  4780. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  4781. *
  4782. * @param {number} [$split-width=$button-small-split-width]
  4783. * The width of a {@link Ext.button.Split Split Button}'s arrow
  4784. *
  4785. * @param {number} [$split-height=$button-small-split-height]
  4786. * The height of a {@link Ext.button.Split Split Button}'s arrow
  4787. *
  4788. * @param {number} [$split-line-width=$button-small-split-line-width]
  4789. * The default width for a {@link Ext.button.Split Split Button}'s line.
  4790. * Themes that include the line in the arrow background image should set this to 0
  4791. *
  4792. * @param {color} [$split-line-color=$button-toolbar-split-line-color]
  4793. * The color for a {@link Ext.button.Split Split Button}'s line.
  4794. * Only applicable when `$split-line-width` is greater than 0.
  4795. *
  4796. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  4797. * True to include the UI name in the file name of the {@link #cfg-menu}
  4798. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  4799. *
  4800. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  4801. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  4802. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  4803. *
  4804. * @param {boolean} [$include-split-noline-arrows=$button-toolbar-include-split-noline-arrows]
  4805. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  4806. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  4807. * state.
  4808. *
  4809. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  4810. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  4811. * is over the button. The over icon file name will have a "-o" suffix
  4812. *
  4813. * @param {number} [$opacity-disabled=$button-toolbar-opacity-disabled]
  4814. * The opacity of the button when it is disabled
  4815. *
  4816. * @param {number} [$inner-opacity-disabled=$button-toolbar-inner-opacity-disabled]
  4817. * The opacity of the button's text and icon elements when when the button is disabled
  4818. *
  4819. * @member Ext.button.Button
  4820. */
  4821. @mixin extjs-button-toolbar-small-ui(
  4822. $ui,
  4823. $border-radius: $button-small-border-radius,
  4824. $border-width: $button-small-border-width,
  4825. $border-color: null,
  4826. $border-color-over: null,
  4827. $border-color-focus: null,
  4828. $border-color-pressed: null,
  4829. $border-color-focus-over: null,
  4830. $border-color-focus-pressed: null,
  4831. $border-color-disabled: null,
  4832. $padding: $button-small-padding,
  4833. $text-padding: $button-small-text-padding,
  4834. $background-color: null,
  4835. $background-color-over: null,
  4836. $background-color-focus: null,
  4837. $background-color-pressed: null,
  4838. $background-color-focus-over: null,
  4839. $background-color-focus-pressed: null,
  4840. $background-color-disabled: null,
  4841. $background-gradient: $button-toolbar-background-gradient,
  4842. $background-gradient-over: $button-toolbar-background-gradient-over,
  4843. $background-gradient-focus: $button-toolbar-background-gradient-focus,
  4844. $background-gradient-pressed: $button-toolbar-background-gradient-pressed,
  4845. $background-gradient-focus-over: $button-toolbar-background-gradient-focus-over,
  4846. $background-gradient-focus-pressed: $button-toolbar-background-gradient-focus-pressed,
  4847. $background-gradient-disabled: $button-toolbar-background-gradient-disabled,
  4848. $color: null,
  4849. $color-over: null,
  4850. $color-focus: null,
  4851. $color-pressed: null,
  4852. $color-focus-over: null,
  4853. $color-focus-pressed: null,
  4854. $color-disabled: null,
  4855. $inner-border-width: null,
  4856. $inner-border-width-over: null,
  4857. $inner-border-width-focus: null,
  4858. $inner-border-width-pressed: null,
  4859. $inner-border-width-focus-over: null,
  4860. $inner-border-width-focus-pressed: null,
  4861. $inner-border-width-disabled: null,
  4862. $inner-border-color: null,
  4863. $inner-border-color-over: null,
  4864. $inner-border-color-focus: null,
  4865. $inner-border-color-pressed: null,
  4866. $inner-border-color-focus-over: null,
  4867. $inner-border-color-focus-pressed: null,
  4868. $inner-border-color-disabled: null,
  4869. $body-outline-width-focus: $button-toolbar-body-outline-width-focus,
  4870. $body-outline-style-focus: $button-toolbar-body-outline-style-focus,
  4871. $body-outline-color-focus: $button-toolbar-body-outline-color-focus,
  4872. $font-size: null,
  4873. $font-size-over: null,
  4874. $font-size-focus: null,
  4875. $font-size-pressed: null,
  4876. $font-size-focus-over: null,
  4877. $font-size-focus-pressed: null,
  4878. $font-size-disabled: null,
  4879. $font-weight: null,
  4880. $font-weight-over: null,
  4881. $font-weight-focus: null,
  4882. $font-weight-pressed: null,
  4883. $font-weight-focus-over: null,
  4884. $font-weight-focus-pressed: null,
  4885. $font-weight-disabled: null,
  4886. $font-family: null,
  4887. $font-family-over: null,
  4888. $font-family-focus: null,
  4889. $font-family-pressed: null,
  4890. $font-family-focus-over: null,
  4891. $font-family-focus-pressed: null,
  4892. $font-family-disabled: null,
  4893. $line-height: $button-small-line-height,
  4894. $icon-size: $button-small-icon-size,
  4895. $glyph-font-size: $button-small-glyph-font-size,
  4896. $icon-spacing: $button-small-icon-spacing,
  4897. $glyph-color: $button-toolbar-glyph-color,
  4898. $glyph-opacity: $button-toolbar-glyph-opacity,
  4899. $arrow-width: $button-small-arrow-width,
  4900. $arrow-height: $button-small-arrow-height,
  4901. $arrow-glyph: $button-small-arrow-glyph,
  4902. $arrow-glyph-color: $button-toolbar-arrow-glyph-color,
  4903. $split-width: $button-small-split-width,
  4904. $split-height: $button-small-split-height,
  4905. $split-line-width: $button-small-split-line-width,
  4906. $split-line-color: $button-toolbar-split-line-color,
  4907. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  4908. $include-ui-split-arrows: $button-include-ui-split-arrows,
  4909. $include-split-noline-arrows: $button-toolbar-include-split-noline-arrows,
  4910. $include-split-over-arrows: $button-include-split-over-arrows,
  4911. $opacity-disabled: $button-toolbar-opacity-disabled,
  4912. $inner-opacity-disabled: $button-toolbar-inner-opacity-disabled
  4913. ) {
  4914. @if $border-color == null {
  4915. $border-color: $button-toolbar-border-color;
  4916. @if $border-color-over == null {
  4917. $border-color-over: $button-toolbar-border-color-over;
  4918. }
  4919. @if $border-color-focus == null {
  4920. $border-color-focus: $button-toolbar-border-color-focus;
  4921. }
  4922. @if $border-color-pressed == null {
  4923. $border-color-pressed: $button-toolbar-border-color-pressed;
  4924. }
  4925. @if $border-color-focus-over == null {
  4926. $border-color-focus-over: $button-toolbar-border-color-focus-over;
  4927. }
  4928. @if $border-color-focus-pressed == null {
  4929. $border-color-focus-pressed: $button-toolbar-border-color-focus-pressed;
  4930. }
  4931. @if $border-color-disabled == null {
  4932. $border-color-disabled: $button-toolbar-border-color-disabled;
  4933. }
  4934. } @else {
  4935. @if $border-color-over == null {
  4936. $border-color-over: button-toolbar-border-color-over($border-color);
  4937. }
  4938. @if $border-color-focus == null {
  4939. $border-color-focus: button-toolbar-border-color-focus($border-color);
  4940. }
  4941. @if $border-color-pressed == null {
  4942. $border-color-pressed: button-toolbar-border-color-pressed($border-color);
  4943. }
  4944. @if $border-color-focus-over == null {
  4945. $border-color-focus-over: $border-color-over;
  4946. }
  4947. @if $border-color-focus-pressed == null {
  4948. $border-color-focus-pressed: $border-color-pressed;
  4949. }
  4950. @if $border-color-disabled == null {
  4951. $border-color-disabled: button-toolbar-border-color-disabled($border-color);
  4952. }
  4953. }
  4954. @if $background-color == null {
  4955. $background-color: $button-toolbar-background-color;
  4956. @if $background-color-over == null {
  4957. $background-color-over: $button-toolbar-background-color-over;
  4958. }
  4959. @if $background-color-focus == null {
  4960. $background-color-focus: $button-toolbar-background-color-focus;
  4961. }
  4962. @if $background-color-pressed == null {
  4963. $background-color-pressed: $button-toolbar-background-color-pressed;
  4964. }
  4965. @if $background-color-focus-over == null {
  4966. $background-color-focus-over: $button-toolbar-background-color-focus-over;
  4967. }
  4968. @if $background-color-focus-pressed == null {
  4969. $background-color-focus-pressed: $button-toolbar-background-color-focus-pressed;
  4970. }
  4971. @if $background-color-disabled == null {
  4972. $background-color-disabled: $button-toolbar-background-color-disabled;
  4973. }
  4974. } @else {
  4975. @if $background-color-over == null {
  4976. $background-color-over: button-toolbar-background-color-over($background-color);
  4977. }
  4978. @if $background-color-focus == null {
  4979. $background-color-focus: button-toolbar-background-color-focus($background-color);
  4980. }
  4981. @if $background-color-pressed == null {
  4982. $background-color-pressed: button-toolbar-background-color-pressed($background-color);
  4983. }
  4984. @if $background-color-focus-over == null {
  4985. $background-color-focus-over: $background-color-over;
  4986. }
  4987. @if $background-color-focus-pressed == null {
  4988. $background-color-focus-pressed: $background-color-pressed;
  4989. }
  4990. @if $background-color-disabled == null {
  4991. $background-color-disabled: button-toolbar-background-color-disabled($background-color);
  4992. }
  4993. }
  4994. @if $color == null {
  4995. $color: $button-toolbar-color;
  4996. @if $color-over == null {
  4997. $color-over: $button-toolbar-color-over;
  4998. }
  4999. @if $color-focus == null {
  5000. $color-focus: $button-toolbar-color-focus;
  5001. }
  5002. @if $color-pressed == null {
  5003. $color-pressed: $button-toolbar-color-pressed;
  5004. }
  5005. @if $color-focus-over == null {
  5006. $color-focus-over: $button-toolbar-color-focus-over;
  5007. }
  5008. @if $color-focus-pressed == null {
  5009. $color-focus-pressed: $button-toolbar-color-focus-pressed;
  5010. }
  5011. @if $color-disabled == null {
  5012. $color-disabled: $button-toolbar-color-disabled;
  5013. }
  5014. } @else {
  5015. @if $color-over == null {
  5016. $color-over: button-toolbar-color-over($color);
  5017. }
  5018. @if $color-focus == null {
  5019. $color-focus: button-toolbar-color-focus($color);
  5020. }
  5021. @if $color-pressed == null {
  5022. $color-pressed: button-toolbar-color-pressed($color);
  5023. }
  5024. @if $color-focus-over == null {
  5025. $color-focus-over: $color-over;
  5026. }
  5027. @if $color-focus-pressed == null {
  5028. $color-focus-pressed: $color-pressed;
  5029. }
  5030. @if $color-disabled == null {
  5031. $color-disabled: button-toolbar-color-disabled($color);
  5032. }
  5033. }
  5034. @if $inner-border-width == null {
  5035. $inner-border-width: $button-toolbar-inner-border-width;
  5036. @if $inner-border-width-over == null {
  5037. $inner-border-width-over: $button-toolbar-inner-border-width-over;
  5038. }
  5039. @if $inner-border-width-focus == null {
  5040. $inner-border-width-focus: $button-toolbar-inner-border-width-focus;
  5041. }
  5042. @if $inner-border-width-pressed == null {
  5043. $inner-border-width-pressed: $button-toolbar-inner-border-width-pressed;
  5044. }
  5045. @if $inner-border-width-focus-over == null {
  5046. $inner-border-width-focus-over: $button-toolbar-inner-border-width-focus-over;
  5047. }
  5048. @if $inner-border-width-focus-pressed == null {
  5049. $inner-border-width-focus-pressed: $button-toolbar-inner-border-width-focus-pressed;
  5050. }
  5051. @if $inner-border-width-disabled == null {
  5052. $inner-border-width-disabled: $button-toolbar-inner-border-width-disabled;
  5053. }
  5054. } @else {
  5055. @if $inner-border-width-over == null {
  5056. $inner-border-width-over: $inner-border-width;
  5057. }
  5058. @if $inner-border-width-focus == null {
  5059. $inner-border-width-focus: $inner-border-width;
  5060. }
  5061. @if $inner-border-width-pressed == null {
  5062. $inner-border-width-pressed: $inner-border-width;
  5063. }
  5064. @if $inner-border-width-focus-over == null {
  5065. $inner-border-width-focus-over: $inner-border-width-over;
  5066. }
  5067. @if $inner-border-width-focus-pressed == null {
  5068. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  5069. }
  5070. @if $inner-border-width-disabled == null {
  5071. $inner-border-width-disabled: $inner-border-width;
  5072. }
  5073. }
  5074. @if $inner-border-color == null {
  5075. $inner-border-color: $button-toolbar-inner-border-color;
  5076. @if $inner-border-color-over == null {
  5077. $inner-border-color-over: $button-toolbar-inner-border-color-over;
  5078. }
  5079. @if $inner-border-color-focus == null {
  5080. $inner-border-color-focus: $button-toolbar-inner-border-color-focus;
  5081. }
  5082. @if $inner-border-color-pressed == null {
  5083. $inner-border-color-pressed: $button-toolbar-inner-border-color-pressed;
  5084. }
  5085. @if $inner-border-color-focus-over == null {
  5086. $inner-border-color-focus-over: $button-toolbar-inner-border-color-focus-over;
  5087. }
  5088. @if $inner-border-color-focus-pressed == null {
  5089. $inner-border-color-focus-pressed: $button-toolbar-inner-border-color-focus-pressed;
  5090. }
  5091. @if $inner-border-color-disabled == null {
  5092. $inner-border-color-disabled: $button-toolbar-inner-border-color-disabled;
  5093. }
  5094. } @else {
  5095. @if $inner-border-color-over == null {
  5096. $inner-border-color-over: button-toolbar-inner-border-color-over($background-color-over, $color-over);
  5097. }
  5098. @if $inner-border-color-focus == null {
  5099. $inner-border-color-focus: button-toolbar-inner-border-color-focus($background-color-focus, $color-focus);
  5100. }
  5101. @if $inner-border-color-pressed == null {
  5102. $inner-border-color-pressed: button-toolbar-inner-border-color-pressed($background-color-pressed, $color-pressed);
  5103. }
  5104. @if $inner-border-color-focus-over == null {
  5105. $inner-border-color-focus-over: button-toolbar-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  5106. }
  5107. @if $inner-border-color-focus-pressed == null {
  5108. $inner-border-color-focus-pressed: button-toolbar-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed)
  5109. }
  5110. @if $inner-border-color-disabled == null {
  5111. $inner-border-color-disabled: button-toolbar-inner-border-color-disabled($background-color-disabled, $color-disabled);
  5112. }
  5113. }
  5114. @if $font-size == null {
  5115. $font-size: $button-small-font-size;
  5116. @if $font-size-over == null {
  5117. $font-size-over: $button-small-font-size-over;
  5118. }
  5119. @if $font-size-focus == null {
  5120. $font-size-focus: $button-small-font-size-focus;
  5121. }
  5122. @if $font-size-pressed == null {
  5123. $font-size-pressed: $button-small-font-size-pressed;
  5124. }
  5125. @if $font-size-focus-over == null {
  5126. $font-size-focus-over: $button-small-font-size-focus-over;
  5127. }
  5128. @if $font-size-focus-pressed == null {
  5129. $font-size-focus-pressed: $button-small-font-size-focus-pressed;
  5130. }
  5131. @if $font-size-disabled == null {
  5132. $font-size-disabled: $button-small-font-size-disabled;
  5133. }
  5134. } @else {
  5135. @if $font-size-over == null {
  5136. $font-size-over: $font-size;
  5137. }
  5138. @if $font-size-focus == null {
  5139. $font-size-focus: $font-size;
  5140. }
  5141. @if $font-size-pressed == null {
  5142. $font-size-pressed: $font-size;
  5143. }
  5144. @if $font-size-focus-over == null {
  5145. $font-size-focus-over: $font-size-over;
  5146. }
  5147. @if $font-size-focus-pressed == null {
  5148. $font-size-focus-pressed: $font-size-pressed;
  5149. }
  5150. @if $font-size-disabled == null {
  5151. $font-size-disabled: $font-size;
  5152. }
  5153. }
  5154. @if $font-weight == null {
  5155. $font-weight: $button-small-font-weight;
  5156. @if $font-weight-over == null {
  5157. $font-weight-over: $button-small-font-weight-over;
  5158. }
  5159. @if $font-weight-focus == null {
  5160. $font-weight-focus: $button-small-font-weight-focus;
  5161. }
  5162. @if $font-weight-pressed == null {
  5163. $font-weight-pressed: $button-small-font-weight-pressed;
  5164. }
  5165. @if $font-weight-focus-over == null {
  5166. $font-weight-focus-over: $button-small-font-weight-focus-over;
  5167. }
  5168. @if $font-weight-focus-pressed == null {
  5169. $font-weight-focus-pressed: $button-small-font-weight-focus-pressed;
  5170. }
  5171. @if $font-weight-disabled == null {
  5172. $font-weight-disabled: $button-small-font-weight-disabled;
  5173. }
  5174. } @else {
  5175. @if $font-weight-over == null {
  5176. $font-weight-over: $font-weight;
  5177. }
  5178. @if $font-weight-focus == null {
  5179. $font-weight-focus: $font-weight;
  5180. }
  5181. @if $font-weight-pressed == null {
  5182. $font-weight-pressed: $font-weight;
  5183. }
  5184. @if $font-weight-focus-over == null {
  5185. $font-weight-focus-over: $font-weight-over;
  5186. }
  5187. @if $font-weight-focus-pressed == null {
  5188. $font-weight-focus-pressed: $font-weight-pressed;
  5189. }
  5190. @if $font-weight-disabled == null {
  5191. $font-weight-disabled: $font-weight;
  5192. }
  5193. }
  5194. @if $font-family == null {
  5195. $font-family: $button-small-font-family;
  5196. @if $font-family-over == null {
  5197. $font-family-over: $button-small-font-family-over;
  5198. }
  5199. @if $font-family-focus == null {
  5200. $font-family-focus: $button-small-font-family-focus;
  5201. }
  5202. @if $font-family-pressed == null {
  5203. $font-family-pressed: $button-small-font-family-pressed;
  5204. }
  5205. @if $font-family-focus-over == null {
  5206. $font-family-focus-over: $button-small-font-family-focus-over;
  5207. }
  5208. @if $font-family-focus-pressed == null {
  5209. $font-family-focus-pressed: $button-small-font-family-focus-pressed;
  5210. }
  5211. @if $font-family-disabled == null {
  5212. $font-family-disabled: $button-small-font-family-disabled;
  5213. }
  5214. } @else {
  5215. @if $font-family-over == null {
  5216. $font-family-over: $font-family;
  5217. }
  5218. @if $font-family-focus == null {
  5219. $font-family-focus: $font-family;
  5220. }
  5221. @if $font-family-pressed == null {
  5222. $font-family-pressed: $font-family;
  5223. }
  5224. @if $font-family-focus-over == null {
  5225. $font-family-focus-over: $font-family-over;
  5226. }
  5227. @if $font-family-focus-pressed == null {
  5228. $font-family-focus-pressed: $font-family-pressed;
  5229. }
  5230. @if $font-family-disabled == null {
  5231. $font-family-disabled: $font-family;
  5232. }
  5233. }
  5234. @include extjs-button-ui(
  5235. $ui: '#{$ui}-toolbar-small',
  5236. $border-radius: $border-radius,
  5237. $border-width: $border-width,
  5238. $border-color: $border-color,
  5239. $border-color-over: $border-color-over,
  5240. $border-color-focus: $border-color-focus,
  5241. $border-color-pressed: $border-color-pressed,
  5242. $border-color-focus-over: $border-color-focus-over,
  5243. $border-color-focus-pressed: $border-color-focus-pressed,
  5244. $border-color-disabled: $border-color-disabled,
  5245. $padding: $padding,
  5246. $text-padding: $text-padding,
  5247. $background-color: $background-color,
  5248. $background-color-over: $background-color-over,
  5249. $background-color-focus: $background-color-focus,
  5250. $background-color-pressed: $background-color-pressed,
  5251. $background-color-focus-over: $background-color-focus-over,
  5252. $background-color-focus-pressed: $background-color-focus-pressed,
  5253. $background-color-disabled: $background-color-disabled,
  5254. $background-gradient: $background-gradient,
  5255. $background-gradient-over: $background-gradient-over,
  5256. $background-gradient-focus: $background-gradient-focus,
  5257. $background-gradient-pressed: $background-gradient-pressed,
  5258. $background-gradient-focus-over: $background-gradient-focus-over,
  5259. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  5260. $background-gradient-disabled: $background-gradient-disabled,
  5261. $color: $color,
  5262. $color-over: $color-over,
  5263. $color-focus: $color-focus,
  5264. $color-pressed: $color-pressed,
  5265. $color-focus-over: $color-focus-over,
  5266. $color-focus-pressed: $color-focus-pressed,
  5267. $color-disabled: $color-disabled,
  5268. $inner-border-width: $inner-border-width,
  5269. $inner-border-width-over: $inner-border-width-over,
  5270. $inner-border-width-focus: $inner-border-width-focus,
  5271. $inner-border-width-pressed: $inner-border-width-pressed,
  5272. $inner-border-width-focus-over: $inner-border-width-focus-over,
  5273. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  5274. $inner-border-width-disabled: $inner-border-width-disabled,
  5275. $inner-border-color: $inner-border-color,
  5276. $inner-border-color-over: $inner-border-color-over,
  5277. $inner-border-color-focus: $inner-border-color-focus,
  5278. $inner-border-color-pressed: $inner-border-color-pressed,
  5279. $inner-border-color-focus-over: $inner-border-color-focus-over,
  5280. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  5281. $inner-border-color-disabled: $inner-border-color-disabled,
  5282. $body-outline-width-focus: $body-outline-width-focus,
  5283. $body-outline-style-focus: $body-outline-style-focus,
  5284. $body-outline-color-focus: $body-outline-color-focus,
  5285. $font-size: $font-size,
  5286. $font-size-over: $font-size-over,
  5287. $font-size-focus: $font-size-focus,
  5288. $font-size-pressed: $font-size-pressed,
  5289. $font-size-focus-over: $font-size-focus-over,
  5290. $font-size-focus-pressed: $font-size-focus-pressed,
  5291. $font-size-disabled: $font-size-disabled,
  5292. $font-weight: $font-weight,
  5293. $font-weight-over: $font-weight-over,
  5294. $font-weight-focus: $font-weight-focus,
  5295. $font-weight-pressed: $font-weight-pressed,
  5296. $font-weight-focus-over: $font-weight-focus-over,
  5297. $font-weight-focus-pressed: $font-weight-focus-pressed,
  5298. $font-weight-disabled: $font-weight-disabled,
  5299. $font-family: $font-family,
  5300. $font-family-over: $font-family-over,
  5301. $font-family-focus: $font-family-focus,
  5302. $font-family-pressed: $font-family-pressed,
  5303. $font-family-focus-over: $font-family-focus-over,
  5304. $font-family-focus-pressed: $font-family-focus-pressed,
  5305. $font-family-disabled: $font-family-disabled,
  5306. $line-height: $line-height,
  5307. $icon-size: $icon-size,
  5308. $glyph-font-size: $glyph-font-size,
  5309. $icon-spacing: $icon-spacing,
  5310. $glyph-color: $glyph-color,
  5311. $glyph-opacity: $glyph-opacity,
  5312. $arrow-width: $arrow-width,
  5313. $arrow-height: $arrow-height,
  5314. $arrow-glyph: $arrow-glyph,
  5315. $arrow-glyph-color: $arrow-glyph-color,
  5316. $split-width: $split-width,
  5317. $split-height: $split-height,
  5318. $split-line-width: $split-line-width,
  5319. $split-line-color: $split-line-color,
  5320. $include-ui-menu-arrows: $include-ui-menu-arrows,
  5321. $include-ui-split-arrows: $include-ui-split-arrows,
  5322. $include-split-noline-arrows: $include-split-noline-arrows,
  5323. $include-split-over-arrows: $include-split-over-arrows,
  5324. $opacity-disabled: $opacity-disabled,
  5325. $inner-opacity-disabled: $inner-opacity-disabled
  5326. );
  5327. }
  5328. /**
  5329. * Creates a visual theme for a {@link #scale medium} Button.
  5330. *
  5331. * @param {string} $ui
  5332. * The name of the UI being created. Can not included spaces or special punctuation
  5333. * (used in CSS class names).
  5334. *
  5335. * @param {number} [$border-radius=$button-medium-border-radius]
  5336. * The border-radius of the button
  5337. *
  5338. * @param {number} [$border-width=$button-medium-border-width]
  5339. * The border-width of the button
  5340. *
  5341. * @param {color} [$border-color=$button-default-border-color]
  5342. * The border-color of the button
  5343. *
  5344. * @param {color} [$border-color-over=$button-default-border-color-over]
  5345. * The border-color of the button when the cursor is over the button
  5346. *
  5347. * @param {color} [$border-color-focus=$button-default-border-color-focus]
  5348. * The border-color of the button when focused
  5349. *
  5350. * @param {color} [$border-color-pressed=$button-default-border-color-pressed]
  5351. * The border-color of the button when pressed
  5352. *
  5353. * @param {color} [$border-color-focus-over=$button-default-border-color-focus-over]
  5354. * The border-color of the button when the button is focused and the cursor is over the
  5355. * button
  5356. *
  5357. * @param {color} [$border-color-focus-pressed=$button-default-border-color-focus-pressed]
  5358. * The border-color of the button when focused and pressed
  5359. *
  5360. * @param {color} [$border-color-disabled=$button-default-border-color-disabled]
  5361. * The border-color of the button when disabled
  5362. *
  5363. * @param {number} [$padding=$button-medium-padding]
  5364. * The amount of padding inside the border of the button on all sides
  5365. *
  5366. * @param {number} [$text-padding=$button-medium-text-padding]
  5367. * The amount of horizontal space to add to the left and right of the button text
  5368. *
  5369. * @param {color} [$background-color=$button-default-background-color]
  5370. * The background-color of the button
  5371. *
  5372. * @param {color} [$background-color-over=$button-default-background-color-over]
  5373. * The background-color of the button when the cursor is over the button
  5374. *
  5375. * @param {color} [$background-color-focus=$button-default-background-color-focus]
  5376. * The background-color of the button when focused
  5377. *
  5378. * @param {color} [$background-color-pressed=$button-default-background-color-pressed]
  5379. * The background-color of the button when pressed
  5380. *
  5381. * @param {color} [$background-color-focus-over=$button-default-background-color-focus-over]
  5382. * The background-color of the button when the button is focused and the cursor is over
  5383. * the button
  5384. *
  5385. * @param {color} [$background-color-focus-pressed=$button-default-background-color-focus-pressed]
  5386. * The background-color of the button when focused and pressed
  5387. *
  5388. * @param {color} [$background-color-disabled=$button-default-background-color-disabled]
  5389. * The background-color of the button when disabled
  5390. *
  5391. * @param {string/list} [$background-gradient=$button-default-background-gradient]
  5392. * The background-gradient for the button. Can be either the name of a predefined gradient
  5393. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  5394. *
  5395. * @param {string/list} [$background-gradient-over=$button-default-background-gradient-over]
  5396. * The background-gradient to use when the cursor is over the button. Can be either the
  5397. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  5398. * for {@link Global_CSS#background-gradient}.
  5399. *
  5400. * @param {string/list} [$background-gradient-focus=$button-default-background-gradient-focus]
  5401. * The background-gradient to use when the the button is focused. Can be either the name
  5402. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  5403. * {@link Global_CSS#background-gradient}.
  5404. *
  5405. * @param {string/list} [$background-gradient-pressed=$button-default-background-gradient-pressed]
  5406. * The background-gradient to use when the the button is pressed. Can be either the name
  5407. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  5408. * {@link Global_CSS#background-gradient}.
  5409. *
  5410. * @param {string} [$background-gradient-focus-over=$button-default-background-gradient-focus-over]
  5411. * The background-gradient to use when the the button is focused and the cursor is over
  5412. * the button. Can be either the name of a predefined gradient or a list of color stops.
  5413. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  5414. *
  5415. * @param {string} [$background-gradient-focus-pressed=$button-default-background-gradient-focus-pressed]
  5416. * The background-gradient to use when the the button is focused and pressed. Can be
  5417. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  5418. * parameter for {@link Global_CSS#background-gradient}.
  5419. *
  5420. * @param {string/list} [$background-gradient-disabled=$button-default-background-gradient-disabled]
  5421. * The background-gradient to use when the the button is disabled. Can be either the name
  5422. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  5423. * {@link Global_CSS#background-gradient}.
  5424. *
  5425. * @param {color} [$color=$button-default-color]
  5426. * The text color of the button
  5427. *
  5428. * @param {color} [$color-over=$button-default-color-over]
  5429. * The text color of the button when the cursor is over the button
  5430. *
  5431. * @param {color} [$color-focus=$button-default-color-focus]
  5432. * The text color of the button when the button is focused
  5433. *
  5434. * @param {color} [$color-pressed=$button-default-color-pressed]
  5435. * The text color of the button when the button is pressed
  5436. *
  5437. * @param {color} [$color-focus-over=$button-default-color-focus-over]
  5438. * The text color of the button when the button is focused and the cursor is over the button
  5439. *
  5440. * @param {color} [$color-focus-pressed=$button-default-color-focus-pressed]
  5441. * The text color of the button when the button is focused and pressed
  5442. *
  5443. * @param {color} [$color-disabled=$button-default-color-disabled]
  5444. * The text color of the button when the button is disabled
  5445. *
  5446. * @param {number/list} [$inner-border-width=$button-default-inner-border-width]
  5447. * The inner border-width of the button
  5448. *
  5449. * @param {number/list} [$inner-border-width-over=$button-default-inner-border-width-over]
  5450. * The inner border-width of the button when the cursor is over the button
  5451. *
  5452. * @param {number/list} [$inner-border-width-focus=$button-default-inner-border-width-focus]
  5453. * The inner border-width of the button when focused
  5454. *
  5455. * @param {number/list} [$inner-border-width-pressed=$button-default-inner-border-width-pressed]
  5456. * The inner border-width of the button when pressed
  5457. *
  5458. * @param {number/list} [$inner-border-width-focus-over=$button-default-inner-border-width-focus-over]
  5459. * The inner border-width of the button when the button is focused and the cursor is over
  5460. * the button
  5461. *
  5462. * @param {number/list} [$inner-border-width-focus-pressed=$button-default-inner-border-width-focus-pressed]
  5463. * The inner border-width of the button when focused and pressed
  5464. *
  5465. * @param {number/list} [$inner-border-width-disabled=$button-default-inner-border-width-disabled]
  5466. * The inner border-width of the button when disabled
  5467. *
  5468. * @param {color} [$inner-border-color=$button-default-inner-border-color]
  5469. * The inner border-color of the button
  5470. *
  5471. * @param {color} [$inner-border-color-over=$button-default-inner-border-color-over]
  5472. * The inner border-color of the button when the cursor is over the button
  5473. *
  5474. * @param {color} [$inner-border-color-focus=$button-default-inner-border-color-focus]
  5475. * The inner border-color of the button when focused
  5476. *
  5477. * @param {color} [$inner-border-color-pressed=$button-default-inner-border-color-pressed]
  5478. * The inner border-color of the button when pressed
  5479. *
  5480. * @param {color} [$inner-border-color-focus-over=$button-default-inner-border-color-focus-over]
  5481. * The inner border-color of the button when the button is focused and the cursor is over
  5482. * the button
  5483. *
  5484. * @param {color} [$inner-border-color-focus-pressed=$button-default-inner-border-color-focus-pressed]
  5485. * The inner border-color of the button when focused and pressed
  5486. *
  5487. * @param {color} [$inner-border-color-disabled=$button-default-inner-border-color-disabled]
  5488. * The inner border-color of the button when disabled
  5489. *
  5490. * @param {number} [$body-outline-width-focus=$button-default-body-outline-width-focus]
  5491. * The body outline width of the button when focused
  5492. *
  5493. * @param {number} [$body-outline-style-focus=$button-default-body-outline-style-focus]
  5494. * The body outline-style of the button when focused
  5495. *
  5496. * @param {number} [$body-outline-color-focus=$button-default-body-outline-color-focus]
  5497. * The body outline color of the button when focused
  5498. *
  5499. * @param {number} [$font-size=$button-medium-font-size]
  5500. * The font-size of the button
  5501. *
  5502. * @param {number} [$font-size-over=$button-medium-font-size-over]
  5503. * The font-size of the button when the cursor is over the button
  5504. *
  5505. * @param {number} [$font-size-focus=$button-medium-font-size-focus]
  5506. * The font-size of the button when the button is focused
  5507. *
  5508. * @param {number} [$font-size-pressed=$button-medium-font-size-pressed]
  5509. * The font-size of the button when the button is pressed
  5510. *
  5511. * @param {number} [$font-size-focus-over=$button-medium-font-size-focus-over]
  5512. * The font-size of the button when the button is focused and the cursor is over the
  5513. * button
  5514. *
  5515. * @param {number} [$font-size-focus-pressed=$button-medium-font-size-focus-pressed]
  5516. * The font-size of the button when the button is focused and pressed
  5517. *
  5518. * @param {number} [$font-size-disabled=$button-medium-font-size-disabled]
  5519. * The font-size of the button when the button is disabled
  5520. *
  5521. * @param {string} [$font-weight=$button-medium-font-weight]
  5522. * The font-weight of the button
  5523. *
  5524. * @param {string} [$font-weight-over=$button-medium-font-weight-over]
  5525. * The font-weight of the button when the cursor is over the button
  5526. *
  5527. * @param {string} [$font-weight-focus=$button-medium-font-weight-focus]
  5528. * The font-weight of the button when the button is focused
  5529. *
  5530. * @param {string} [$font-weight-pressed=$button-medium-font-weight-pressed]
  5531. * The font-weight of the button when the button is pressed
  5532. *
  5533. * @param {string} [$font-weight-focus-over=$button-medium-font-weight-focus-over]
  5534. * The font-weight of the button when the button is focused and the cursor is over the
  5535. * button
  5536. *
  5537. * @param {string} [$font-weight-focus-pressed=$button-medium-font-weight-focus-pressed]
  5538. * The font-weight of the button when the button is focused and pressed
  5539. *
  5540. * @param {string} [$font-weight-disabled=$button-medium-font-weight-disabled]
  5541. * The font-weight of the button when the button is disabled
  5542. *
  5543. * @param {string} [$font-family=$button-medium-font-family]
  5544. * The font-family of the button
  5545. *
  5546. * @param {string} [$font-family-over=$button-medium-font-family-over]
  5547. * The font-family of the button when the cursor is over the button
  5548. *
  5549. * @param {string} [$font-family-focus=$button-medium-font-family-focus]
  5550. * The font-family of the button when the button is focused
  5551. *
  5552. * @param {string} [$font-family-pressed=$button-medium-font-family-pressed]
  5553. * The font-family of the button when the button is pressed
  5554. *
  5555. * @param {string} [$font-family-focus-over=$button-medium-font-family-focus-over]
  5556. * The font-family of the button when the button is focused and the cursor is over the
  5557. * button
  5558. *
  5559. * @param {string} [$font-family-focus-pressed=$button-medium-font-family-focus-pressed]
  5560. * The font-family of the button when the button is focused and pressed
  5561. *
  5562. * @param {string} [$font-family-disabled=$button-medium-font-family-disabled]
  5563. * The font-family of the button when the button is disabled
  5564. *
  5565. * @param {number} [$line-height=$button-medium-line-height]
  5566. * The line-height of the button text
  5567. *
  5568. * @param {number} [$icon-size=$button-medium-icon-size]
  5569. * The size of the button icon
  5570. *
  5571. * @param {number} [$glyph-font-size=$button-medium-glyph-font-size]
  5572. * The font-size for the button glyph
  5573. *
  5574. * @param {number} [$icon-spacing=$button-medium-icon-spacing]
  5575. * The space between the button's icon and text
  5576. *
  5577. * @param {color} [$glyph-color=$button-default-glyph-color]
  5578. * The color of the button's {@link #glyph} icon
  5579. *
  5580. * @param {number} [$glyph-opacity=$button-default-glyph-opacity]
  5581. * The opacity of the button's {@link #glyph} icon
  5582. *
  5583. * @param {number} [$arrow-width=$button-medium-arrow-width]
  5584. * The width of the button's {@link #cfg-menu} arrow
  5585. *
  5586. * @param {number} [$arrow-height=$button-medium-arrow-height]
  5587. * The height of the button's {@link #cfg-menu} arrow
  5588. *
  5589. * @param {string/list} [$arrow-glyph=$button-medium-arrow-glyph]
  5590. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  5591. *
  5592. * @param {string/list} [$arrow-glyph-color=$button-default-arrow-glyph-color]
  5593. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  5594. *
  5595. * @param {number} [$split-width=$button-medium-split-width]
  5596. * The width of a {@link Ext.button.Split Split Button}'s arrow
  5597. *
  5598. * @param {number} [$split-height=$button-medium-split-height]
  5599. * The height of a {@link Ext.button.Split Split Button}'s arrow
  5600. *
  5601. * @param {number} [$split-line-width=$button-medium-split-line-width]
  5602. * The default width for a {@link Ext.button.Split Split Button}'s line.
  5603. * Themes that include the line in the arrow background image should set this to 0
  5604. *
  5605. * @param {color} [$split-line-color=$button-default-split-line-color]
  5606. * The color for a {@link Ext.button.Split Split Button}'s line.
  5607. * Only applicable when `$split-line-width` is greater than 0.
  5608. *
  5609. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  5610. * True to include the UI name in the file name of the {@link #cfg-menu}
  5611. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  5612. *
  5613. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  5614. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  5615. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  5616. *
  5617. * @param {boolean} [$include-split-noline-arrows=$button-include-split-noline-arrows]
  5618. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  5619. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  5620. * state.
  5621. *
  5622. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  5623. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  5624. * is over the button. The over icon file name will have a "-o" suffix
  5625. *
  5626. * @param {number} [$opacity-disabled=$button-opacity-disabled]
  5627. * The opacity of the button when it is disabled
  5628. *
  5629. * @param {number} [$inner-opacity-disabled=$button-inner-opacity-disabled]
  5630. * The opacity of the button's text and icon elements when when the button is disabled
  5631. *
  5632. * @member Ext.button.Button
  5633. */
  5634. @mixin extjs-button-medium-ui(
  5635. $ui,
  5636. $border-radius: $button-medium-border-radius,
  5637. $border-width: $button-medium-border-width,
  5638. $border-color: null,
  5639. $border-color-over: null,
  5640. $border-color-focus: null,
  5641. $border-color-pressed: null,
  5642. $border-color-focus-over: null,
  5643. $border-color-focus-pressed: null,
  5644. $border-color-disabled: null,
  5645. $padding: $button-medium-padding,
  5646. $text-padding: $button-medium-text-padding,
  5647. $background-color: null,
  5648. $background-color-over: null,
  5649. $background-color-focus: null,
  5650. $background-color-pressed: null,
  5651. $background-color-focus-over: null,
  5652. $background-color-focus-pressed: null,
  5653. $background-color-disabled: null,
  5654. $background-gradient: $button-default-background-gradient,
  5655. $background-gradient-over: $button-default-background-gradient-over,
  5656. $background-gradient-focus: $button-default-background-gradient-focus,
  5657. $background-gradient-pressed: $button-default-background-gradient-pressed,
  5658. $background-gradient-focus-over: $button-default-background-gradient-focus-over,
  5659. $background-gradient-focus-pressed: $button-default-background-gradient-focus-pressed,
  5660. $background-gradient-disabled: $button-default-background-gradient-disabled,
  5661. $color: null,
  5662. $color-over: null,
  5663. $color-focus: null,
  5664. $color-pressed: null,
  5665. $color-focus-over: null,
  5666. $color-focus-pressed: null,
  5667. $color-disabled: null,
  5668. $inner-border-width: null,
  5669. $inner-border-width-over: null,
  5670. $inner-border-width-focus: null,
  5671. $inner-border-width-pressed: null,
  5672. $inner-border-width-focus-over: null,
  5673. $inner-border-width-focus-pressed: null,
  5674. $inner-border-width-disabled: null,
  5675. $inner-border-color: null,
  5676. $inner-border-color-over: null,
  5677. $inner-border-color-focus: null,
  5678. $inner-border-color-pressed: null,
  5679. $inner-border-color-focus-over: null,
  5680. $inner-border-color-focus-pressed: null,
  5681. $inner-border-color-disabled: null,
  5682. $body-outline-width-focus: $button-default-body-outline-width-focus,
  5683. $body-outline-style-focus: $button-default-body-outline-style-focus,
  5684. $body-outline-color-focus: $button-default-body-outline-color-focus,
  5685. $font-size: null,
  5686. $font-size-over: null,
  5687. $font-size-focus: null,
  5688. $font-size-pressed: null,
  5689. $font-size-focus-over: null,
  5690. $font-size-focus-pressed: null,
  5691. $font-size-disabled: null,
  5692. $font-weight: null,
  5693. $font-weight-over: null,
  5694. $font-weight-focus: null,
  5695. $font-weight-pressed: null,
  5696. $font-weight-focus-over: null,
  5697. $font-weight-focus-pressed: null,
  5698. $font-weight-disabled: null,
  5699. $font-family: null,
  5700. $font-family-over: null,
  5701. $font-family-focus: null,
  5702. $font-family-pressed: null,
  5703. $font-family-focus-over: null,
  5704. $font-family-focus-pressed: null,
  5705. $font-family-disabled: null,
  5706. $line-height: $button-medium-line-height,
  5707. $icon-size: $button-medium-icon-size,
  5708. $glyph-font-size: $button-medium-glyph-font-size,
  5709. $icon-spacing: $button-medium-icon-spacing,
  5710. $glyph-color: $button-default-glyph-color,
  5711. $glyph-opacity: $button-default-glyph-opacity,
  5712. $arrow-width: $button-medium-arrow-width,
  5713. $arrow-height: $button-medium-arrow-height,
  5714. $arrow-glyph: $button-medium-arrow-glyph,
  5715. $arrow-glyph-color: $button-default-arrow-glyph-color,
  5716. $split-width: $button-medium-split-width,
  5717. $split-height: $button-medium-split-height,
  5718. $split-line-width: $button-medium-split-line-width,
  5719. $split-line-color: $button-default-split-line-color,
  5720. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  5721. $include-ui-split-arrows: $button-include-ui-split-arrows,
  5722. $include-split-noline-arrows: $button-include-split-noline-arrows,
  5723. $include-split-over-arrows: $button-include-split-over-arrows,
  5724. $opacity-disabled: $button-opacity-disabled,
  5725. $inner-opacity-disabled: $button-inner-opacity-disabled
  5726. ) {
  5727. @if $border-color == null {
  5728. $border-color: $button-default-border-color;
  5729. @if $border-color-over == null {
  5730. $border-color-over: $button-default-border-color-over;
  5731. }
  5732. @if $border-color-focus == null {
  5733. $border-color-focus: $button-default-border-color-focus;
  5734. }
  5735. @if $border-color-pressed == null {
  5736. $border-color-pressed: $button-default-border-color-pressed;
  5737. }
  5738. @if $border-color-focus-over == null {
  5739. $border-color-focus-over: $button-default-border-color-focus-over;
  5740. }
  5741. @if $border-color-focus-pressed == null {
  5742. $border-color-focus-pressed: $button-default-border-color-focus-pressed;
  5743. }
  5744. @if $border-color-disabled == null {
  5745. $border-color-disabled: $button-default-border-color-disabled;
  5746. }
  5747. } @else {
  5748. @if $border-color-over == null {
  5749. $border-color-over: button-default-border-color-over($border-color);
  5750. }
  5751. @if $border-color-focus == null {
  5752. $border-color-focus: button-default-border-color-focus($border-color);
  5753. }
  5754. @if $border-color-pressed == null {
  5755. $border-color-pressed: button-default-border-color-pressed($border-color);
  5756. }
  5757. @if $border-color-focus-over == null {
  5758. $border-color-focus-over: $border-color-over;
  5759. }
  5760. @if $border-color-focus-pressed == null {
  5761. $border-color-focus-pressed: $border-color-pressed;
  5762. }
  5763. @if $border-color-disabled == null {
  5764. $border-color-disabled: button-default-border-color-disabled($border-color);
  5765. }
  5766. }
  5767. @if $background-color == null {
  5768. $background-color: $button-default-background-color;
  5769. @if $background-color-over == null {
  5770. $background-color-over: $button-default-background-color-over;
  5771. }
  5772. @if $background-color-focus == null {
  5773. $background-color-focus: $button-default-background-color-focus;
  5774. }
  5775. @if $background-color-pressed == null {
  5776. $background-color-pressed: $button-default-background-color-pressed;
  5777. }
  5778. @if $background-color-focus-over == null {
  5779. $background-color-focus-over: $button-default-background-color-focus-over;
  5780. }
  5781. @if $background-color-focus-pressed == null {
  5782. $background-color-focus-pressed: $button-default-background-color-focus-pressed;
  5783. }
  5784. @if $background-color-disabled == null {
  5785. $background-color-disabled: $button-default-background-color-disabled;
  5786. }
  5787. } @else {
  5788. @if $background-color-over == null {
  5789. $background-color-over: button-default-background-color-over($background-color);
  5790. }
  5791. @if $background-color-focus == null {
  5792. $background-color-focus: button-default-background-color-focus($background-color);
  5793. }
  5794. @if $background-color-pressed == null {
  5795. $background-color-pressed: button-default-background-color-pressed($background-color);
  5796. }
  5797. @if $background-color-focus-over == null {
  5798. $background-color-focus-over: $background-color-over;
  5799. }
  5800. @if $background-color-focus-pressed == null {
  5801. $background-color-focus-pressed: $background-color-pressed;
  5802. }
  5803. @if $background-color-disabled == null {
  5804. $background-color-disabled: button-default-background-color-disabled($background-color);
  5805. }
  5806. }
  5807. @if $color == null {
  5808. $color: $button-default-color;
  5809. @if $color-over == null {
  5810. $color-over: $button-default-color-over;
  5811. }
  5812. @if $color-focus == null {
  5813. $color-focus: $button-default-color-focus;
  5814. }
  5815. @if $color-pressed == null {
  5816. $color-pressed: $button-default-color-pressed;
  5817. }
  5818. @if $color-focus-over == null {
  5819. $color-focus-over: $button-default-color-focus-over;
  5820. }
  5821. @if $color-focus-pressed == null {
  5822. $color-focus-pressed: $button-default-color-focus-pressed;
  5823. }
  5824. @if $color-disabled == null {
  5825. $color-disabled: $button-default-color-disabled;
  5826. }
  5827. } @else {
  5828. @if $color-over == null {
  5829. $color-over: button-default-color-over($color);
  5830. }
  5831. @if $color-focus == null {
  5832. $color-focus: button-default-color-focus($color);
  5833. }
  5834. @if $color-pressed == null {
  5835. $color-pressed: button-default-color-pressed($color);
  5836. }
  5837. @if $color-focus-over == null {
  5838. $color-focus-over: $color-over;
  5839. }
  5840. @if $color-focus-pressed == null {
  5841. $color-focus-pressed: $color-pressed;
  5842. }
  5843. @if $color-disabled == null {
  5844. $color-disabled: button-default-color-disabled($color);
  5845. }
  5846. }
  5847. @if $inner-border-width == null {
  5848. $inner-border-width: $button-default-inner-border-width;
  5849. @if $inner-border-width-over == null {
  5850. $inner-border-width-over: $button-default-inner-border-width-over;
  5851. }
  5852. @if $inner-border-width-focus == null {
  5853. $inner-border-width-focus: $button-default-inner-border-width-focus;
  5854. }
  5855. @if $inner-border-width-pressed == null {
  5856. $inner-border-width-pressed: $button-default-inner-border-width-pressed;
  5857. }
  5858. @if $inner-border-width-focus-over == null {
  5859. $inner-border-width-focus-over: $button-default-inner-border-width-focus-over;
  5860. }
  5861. @if $inner-border-width-focus-pressed == null {
  5862. $inner-border-width-focus-pressed: $button-default-inner-border-width-focus-pressed;
  5863. }
  5864. @if $inner-border-width-disabled == null {
  5865. $inner-border-width-disabled: $button-default-inner-border-width-disabled;
  5866. }
  5867. } @else {
  5868. @if $inner-border-width-over == null {
  5869. $inner-border-width-over: $inner-border-width;
  5870. }
  5871. @if $inner-border-width-focus == null {
  5872. $inner-border-width-focus: $inner-border-width;
  5873. }
  5874. @if $inner-border-width-pressed == null {
  5875. $inner-border-width-pressed: $inner-border-width;
  5876. }
  5877. @if $inner-border-width-focus-over == null {
  5878. $inner-border-width-focus-over: $inner-border-width-over;
  5879. }
  5880. @if $inner-border-width-focus-pressed == null {
  5881. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  5882. }
  5883. @if $inner-border-width-disabled == null {
  5884. $inner-border-width-disabled: $inner-border-width;
  5885. }
  5886. }
  5887. @if $inner-border-color == null {
  5888. $inner-border-color: $button-default-inner-border-color;
  5889. @if $inner-border-color-over == null {
  5890. $inner-border-color-over: $button-default-inner-border-color-over;
  5891. }
  5892. @if $inner-border-color-focus == null {
  5893. $inner-border-color-focus: $button-default-inner-border-color-focus;
  5894. }
  5895. @if $inner-border-color-pressed == null {
  5896. $inner-border-color-pressed: $button-default-inner-border-color-pressed;
  5897. }
  5898. @if $inner-border-color-focus-over == null {
  5899. $inner-border-color-focus-over: $button-default-inner-border-color-focus-over;
  5900. }
  5901. @if $inner-border-color-focus-pressed == null {
  5902. $inner-border-color-focus-pressed: $button-default-inner-border-color-focus-pressed;
  5903. }
  5904. @if $inner-border-color-disabled == null {
  5905. $inner-border-color-disabled: $button-default-inner-border-color-disabled;
  5906. }
  5907. } @else {
  5908. @if $inner-border-color-over == null {
  5909. $inner-border-color-over: button-default-inner-border-color-over($background-color-over, $color-over);
  5910. }
  5911. @if $inner-border-color-focus == null {
  5912. $inner-border-color-focus: button-default-inner-border-color-focus($background-color-focus, $color-focus);
  5913. }
  5914. @if $inner-border-color-pressed == null {
  5915. $inner-border-color-pressed: button-default-inner-border-color-pressed($background-color-pressed, $color-pressed);
  5916. }
  5917. @if $inner-border-color-focus-over == null {
  5918. $inner-border-color-focus-over: button-default-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  5919. }
  5920. @if $inner-border-color-focus-pressed == null {
  5921. $inner-border-color-focus-pressed: button-default-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed);
  5922. }
  5923. @if $inner-border-color-disabled == null {
  5924. $inner-border-color-disabled: button-default-inner-border-color-disabled($background-color-disabled, $color-disabled);
  5925. }
  5926. }
  5927. @if $font-size == null {
  5928. $font-size: $button-medium-font-size;
  5929. @if $font-size-over == null {
  5930. $font-size-over: $button-medium-font-size-over;
  5931. }
  5932. @if $font-size-focus == null {
  5933. $font-size-focus: $button-medium-font-size-focus;
  5934. }
  5935. @if $font-size-pressed == null {
  5936. $font-size-pressed: $button-medium-font-size-pressed;
  5937. }
  5938. @if $font-size-focus-over == null {
  5939. $font-size-focus-over: $button-medium-font-size-focus-over;
  5940. }
  5941. @if $font-size-focus-pressed == null {
  5942. $font-size-focus-pressed: $button-medium-font-size-focus-pressed;
  5943. }
  5944. @if $font-size-disabled == null {
  5945. $font-size-disabled: $button-medium-font-size-disabled;
  5946. }
  5947. } @else {
  5948. @if $font-size-over == null {
  5949. $font-size-over: $font-size;
  5950. }
  5951. @if $font-size-focus == null {
  5952. $font-size-focus: $font-size;
  5953. }
  5954. @if $font-size-pressed == null {
  5955. $font-size-pressed: $font-size;
  5956. }
  5957. @if $font-size-focus-over == null {
  5958. $font-size-focus-over: $font-size-over;
  5959. }
  5960. @if $font-size-focus-pressed == null {
  5961. $font-size-focus-pressed: $font-size-pressed;
  5962. }
  5963. @if $font-size-disabled == null {
  5964. $font-size-disabled: $font-size;
  5965. }
  5966. }
  5967. @if $font-weight == null {
  5968. $font-weight: $button-medium-font-weight;
  5969. @if $font-weight-over == null {
  5970. $font-weight-over: $button-medium-font-weight-over;
  5971. }
  5972. @if $font-weight-focus == null {
  5973. $font-weight-focus: $button-medium-font-weight-focus;
  5974. }
  5975. @if $font-weight-pressed == null {
  5976. $font-weight-pressed: $button-medium-font-weight-pressed;
  5977. }
  5978. @if $font-weight-focus-over == null {
  5979. $font-weight-focus-over: $button-medium-font-weight-focus-over;
  5980. }
  5981. @if $font-weight-focus-pressed == null {
  5982. $font-weight-focus-pressed: $button-medium-font-weight-focus-pressed;
  5983. }
  5984. @if $font-weight-disabled == null {
  5985. $font-weight-disabled: $button-medium-font-weight-disabled;
  5986. }
  5987. } @else {
  5988. @if $font-weight-over == null {
  5989. $font-weight-over: $font-weight;
  5990. }
  5991. @if $font-weight-focus == null {
  5992. $font-weight-focus: $font-weight;
  5993. }
  5994. @if $font-weight-pressed == null {
  5995. $font-weight-pressed: $font-weight;
  5996. }
  5997. @if $font-weight-focus-over == null {
  5998. $font-weight-focus-over: $font-weight-over;
  5999. }
  6000. @if $font-weight-focus-pressed == null {
  6001. $font-weight-focus-pressed: $font-weight-pressed;
  6002. }
  6003. @if $font-weight-disabled == null {
  6004. $font-weight-disabled: $font-weight;
  6005. }
  6006. }
  6007. @if $font-family == null {
  6008. $font-family: $button-medium-font-family;
  6009. @if $font-family-over == null {
  6010. $font-family-over: $button-medium-font-family-over;
  6011. }
  6012. @if $font-family-focus == null {
  6013. $font-family-focus: $button-medium-font-family-focus;
  6014. }
  6015. @if $font-family-pressed == null {
  6016. $font-family-pressed: $button-medium-font-family-pressed;
  6017. }
  6018. @if $font-family-focus-over == null {
  6019. $font-family-focus-over: $button-medium-font-family-focus-over;
  6020. }
  6021. @if $font-family-focus-pressed == null {
  6022. $font-family-focus-pressed: $button-medium-font-family-focus-pressed;
  6023. }
  6024. @if $font-family-disabled == null {
  6025. $font-family-disabled: $button-medium-font-family-disabled;
  6026. }
  6027. } @else {
  6028. @if $font-family-over == null {
  6029. $font-family-over: $font-family;
  6030. }
  6031. @if $font-family-focus == null {
  6032. $font-family-focus: $font-family;
  6033. }
  6034. @if $font-family-pressed == null {
  6035. $font-family-pressed: $font-family;
  6036. }
  6037. @if $font-family-focus-over == null {
  6038. $font-family-focus-over: $font-family-over;
  6039. }
  6040. @if $font-family-focus-pressed == null {
  6041. $font-family-focus-pressed: $font-family-pressed;
  6042. }
  6043. @if $font-family-disabled == null {
  6044. $font-family-disabled: $font-family;
  6045. }
  6046. }
  6047. @include extjs-button-ui(
  6048. $ui: '#{$ui}-medium',
  6049. $border-radius: $border-radius,
  6050. $border-width: $border-width,
  6051. $border-color: $border-color,
  6052. $border-color-over: $border-color-over,
  6053. $border-color-focus: $border-color-focus,
  6054. $border-color-pressed: $border-color-pressed,
  6055. $border-color-focus-over: $border-color-focus-over,
  6056. $border-color-focus-pressed: $border-color-focus-pressed,
  6057. $border-color-disabled: $border-color-disabled,
  6058. $padding: $padding,
  6059. $text-padding: $text-padding,
  6060. $background-color: $background-color,
  6061. $background-color-over: $background-color-over,
  6062. $background-color-focus: $background-color-focus,
  6063. $background-color-pressed: $background-color-pressed,
  6064. $background-color-focus-over: $background-color-focus-over,
  6065. $background-color-focus-pressed: $background-color-focus-pressed,
  6066. $background-color-disabled: $background-color-disabled,
  6067. $background-gradient: $background-gradient,
  6068. $background-gradient-over: $background-gradient-over,
  6069. $background-gradient-focus: $background-gradient-focus,
  6070. $background-gradient-pressed: $background-gradient-pressed,
  6071. $background-gradient-focus-over: $background-gradient-focus-over,
  6072. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  6073. $background-gradient-disabled: $background-gradient-disabled,
  6074. $color: $color,
  6075. $color-over: $color-over,
  6076. $color-focus: $color-focus,
  6077. $color-pressed: $color-pressed,
  6078. $color-focus-over: $color-focus-over,
  6079. $color-focus-pressed: $color-focus-pressed,
  6080. $color-disabled: $color-disabled,
  6081. $inner-border-width: $inner-border-width,
  6082. $inner-border-width-over: $inner-border-width-over,
  6083. $inner-border-width-focus: $inner-border-width-focus,
  6084. $inner-border-width-pressed: $inner-border-width-pressed,
  6085. $inner-border-width-focus-over: $inner-border-width-focus-over,
  6086. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  6087. $inner-border-width-disabled: $inner-border-width-disabled,
  6088. $inner-border-color: $inner-border-color,
  6089. $inner-border-color-over: $inner-border-color-over,
  6090. $inner-border-color-focus: $inner-border-color-focus,
  6091. $inner-border-color-pressed: $inner-border-color-pressed,
  6092. $inner-border-color-focus-over: $inner-border-color-focus-over,
  6093. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  6094. $inner-border-color-disabled: $inner-border-color-disabled,
  6095. $body-outline-width-focus: $body-outline-width-focus,
  6096. $body-outline-style-focus: $body-outline-style-focus,
  6097. $body-outline-color-focus: $body-outline-color-focus,
  6098. $font-size: $font-size,
  6099. $font-size-over: $font-size-over,
  6100. $font-size-focus: $font-size-focus,
  6101. $font-size-pressed: $font-size-pressed,
  6102. $font-size-focus-over: $font-size-focus-over,
  6103. $font-size-focus-pressed: $font-size-focus-pressed,
  6104. $font-size-disabled: $font-size-disabled,
  6105. $font-weight: $font-weight,
  6106. $font-weight-over: $font-weight-over,
  6107. $font-weight-focus: $font-weight-focus,
  6108. $font-weight-pressed: $font-weight-pressed,
  6109. $font-weight-focus-over: $font-weight-focus-over,
  6110. $font-weight-focus-pressed: $font-weight-focus-pressed,
  6111. $font-weight-disabled: $font-weight-disabled,
  6112. $font-family: $font-family,
  6113. $font-family-over: $font-family-over,
  6114. $font-family-focus: $font-family-focus,
  6115. $font-family-pressed: $font-family-pressed,
  6116. $font-family-focus-over: $font-family-focus-over,
  6117. $font-family-focus-pressed: $font-family-focus-pressed,
  6118. $font-family-disabled: $font-family-disabled,
  6119. $line-height: $line-height,
  6120. $icon-size: $icon-size,
  6121. $glyph-font-size: $glyph-font-size,
  6122. $icon-spacing: $icon-spacing,
  6123. $glyph-color: $glyph-color,
  6124. $glyph-opacity: $glyph-opacity,
  6125. $arrow-width: $arrow-width,
  6126. $arrow-height: $arrow-height,
  6127. $arrow-glyph: $arrow-glyph,
  6128. $arrow-glyph-color: $arrow-glyph-color,
  6129. $split-width: $split-width,
  6130. $split-height: $split-height,
  6131. $split-line-width: $split-line-width,
  6132. $split-line-color: $split-line-color,
  6133. $include-ui-menu-arrows: $include-ui-menu-arrows,
  6134. $include-ui-split-arrows: $include-ui-split-arrows,
  6135. $include-split-noline-arrows: $include-split-noline-arrows,
  6136. $include-split-over-arrows: $include-split-over-arrows,
  6137. $opacity-disabled: $opacity-disabled,
  6138. $inner-opacity-disabled: $inner-opacity-disabled
  6139. );
  6140. }
  6141. /**
  6142. * Creates a visual theme for a {@link #scale medium} toolbar Button.
  6143. *
  6144. * @param {string} $ui
  6145. * The name of the UI being created. Can not included spaces or special punctuation
  6146. * (used in CSS class names).
  6147. *
  6148. * @param {number} [$border-radius=$button-medium-border-radius]
  6149. * The border-radius of the button
  6150. *
  6151. * @param {number} [$border-width=$button-medium-border-width]
  6152. * The border-width of the button
  6153. *
  6154. * @param {color} [$border-color=$button-toolbar-border-color]
  6155. * The border-color of the button
  6156. *
  6157. * @param {color} [$border-color-over=$button-toolbar-border-color-over]
  6158. * The border-color of the button when the cursor is over the button
  6159. *
  6160. * @param {color} [$border-color-focus=$button-toolbar-border-color-focus]
  6161. * The border-color of the button when focused
  6162. *
  6163. * @param {color} [$border-color-pressed=$button-toolbar-border-color-pressed]
  6164. * The border-color of the button when pressed
  6165. *
  6166. * @param {color} [$border-color-focus-over=$button-toolbar-border-color-focus-over]
  6167. * The border-color of the button when the button is focused and the cursor is over the
  6168. * button
  6169. *
  6170. * @param {color} [$border-color-focus-pressed=$button-toolbar-border-color-focus-pressed]
  6171. * The border-color of the button when focused and pressed
  6172. *
  6173. * @param {color} [$border-color-disabled=$button-toolbar-border-color-disabled]
  6174. * The border-color of the button when disabled
  6175. *
  6176. * @param {number} [$padding=$button-medium-padding]
  6177. * The amount of padding inside the border of the button on all sides
  6178. *
  6179. * @param {number} [$text-padding=$button-medium-text-padding]
  6180. * The amount of horizontal space to add to the left and right of the button text
  6181. *
  6182. * @param {color} [$background-color=$button-toolbar-background-color]
  6183. * The background-color of the button
  6184. *
  6185. * @param {color} [$background-color-over=$button-toolbar-background-color-over]
  6186. * The background-color of the button when the cursor is over the button
  6187. *
  6188. * @param {color} [$background-color-focus=$button-toolbar-background-color-focus]
  6189. * The background-color of the button when focused
  6190. *
  6191. * @param {color} [$background-color-pressed=$button-toolbar-background-color-pressed]
  6192. * The background-color of the button when pressed
  6193. *
  6194. * @param {color} [$background-color-focus-over=$button-toolbar-background-color-focus-over]
  6195. * The background-color of the button when the button is focused and the cursor is over
  6196. * the button
  6197. *
  6198. * @param {color} [$background-color-focus-pressed=$button-toolbar-background-color-focus-pressed]
  6199. * The background-color of the button when focused and pressed
  6200. *
  6201. * @param {color} [$background-color-disabled=$button-toolbar-background-color-disabled]
  6202. * The background-color of the button when disabled
  6203. *
  6204. * @param {string/list} [$background-gradient=$button-toolbar-background-gradient]
  6205. * The background-gradient for the button. Can be either the name of a predefined gradient
  6206. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  6207. *
  6208. * @param {string/list} [$background-gradient-over=$button-toolbar-background-gradient-over]
  6209. * The background-gradient to use when the cursor is over the button. Can be either the
  6210. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  6211. * for {@link Global_CSS#background-gradient}.
  6212. *
  6213. * @param {string/list} [$background-gradient-focus=$button-toolbar-background-gradient-focus]
  6214. * The background-gradient to use when the the button is focused. Can be either the name
  6215. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  6216. * {@link Global_CSS#background-gradient}.
  6217. *
  6218. * @param {string/list} [$background-gradient-pressed=$button-toolbar-background-gradient-pressed]
  6219. * The background-gradient to use when the the button is pressed. Can be either the name
  6220. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  6221. * {@link Global_CSS#background-gradient}.
  6222. *
  6223. * @param {string} [$background-gradient-focus-over=$button-toolbar-background-gradient-focus-over]
  6224. * The background-gradient to use when the the button is focused and the cursor is over
  6225. * the button. Can be either the name of a predefined gradient or a list of color stops.
  6226. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  6227. *
  6228. * @param {string} [$background-gradient-focus-pressed=$button-toolbar-background-gradient-focus-pressed]
  6229. * The background-gradient to use when the the button is focused and pressed. Can be
  6230. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  6231. * parameter for {@link Global_CSS#background-gradient}.
  6232. *
  6233. * @param {string/list} [$background-gradient-disabled=$button-toolbar-background-gradient-disabled]
  6234. * The background-gradient to use when the the button is disabled. Can be either the name
  6235. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  6236. * {@link Global_CSS#background-gradient}.
  6237. *
  6238. * @param {color} [$color=$button-toolbar-color]
  6239. * The text color of the button
  6240. *
  6241. * @param {color} [$color-over=$button-toolbar-color-over]
  6242. * The text color of the button when the cursor is over the button
  6243. *
  6244. * @param {color} [$color-focus=$button-toolbar-color-focus]
  6245. * The text color of the button when the button is focused
  6246. *
  6247. * @param {color} [$color-pressed=$button-toolbar-color-pressed]
  6248. * The text color of the button when the button is pressed
  6249. *
  6250. * @param {color} [$color-focus-over=$button-toolbar-color-focus-over]
  6251. * The text color of the button when the button is focused and the cursor is over the button
  6252. *
  6253. * @param {color} [$color-focus-pressed=$button-toolbar-color-focus-pressed]
  6254. * The text color of the button when the button is focused and pressed
  6255. *
  6256. * @param {color} [$color-disabled=$button-toolbar-color-disabled]
  6257. * The text color of the button when the button is disabled
  6258. *
  6259. * @param {number/list} [$inner-border-width=$button-toolbar-inner-border-width]
  6260. * The inner border-width of the button
  6261. *
  6262. * @param {number/list} [$inner-border-width-over=$button-toolbar-inner-border-width-over]
  6263. * The inner border-width of the button when the cursor is over the button
  6264. *
  6265. * @param {number/list} [$inner-border-width-focus=$button-toolbar-inner-border-width-focus]
  6266. * The inner border-width of the button when focused
  6267. *
  6268. * @param {number/list} [$inner-border-width-pressed=$button-toolbar-inner-border-width-pressed]
  6269. * The inner border-width of the button when pressed
  6270. *
  6271. * @param {number/list} [$inner-border-width-focus-over=$button-toolbar-inner-border-width-focus-over]
  6272. * The inner border-width of the button when the button is focused and the cursor is over
  6273. * the button
  6274. *
  6275. * @param {number/list} [$inner-border-width-focus-pressed=$button-toolbar-inner-border-width-focus-pressed]
  6276. * The inner border-width of the button when focused and pressed
  6277. *
  6278. * @param {number/list} [$inner-border-width-disabled=$button-toolbar-inner-border-width-disabled]
  6279. * The inner border-width of the button when disabled
  6280. *
  6281. * @param {color} [$inner-border-color=$button-toolbar-inner-border-color]
  6282. * The inner border-color of the button
  6283. *
  6284. * @param {color} [$inner-border-color-over=$button-toolbar-inner-border-color-over]
  6285. * The inner border-color of the button when the cursor is over the button
  6286. *
  6287. * @param {color} [$inner-border-color-focus=$button-toolbar-inner-border-color-focus]
  6288. * The inner border-color of the button when focused
  6289. *
  6290. * @param {color} [$inner-border-color-pressed=$button-toolbar-inner-border-color-pressed]
  6291. * The inner border-color of the button when pressed
  6292. *
  6293. * @param {color} [$inner-border-color-focus-over=$button-toolbar-inner-border-color-focus-over]
  6294. * The inner border-color of the button when the button is focused and the cursor is over
  6295. * the button
  6296. *
  6297. * @param {color} [$inner-border-color-focus-pressed=$button-toolbar-inner-border-color-focus-pressed]
  6298. * The inner border-color of the button when focused and pressed
  6299. *
  6300. * @param {color} [$inner-border-color-disabled=$button-toolbar-inner-border-color-disabled]
  6301. * The inner border-color of the button when disabled
  6302. *
  6303. * @param {number} [$body-outline-width-focus=$button-toolbar-body-outline-width-focus]
  6304. * The body outline width of the button when focused
  6305. *
  6306. * @param {number} [$body-outline-style-focus=$button-toolbar-body-outline-style-focus]
  6307. * The body outline-style of the button when focused
  6308. *
  6309. * @param {number} [$body-outline-color-focus=$button-toolbar-body-outline-color-focus]
  6310. * The body outline color of the button when focused
  6311. *
  6312. * @param {number} [$font-size=$button-medium-font-size]
  6313. * The font-size of the button
  6314. *
  6315. * @param {number} [$font-size-over=$button-medium-font-size-over]
  6316. * The font-size of the button when the cursor is over the button
  6317. *
  6318. * @param {number} [$font-size-focus=$button-medium-font-size-focus]
  6319. * The font-size of the button when the button is focused
  6320. *
  6321. * @param {number} [$font-size-pressed=$button-medium-font-size-pressed]
  6322. * The font-size of the button when the button is pressed
  6323. *
  6324. * @param {number} [$font-size-focus-over=$button-medium-font-size-focus-over]
  6325. * The font-size of the button when the button is focused and the cursor is over the
  6326. * button
  6327. *
  6328. * @param {number} [$font-size-focus-pressed=$button-medium-font-size-focus-pressed]
  6329. * The font-size of the button when the button is focused and pressed
  6330. *
  6331. * @param {number} [$font-size-disabled=$button-medium-font-size-disabled]
  6332. * The font-size of the button when the button is disabled
  6333. *
  6334. * @param {string} [$font-weight=$button-medium-font-weight]
  6335. * The font-weight of the button
  6336. *
  6337. * @param {string} [$font-weight-over=$button-medium-font-weight-over]
  6338. * The font-weight of the button when the cursor is over the button
  6339. *
  6340. * @param {string} [$font-weight-focus=$button-medium-font-weight-focus]
  6341. * The font-weight of the button when the button is focused
  6342. *
  6343. * @param {string} [$font-weight-pressed=$button-medium-font-weight-pressed]
  6344. * The font-weight of the button when the button is pressed
  6345. *
  6346. * @param {string} [$font-weight-focus-over=$button-medium-font-weight-focus-over]
  6347. * The font-weight of the button when the button is focused and the cursor is over the
  6348. * button
  6349. *
  6350. * @param {string} [$font-weight-focus-pressed=$button-medium-font-weight-focus-pressed]
  6351. * The font-weight of the button when the button is focused and pressed
  6352. *
  6353. * @param {string} [$font-weight-disabled=$button-medium-font-weight-disabled]
  6354. * The font-weight of the button when the button is disabled
  6355. *
  6356. * @param {string} [$font-family=$button-medium-font-family]
  6357. * The font-family of the button
  6358. *
  6359. * @param {string} [$font-family-over=$button-medium-font-family-over]
  6360. * The font-family of the button when the cursor is over the button
  6361. *
  6362. * @param {string} [$font-family-focus=$button-medium-font-family-focus]
  6363. * The font-family of the button when the button is focused
  6364. *
  6365. * @param {string} [$font-family-pressed=$button-medium-font-family-pressed]
  6366. * The font-family of the button when the button is pressed
  6367. *
  6368. * @param {string} [$font-family-focus-over=$button-medium-font-family-focus-over]
  6369. * The font-family of the button when the button is focused and the cursor is over the
  6370. * button
  6371. *
  6372. * @param {string} [$font-family-focus-pressed=$button-medium-font-family-focus-pressed]
  6373. * The font-family of the button when the button is focused and pressed
  6374. *
  6375. * @param {string} [$font-family-disabled=$button-medium-font-family-disabled]
  6376. * The font-family of the button when the button is disabled
  6377. *
  6378. * @param {number} [$line-height=$button-medium-line-height]
  6379. * The line-height of the button text
  6380. *
  6381. * @param {number} [$icon-size=$button-medium-icon-size]
  6382. * The size of the button icon
  6383. *
  6384. * @param {number} [$glyph-font-size=$button-medium-glyph-font-size]
  6385. * The font-size for the button glyph
  6386. *
  6387. * @param {number} [$icon-spacing=$button-medium-icon-spacing]
  6388. * The space between the button's icon and text
  6389. *
  6390. * @param {color} [$glyph-color=$button-toolbar-glyph-color]
  6391. * The color of the button's {@link #glyph} icon
  6392. *
  6393. * @param {number} [$glyph-opacity=$button-toolbar-glyph-opacity]
  6394. * The opacity of the button's {@link #glyph} icon
  6395. *
  6396. * @param {number} [$arrow-width=$button-medium-arrow-width]
  6397. * The width of the button's {@link #cfg-menu} arrow
  6398. *
  6399. * @param {number} [$arrow-height=$button-medium-arrow-height]
  6400. * The height of the button's {@link #cfg-menu} arrow
  6401. *
  6402. * @param {string/list} [$arrow-glyph=$button-medium-arrow-glyph]
  6403. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  6404. *
  6405. * @param {string/list} [$arrow-glyph-color=$button-toolbar-arrow-glyph-color]
  6406. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  6407. *
  6408. * @param {number} [$split-width=$button-medium-split-width]
  6409. * The width of a {@link Ext.button.Split Split Button}'s arrow
  6410. *
  6411. * @param {number} [$split-height=$button-medium-split-height]
  6412. * The height of a {@link Ext.button.Split Split Button}'s arrow
  6413. *
  6414. * @param {number} [$split-line-width=$button-medium-split-line-width]
  6415. * The default width for a {@link Ext.button.Split Split Button}'s line.
  6416. * Themes that include the line in the arrow background image should set this to 0
  6417. *
  6418. * @param {color} [$split-line-color=$button-toolbar-split-line-color]
  6419. * The color for a {@link Ext.button.Split Split Button}'s line.
  6420. * Only applicable when `$split-line-width` is greater than 0.
  6421. *
  6422. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  6423. * True to include the UI name in the file name of the {@link #cfg-menu}
  6424. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  6425. *
  6426. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  6427. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  6428. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  6429. *
  6430. * @param {boolean} [$include-split-noline-arrows=$button-toolbar-include-split-noline-arrows]
  6431. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  6432. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  6433. * state.
  6434. *
  6435. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  6436. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  6437. * is over the button. The over icon file name will have a "-o" suffix
  6438. *
  6439. * @param {number} [$opacity-disabled=$button-toolbar-opacity-disabled]
  6440. * The opacity of the button when it is disabled
  6441. *
  6442. * @param {number} [$inner-opacity-disabled=$button-toolbar-inner-opacity-disabled]
  6443. * The opacity of the button's text and icon elements when when the button is disabled
  6444. *
  6445. * @member Ext.button.Button
  6446. */
  6447. @mixin extjs-button-toolbar-medium-ui(
  6448. $ui,
  6449. $border-radius: $button-medium-border-radius,
  6450. $border-width: $button-medium-border-width,
  6451. $border-color: null,
  6452. $border-color-over: null,
  6453. $border-color-focus: null,
  6454. $border-color-pressed: null,
  6455. $border-color-focus-over: null,
  6456. $border-color-focus-pressed: null,
  6457. $border-color-disabled: null,
  6458. $padding: $button-medium-padding,
  6459. $text-padding: $button-medium-text-padding,
  6460. $background-color: null,
  6461. $background-color-over: null,
  6462. $background-color-focus: null,
  6463. $background-color-pressed: null,
  6464. $background-color-focus-over: null,
  6465. $background-color-focus-pressed: null,
  6466. $background-color-disabled: null,
  6467. $background-gradient: $button-toolbar-background-gradient,
  6468. $background-gradient-over: $button-toolbar-background-gradient-over,
  6469. $background-gradient-focus: $button-toolbar-background-gradient-focus,
  6470. $background-gradient-pressed: $button-toolbar-background-gradient-pressed,
  6471. $background-gradient-focus-over: $button-toolbar-background-gradient-focus-over,
  6472. $background-gradient-focus-pressed: $button-toolbar-background-gradient-focus-pressed,
  6473. $background-gradient-disabled: $button-toolbar-background-gradient-disabled,
  6474. $color: null,
  6475. $color-over: null,
  6476. $color-focus: null,
  6477. $color-pressed: null,
  6478. $color-focus-over: null,
  6479. $color-focus-pressed: null,
  6480. $color-disabled: null,
  6481. $inner-border-width: null,
  6482. $inner-border-width-over: null,
  6483. $inner-border-width-focus: null,
  6484. $inner-border-width-pressed: null,
  6485. $inner-border-width-focus-over: null,
  6486. $inner-border-width-focus-pressed: null,
  6487. $inner-border-width-disabled: null,
  6488. $inner-border-color: null,
  6489. $inner-border-color-over: null,
  6490. $inner-border-color-focus: null,
  6491. $inner-border-color-pressed: null,
  6492. $inner-border-color-focus-over: null,
  6493. $inner-border-color-focus-pressed: null,
  6494. $inner-border-color-disabled: null,
  6495. $body-outline-width-focus: $button-toolbar-body-outline-width-focus,
  6496. $body-outline-style-focus: $button-toolbar-body-outline-style-focus,
  6497. $body-outline-color-focus: $button-toolbar-body-outline-color-focus,
  6498. $font-size: null,
  6499. $font-size-over: null,
  6500. $font-size-focus: null,
  6501. $font-size-pressed: null,
  6502. $font-size-focus-over: null,
  6503. $font-size-focus-pressed: null,
  6504. $font-size-disabled: null,
  6505. $font-weight: null,
  6506. $font-weight-over: null,
  6507. $font-weight-focus: null,
  6508. $font-weight-pressed: null,
  6509. $font-weight-focus-over: null,
  6510. $font-weight-focus-pressed: null,
  6511. $font-weight-disabled: null,
  6512. $font-family: null,
  6513. $font-family-over: null,
  6514. $font-family-focus: null,
  6515. $font-family-pressed: null,
  6516. $font-family-focus-over: null,
  6517. $font-family-focus-pressed: null,
  6518. $font-family-disabled: null,
  6519. $line-height: $button-medium-line-height,
  6520. $icon-size: $button-medium-icon-size,
  6521. $glyph-font-size: $button-medium-glyph-font-size,
  6522. $icon-spacing: $button-medium-icon-spacing,
  6523. $glyph-color: $button-toolbar-glyph-color,
  6524. $glyph-opacity: $button-toolbar-glyph-opacity,
  6525. $arrow-width: $button-medium-arrow-width,
  6526. $arrow-height: $button-medium-arrow-height,
  6527. $arrow-glyph: $button-medium-arrow-glyph,
  6528. $arrow-glyph-color: $button-toolbar-arrow-glyph-color,
  6529. $split-width: $button-medium-split-width,
  6530. $split-height: $button-medium-split-height,
  6531. $split-line-width: $button-medium-split-line-width,
  6532. $split-line-color: $button-toolbar-split-line-color,
  6533. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  6534. $include-ui-split-arrows: $button-include-ui-split-arrows,
  6535. $include-split-noline-arrows: $button-toolbar-include-split-noline-arrows,
  6536. $include-split-over-arrows: $button-include-split-over-arrows,
  6537. $opacity-disabled: $button-toolbar-opacity-disabled,
  6538. $inner-opacity-disabled: $button-toolbar-inner-opacity-disabled
  6539. ) {
  6540. @if $border-color == null {
  6541. $border-color: $button-toolbar-border-color;
  6542. @if $border-color-over == null {
  6543. $border-color-over: $button-toolbar-border-color-over;
  6544. }
  6545. @if $border-color-focus == null {
  6546. $border-color-focus: $button-toolbar-border-color-focus;
  6547. }
  6548. @if $border-color-pressed == null {
  6549. $border-color-pressed: $button-toolbar-border-color-pressed;
  6550. }
  6551. @if $border-color-focus-over == null {
  6552. $border-color-focus-over: $button-toolbar-border-color-focus-over;
  6553. }
  6554. @if $border-color-focus-pressed == null {
  6555. $border-color-focus-pressed: $button-toolbar-border-color-focus-pressed;
  6556. }
  6557. @if $border-color-disabled == null {
  6558. $border-color-disabled: $button-toolbar-border-color-disabled;
  6559. }
  6560. } @else {
  6561. @if $border-color-over == null {
  6562. $border-color-over: button-toolbar-border-color-over($border-color);
  6563. }
  6564. @if $border-color-focus == null {
  6565. $border-color-focus: button-toolbar-border-color-focus($border-color);
  6566. }
  6567. @if $border-color-pressed == null {
  6568. $border-color-pressed: button-toolbar-border-color-pressed($border-color);
  6569. }
  6570. @if $border-color-focus-over == null {
  6571. $border-color-focus-over: $border-color-over;
  6572. }
  6573. @if $border-color-focus-pressed == null {
  6574. $border-color-focus-pressed: $border-color-pressed;
  6575. }
  6576. @if $border-color-disabled == null {
  6577. $border-color-disabled: button-toolbar-border-color-disabled($border-color);
  6578. }
  6579. }
  6580. @if $background-color == null {
  6581. $background-color: $button-toolbar-background-color;
  6582. @if $background-color-over == null {
  6583. $background-color-over: $button-toolbar-background-color-over;
  6584. }
  6585. @if $background-color-focus == null {
  6586. $background-color-focus: $button-toolbar-background-color-focus;
  6587. }
  6588. @if $background-color-pressed == null {
  6589. $background-color-pressed: $button-toolbar-background-color-pressed;
  6590. }
  6591. @if $background-color-focus-over == null {
  6592. $background-color-focus-over: $button-toolbar-background-color-focus-over;
  6593. }
  6594. @if $background-color-focus-pressed == null {
  6595. $background-color-focus-pressed: $button-toolbar-background-color-focus-pressed;
  6596. }
  6597. @if $background-color-disabled == null {
  6598. $background-color-disabled: $button-toolbar-background-color-disabled;
  6599. }
  6600. } @else {
  6601. @if $background-color-over == null {
  6602. $background-color-over: button-toolbar-background-color-over($background-color);
  6603. }
  6604. @if $background-color-focus == null {
  6605. $background-color-focus: button-toolbar-background-color-focus($background-color);
  6606. }
  6607. @if $background-color-pressed == null {
  6608. $background-color-pressed: button-toolbar-background-color-pressed($background-color);
  6609. }
  6610. @if $background-color-focus-over == null {
  6611. $background-color-focus-over: $background-color-over;
  6612. }
  6613. @if $background-color-focus-pressed == null {
  6614. $background-color-focus-pressed: $background-color-pressed;
  6615. }
  6616. @if $background-color-disabled == null {
  6617. $background-color-disabled: button-toolbar-background-color-disabled($background-color);
  6618. }
  6619. }
  6620. @if $color == null {
  6621. $color: $button-toolbar-color;
  6622. @if $color-over == null {
  6623. $color-over: $button-toolbar-color-over;
  6624. }
  6625. @if $color-focus == null {
  6626. $color-focus: $button-toolbar-color-focus;
  6627. }
  6628. @if $color-pressed == null {
  6629. $color-pressed: $button-toolbar-color-pressed;
  6630. }
  6631. @if $color-focus-over == null {
  6632. $color-focus-over: $button-toolbar-color-focus-over;
  6633. }
  6634. @if $color-focus-pressed == null {
  6635. $color-focus-pressed: $button-toolbar-color-focus-pressed;
  6636. }
  6637. @if $color-disabled == null {
  6638. $color-disabled: $button-toolbar-color-disabled;
  6639. }
  6640. } @else {
  6641. @if $color-over == null {
  6642. $color-over: button-toolbar-color-over($color);
  6643. }
  6644. @if $color-focus == null {
  6645. $color-focus: button-toolbar-color-focus($color);
  6646. }
  6647. @if $color-pressed == null {
  6648. $color-pressed: button-toolbar-color-pressed($color);
  6649. }
  6650. @if $color-focus-over == null {
  6651. $color-focus-over: $color-over;
  6652. }
  6653. @if $color-focus-pressed == null {
  6654. $color-focus-pressed: $color-pressed;
  6655. }
  6656. @if $color-disabled == null {
  6657. $color-disabled: button-toolbar-color-disabled($color);
  6658. }
  6659. }
  6660. @if $inner-border-width == null {
  6661. $inner-border-width: $button-toolbar-inner-border-width;
  6662. @if $inner-border-width-over == null {
  6663. $inner-border-width-over: $button-toolbar-inner-border-width-over;
  6664. }
  6665. @if $inner-border-width-focus == null {
  6666. $inner-border-width-focus: $button-toolbar-inner-border-width-focus;
  6667. }
  6668. @if $inner-border-width-pressed == null {
  6669. $inner-border-width-pressed: $button-toolbar-inner-border-width-pressed;
  6670. }
  6671. @if $inner-border-width-focus-over == null {
  6672. $inner-border-width-focus-over: $button-toolbar-inner-border-width-focus-over;
  6673. }
  6674. @if $inner-border-width-focus-pressed == null {
  6675. $inner-border-width-focus-pressed: $button-toolbar-inner-border-width-focus-pressed;
  6676. }
  6677. @if $inner-border-width-disabled == null {
  6678. $inner-border-width-disabled: $button-toolbar-inner-border-width-disabled;
  6679. }
  6680. } @else {
  6681. @if $inner-border-width-over == null {
  6682. $inner-border-width-over: $inner-border-width;
  6683. }
  6684. @if $inner-border-width-focus == null {
  6685. $inner-border-width-focus: $inner-border-width;
  6686. }
  6687. @if $inner-border-width-pressed == null {
  6688. $inner-border-width-pressed: $inner-border-width;
  6689. }
  6690. @if $inner-border-width-focus-over == null {
  6691. $inner-border-width-focus-over: $inner-border-width-over;
  6692. }
  6693. @if $inner-border-width-focus-pressed == null {
  6694. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  6695. }
  6696. @if $inner-border-width-disabled == null {
  6697. $inner-border-width-disabled: $inner-border-width;
  6698. }
  6699. }
  6700. @if $inner-border-color == null {
  6701. $inner-border-color: $button-toolbar-inner-border-color;
  6702. @if $inner-border-color-over == null {
  6703. $inner-border-color-over: $button-toolbar-inner-border-color-over;
  6704. }
  6705. @if $inner-border-color-focus == null {
  6706. $inner-border-color-focus: $button-toolbar-inner-border-color-focus;
  6707. }
  6708. @if $inner-border-color-pressed == null {
  6709. $inner-border-color-pressed: $button-toolbar-inner-border-color-pressed;
  6710. }
  6711. @if $inner-border-color-focus-over == null {
  6712. $inner-border-color-focus-over: $button-toolbar-inner-border-color-focus-over;
  6713. }
  6714. @if $inner-border-color-focus-pressed == null {
  6715. $inner-border-color-focus-pressed: $button-toolbar-inner-border-color-focus-pressed;
  6716. }
  6717. @if $inner-border-color-disabled == null {
  6718. $inner-border-color-disabled: $button-toolbar-inner-border-color-disabled;
  6719. }
  6720. } @else {
  6721. @if $inner-border-color-over == null {
  6722. $inner-border-color-over: button-toolbar-inner-border-color-over($background-color-over, $color-over);
  6723. }
  6724. @if $inner-border-color-focus == null {
  6725. $inner-border-color-focus: button-toolbar-inner-border-color-focus($background-color-focus, $color-focus);
  6726. }
  6727. @if $inner-border-color-pressed == null {
  6728. $inner-border-color-pressed: button-toolbar-inner-border-color-pressed($background-color-pressed, $color-pressed);
  6729. }
  6730. @if $inner-border-color-focus-over == null {
  6731. $inner-border-color-focus-over: button-toolbar-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  6732. }
  6733. @if $inner-border-color-focus-pressed == null {
  6734. $inner-border-color-focus-pressed: button-toolbar-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed)
  6735. }
  6736. @if $inner-border-color-disabled == null {
  6737. $inner-border-color-disabled: button-toolbar-inner-border-color-disabled($background-color-disabled, $color-disabled);
  6738. }
  6739. }
  6740. @if $font-size == null {
  6741. $font-size: $button-medium-font-size;
  6742. @if $font-size-over == null {
  6743. $font-size-over: $button-medium-font-size-over;
  6744. }
  6745. @if $font-size-focus == null {
  6746. $font-size-focus: $button-medium-font-size-focus;
  6747. }
  6748. @if $font-size-pressed == null {
  6749. $font-size-pressed: $button-medium-font-size-pressed;
  6750. }
  6751. @if $font-size-focus-over == null {
  6752. $font-size-focus-over: $button-medium-font-size-focus-over;
  6753. }
  6754. @if $font-size-focus-pressed == null {
  6755. $font-size-focus-pressed: $button-medium-font-size-focus-pressed;
  6756. }
  6757. @if $font-size-disabled == null {
  6758. $font-size-disabled: $button-medium-font-size-disabled;
  6759. }
  6760. } @else {
  6761. @if $font-size-over == null {
  6762. $font-size-over: $font-size;
  6763. }
  6764. @if $font-size-focus == null {
  6765. $font-size-focus: $font-size;
  6766. }
  6767. @if $font-size-pressed == null {
  6768. $font-size-pressed: $font-size;
  6769. }
  6770. @if $font-size-focus-over == null {
  6771. $font-size-focus-over: $font-size-over;
  6772. }
  6773. @if $font-size-focus-pressed == null {
  6774. $font-size-focus-pressed: $font-size-pressed;
  6775. }
  6776. @if $font-size-disabled == null {
  6777. $font-size-disabled: $font-size;
  6778. }
  6779. }
  6780. @if $font-weight == null {
  6781. $font-weight: $button-medium-font-weight;
  6782. @if $font-weight-over == null {
  6783. $font-weight-over: $button-medium-font-weight-over;
  6784. }
  6785. @if $font-weight-focus == null {
  6786. $font-weight-focus: $button-medium-font-weight-focus;
  6787. }
  6788. @if $font-weight-pressed == null {
  6789. $font-weight-pressed: $button-medium-font-weight-pressed;
  6790. }
  6791. @if $font-weight-focus-over == null {
  6792. $font-weight-focus-over: $button-medium-font-weight-focus-over;
  6793. }
  6794. @if $font-weight-focus-pressed == null {
  6795. $font-weight-focus-pressed: $button-medium-font-weight-focus-pressed;
  6796. }
  6797. @if $font-weight-disabled == null {
  6798. $font-weight-disabled: $button-medium-font-weight-disabled;
  6799. }
  6800. } @else {
  6801. @if $font-weight-over == null {
  6802. $font-weight-over: $font-weight;
  6803. }
  6804. @if $font-weight-focus == null {
  6805. $font-weight-focus: $font-weight;
  6806. }
  6807. @if $font-weight-pressed == null {
  6808. $font-weight-pressed: $font-weight;
  6809. }
  6810. @if $font-weight-focus-over == null {
  6811. $font-weight-focus-over: $font-weight-over;
  6812. }
  6813. @if $font-weight-focus-pressed == null {
  6814. $font-weight-focus-pressed: $font-weight-pressed;
  6815. }
  6816. @if $font-weight-disabled == null {
  6817. $font-weight-disabled: $font-weight;
  6818. }
  6819. }
  6820. @if $font-family == null {
  6821. $font-family: $button-medium-font-family;
  6822. @if $font-family-over == null {
  6823. $font-family-over: $button-medium-font-family-over;
  6824. }
  6825. @if $font-family-focus == null {
  6826. $font-family-focus: $button-medium-font-family-focus;
  6827. }
  6828. @if $font-family-pressed == null {
  6829. $font-family-pressed: $button-medium-font-family-pressed;
  6830. }
  6831. @if $font-family-focus-over == null {
  6832. $font-family-focus-over: $button-medium-font-family-focus-over;
  6833. }
  6834. @if $font-family-focus-pressed == null {
  6835. $font-family-focus-pressed: $button-medium-font-family-focus-pressed;
  6836. }
  6837. @if $font-family-disabled == null {
  6838. $font-family-disabled: $button-medium-font-family-disabled;
  6839. }
  6840. } @else {
  6841. @if $font-family-over == null {
  6842. $font-family-over: $font-family;
  6843. }
  6844. @if $font-family-focus == null {
  6845. $font-family-focus: $font-family;
  6846. }
  6847. @if $font-family-pressed == null {
  6848. $font-family-pressed: $font-family;
  6849. }
  6850. @if $font-family-focus-over == null {
  6851. $font-family-focus-over: $font-family-over;
  6852. }
  6853. @if $font-family-focus-pressed == null {
  6854. $font-family-focus-pressed: $font-family-pressed;
  6855. }
  6856. @if $font-family-disabled == null {
  6857. $font-family-disabled: $font-family;
  6858. }
  6859. }
  6860. @include extjs-button-ui(
  6861. $ui: '#{$ui}-toolbar-medium',
  6862. $border-radius: $border-radius,
  6863. $border-width: $border-width,
  6864. $border-color: $border-color,
  6865. $border-color-over: $border-color-over,
  6866. $border-color-focus: $border-color-focus,
  6867. $border-color-pressed: $border-color-pressed,
  6868. $border-color-focus-over: $border-color-focus-over,
  6869. $border-color-focus-pressed: $border-color-focus-pressed,
  6870. $border-color-disabled: $border-color-disabled,
  6871. $padding: $padding,
  6872. $text-padding: $text-padding,
  6873. $background-color: $background-color,
  6874. $background-color-over: $background-color-over,
  6875. $background-color-focus: $background-color-focus,
  6876. $background-color-pressed: $background-color-pressed,
  6877. $background-color-focus-over: $background-color-focus-over,
  6878. $background-color-focus-pressed: $background-color-focus-pressed,
  6879. $background-color-disabled: $background-color-disabled,
  6880. $background-gradient: $background-gradient,
  6881. $background-gradient-over: $background-gradient-over,
  6882. $background-gradient-focus: $background-gradient-focus,
  6883. $background-gradient-pressed: $background-gradient-pressed,
  6884. $background-gradient-focus-over: $background-gradient-focus-over,
  6885. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  6886. $background-gradient-disabled: $background-gradient-disabled,
  6887. $color: $color,
  6888. $color-over: $color-over,
  6889. $color-focus: $color-focus,
  6890. $color-pressed: $color-pressed,
  6891. $color-focus-over: $color-focus-over,
  6892. $color-focus-pressed: $color-focus-pressed,
  6893. $color-disabled: $color-disabled,
  6894. $inner-border-width: $inner-border-width,
  6895. $inner-border-width-over: $inner-border-width-over,
  6896. $inner-border-width-focus: $inner-border-width-focus,
  6897. $inner-border-width-pressed: $inner-border-width-pressed,
  6898. $inner-border-width-focus-over: $inner-border-width-focus-over,
  6899. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  6900. $inner-border-width-disabled: $inner-border-width-disabled,
  6901. $inner-border-color: $inner-border-color,
  6902. $inner-border-color-over: $inner-border-color-over,
  6903. $inner-border-color-focus: $inner-border-color-focus,
  6904. $inner-border-color-pressed: $inner-border-color-pressed,
  6905. $inner-border-color-focus-over: $inner-border-color-focus-over,
  6906. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  6907. $inner-border-color-disabled: $inner-border-color-disabled,
  6908. $body-outline-width-focus: $body-outline-width-focus,
  6909. $body-outline-style-focus: $body-outline-style-focus,
  6910. $body-outline-color-focus: $body-outline-color-focus,
  6911. $font-size: $font-size,
  6912. $font-size-over: $font-size-over,
  6913. $font-size-focus: $font-size-focus,
  6914. $font-size-pressed: $font-size-pressed,
  6915. $font-size-focus-over: $font-size-focus-over,
  6916. $font-size-focus-pressed: $font-size-focus-pressed,
  6917. $font-size-disabled: $font-size-disabled,
  6918. $font-weight: $font-weight,
  6919. $font-weight-over: $font-weight-over,
  6920. $font-weight-focus: $font-weight-focus,
  6921. $font-weight-pressed: $font-weight-pressed,
  6922. $font-weight-focus-over: $font-weight-focus-over,
  6923. $font-weight-focus-pressed: $font-weight-focus-pressed,
  6924. $font-weight-disabled: $font-weight-disabled,
  6925. $font-family: $font-family,
  6926. $font-family-over: $font-family-over,
  6927. $font-family-focus: $font-family-focus,
  6928. $font-family-pressed: $font-family-pressed,
  6929. $font-family-focus-over: $font-family-focus-over,
  6930. $font-family-focus-pressed: $font-family-focus-pressed,
  6931. $font-family-disabled: $font-family-disabled,
  6932. $line-height: $line-height,
  6933. $icon-size: $icon-size,
  6934. $glyph-font-size: $glyph-font-size,
  6935. $icon-spacing: $icon-spacing,
  6936. $glyph-color: $glyph-color,
  6937. $glyph-opacity: $glyph-opacity,
  6938. $arrow-width: $arrow-width,
  6939. $arrow-height: $arrow-height,
  6940. $arrow-glyph: $arrow-glyph,
  6941. $arrow-glyph-color: $arrow-glyph-color,
  6942. $split-width: $split-width,
  6943. $split-height: $split-height,
  6944. $split-line-width: $split-line-width,
  6945. $split-line-color: $split-line-color,
  6946. $include-ui-menu-arrows: $include-ui-menu-arrows,
  6947. $include-ui-split-arrows: $include-ui-split-arrows,
  6948. $include-split-noline-arrows: $include-split-noline-arrows,
  6949. $include-split-over-arrows: $include-split-over-arrows,
  6950. $opacity-disabled: $opacity-disabled,
  6951. $inner-opacity-disabled: $inner-opacity-disabled
  6952. );
  6953. }
  6954. /**
  6955. * Creates a visual theme for a {@link #scale large} toolbar Button.
  6956. *
  6957. * @param {string} $ui
  6958. * The name of the UI being created. Can not included spaces or special punctuation
  6959. * (used in CSS class names).
  6960. *
  6961. * @param {number} [$border-radius=$button-large-border-radius]
  6962. * The border-radius of the button
  6963. *
  6964. * @param {number} [$border-width=$button-large-border-width]
  6965. * The border-width of the button
  6966. *
  6967. * @param {color} [$border-color=$button-toolbar-border-color]
  6968. * The border-color of the button
  6969. *
  6970. * @param {color} [$border-color-over=$button-toolbar-border-color-over]
  6971. * The border-color of the button when the cursor is over the button
  6972. *
  6973. * @param {color} [$border-color-focus=$button-toolbar-border-color-focus]
  6974. * The border-color of the button when focused
  6975. *
  6976. * @param {color} [$border-color-pressed=$button-toolbar-border-color-pressed]
  6977. * The border-color of the button when pressed
  6978. *
  6979. * @param {color} [$border-color-focus-over=$button-toolbar-border-color-focus-over]
  6980. * The border-color of the button when the button is focused and the cursor is over the
  6981. * button
  6982. *
  6983. * @param {color} [$border-color-focus-pressed=$button-toolbar-border-color-focus-pressed]
  6984. * The border-color of the button when focused and pressed
  6985. *
  6986. * @param {color} [$border-color-disabled=$button-toolbar-border-color-disabled]
  6987. * The border-color of the button when disabled
  6988. *
  6989. * @param {number} [$padding=$button-large-padding]
  6990. * The amount of padding inside the border of the button on all sides
  6991. *
  6992. * @param {number} [$text-padding=$button-large-text-padding]
  6993. * The amount of horizontal space to add to the left and right of the button text
  6994. *
  6995. * @param {color} [$background-color=$button-toolbar-background-color]
  6996. * The background-color of the button
  6997. *
  6998. * @param {color} [$background-color-over=$button-toolbar-background-color-over]
  6999. * The background-color of the button when the cursor is over the button
  7000. *
  7001. * @param {color} [$background-color-focus=$button-toolbar-background-color-focus]
  7002. * The background-color of the button when focused
  7003. *
  7004. * @param {color} [$background-color-pressed=$button-toolbar-background-color-pressed]
  7005. * The background-color of the button when pressed
  7006. *
  7007. * @param {color} [$background-color-focus-over=$button-toolbar-background-color-focus-over]
  7008. * The background-color of the button when the button is focused and the cursor is over
  7009. * the button
  7010. *
  7011. * @param {color} [$background-color-focus-pressed=$button-toolbar-background-color-focus-pressed]
  7012. * The background-color of the button when focused and pressed
  7013. *
  7014. * @param {color} [$background-color-disabled=$button-toolbar-background-color-disabled]
  7015. * The background-color of the button when disabled
  7016. *
  7017. * @param {string/list} [$background-gradient=$button-toolbar-background-gradient]
  7018. * The background-gradient for the button. Can be either the name of a predefined gradient
  7019. * or a list of color stops. Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  7020. *
  7021. * @param {string/list} [$background-gradient-over=$button-toolbar-background-gradient-over]
  7022. * The background-gradient to use when the cursor is over the button. Can be either the
  7023. * name of a predefined gradient or a list of color stops. Used as the `$type` parameter
  7024. * for {@link Global_CSS#background-gradient}.
  7025. *
  7026. * @param {string/list} [$background-gradient-focus=$button-toolbar-background-gradient-focus]
  7027. * The background-gradient to use when the the button is focused. Can be either the name
  7028. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  7029. * {@link Global_CSS#background-gradient}.
  7030. *
  7031. * @param {string/list} [$background-gradient-pressed=$button-toolbar-background-gradient-pressed]
  7032. * The background-gradient to use when the the button is pressed. Can be either the name
  7033. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  7034. * {@link Global_CSS#background-gradient}.
  7035. *
  7036. * @param {string} [$background-gradient-focus-over=$button-toolbar-background-gradient-focus-over]
  7037. * The background-gradient to use when the the button is focused and the cursor is over
  7038. * the button. Can be either the name of a predefined gradient or a list of color stops.
  7039. * Used as the `$type` parameter for {@link Global_CSS#background-gradient}.
  7040. *
  7041. * @param {string} [$background-gradient-focus-pressed=$button-toolbar-background-gradient-focus-pressed]
  7042. * The background-gradient to use when the the button is focused and pressed. Can be
  7043. * either the name of a predefined gradient or a list of color stops. Used as the `$type`
  7044. * parameter for {@link Global_CSS#background-gradient}.
  7045. *
  7046. * @param {string/list} [$background-gradient-disabled=$button-toolbar-background-gradient-disabled]
  7047. * The background-gradient to use when the the button is disabled. Can be either the name
  7048. * of a predefined gradient or a list of color stops. Used as the `$type` parameter for
  7049. * {@link Global_CSS#background-gradient}.
  7050. *
  7051. * @param {color} [$color=$button-toolbar-color]
  7052. * The text color of the button
  7053. *
  7054. * @param {color} [$color-over=$button-toolbar-color-over]
  7055. * The text color of the button when the cursor is over the button
  7056. *
  7057. * @param {color} [$color-focus=$button-toolbar-color-focus]
  7058. * The text color of the button when the button is focused
  7059. *
  7060. * @param {color} [$color-pressed=$button-toolbar-color-pressed]
  7061. * The text color of the button when the button is pressed
  7062. *
  7063. * @param {color} [$color-focus-over=$button-toolbar-color-focus-over]
  7064. * The text color of the button when the button is focused and the cursor is over the button
  7065. *
  7066. * @param {color} [$color-focus-pressed=$button-toolbar-color-focus-pressed]
  7067. * The text color of the button when the button is focused and pressed
  7068. *
  7069. * @param {color} [$color-disabled=$button-toolbar-color-disabled]
  7070. * The text color of the button when the button is disabled
  7071. *
  7072. * @param {number/list} [$inner-border-width=$button-toolbar-inner-border-width]
  7073. * The inner border-width of the button
  7074. *
  7075. * @param {number/list} [$inner-border-width-over=$button-toolbar-inner-border-width-over]
  7076. * The inner border-width of the button when the cursor is over the button
  7077. *
  7078. * @param {number/list} [$inner-border-width-focus=$button-toolbar-inner-border-width-focus]
  7079. * The inner border-width of the button when focused
  7080. *
  7081. * @param {number/list} [$inner-border-width-pressed=$button-toolbar-inner-border-width-pressed]
  7082. * The inner border-width of the button when pressed
  7083. *
  7084. * @param {number/list} [$inner-border-width-focus-over=$button-toolbar-inner-border-width-focus-over]
  7085. * The inner border-width of the button when the button is focused and the cursor is over
  7086. * the button
  7087. *
  7088. * @param {number/list} [$inner-border-width-focus-pressed=$button-toolbar-inner-border-width-focus-pressed]
  7089. * The inner border-width of the button when focused and pressed
  7090. *
  7091. * @param {number/list} [$inner-border-width-disabled=$button-toolbar-inner-border-width-disabled]
  7092. * The inner border-width of the button when disabled
  7093. *
  7094. * @param {color} [$inner-border-color=$button-toolbar-inner-border-color]
  7095. * The inner border-color of the button
  7096. *
  7097. * @param {color} [$inner-border-color-over=$button-toolbar-inner-border-color-over]
  7098. * The inner border-color of the button when the cursor is over the button
  7099. *
  7100. * @param {color} [$inner-border-color-focus=$button-toolbar-inner-border-color-focus]
  7101. * The inner border-color of the button when focused
  7102. *
  7103. * @param {color} [$inner-border-color-pressed=$button-toolbar-inner-border-color-pressed]
  7104. * The inner border-color of the button when pressed
  7105. *
  7106. * @param {color} [$inner-border-color-focus-over=$button-toolbar-inner-border-color-focus-over]
  7107. * The inner border-color of the button when the button is focused and the cursor is over
  7108. * the button
  7109. *
  7110. * @param {color} [$inner-border-color-focus-pressed=$button-toolbar-inner-border-color-focus-pressed]
  7111. * The inner border-color of the button when focused and pressed
  7112. *
  7113. * @param {color} [$inner-border-color-disabled=$button-toolbar-inner-border-color-disabled]
  7114. * The inner border-color of the button when disabled
  7115. *
  7116. * @param {number} [$body-outline-width-focus=$button-toolbar-body-outline-width-focus]
  7117. * The body outline width of the button when focused
  7118. *
  7119. * @param {number} [$body-outline-style-focus=$button-toolbar-body-outline-style-focus]
  7120. * The body outline-style of the button when focused
  7121. *
  7122. * @param {number} [$body-outline-color-focus=$button-toolbar-body-outline-color-focus]
  7123. * The body outline color of the button when focused
  7124. *
  7125. * @param {number} [$font-size=$button-large-font-size]
  7126. * The font-size of the button
  7127. *
  7128. * @param {number} [$font-size-over=$button-large-font-size-over]
  7129. * The font-size of the button when the cursor is over the button
  7130. *
  7131. * @param {number} [$font-size-focus=$button-large-font-size-focus]
  7132. * The font-size of the button when the button is focused
  7133. *
  7134. * @param {number} [$font-size-pressed=$button-large-font-size-pressed]
  7135. * The font-size of the button when the button is pressed
  7136. *
  7137. * @param {number} [$font-size-focus-over=$button-large-font-size-focus-over]
  7138. * The font-size of the button when the button is focused and the cursor is over the
  7139. * button
  7140. *
  7141. * @param {number} [$font-size-focus-pressed=$button-large-font-size-focus-pressed]
  7142. * The font-size of the button when the button is focused and pressed
  7143. *
  7144. * @param {number} [$font-size-disabled=$button-large-font-size-disabled]
  7145. * The font-size of the button when the button is disabled
  7146. *
  7147. * @param {string} [$font-weight=$button-large-font-weight]
  7148. * The font-weight of the button
  7149. *
  7150. * @param {string} [$font-weight-over=$button-large-font-weight-over]
  7151. * The font-weight of the button when the cursor is over the button
  7152. *
  7153. * @param {string} [$font-weight-focus=$button-large-font-weight-focus]
  7154. * The font-weight of the button when the button is focused
  7155. *
  7156. * @param {string} [$font-weight-pressed=$button-large-font-weight-pressed]
  7157. * The font-weight of the button when the button is pressed
  7158. *
  7159. * @param {string} [$font-weight-focus-over=$button-large-font-weight-focus-over]
  7160. * The font-weight of the button when the button is focused and the cursor is over the
  7161. * button
  7162. *
  7163. * @param {string} [$font-weight-focus-pressed=$button-large-font-weight-focus-pressed]
  7164. * The font-weight of the button when the button is focused and pressed
  7165. *
  7166. * @param {string} [$font-weight-disabled=$button-large-font-weight-disabled]
  7167. * The font-weight of the button when the button is disabled
  7168. *
  7169. * @param {string} [$font-family=$button-large-font-family]
  7170. * The font-family of the button
  7171. *
  7172. * @param {string} [$font-family-over=$button-large-font-family-over]
  7173. * The font-family of the button when the cursor is over the button
  7174. *
  7175. * @param {string} [$font-family-focus=$button-large-font-family-focus]
  7176. * The font-family of the button when the button is focused
  7177. *
  7178. * @param {string} [$font-family-pressed=$button-large-font-family-pressed]
  7179. * The font-family of the button when the button is pressed
  7180. *
  7181. * @param {string} [$font-family-focus-over=$button-large-font-family-focus-over]
  7182. * The font-family of the button when the button is focused and the cursor is over the
  7183. * button
  7184. *
  7185. * @param {string} [$font-family-focus-pressed=$button-large-font-family-focus-pressed]
  7186. * The font-family of the button when the button is focused and pressed
  7187. *
  7188. * @param {string} [$font-family-disabled=$button-large-font-family-disabled]
  7189. * The font-family of the button when the button is disabled
  7190. *
  7191. * @param {number} [$line-height=$button-large-line-height]
  7192. * The line-height of the button text
  7193. *
  7194. * @param {number} [$icon-size=$button-large-icon-size]
  7195. * The size of the button icon
  7196. *
  7197. * @param {number} [$glyph-font-size=$button-large-glyph-font-size]
  7198. * The font-size for the button glyph
  7199. *
  7200. * @param {number} [$icon-spacing=$button-large-icon-spacing]
  7201. * The space between the button's icon and text
  7202. *
  7203. * @param {color} [$glyph-color=$button-toolbar-glyph-color]
  7204. * The color of the button's {@link #glyph} icon
  7205. *
  7206. * @param {number} [$glyph-opacity=$button-toolbar-glyph-opacity]
  7207. * The opacity of the button's {@link #glyph} icon
  7208. *
  7209. * @param {number} [$arrow-width=$button-large-arrow-width]
  7210. * The width of the button's {@link #cfg-menu} arrow
  7211. *
  7212. * @param {number} [$arrow-height=$button-large-arrow-height]
  7213. * The height of the button's {@link #cfg-menu} arrow
  7214. *
  7215. * @param {string/list} [$arrow-glyph=$button-large-arrow-glyph]
  7216. * Glyph for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  7217. *
  7218. * @param {string/list} [$arrow-glyph-color=$button-toolbar-arrow-glyph-color]
  7219. * Glyph color for the button arrow when when {@link Global_CSS#$enable-font-icons} is `true`.
  7220. *
  7221. * @param {number} [$split-width=$button-large-split-width]
  7222. * The width of a {@link Ext.button.Split Split Button}'s arrow
  7223. *
  7224. * @param {number} [$split-height=$button-large-split-height]
  7225. * The height of a {@link Ext.button.Split Split Button}'s arrow
  7226. *
  7227. * @param {number} [$split-line-width=$button-large-split-line-width]
  7228. * The default width for a {@link Ext.button.Split Split Button}'s line.
  7229. * Themes that include the line in the arrow background image should set this to 0
  7230. *
  7231. * @param {color} [$split-line-color=$button-toolbar-split-line-color]
  7232. * The color for a {@link Ext.button.Split Split Button}'s line.
  7233. * Only applicable when `$split-line-width` is greater than 0.
  7234. *
  7235. * @param {boolean} [$include-ui-menu-arrows=$button-include-ui-menu-arrows]
  7236. * True to include the UI name in the file name of the {@link #cfg-menu}
  7237. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  7238. *
  7239. * @param {boolean} [$include-ui-split-arrows=$button-include-ui-split-arrows]
  7240. * True to include the UI name in the file name of the {@link Ext.button.Split Split Button}'s
  7241. * arrow icon. Set this to false to share the same arrow bewteen multiple UIs.
  7242. *
  7243. * @param {boolean} [$include-split-noline-arrows=$button-toolbar-include-split-noline-arrows]
  7244. * True to add a "-noline" suffix to the file name of the {@link Ext.button.Split Split Button}'s
  7245. * arrow icon. Used for hiding the split line when toolbar buttons are in their default
  7246. * state.
  7247. *
  7248. * @param {boolean} [$include-split-over-arrows=$button-include-split-over-arrows]
  7249. * True to use a separate icon for {@link Ext.button.Split Split Button}s when the cursor
  7250. * is over the button. The over icon file name will have a "-o" suffix
  7251. *
  7252. * @param {number} [$opacity-disabled=$button-toolbar-opacity-disabled]
  7253. * The opacity of the button when it is disabled
  7254. *
  7255. * @param {number} [$inner-opacity-disabled=$button-toolbar-inner-opacity-disabled]
  7256. * The opacity of the button's text and icon elements when when the button is disabled
  7257. *
  7258. * @member Ext.button.Button
  7259. */
  7260. @mixin extjs-button-toolbar-large-ui(
  7261. $ui,
  7262. $border-radius: $button-large-border-radius,
  7263. $border-width: $button-large-border-width,
  7264. $border-color: null,
  7265. $border-color-over: null,
  7266. $border-color-focus: null,
  7267. $border-color-pressed: null,
  7268. $border-color-focus-over: null,
  7269. $border-color-focus-pressed: null,
  7270. $border-color-disabled: null,
  7271. $padding: $button-large-padding,
  7272. $text-padding: $button-large-text-padding,
  7273. $background-color: null,
  7274. $background-color-over: null,
  7275. $background-color-focus: null,
  7276. $background-color-pressed: null,
  7277. $background-color-focus-over: null,
  7278. $background-color-focus-pressed: null,
  7279. $background-color-disabled: null,
  7280. $background-gradient: $button-toolbar-background-gradient,
  7281. $background-gradient-over: $button-toolbar-background-gradient-over,
  7282. $background-gradient-focus: $button-toolbar-background-gradient-focus,
  7283. $background-gradient-pressed: $button-toolbar-background-gradient-pressed,
  7284. $background-gradient-focus-over: $button-toolbar-background-gradient-focus-over,
  7285. $background-gradient-focus-pressed: $button-toolbar-background-gradient-focus-pressed,
  7286. $background-gradient-disabled: $button-toolbar-background-gradient-disabled,
  7287. $color: null,
  7288. $color-over: null,
  7289. $color-focus: null,
  7290. $color-pressed: null,
  7291. $color-focus-over: null,
  7292. $color-focus-pressed: null,
  7293. $color-disabled: null,
  7294. $inner-border-width: null,
  7295. $inner-border-width-over: null,
  7296. $inner-border-width-focus: null,
  7297. $inner-border-width-pressed: null,
  7298. $inner-border-width-focus-over: null,
  7299. $inner-border-width-focus-pressed: null,
  7300. $inner-border-width-disabled: null,
  7301. $inner-border-color: null,
  7302. $inner-border-color-over: null,
  7303. $inner-border-color-focus: null,
  7304. $inner-border-color-pressed: null,
  7305. $inner-border-color-focus-over: null,
  7306. $inner-border-color-focus-pressed: null,
  7307. $inner-border-color-disabled: null,
  7308. $body-outline-width-focus: $button-toolbar-body-outline-width-focus,
  7309. $body-outline-style-focus: $button-toolbar-body-outline-style-focus,
  7310. $body-outline-color-focus: $button-toolbar-body-outline-color-focus,
  7311. $font-size: null,
  7312. $font-size-over: null,
  7313. $font-size-focus: null,
  7314. $font-size-pressed: null,
  7315. $font-size-focus-over: null,
  7316. $font-size-focus-pressed: null,
  7317. $font-size-disabled: null,
  7318. $font-weight: null,
  7319. $font-weight-over: null,
  7320. $font-weight-focus: null,
  7321. $font-weight-pressed: null,
  7322. $font-weight-focus-over: null,
  7323. $font-weight-focus-pressed: null,
  7324. $font-weight-disabled: null,
  7325. $font-family: null,
  7326. $font-family-over: null,
  7327. $font-family-focus: null,
  7328. $font-family-pressed: null,
  7329. $font-family-focus-over: null,
  7330. $font-family-focus-pressed: null,
  7331. $font-family-disabled: null,
  7332. $line-height: $button-large-line-height,
  7333. $icon-size: $button-large-icon-size,
  7334. $glyph-font-size: $button-large-glyph-font-size,
  7335. $icon-spacing: $button-large-icon-spacing,
  7336. $glyph-color: $button-toolbar-glyph-color,
  7337. $glyph-opacity: $button-toolbar-glyph-opacity,
  7338. $arrow-width: $button-large-arrow-width,
  7339. $arrow-height: $button-large-arrow-height,
  7340. $arrow-glyph: $button-large-arrow-glyph,
  7341. $arrow-glyph-color: $button-toolbar-arrow-glyph-color,
  7342. $split-width: $button-large-split-width,
  7343. $split-height: $button-large-split-height,
  7344. $split-line-width: $button-large-split-line-width,
  7345. $split-line-color: $button-toolbar-split-line-color,
  7346. $include-ui-menu-arrows: $button-include-ui-menu-arrows,
  7347. $include-ui-split-arrows: $button-include-ui-split-arrows,
  7348. $include-split-noline-arrows: $button-toolbar-include-split-noline-arrows,
  7349. $include-split-over-arrows: $button-include-split-over-arrows,
  7350. $opacity-disabled: $button-toolbar-opacity-disabled,
  7351. $inner-opacity-disabled: $button-toolbar-inner-opacity-disabled
  7352. ) {
  7353. @if $border-color == null {
  7354. $border-color: $button-toolbar-border-color;
  7355. @if $border-color-over == null {
  7356. $border-color-over: $button-toolbar-border-color-over;
  7357. }
  7358. @if $border-color-focus == null {
  7359. $border-color-focus: $button-toolbar-border-color-focus;
  7360. }
  7361. @if $border-color-pressed == null {
  7362. $border-color-pressed: $button-toolbar-border-color-pressed;
  7363. }
  7364. @if $border-color-focus-over == null {
  7365. $border-color-focus-over: $button-toolbar-border-color-focus-over;
  7366. }
  7367. @if $border-color-focus-pressed == null {
  7368. $border-color-focus-pressed: $button-toolbar-border-color-focus-pressed;
  7369. }
  7370. @if $border-color-disabled == null {
  7371. $border-color-disabled: $button-toolbar-border-color-disabled;
  7372. }
  7373. } @else {
  7374. @if $border-color-over == null {
  7375. $border-color-over: button-toolbar-border-color-over($border-color);
  7376. }
  7377. @if $border-color-focus == null {
  7378. $border-color-focus: button-toolbar-border-color-focus($border-color);
  7379. }
  7380. @if $border-color-pressed == null {
  7381. $border-color-pressed: button-toolbar-border-color-pressed($border-color);
  7382. }
  7383. @if $border-color-focus-over == null {
  7384. $border-color-focus-over: $border-color-over;
  7385. }
  7386. @if $border-color-focus-pressed == null {
  7387. $border-color-focus-pressed: $border-color-pressed;
  7388. }
  7389. @if $border-color-disabled == null {
  7390. $border-color-disabled: button-toolbar-border-color-disabled($border-color);
  7391. }
  7392. }
  7393. @if $background-color == null {
  7394. $background-color: $button-toolbar-background-color;
  7395. @if $background-color-over == null {
  7396. $background-color-over: $button-toolbar-background-color-over;
  7397. }
  7398. @if $background-color-focus == null {
  7399. $background-color-focus: $button-toolbar-background-color-focus;
  7400. }
  7401. @if $background-color-pressed == null {
  7402. $background-color-pressed: $button-toolbar-background-color-pressed;
  7403. }
  7404. @if $background-color-focus-over == null {
  7405. $background-color-focus-over: $button-toolbar-background-color-focus-over;
  7406. }
  7407. @if $background-color-focus-pressed == null {
  7408. $background-color-focus-pressed: $button-toolbar-background-color-focus-pressed;
  7409. }
  7410. @if $background-color-disabled == null {
  7411. $background-color-disabled: $button-toolbar-background-color-disabled;
  7412. }
  7413. } @else {
  7414. @if $background-color-over == null {
  7415. $background-color-over: button-toolbar-background-color-over($background-color);
  7416. }
  7417. @if $background-color-focus == null {
  7418. $background-color-focus: button-toolbar-background-color-focus($background-color);
  7419. }
  7420. @if $background-color-pressed == null {
  7421. $background-color-pressed: button-toolbar-background-color-pressed($background-color);
  7422. }
  7423. @if $background-color-focus-over == null {
  7424. $background-color-focus-over: $background-color-over;
  7425. }
  7426. @if $background-color-focus-pressed == null {
  7427. $background-color-focus-pressed: $background-color-pressed;
  7428. }
  7429. @if $background-color-disabled == null {
  7430. $background-color-disabled: button-toolbar-background-color-disabled($background-color);
  7431. }
  7432. }
  7433. @if $color == null {
  7434. $color: $button-toolbar-color;
  7435. @if $color-over == null {
  7436. $color-over: $button-toolbar-color-over;
  7437. }
  7438. @if $color-focus == null {
  7439. $color-focus: $button-toolbar-color-focus;
  7440. }
  7441. @if $color-pressed == null {
  7442. $color-pressed: $button-toolbar-color-pressed;
  7443. }
  7444. @if $color-focus-over == null {
  7445. $color-focus-over: $button-toolbar-color-focus-over;
  7446. }
  7447. @if $color-focus-pressed == null {
  7448. $color-focus-pressed: $button-toolbar-color-focus-pressed;
  7449. }
  7450. @if $color-disabled == null {
  7451. $color-disabled: $button-toolbar-color-disabled;
  7452. }
  7453. } @else {
  7454. @if $color-over == null {
  7455. $color-over: button-toolbar-color-over($color);
  7456. }
  7457. @if $color-focus == null {
  7458. $color-focus: button-toolbar-color-focus($color);
  7459. }
  7460. @if $color-pressed == null {
  7461. $color-pressed: button-toolbar-color-pressed($color);
  7462. }
  7463. @if $color-focus-over == null {
  7464. $color-focus-over: $color-over;
  7465. }
  7466. @if $color-focus-pressed == null {
  7467. $color-focus-pressed: $color-pressed;
  7468. }
  7469. @if $color-disabled == null {
  7470. $color-disabled: button-toolbar-color-disabled($color);
  7471. }
  7472. }
  7473. @if $inner-border-width == null {
  7474. $inner-border-width: $button-toolbar-inner-border-width;
  7475. @if $inner-border-width-over == null {
  7476. $inner-border-width-over: $button-toolbar-inner-border-width-over;
  7477. }
  7478. @if $inner-border-width-focus == null {
  7479. $inner-border-width-focus: $button-toolbar-inner-border-width-focus;
  7480. }
  7481. @if $inner-border-width-pressed == null {
  7482. $inner-border-width-pressed: $button-toolbar-inner-border-width-pressed;
  7483. }
  7484. @if $inner-border-width-focus-over == null {
  7485. $inner-border-width-focus-over: $button-toolbar-inner-border-width-focus-over;
  7486. }
  7487. @if $inner-border-width-focus-pressed == null {
  7488. $inner-border-width-focus-pressed: $button-toolbar-inner-border-width-focus-pressed;
  7489. }
  7490. @if $inner-border-width-disabled == null {
  7491. $inner-border-width-disabled: $button-toolbar-inner-border-width-disabled;
  7492. }
  7493. } @else {
  7494. @if $inner-border-width-over == null {
  7495. $inner-border-width-over: $inner-border-width;
  7496. }
  7497. @if $inner-border-width-focus == null {
  7498. $inner-border-width-focus: $inner-border-width;
  7499. }
  7500. @if $inner-border-width-pressed == null {
  7501. $inner-border-width-pressed: $inner-border-width;
  7502. }
  7503. @if $inner-border-width-focus-over == null {
  7504. $inner-border-width-focus-over: $inner-border-width-over;
  7505. }
  7506. @if $inner-border-width-focus-pressed == null {
  7507. $inner-border-width-focus-pressed: $inner-border-width-pressed;
  7508. }
  7509. @if $inner-border-width-disabled == null {
  7510. $inner-border-width-disabled: $inner-border-width;
  7511. }
  7512. }
  7513. @if $inner-border-color == null {
  7514. $inner-border-color: $button-toolbar-inner-border-color;
  7515. @if $inner-border-color-over == null {
  7516. $inner-border-color-over: $button-toolbar-inner-border-color-over;
  7517. }
  7518. @if $inner-border-color-focus == null {
  7519. $inner-border-color-focus: $button-toolbar-inner-border-color-focus;
  7520. }
  7521. @if $inner-border-color-pressed == null {
  7522. $inner-border-color-pressed: $button-toolbar-inner-border-color-pressed;
  7523. }
  7524. @if $inner-border-color-focus-over == null {
  7525. $inner-border-color-focus-over: $button-toolbar-inner-border-color-focus-over;
  7526. }
  7527. @if $inner-border-color-focus-pressed == null {
  7528. $inner-border-color-focus-pressed: $button-toolbar-inner-border-color-focus-pressed;
  7529. }
  7530. @if $inner-border-color-disabled == null {
  7531. $inner-border-color-disabled: $button-toolbar-inner-border-color-disabled;
  7532. }
  7533. } @else {
  7534. @if $inner-border-color-over == null {
  7535. $inner-border-color-over: button-toolbar-inner-border-color-over($background-color-over, $color-over);
  7536. }
  7537. @if $inner-border-color-focus == null {
  7538. $inner-border-color-focus: button-toolbar-inner-border-color-focus($background-color-focus, $color-focus);
  7539. }
  7540. @if $inner-border-color-pressed == null {
  7541. $inner-border-color-pressed: button-toolbar-inner-border-color-pressed($background-color-pressed, $color-pressed);
  7542. }
  7543. @if $inner-border-color-focus-over == null {
  7544. $inner-border-color-focus-over: button-toolbar-inner-border-color-focus-over($background-color-focus-over, $color-focus-over);
  7545. }
  7546. @if $inner-border-color-focus-pressed == null {
  7547. $inner-border-color-focus-pressed: button-toolbar-inner-border-color-focus-pressed($background-color-focus-pressed, $color-focus-pressed)
  7548. }
  7549. @if $inner-border-color-disabled == null {
  7550. $inner-border-color-disabled: button-toolbar-inner-border-color-disabled($background-color-disabled, $color-disabled);
  7551. }
  7552. }
  7553. @if $font-size == null {
  7554. $font-size: $button-large-font-size;
  7555. @if $font-size-over == null {
  7556. $font-size-over: $button-large-font-size-over;
  7557. }
  7558. @if $font-size-focus == null {
  7559. $font-size-focus: $button-large-font-size-focus;
  7560. }
  7561. @if $font-size-pressed == null {
  7562. $font-size-pressed: $button-large-font-size-pressed;
  7563. }
  7564. @if $font-size-focus-over == null {
  7565. $font-size-focus-over: $button-large-font-size-focus-over;
  7566. }
  7567. @if $font-size-focus-pressed == null {
  7568. $font-size-focus-pressed: $button-large-font-size-focus-pressed;
  7569. }
  7570. @if $font-size-disabled == null {
  7571. $font-size-disabled: $button-large-font-size-disabled;
  7572. }
  7573. } @else {
  7574. @if $font-size-over == null {
  7575. $font-size-over: $font-size;
  7576. }
  7577. @if $font-size-focus == null {
  7578. $font-size-focus: $font-size;
  7579. }
  7580. @if $font-size-pressed == null {
  7581. $font-size-pressed: $font-size;
  7582. }
  7583. @if $font-size-focus-over == null {
  7584. $font-size-focus-over: $font-size-over;
  7585. }
  7586. @if $font-size-focus-pressed == null {
  7587. $font-size-focus-pressed: $font-size-pressed;
  7588. }
  7589. @if $font-size-disabled == null {
  7590. $font-size-disabled: $font-size;
  7591. }
  7592. }
  7593. @if $font-weight == null {
  7594. $font-weight: $button-large-font-weight;
  7595. @if $font-weight-over == null {
  7596. $font-weight-over: $button-large-font-weight-over;
  7597. }
  7598. @if $font-weight-focus == null {
  7599. $font-weight-focus: $button-large-font-weight-focus;
  7600. }
  7601. @if $font-weight-pressed == null {
  7602. $font-weight-pressed: $button-large-font-weight-pressed;
  7603. }
  7604. @if $font-weight-focus-over == null {
  7605. $font-weight-focus-over: $button-large-font-weight-focus-over;
  7606. }
  7607. @if $font-weight-focus-pressed == null {
  7608. $font-weight-focus-pressed: $button-large-font-weight-focus-pressed;
  7609. }
  7610. @if $font-weight-disabled == null {
  7611. $font-weight-disabled: $button-large-font-weight-disabled;
  7612. }
  7613. } @else {
  7614. @if $font-weight-over == null {
  7615. $font-weight-over: $font-weight;
  7616. }
  7617. @if $font-weight-focus == null {
  7618. $font-weight-focus: $font-weight;
  7619. }
  7620. @if $font-weight-pressed == null {
  7621. $font-weight-pressed: $font-weight;
  7622. }
  7623. @if $font-weight-focus-over == null {
  7624. $font-weight-focus-over: $font-weight-over;
  7625. }
  7626. @if $font-weight-focus-pressed == null {
  7627. $font-weight-focus-pressed: $font-weight-pressed;
  7628. }
  7629. @if $font-weight-disabled == null {
  7630. $font-weight-disabled: $font-weight;
  7631. }
  7632. }
  7633. @if $font-family == null {
  7634. $font-family: $button-large-font-family;
  7635. @if $font-family-over == null {
  7636. $font-family-over: $button-large-font-family-over;
  7637. }
  7638. @if $font-family-focus == null {
  7639. $font-family-focus: $button-large-font-family-focus;
  7640. }
  7641. @if $font-family-pressed == null {
  7642. $font-family-pressed: $button-large-font-family-pressed;
  7643. }
  7644. @if $font-family-focus-over == null {
  7645. $font-family-focus-over: $button-large-font-family-focus-over;
  7646. }
  7647. @if $font-family-focus-pressed == null {
  7648. $font-family-focus-pressed: $button-large-font-family-focus-pressed;
  7649. }
  7650. @if $font-family-disabled == null {
  7651. $font-family-disabled: $button-large-font-family-disabled;
  7652. }
  7653. } @else {
  7654. @if $font-family-over == null {
  7655. $font-family-over: $font-family;
  7656. }
  7657. @if $font-family-focus == null {
  7658. $font-family-focus: $font-family;
  7659. }
  7660. @if $font-family-pressed == null {
  7661. $font-family-pressed: $font-family;
  7662. }
  7663. @if $font-family-focus-over == null {
  7664. $font-family-focus-over: $font-family-over;
  7665. }
  7666. @if $font-family-focus-pressed == null {
  7667. $font-family-focus-pressed: $font-family-pressed;
  7668. }
  7669. @if $font-family-disabled == null {
  7670. $font-family-disabled: $font-family;
  7671. }
  7672. }
  7673. @include extjs-button-ui(
  7674. $ui: '#{$ui}-toolbar-large',
  7675. $border-radius: $border-radius,
  7676. $border-width: $border-width,
  7677. $border-color: $border-color,
  7678. $border-color-over: $border-color-over,
  7679. $border-color-focus: $border-color-focus,
  7680. $border-color-pressed: $border-color-pressed,
  7681. $border-color-focus-over: $border-color-focus-over,
  7682. $border-color-focus-pressed: $border-color-focus-pressed,
  7683. $border-color-disabled: $border-color-disabled,
  7684. $padding: $padding,
  7685. $text-padding: $text-padding,
  7686. $background-color: $background-color,
  7687. $background-color-over: $background-color-over,
  7688. $background-color-focus: $background-color-focus,
  7689. $background-color-pressed: $background-color-pressed,
  7690. $background-color-focus-over: $background-color-focus-over,
  7691. $background-color-focus-pressed: $background-color-focus-pressed,
  7692. $background-color-disabled: $background-color-disabled,
  7693. $background-gradient: $background-gradient,
  7694. $background-gradient-over: $background-gradient-over,
  7695. $background-gradient-focus: $background-gradient-focus,
  7696. $background-gradient-pressed: $background-gradient-pressed,
  7697. $background-gradient-focus-over: $background-gradient-focus-over,
  7698. $background-gradient-focus-pressed: $background-gradient-focus-pressed,
  7699. $background-gradient-disabled: $background-gradient-disabled,
  7700. $color: $color,
  7701. $color-over: $color-over,
  7702. $color-focus: $color-focus,
  7703. $color-pressed: $color-pressed,
  7704. $color-focus-over: $color-focus-over,
  7705. $color-focus-pressed: $color-focus-pressed,
  7706. $color-disabled: $color-disabled,
  7707. $inner-border-width: $inner-border-width,
  7708. $inner-border-width-over: $inner-border-width-over,
  7709. $inner-border-width-focus: $inner-border-width-focus,
  7710. $inner-border-width-pressed: $inner-border-width-pressed,
  7711. $inner-border-width-focus-over: $inner-border-width-focus-over,
  7712. $inner-border-width-focus-pressed: $inner-border-width-focus-pressed,
  7713. $inner-border-width-disabled: $inner-border-width-disabled,
  7714. $inner-border-color: $inner-border-color,
  7715. $inner-border-color-over: $inner-border-color-over,
  7716. $inner-border-color-focus: $inner-border-color-focus,
  7717. $inner-border-color-pressed: $inner-border-color-pressed,
  7718. $inner-border-color-focus-over: $inner-border-color-focus-over,
  7719. $inner-border-color-focus-pressed: $inner-border-color-focus-pressed,
  7720. $inner-border-color-disabled: $inner-border-color-disabled,
  7721. $body-outline-width-focus: $body-outline-width-focus,
  7722. $body-outline-style-focus: $body-outline-style-focus,
  7723. $body-outline-color-focus: $body-outline-color-focus,
  7724. $font-size: $font-size,
  7725. $font-size-over: $font-size-over,
  7726. $font-size-focus: $font-size-focus,
  7727. $font-size-pressed: $font-size-pressed,
  7728. $font-size-focus-over: $font-size-focus-over,
  7729. $font-size-focus-pressed: $font-size-focus-pressed,
  7730. $font-size-disabled: $font-size-disabled,
  7731. $font-weight: $font-weight,
  7732. $font-weight-over: $font-weight-over,
  7733. $font-weight-focus: $font-weight-focus,
  7734. $font-weight-pressed: $font-weight-pressed,
  7735. $font-weight-focus-over: $font-weight-focus-over,
  7736. $font-weight-focus-pressed: $font-weight-focus-pressed,
  7737. $font-weight-disabled: $font-weight-disabled,
  7738. $font-family: $font-family,
  7739. $font-family-over: $font-family-over,
  7740. $font-family-focus: $font-family-focus,
  7741. $font-family-pressed: $font-family-pressed,
  7742. $font-family-focus-over: $font-family-focus-over,
  7743. $font-family-focus-pressed: $font-family-focus-pressed,
  7744. $font-family-disabled: $font-family-disabled,
  7745. $line-height: $line-height,
  7746. $icon-size: $icon-size,
  7747. $glyph-font-size: $glyph-font-size,
  7748. $icon-spacing: $icon-spacing,
  7749. $glyph-color: $glyph-color,
  7750. $glyph-opacity: $glyph-opacity,
  7751. $arrow-width: $arrow-width,
  7752. $arrow-height: $arrow-height,
  7753. $arrow-glyph: $arrow-glyph,
  7754. $arrow-glyph-color: $arrow-glyph-color,
  7755. $split-width: $split-width,
  7756. $split-height: $split-height,
  7757. $split-line-width: $split-line-width,
  7758. $split-line-color: $split-line-color,
  7759. $include-ui-menu-arrows: $include-ui-menu-arrows,
  7760. $include-ui-split-arrows: $include-ui-split-arrows,
  7761. $include-split-noline-arrows: $include-split-noline-arrows,
  7762. $include-split-over-arrows: $include-split-over-arrows,
  7763. $opacity-disabled: $opacity-disabled,
  7764. $inner-opacity-disabled: $inner-opacity-disabled
  7765. );
  7766. }