components.scss 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131
  1. .app-body {
  2. -webkit-overflow-scrolling: touch;
  3. -ms-overflow-style: -ms-autohiding-scrollbar;
  4. }
  5. .link-button {
  6. display: block;
  7. font-size: 15px;
  8. line-height: 20px;
  9. color: $ui-highlight-color;
  10. border: 0;
  11. background: transparent;
  12. padding: 0;
  13. cursor: pointer;
  14. &:hover,
  15. &:active {
  16. text-decoration: underline;
  17. }
  18. &:disabled {
  19. color: $ui-primary-color;
  20. cursor: default;
  21. }
  22. }
  23. .button {
  24. background-color: $ui-highlight-color;
  25. border: 10px none;
  26. border-radius: 4px;
  27. box-sizing: border-box;
  28. color: $primary-text-color;
  29. cursor: pointer;
  30. display: inline-block;
  31. font-family: inherit;
  32. font-size: 14px;
  33. font-weight: 500;
  34. height: 36px;
  35. letter-spacing: 0;
  36. line-height: 36px;
  37. overflow: hidden;
  38. padding: 0 16px;
  39. position: relative;
  40. text-align: center;
  41. text-transform: uppercase;
  42. text-decoration: none;
  43. text-overflow: ellipsis;
  44. transition: all 100ms ease-in;
  45. white-space: nowrap;
  46. width: auto;
  47. &:active,
  48. &:focus,
  49. &:hover {
  50. background-color: lighten($ui-highlight-color, 10%);
  51. transition: all 200ms ease-out;
  52. }
  53. &--destructive {
  54. transition: none;
  55. &:active,
  56. &:focus,
  57. &:hover {
  58. background-color: $error-red;
  59. transition: none;
  60. }
  61. }
  62. &:disabled,
  63. &.disabled {
  64. background-color: $ui-primary-color;
  65. cursor: default;
  66. }
  67. &::-moz-focus-inner {
  68. border: 0;
  69. }
  70. &::-moz-focus-inner,
  71. &:focus,
  72. &:active {
  73. outline: 0 !important;
  74. }
  75. &.button-primary,
  76. &.button-alternative,
  77. &.button-secondary,
  78. &.button-alternative-2 {
  79. font-size: 16px;
  80. line-height: 36px;
  81. height: auto;
  82. text-transform: none;
  83. padding: 4px 16px;
  84. }
  85. &.button-alternative {
  86. color: $inverted-text-color;
  87. background: $ui-primary-color;
  88. &:active,
  89. &:focus,
  90. &:hover {
  91. background-color: lighten($ui-primary-color, 4%);
  92. }
  93. }
  94. &.button-alternative-2 {
  95. background: $ui-base-lighter-color;
  96. &:active,
  97. &:focus,
  98. &:hover {
  99. background-color: lighten($ui-base-lighter-color, 4%);
  100. }
  101. }
  102. &.button-secondary {
  103. color: $darker-text-color;
  104. background: transparent;
  105. padding: 3px 15px;
  106. border: 1px solid $ui-primary-color;
  107. &:active,
  108. &:focus,
  109. &:hover {
  110. border-color: lighten($ui-primary-color, 4%);
  111. color: lighten($darker-text-color, 4%);
  112. }
  113. &:disabled {
  114. opacity: 0.5;
  115. }
  116. }
  117. &.button--block {
  118. display: block;
  119. width: 100%;
  120. }
  121. }
  122. .column__wrapper {
  123. display: flex;
  124. flex: 1 1 auto;
  125. position: relative;
  126. }
  127. .icon-button {
  128. display: inline-block;
  129. padding: 0;
  130. color: $action-button-color;
  131. border: 0;
  132. border-radius: 4px;
  133. background: transparent;
  134. cursor: pointer;
  135. transition: all 100ms ease-in;
  136. transition-property: background-color, color;
  137. &:hover,
  138. &:active,
  139. &:focus {
  140. color: lighten($action-button-color, 7%);
  141. background-color: rgba($action-button-color, 0.15);
  142. transition: all 200ms ease-out;
  143. transition-property: background-color, color;
  144. }
  145. &:focus {
  146. background-color: rgba($action-button-color, 0.3);
  147. }
  148. &.disabled {
  149. color: darken($action-button-color, 13%);
  150. background-color: transparent;
  151. cursor: default;
  152. }
  153. &.active {
  154. color: $highlight-text-color;
  155. }
  156. &::-moz-focus-inner {
  157. border: 0;
  158. }
  159. &::-moz-focus-inner,
  160. &:focus,
  161. &:active {
  162. outline: 0 !important;
  163. }
  164. &.inverted {
  165. color: $lighter-text-color;
  166. &:hover,
  167. &:active,
  168. &:focus {
  169. color: darken($lighter-text-color, 7%);
  170. background-color: rgba($lighter-text-color, 0.15);
  171. }
  172. &:focus {
  173. background-color: rgba($lighter-text-color, 0.3);
  174. }
  175. &.disabled {
  176. color: lighten($lighter-text-color, 7%);
  177. background-color: transparent;
  178. }
  179. &.active {
  180. color: $highlight-text-color;
  181. &.disabled {
  182. color: lighten($highlight-text-color, 13%);
  183. }
  184. }
  185. }
  186. &.overlayed {
  187. box-sizing: content-box;
  188. background: rgba($base-overlay-background, 0.6);
  189. color: rgba($primary-text-color, 0.7);
  190. border-radius: 4px;
  191. padding: 2px;
  192. &:hover {
  193. background: rgba($base-overlay-background, 0.9);
  194. }
  195. }
  196. }
  197. .text-icon-button {
  198. color: $lighter-text-color;
  199. border: 0;
  200. border-radius: 4px;
  201. background: transparent;
  202. cursor: pointer;
  203. font-weight: 600;
  204. font-size: 11px;
  205. padding: 0 3px;
  206. line-height: 27px;
  207. outline: 0;
  208. transition: all 100ms ease-in;
  209. transition-property: background-color, color;
  210. &:hover,
  211. &:active,
  212. &:focus {
  213. color: darken($lighter-text-color, 7%);
  214. background-color: rgba($lighter-text-color, 0.15);
  215. transition: all 200ms ease-out;
  216. transition-property: background-color, color;
  217. }
  218. &:focus {
  219. background-color: rgba($lighter-text-color, 0.3);
  220. }
  221. &.disabled {
  222. color: lighten($lighter-text-color, 20%);
  223. background-color: transparent;
  224. cursor: default;
  225. }
  226. &.active {
  227. color: $highlight-text-color;
  228. }
  229. &::-moz-focus-inner {
  230. border: 0;
  231. }
  232. &::-moz-focus-inner,
  233. &:focus,
  234. &:active {
  235. outline: 0 !important;
  236. }
  237. }
  238. .dropdown-menu {
  239. position: absolute;
  240. }
  241. .invisible {
  242. font-size: 0;
  243. line-height: 0;
  244. display: inline-block;
  245. width: 0;
  246. height: 0;
  247. position: absolute;
  248. img,
  249. svg {
  250. margin: 0 !important;
  251. border: 0 !important;
  252. padding: 0 !important;
  253. width: 0 !important;
  254. height: 0 !important;
  255. }
  256. }
  257. .ellipsis {
  258. &::after {
  259. content: "…";
  260. }
  261. }
  262. .compose-form {
  263. padding: 10px;
  264. &__sensitive-button {
  265. padding: 10px;
  266. padding-top: 0;
  267. font-size: 14px;
  268. font-weight: 500;
  269. &.active {
  270. color: $highlight-text-color;
  271. }
  272. input[type=checkbox] {
  273. display: none;
  274. }
  275. .checkbox {
  276. display: inline-block;
  277. position: relative;
  278. border: 1px solid $ui-primary-color;
  279. box-sizing: border-box;
  280. width: 18px;
  281. height: 18px;
  282. flex: 0 0 auto;
  283. margin-right: 10px;
  284. top: -1px;
  285. border-radius: 4px;
  286. vertical-align: middle;
  287. &.active {
  288. border-color: $highlight-text-color;
  289. background: $highlight-text-color;
  290. }
  291. }
  292. }
  293. .compose-form__warning {
  294. color: $inverted-text-color;
  295. margin-bottom: 10px;
  296. background: $ui-primary-color;
  297. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);
  298. padding: 8px 10px;
  299. border-radius: 4px;
  300. font-size: 13px;
  301. font-weight: 400;
  302. strong {
  303. color: $inverted-text-color;
  304. font-weight: 500;
  305. @each $lang in $cjk-langs {
  306. &:lang(#{$lang}) {
  307. font-weight: 700;
  308. }
  309. }
  310. }
  311. a {
  312. color: $lighter-text-color;
  313. font-weight: 500;
  314. text-decoration: underline;
  315. &:hover,
  316. &:active,
  317. &:focus {
  318. text-decoration: none;
  319. }
  320. }
  321. }
  322. .emoji-picker-dropdown {
  323. position: absolute;
  324. top: 5px;
  325. right: 5px;
  326. }
  327. .compose-form__autosuggest-wrapper {
  328. position: relative;
  329. }
  330. .autosuggest-textarea,
  331. .autosuggest-input,
  332. .spoiler-input {
  333. position: relative;
  334. }
  335. .spoiler-input {
  336. height: 0;
  337. transform-origin: bottom;
  338. opacity: 0;
  339. &.spoiler-input--visible {
  340. height: 36px;
  341. margin-bottom: 11px;
  342. opacity: 1;
  343. }
  344. }
  345. .autosuggest-textarea__textarea,
  346. .spoiler-input__input {
  347. display: block;
  348. box-sizing: border-box;
  349. width: 100%;
  350. margin: 0;
  351. color: $inverted-text-color;
  352. background: $simple-background-color;
  353. padding: 10px;
  354. font-family: inherit;
  355. font-size: 14px;
  356. resize: vertical;
  357. border: 0;
  358. outline: 0;
  359. &:focus {
  360. outline: 0;
  361. }
  362. @media screen and (max-width: 600px) {
  363. font-size: 16px;
  364. }
  365. }
  366. .spoiler-input__input {
  367. border-radius: 4px;
  368. }
  369. .autosuggest-textarea__textarea {
  370. min-height: 100px;
  371. border-radius: 4px 4px 0 0;
  372. padding-bottom: 0;
  373. padding-right: 10px + 22px;
  374. resize: none;
  375. scrollbar-color: initial;
  376. &::-webkit-scrollbar {
  377. all: unset;
  378. }
  379. @media screen and (max-width: 600px) {
  380. height: 100px !important; // prevent auto-resize textarea
  381. resize: vertical;
  382. }
  383. }
  384. .autosuggest-textarea__suggestions-wrapper {
  385. position: relative;
  386. height: 0;
  387. }
  388. .autosuggest-textarea__suggestions {
  389. box-sizing: border-box;
  390. display: none;
  391. position: absolute;
  392. top: 100%;
  393. width: 100%;
  394. z-index: 99;
  395. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  396. background: $ui-secondary-color;
  397. border-radius: 0 0 4px 4px;
  398. color: $inverted-text-color;
  399. font-size: 14px;
  400. padding: 6px;
  401. &.autosuggest-textarea__suggestions--visible {
  402. display: block;
  403. }
  404. }
  405. .autosuggest-textarea__suggestions__item {
  406. padding: 10px;
  407. cursor: pointer;
  408. border-radius: 4px;
  409. &:hover,
  410. &:focus,
  411. &:active,
  412. &.selected {
  413. background: darken($ui-secondary-color, 10%);
  414. }
  415. }
  416. .autosuggest-account,
  417. .autosuggest-emoji,
  418. .autosuggest-hashtag {
  419. display: flex;
  420. flex-direction: row;
  421. align-items: center;
  422. justify-content: flex-start;
  423. line-height: 18px;
  424. font-size: 14px;
  425. }
  426. .autosuggest-hashtag {
  427. justify-content: space-between;
  428. strong {
  429. font-weight: 500;
  430. }
  431. }
  432. .autosuggest-account-icon,
  433. .autosuggest-emoji img {
  434. display: block;
  435. margin-right: 8px;
  436. width: 16px;
  437. height: 16px;
  438. }
  439. .autosuggest-account .display-name__account {
  440. color: $lighter-text-color;
  441. }
  442. .compose-form__modifiers {
  443. color: $inverted-text-color;
  444. font-family: inherit;
  445. font-size: 14px;
  446. background: $simple-background-color;
  447. .compose-form__upload-wrapper {
  448. overflow: hidden;
  449. }
  450. .compose-form__uploads-wrapper {
  451. display: flex;
  452. flex-direction: row;
  453. padding: 5px;
  454. flex-wrap: wrap;
  455. }
  456. .compose-form__upload {
  457. flex: 1 1 0;
  458. min-width: 40%;
  459. margin: 5px;
  460. &__actions {
  461. background: linear-gradient(180deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
  462. display: flex;
  463. align-items: flex-start;
  464. justify-content: space-between;
  465. opacity: 0;
  466. transition: opacity .1s ease;
  467. .icon-button {
  468. flex: 0 1 auto;
  469. color: $secondary-text-color;
  470. font-size: 14px;
  471. font-weight: 500;
  472. padding: 10px;
  473. font-family: inherit;
  474. &:hover,
  475. &:focus,
  476. &:active {
  477. color: lighten($secondary-text-color, 7%);
  478. }
  479. }
  480. &.active {
  481. opacity: 1;
  482. }
  483. }
  484. &-description {
  485. position: absolute;
  486. z-index: 2;
  487. bottom: 0;
  488. left: 0;
  489. right: 0;
  490. box-sizing: border-box;
  491. background: linear-gradient(0deg, rgba($base-shadow-color, 0.8) 0, rgba($base-shadow-color, 0.35) 80%, transparent);
  492. padding: 10px;
  493. opacity: 0;
  494. transition: opacity .1s ease;
  495. textarea {
  496. background: transparent;
  497. color: $secondary-text-color;
  498. border: 0;
  499. padding: 0;
  500. margin: 0;
  501. width: 100%;
  502. font-family: inherit;
  503. font-size: 14px;
  504. font-weight: 500;
  505. &:focus {
  506. color: $white;
  507. }
  508. &::placeholder {
  509. opacity: 0.75;
  510. color: $secondary-text-color;
  511. }
  512. }
  513. &.active {
  514. opacity: 1;
  515. }
  516. }
  517. }
  518. .compose-form__upload-thumbnail {
  519. border-radius: 4px;
  520. background-color: $base-shadow-color;
  521. background-position: center;
  522. background-size: cover;
  523. background-repeat: no-repeat;
  524. height: 140px;
  525. width: 100%;
  526. overflow: hidden;
  527. }
  528. }
  529. .compose-form__buttons-wrapper {
  530. padding: 10px;
  531. background: darken($simple-background-color, 8%);
  532. border-radius: 0 0 4px 4px;
  533. display: flex;
  534. justify-content: space-between;
  535. flex: 0 0 auto;
  536. .compose-form__buttons {
  537. display: flex;
  538. .compose-form__upload-button-icon {
  539. line-height: 27px;
  540. }
  541. .compose-form__sensitive-button {
  542. display: none;
  543. &.compose-form__sensitive-button--visible {
  544. display: block;
  545. }
  546. .compose-form__sensitive-button__icon {
  547. line-height: 27px;
  548. }
  549. }
  550. }
  551. .icon-button,
  552. .text-icon-button {
  553. box-sizing: content-box;
  554. padding: 0 3px;
  555. }
  556. .character-counter__wrapper {
  557. align-self: center;
  558. margin-right: 4px;
  559. }
  560. }
  561. .compose-form__publish {
  562. display: flex;
  563. justify-content: flex-end;
  564. min-width: 0;
  565. flex: 0 0 auto;
  566. .compose-form__publish-button-wrapper {
  567. overflow: hidden;
  568. padding-top: 10px;
  569. }
  570. }
  571. }
  572. .character-counter {
  573. cursor: default;
  574. font-family: $font-sans-serif, sans-serif;
  575. font-size: 14px;
  576. font-weight: 600;
  577. color: $lighter-text-color;
  578. &.character-counter--over {
  579. color: $warning-red;
  580. }
  581. }
  582. .no-reduce-motion .spoiler-input {
  583. transition: height 0.4s ease, opacity 0.4s ease;
  584. }
  585. .emojione {
  586. font-size: inherit;
  587. vertical-align: middle;
  588. object-fit: contain;
  589. margin: -.2ex .15em .2ex;
  590. width: 16px;
  591. height: 16px;
  592. img {
  593. width: auto;
  594. }
  595. }
  596. .reply-indicator {
  597. border-radius: 4px;
  598. margin-bottom: 10px;
  599. background: $ui-primary-color;
  600. padding: 10px;
  601. min-height: 23px;
  602. overflow-y: auto;
  603. flex: 0 2 auto;
  604. }
  605. .reply-indicator__header {
  606. margin-bottom: 5px;
  607. overflow: hidden;
  608. }
  609. .reply-indicator__cancel {
  610. float: right;
  611. line-height: 24px;
  612. }
  613. .reply-indicator__display-name {
  614. color: $inverted-text-color;
  615. display: block;
  616. max-width: 100%;
  617. line-height: 24px;
  618. overflow: hidden;
  619. padding-right: 25px;
  620. text-decoration: none;
  621. }
  622. .reply-indicator__display-avatar {
  623. float: left;
  624. margin-right: 5px;
  625. }
  626. .status__content--with-action {
  627. cursor: pointer;
  628. }
  629. .status__content,
  630. .reply-indicator__content {
  631. position: relative;
  632. font-size: 15px;
  633. line-height: 20px;
  634. word-wrap: break-word;
  635. font-weight: 400;
  636. overflow: hidden;
  637. text-overflow: ellipsis;
  638. padding-top: 2px;
  639. color: $primary-text-color;
  640. &:focus {
  641. outline: 0;
  642. }
  643. &.status__content--with-spoiler {
  644. white-space: normal;
  645. .status__content__text {
  646. white-space: pre-wrap;
  647. }
  648. }
  649. .emojione {
  650. width: 20px;
  651. height: 20px;
  652. margin: -3px 0 0;
  653. }
  654. p {
  655. margin-bottom: 20px;
  656. white-space: pre-wrap;
  657. &:last-child {
  658. margin-bottom: 0;
  659. }
  660. }
  661. a {
  662. color: $secondary-text-color;
  663. text-decoration: none;
  664. &:hover {
  665. text-decoration: underline;
  666. .fa {
  667. color: lighten($dark-text-color, 7%);
  668. }
  669. }
  670. &.mention {
  671. &:hover {
  672. text-decoration: none;
  673. span {
  674. text-decoration: underline;
  675. }
  676. }
  677. }
  678. .fa {
  679. color: $dark-text-color;
  680. }
  681. }
  682. a.unhandled-link {
  683. color: lighten($ui-highlight-color, 8%);
  684. }
  685. .status__content__spoiler-link {
  686. background: $action-button-color;
  687. &:hover {
  688. background: lighten($action-button-color, 7%);
  689. text-decoration: none;
  690. }
  691. &::-moz-focus-inner {
  692. border: 0;
  693. }
  694. &::-moz-focus-inner,
  695. &:focus,
  696. &:active {
  697. outline: 0 !important;
  698. }
  699. }
  700. .status__content__text {
  701. display: none;
  702. &.status__content__text--visible {
  703. display: block;
  704. }
  705. }
  706. }
  707. .status__content.status__content--collapsed {
  708. max-height: 20px * 15; // 15 lines is roughly above 500 characters
  709. }
  710. .status__content__read-more-button {
  711. display: block;
  712. font-size: 15px;
  713. line-height: 20px;
  714. color: lighten($ui-highlight-color, 8%);
  715. border: 0;
  716. background: transparent;
  717. padding: 0;
  718. padding-top: 8px;
  719. &:hover,
  720. &:active {
  721. text-decoration: underline;
  722. }
  723. }
  724. .status__content__spoiler-link {
  725. display: inline-block;
  726. border-radius: 2px;
  727. background: transparent;
  728. border: 0;
  729. color: $inverted-text-color;
  730. font-weight: 700;
  731. font-size: 11px;
  732. padding: 0 6px;
  733. text-transform: uppercase;
  734. line-height: 20px;
  735. cursor: pointer;
  736. vertical-align: middle;
  737. }
  738. .status__wrapper--filtered {
  739. color: $dark-text-color;
  740. border: 0;
  741. font-size: inherit;
  742. text-align: center;
  743. line-height: inherit;
  744. margin: 0;
  745. padding: 15px;
  746. box-sizing: border-box;
  747. width: 100%;
  748. clear: both;
  749. border-bottom: 1px solid lighten($ui-base-color, 8%);
  750. }
  751. .status__prepend-icon-wrapper {
  752. left: -26px;
  753. position: absolute;
  754. }
  755. .focusable {
  756. &:focus {
  757. outline: 0;
  758. background: lighten($ui-base-color, 4%);
  759. .status.status-direct {
  760. background: lighten($ui-base-color, 12%);
  761. &.muted {
  762. background: transparent;
  763. }
  764. }
  765. .detailed-status,
  766. .detailed-status__action-bar {
  767. background: lighten($ui-base-color, 8%);
  768. }
  769. }
  770. }
  771. .status {
  772. padding: 8px 10px;
  773. padding-left: 68px;
  774. position: relative;
  775. min-height: 54px;
  776. border-bottom: 1px solid lighten($ui-base-color, 8%);
  777. cursor: default;
  778. @supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
  779. // Add margin to avoid Edge auto-hiding scrollbar appearing over content.
  780. // On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
  781. padding-right: 26px; // 10px + 16px
  782. }
  783. @keyframes fade {
  784. 0% { opacity: 0; }
  785. 100% { opacity: 1; }
  786. }
  787. opacity: 1;
  788. animation: fade 150ms linear;
  789. .video-player {
  790. margin-top: 8px;
  791. }
  792. &.status-direct:not(.read) {
  793. background: lighten($ui-base-color, 8%);
  794. border-bottom-color: lighten($ui-base-color, 12%);
  795. }
  796. &.light {
  797. .status__relative-time {
  798. color: $light-text-color;
  799. }
  800. .status__display-name {
  801. color: $inverted-text-color;
  802. }
  803. .display-name {
  804. strong {
  805. color: $inverted-text-color;
  806. }
  807. span {
  808. color: $light-text-color;
  809. }
  810. }
  811. .status__content {
  812. color: $inverted-text-color;
  813. a {
  814. color: $highlight-text-color;
  815. }
  816. a.status__content__spoiler-link {
  817. color: $primary-text-color;
  818. background: $ui-primary-color;
  819. &:hover {
  820. background: lighten($ui-primary-color, 8%);
  821. }
  822. }
  823. }
  824. }
  825. }
  826. .notification-favourite {
  827. .status.status-direct {
  828. background: transparent;
  829. .icon-button.disabled {
  830. color: lighten($action-button-color, 13%);
  831. }
  832. }
  833. }
  834. .status__relative-time,
  835. .notification__relative_time {
  836. color: $dark-text-color;
  837. float: right;
  838. font-size: 14px;
  839. }
  840. .status__display-name {
  841. color: $dark-text-color;
  842. }
  843. .status__info .status__display-name {
  844. display: block;
  845. max-width: 100%;
  846. padding-right: 25px;
  847. }
  848. .status__info {
  849. font-size: 15px;
  850. }
  851. .status-check-box {
  852. border-bottom: 1px solid $ui-secondary-color;
  853. display: flex;
  854. .status-check-box__status {
  855. margin: 10px 0 10px 10px;
  856. flex: 1;
  857. .media-gallery {
  858. max-width: 250px;
  859. }
  860. .status__content {
  861. padding: 0;
  862. white-space: normal;
  863. }
  864. .video-player {
  865. margin-top: 8px;
  866. max-width: 250px;
  867. }
  868. .media-gallery__item-thumbnail {
  869. cursor: default;
  870. }
  871. }
  872. }
  873. .status-check-box-toggle {
  874. align-items: center;
  875. display: flex;
  876. flex: 0 0 auto;
  877. justify-content: center;
  878. padding: 10px;
  879. }
  880. .status__prepend {
  881. margin-left: 68px;
  882. color: $dark-text-color;
  883. padding: 8px 0;
  884. padding-bottom: 2px;
  885. font-size: 14px;
  886. position: relative;
  887. .status__display-name strong {
  888. color: $dark-text-color;
  889. }
  890. > span {
  891. display: block;
  892. overflow: hidden;
  893. text-overflow: ellipsis;
  894. }
  895. }
  896. .status__action-bar {
  897. align-items: center;
  898. display: flex;
  899. margin-top: 8px;
  900. &__counter {
  901. display: inline-flex;
  902. margin-right: 11px;
  903. align-items: center;
  904. .status__action-bar-button {
  905. margin-right: 4px;
  906. }
  907. &__label {
  908. display: inline-block;
  909. width: 14px;
  910. font-size: 12px;
  911. font-weight: 500;
  912. color: $action-button-color;
  913. }
  914. }
  915. }
  916. .status__action-bar-button {
  917. margin-right: 18px;
  918. }
  919. .status__action-bar-dropdown {
  920. height: 23.15px;
  921. width: 23.15px;
  922. }
  923. .detailed-status__action-bar-dropdown {
  924. flex: 1 1 auto;
  925. display: flex;
  926. align-items: center;
  927. justify-content: center;
  928. position: relative;
  929. }
  930. .detailed-status {
  931. background: lighten($ui-base-color, 4%);
  932. padding: 14px 10px;
  933. &--flex {
  934. display: flex;
  935. flex-wrap: wrap;
  936. justify-content: space-between;
  937. align-items: flex-start;
  938. .status__content,
  939. .detailed-status__meta {
  940. flex: 100%;
  941. }
  942. }
  943. .status__content {
  944. font-size: 19px;
  945. line-height: 24px;
  946. .emojione {
  947. width: 24px;
  948. height: 24px;
  949. margin: -1px 0 0;
  950. }
  951. .status__content__spoiler-link {
  952. line-height: 24px;
  953. margin: -1px 0 0;
  954. }
  955. }
  956. .video-player {
  957. margin-top: 8px;
  958. }
  959. }
  960. .detailed-status__meta {
  961. margin-top: 15px;
  962. color: $dark-text-color;
  963. font-size: 14px;
  964. line-height: 18px;
  965. }
  966. .detailed-status__action-bar {
  967. background: lighten($ui-base-color, 4%);
  968. border-top: 1px solid lighten($ui-base-color, 8%);
  969. border-bottom: 1px solid lighten($ui-base-color, 8%);
  970. display: flex;
  971. flex-direction: row;
  972. padding: 10px 0;
  973. }
  974. .detailed-status__link {
  975. color: inherit;
  976. text-decoration: none;
  977. }
  978. .detailed-status__favorites,
  979. .detailed-status__reblogs {
  980. display: inline-block;
  981. font-weight: 500;
  982. font-size: 12px;
  983. margin-left: 6px;
  984. }
  985. .reply-indicator__content {
  986. color: $inverted-text-color;
  987. font-size: 14px;
  988. a {
  989. color: $lighter-text-color;
  990. }
  991. }
  992. .domain {
  993. padding: 10px;
  994. border-bottom: 1px solid lighten($ui-base-color, 8%);
  995. .domain__domain-name {
  996. flex: 1 1 auto;
  997. display: block;
  998. color: $primary-text-color;
  999. text-decoration: none;
  1000. font-size: 14px;
  1001. font-weight: 500;
  1002. }
  1003. }
  1004. .domain__wrapper {
  1005. display: flex;
  1006. }
  1007. .domain_buttons {
  1008. height: 18px;
  1009. padding: 10px;
  1010. white-space: nowrap;
  1011. }
  1012. .account {
  1013. padding: 10px;
  1014. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1015. &.compact {
  1016. padding: 0;
  1017. border-bottom: 0;
  1018. .account__avatar-wrapper {
  1019. margin-left: 0;
  1020. }
  1021. }
  1022. .account__display-name {
  1023. flex: 1 1 auto;
  1024. display: block;
  1025. color: $darker-text-color;
  1026. overflow: hidden;
  1027. text-decoration: none;
  1028. font-size: 14px;
  1029. }
  1030. }
  1031. .account__wrapper {
  1032. display: flex;
  1033. }
  1034. .account__avatar-wrapper {
  1035. float: left;
  1036. margin-left: 12px;
  1037. margin-right: 12px;
  1038. }
  1039. .account__avatar {
  1040. @include avatar-radius;
  1041. position: relative;
  1042. &-inline {
  1043. display: inline-block;
  1044. vertical-align: middle;
  1045. margin-right: 5px;
  1046. }
  1047. &-composite {
  1048. @include avatar-radius;
  1049. overflow: hidden;
  1050. & > div {
  1051. @include avatar-radius;
  1052. float: left;
  1053. position: relative;
  1054. box-sizing: border-box;
  1055. }
  1056. }
  1057. }
  1058. a .account__avatar {
  1059. cursor: pointer;
  1060. }
  1061. .account__avatar-overlay {
  1062. @include avatar-size(48px);
  1063. &-base {
  1064. @include avatar-radius;
  1065. @include avatar-size(36px);
  1066. }
  1067. &-overlay {
  1068. @include avatar-radius;
  1069. @include avatar-size(24px);
  1070. position: absolute;
  1071. bottom: 0;
  1072. right: 0;
  1073. z-index: 1;
  1074. }
  1075. }
  1076. .account__relationship {
  1077. height: 18px;
  1078. padding: 10px;
  1079. white-space: nowrap;
  1080. }
  1081. .account__disclaimer {
  1082. padding: 10px;
  1083. border-top: 1px solid lighten($ui-base-color, 8%);
  1084. color: $dark-text-color;
  1085. strong {
  1086. font-weight: 500;
  1087. @each $lang in $cjk-langs {
  1088. &:lang(#{$lang}) {
  1089. font-weight: 700;
  1090. }
  1091. }
  1092. }
  1093. a {
  1094. font-weight: 500;
  1095. color: inherit;
  1096. text-decoration: underline;
  1097. &:hover,
  1098. &:focus,
  1099. &:active {
  1100. text-decoration: none;
  1101. }
  1102. }
  1103. }
  1104. .account__action-bar {
  1105. border-top: 1px solid lighten($ui-base-color, 8%);
  1106. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1107. line-height: 36px;
  1108. overflow: hidden;
  1109. flex: 0 0 auto;
  1110. display: flex;
  1111. }
  1112. .account__action-bar-dropdown {
  1113. padding: 10px;
  1114. .icon-button {
  1115. vertical-align: middle;
  1116. }
  1117. .dropdown--active {
  1118. .dropdown__content.dropdown__right {
  1119. left: 6px;
  1120. right: initial;
  1121. }
  1122. &::after {
  1123. bottom: initial;
  1124. margin-left: 11px;
  1125. margin-top: -7px;
  1126. right: initial;
  1127. }
  1128. }
  1129. }
  1130. .account__action-bar-links {
  1131. display: flex;
  1132. flex: 1 1 auto;
  1133. line-height: 18px;
  1134. text-align: center;
  1135. }
  1136. .account__action-bar__tab {
  1137. text-decoration: none;
  1138. overflow: hidden;
  1139. flex: 0 1 100%;
  1140. border-right: 1px solid lighten($ui-base-color, 8%);
  1141. padding: 10px 0;
  1142. border-bottom: 4px solid transparent;
  1143. &.active {
  1144. border-bottom: 4px solid $ui-highlight-color;
  1145. }
  1146. & > span {
  1147. display: block;
  1148. text-transform: uppercase;
  1149. font-size: 11px;
  1150. color: $darker-text-color;
  1151. }
  1152. strong {
  1153. display: block;
  1154. font-size: 15px;
  1155. font-weight: 500;
  1156. color: $primary-text-color;
  1157. @each $lang in $cjk-langs {
  1158. &:lang(#{$lang}) {
  1159. font-weight: 700;
  1160. }
  1161. }
  1162. }
  1163. }
  1164. .account-authorize {
  1165. padding: 14px 10px;
  1166. .detailed-status__display-name {
  1167. display: block;
  1168. margin-bottom: 15px;
  1169. overflow: hidden;
  1170. }
  1171. }
  1172. .account-authorize__avatar {
  1173. float: left;
  1174. margin-right: 10px;
  1175. }
  1176. .status__display-name,
  1177. .status__relative-time,
  1178. .detailed-status__display-name,
  1179. .detailed-status__datetime,
  1180. .detailed-status__application,
  1181. .account__display-name {
  1182. text-decoration: none;
  1183. }
  1184. .status__display-name,
  1185. .account__display-name {
  1186. strong {
  1187. color: $primary-text-color;
  1188. }
  1189. }
  1190. .muted {
  1191. .emojione {
  1192. opacity: 0.5;
  1193. }
  1194. }
  1195. .status__display-name,
  1196. .reply-indicator__display-name,
  1197. .detailed-status__display-name,
  1198. a.account__display-name {
  1199. &:hover strong {
  1200. text-decoration: underline;
  1201. }
  1202. }
  1203. .account__display-name strong {
  1204. display: block;
  1205. overflow: hidden;
  1206. text-overflow: ellipsis;
  1207. }
  1208. .detailed-status__application,
  1209. .detailed-status__datetime {
  1210. color: inherit;
  1211. }
  1212. .detailed-status__display-name {
  1213. color: $secondary-text-color;
  1214. display: block;
  1215. line-height: 24px;
  1216. margin-bottom: 15px;
  1217. overflow: hidden;
  1218. strong,
  1219. span {
  1220. display: block;
  1221. text-overflow: ellipsis;
  1222. overflow: hidden;
  1223. }
  1224. strong {
  1225. font-size: 16px;
  1226. color: $primary-text-color;
  1227. }
  1228. }
  1229. .detailed-status__display-avatar {
  1230. float: left;
  1231. margin-right: 10px;
  1232. }
  1233. .status__avatar {
  1234. height: 48px;
  1235. left: 10px;
  1236. position: absolute;
  1237. top: 10px;
  1238. width: 48px;
  1239. }
  1240. .status__expand {
  1241. width: 68px;
  1242. position: absolute;
  1243. left: 0;
  1244. top: 0;
  1245. height: 100%;
  1246. cursor: pointer;
  1247. }
  1248. .muted {
  1249. .status__content p,
  1250. .status__content a {
  1251. color: $dark-text-color;
  1252. }
  1253. .status__display-name strong {
  1254. color: $dark-text-color;
  1255. }
  1256. .status__avatar {
  1257. opacity: 0.5;
  1258. }
  1259. a.status__content__spoiler-link {
  1260. background: $ui-base-lighter-color;
  1261. color: $inverted-text-color;
  1262. &:hover {
  1263. background: lighten($ui-base-lighter-color, 7%);
  1264. text-decoration: none;
  1265. }
  1266. }
  1267. }
  1268. .notification__message {
  1269. margin: 0 10px 0 68px;
  1270. padding: 8px 0 0;
  1271. cursor: default;
  1272. color: $darker-text-color;
  1273. font-size: 15px;
  1274. line-height: 22px;
  1275. position: relative;
  1276. .fa {
  1277. color: $highlight-text-color;
  1278. }
  1279. > span {
  1280. display: inline;
  1281. overflow: hidden;
  1282. text-overflow: ellipsis;
  1283. }
  1284. }
  1285. .notification__favourite-icon-wrapper {
  1286. left: -26px;
  1287. position: absolute;
  1288. .star-icon {
  1289. color: $gold-star;
  1290. }
  1291. }
  1292. .star-icon.active {
  1293. color: $gold-star;
  1294. }
  1295. .notification__display-name {
  1296. color: inherit;
  1297. font-weight: 500;
  1298. text-decoration: none;
  1299. &:hover {
  1300. color: $primary-text-color;
  1301. text-decoration: underline;
  1302. }
  1303. }
  1304. .notification__relative_time {
  1305. float: right;
  1306. }
  1307. .display-name {
  1308. display: block;
  1309. max-width: 100%;
  1310. overflow: hidden;
  1311. text-overflow: ellipsis;
  1312. white-space: nowrap;
  1313. }
  1314. .display-name__html {
  1315. font-weight: 500;
  1316. }
  1317. .display-name__account {
  1318. font-size: 14px;
  1319. }
  1320. .status__relative-time,
  1321. .detailed-status__datetime {
  1322. &:hover {
  1323. text-decoration: underline;
  1324. }
  1325. }
  1326. .image-loader {
  1327. position: relative;
  1328. width: 100%;
  1329. height: 100%;
  1330. display: flex;
  1331. align-items: center;
  1332. justify-content: center;
  1333. flex-direction: column;
  1334. .image-loader__preview-canvas {
  1335. max-width: $media-modal-media-max-width;
  1336. max-height: $media-modal-media-max-height;
  1337. background: url('../images/void.png') repeat;
  1338. object-fit: contain;
  1339. }
  1340. .loading-bar {
  1341. position: relative;
  1342. }
  1343. &.image-loader--amorphous .image-loader__preview-canvas {
  1344. display: none;
  1345. }
  1346. }
  1347. .zoomable-image {
  1348. position: relative;
  1349. width: 100%;
  1350. height: 100%;
  1351. display: flex;
  1352. align-items: center;
  1353. justify-content: center;
  1354. img {
  1355. max-width: $media-modal-media-max-width;
  1356. max-height: $media-modal-media-max-height;
  1357. width: auto;
  1358. height: auto;
  1359. object-fit: contain;
  1360. }
  1361. }
  1362. .navigation-bar {
  1363. padding: 10px;
  1364. display: flex;
  1365. align-items: center;
  1366. flex-shrink: 0;
  1367. cursor: default;
  1368. color: $darker-text-color;
  1369. strong {
  1370. color: $secondary-text-color;
  1371. }
  1372. a {
  1373. color: inherit;
  1374. }
  1375. .permalink {
  1376. text-decoration: none;
  1377. }
  1378. .navigation-bar__actions {
  1379. position: relative;
  1380. .icon-button.close {
  1381. position: absolute;
  1382. pointer-events: none;
  1383. transform: scale(0, 1) translate(-100%, 0);
  1384. opacity: 0;
  1385. }
  1386. .compose__action-bar .icon-button {
  1387. pointer-events: auto;
  1388. transform: scale(1, 1) translate(0, 0);
  1389. opacity: 1;
  1390. }
  1391. }
  1392. }
  1393. .navigation-bar__profile {
  1394. flex: 1 1 auto;
  1395. margin-left: 8px;
  1396. line-height: 20px;
  1397. margin-top: -1px;
  1398. overflow: hidden;
  1399. }
  1400. .navigation-bar__profile-account {
  1401. display: block;
  1402. font-weight: 500;
  1403. overflow: hidden;
  1404. text-overflow: ellipsis;
  1405. }
  1406. .navigation-bar__profile-edit {
  1407. color: inherit;
  1408. text-decoration: none;
  1409. }
  1410. .dropdown {
  1411. display: inline-block;
  1412. }
  1413. .dropdown__content {
  1414. display: none;
  1415. position: absolute;
  1416. }
  1417. .dropdown-menu__separator {
  1418. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1419. margin: 5px 7px 6px;
  1420. height: 0;
  1421. }
  1422. .dropdown-menu {
  1423. background: $ui-secondary-color;
  1424. padding: 4px 0;
  1425. border-radius: 4px;
  1426. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  1427. z-index: 9999;
  1428. ul {
  1429. list-style: none;
  1430. }
  1431. &.left {
  1432. transform-origin: 100% 50%;
  1433. }
  1434. &.top {
  1435. transform-origin: 50% 100%;
  1436. }
  1437. &.bottom {
  1438. transform-origin: 50% 0;
  1439. }
  1440. &.right {
  1441. transform-origin: 0 50%;
  1442. }
  1443. }
  1444. .dropdown-menu__arrow {
  1445. position: absolute;
  1446. width: 0;
  1447. height: 0;
  1448. border: 0 solid transparent;
  1449. &.left {
  1450. right: -5px;
  1451. margin-top: -5px;
  1452. border-width: 5px 0 5px 5px;
  1453. border-left-color: $ui-secondary-color;
  1454. }
  1455. &.top {
  1456. bottom: -5px;
  1457. margin-left: -7px;
  1458. border-width: 5px 7px 0;
  1459. border-top-color: $ui-secondary-color;
  1460. }
  1461. &.bottom {
  1462. top: -5px;
  1463. margin-left: -7px;
  1464. border-width: 0 7px 5px;
  1465. border-bottom-color: $ui-secondary-color;
  1466. }
  1467. &.right {
  1468. left: -5px;
  1469. margin-top: -5px;
  1470. border-width: 5px 5px 5px 0;
  1471. border-right-color: $ui-secondary-color;
  1472. }
  1473. }
  1474. .dropdown-menu__item {
  1475. a {
  1476. font-size: 13px;
  1477. line-height: 18px;
  1478. display: block;
  1479. padding: 4px 14px;
  1480. box-sizing: border-box;
  1481. text-decoration: none;
  1482. background: $ui-secondary-color;
  1483. color: $inverted-text-color;
  1484. overflow: hidden;
  1485. text-overflow: ellipsis;
  1486. white-space: nowrap;
  1487. &:focus,
  1488. &:hover,
  1489. &:active {
  1490. background: $ui-highlight-color;
  1491. color: $secondary-text-color;
  1492. outline: 0;
  1493. }
  1494. }
  1495. }
  1496. .dropdown--active .dropdown__content {
  1497. display: block;
  1498. line-height: 18px;
  1499. max-width: 311px;
  1500. right: 0;
  1501. text-align: left;
  1502. z-index: 9999;
  1503. & > ul {
  1504. list-style: none;
  1505. background: $ui-secondary-color;
  1506. padding: 4px 0;
  1507. border-radius: 4px;
  1508. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1509. min-width: 140px;
  1510. position: relative;
  1511. }
  1512. &.dropdown__right {
  1513. right: 0;
  1514. }
  1515. &.dropdown__left {
  1516. & > ul {
  1517. left: -98px;
  1518. }
  1519. }
  1520. & > ul > li > a {
  1521. font-size: 13px;
  1522. line-height: 18px;
  1523. display: block;
  1524. padding: 4px 14px;
  1525. box-sizing: border-box;
  1526. text-decoration: none;
  1527. background: $ui-secondary-color;
  1528. color: $inverted-text-color;
  1529. overflow: hidden;
  1530. text-overflow: ellipsis;
  1531. white-space: nowrap;
  1532. &:focus {
  1533. outline: 0;
  1534. }
  1535. &:hover {
  1536. background: $ui-highlight-color;
  1537. color: $secondary-text-color;
  1538. }
  1539. }
  1540. }
  1541. .dropdown__icon {
  1542. vertical-align: middle;
  1543. }
  1544. .columns-area {
  1545. display: flex;
  1546. flex: 1 1 auto;
  1547. flex-direction: row;
  1548. justify-content: flex-start;
  1549. overflow-x: auto;
  1550. position: relative;
  1551. &.unscrollable {
  1552. overflow-x: hidden;
  1553. }
  1554. &__panels {
  1555. display: flex;
  1556. justify-content: center;
  1557. width: 100%;
  1558. height: 100%;
  1559. min-height: 100vh;
  1560. &__pane {
  1561. height: 100%;
  1562. overflow: hidden;
  1563. pointer-events: none;
  1564. display: flex;
  1565. justify-content: flex-end;
  1566. &--start {
  1567. justify-content: flex-start;
  1568. }
  1569. &__inner {
  1570. position: fixed;
  1571. width: 285px;
  1572. pointer-events: auto;
  1573. height: 100%;
  1574. }
  1575. }
  1576. &__main {
  1577. box-sizing: border-box;
  1578. width: 100%;
  1579. max-width: 600px;
  1580. display: flex;
  1581. flex-direction: column;
  1582. @media screen and (min-width: $no-gap-breakpoint) {
  1583. padding: 0 10px;
  1584. }
  1585. }
  1586. }
  1587. }
  1588. .tabs-bar__wrapper {
  1589. background: darken($ui-base-color, 8%);
  1590. position: sticky;
  1591. top: 0;
  1592. z-index: 2;
  1593. padding-top: 0;
  1594. @media screen and (min-width: $no-gap-breakpoint) {
  1595. padding-top: 10px;
  1596. }
  1597. .tabs-bar {
  1598. margin-bottom: 0;
  1599. @media screen and (min-width: $no-gap-breakpoint) {
  1600. margin-bottom: 10px;
  1601. }
  1602. }
  1603. }
  1604. .react-swipeable-view-container {
  1605. &,
  1606. .columns-area,
  1607. .drawer,
  1608. .column {
  1609. height: 100%;
  1610. }
  1611. }
  1612. .react-swipeable-view-container > * {
  1613. display: flex;
  1614. align-items: center;
  1615. justify-content: center;
  1616. height: 100%;
  1617. }
  1618. .column {
  1619. width: 350px;
  1620. position: relative;
  1621. box-sizing: border-box;
  1622. display: flex;
  1623. flex-direction: column;
  1624. > .scrollable {
  1625. background: $ui-base-color;
  1626. }
  1627. }
  1628. .ui {
  1629. flex: 0 0 auto;
  1630. display: flex;
  1631. flex-direction: column;
  1632. width: 100%;
  1633. height: 100%;
  1634. }
  1635. .drawer {
  1636. width: 300px;
  1637. box-sizing: border-box;
  1638. display: flex;
  1639. flex-direction: column;
  1640. overflow-y: hidden;
  1641. }
  1642. .drawer__tab {
  1643. display: block;
  1644. flex: 1 1 auto;
  1645. padding: 15px 5px 13px;
  1646. color: $darker-text-color;
  1647. text-decoration: none;
  1648. text-align: center;
  1649. font-size: 16px;
  1650. border-bottom: 2px solid transparent;
  1651. }
  1652. .column,
  1653. .drawer {
  1654. flex: 1 1 100%;
  1655. overflow: hidden;
  1656. }
  1657. @media screen and (min-width: 631px) {
  1658. .columns-area {
  1659. padding: 0;
  1660. }
  1661. .column,
  1662. .drawer {
  1663. flex: 0 0 auto;
  1664. padding: 10px;
  1665. padding-left: 5px;
  1666. padding-right: 5px;
  1667. &:first-child {
  1668. padding-left: 10px;
  1669. }
  1670. &:last-child {
  1671. padding-right: 10px;
  1672. }
  1673. }
  1674. .columns-area > div {
  1675. .column,
  1676. .drawer {
  1677. padding-left: 5px;
  1678. padding-right: 5px;
  1679. }
  1680. }
  1681. }
  1682. .tabs-bar {
  1683. box-sizing: border-box;
  1684. display: flex;
  1685. background: lighten($ui-base-color, 8%);
  1686. flex: 0 0 auto;
  1687. overflow-y: auto;
  1688. }
  1689. .tabs-bar__link {
  1690. display: block;
  1691. flex: 1 1 auto;
  1692. padding: 15px 10px;
  1693. padding-bottom: 13px;
  1694. color: $primary-text-color;
  1695. text-decoration: none;
  1696. text-align: center;
  1697. font-size: 14px;
  1698. font-weight: 500;
  1699. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1700. transition: all 50ms linear;
  1701. transition-property: border-bottom, background, color;
  1702. .fa {
  1703. font-weight: 400;
  1704. font-size: 16px;
  1705. }
  1706. &:hover,
  1707. &:focus,
  1708. &:active {
  1709. @media screen and (min-width: 631px) {
  1710. background: lighten($ui-base-color, 14%);
  1711. border-bottom-color: lighten($ui-base-color, 14%);
  1712. }
  1713. }
  1714. &.active {
  1715. border-bottom: 2px solid $highlight-text-color;
  1716. color: $highlight-text-color;
  1717. }
  1718. span {
  1719. margin-left: 5px;
  1720. display: none;
  1721. }
  1722. }
  1723. @media screen and (min-width: 600px) {
  1724. .tabs-bar__link {
  1725. span {
  1726. display: inline;
  1727. }
  1728. }
  1729. }
  1730. .columns-area--mobile {
  1731. flex-direction: column;
  1732. width: 100%;
  1733. height: 100%;
  1734. margin: 0 auto;
  1735. .column,
  1736. .drawer {
  1737. width: 100%;
  1738. height: 100%;
  1739. padding: 0;
  1740. }
  1741. //.column {
  1742. // margin-top: 0;
  1743. // @media screen and (min-width: $no-gap-breakpoint) {
  1744. // margin-top: 10px;
  1745. // }
  1746. //}
  1747. .autosuggest-textarea__textarea {
  1748. font-size: 16px;
  1749. }
  1750. .search__input {
  1751. line-height: 18px;
  1752. font-size: 16px;
  1753. padding: 15px;
  1754. padding-right: 30px;
  1755. }
  1756. .search__icon .fa {
  1757. top: 15px;
  1758. }
  1759. .scrollable {
  1760. overflow: visible;
  1761. @supports(display: grid) {
  1762. contain: content;
  1763. }
  1764. }
  1765. @media screen and (min-width: $no-gap-breakpoint) {
  1766. padding: 10px 0;
  1767. padding-top: 0;
  1768. }
  1769. @media screen and (min-width: 630px) {
  1770. .detailed-status {
  1771. padding: 15px;
  1772. .media-gallery,
  1773. .video-player {
  1774. margin-top: 15px;
  1775. }
  1776. }
  1777. .account__header__bar {
  1778. padding: 5px 10px;
  1779. }
  1780. .navigation-bar,
  1781. .compose-form {
  1782. padding: 15px;
  1783. }
  1784. .compose-form .compose-form__publish .compose-form__publish-button-wrapper {
  1785. padding-top: 15px;
  1786. }
  1787. .status {
  1788. padding: 15px 15px 15px (48px + 15px * 2);
  1789. min-height: 48px + 2px;
  1790. &__avatar {
  1791. left: 15px;
  1792. top: 17px;
  1793. }
  1794. &__content {
  1795. padding-top: 5px;
  1796. }
  1797. &__prepend {
  1798. margin-left: 48px + 15px * 2;
  1799. padding-top: 15px;
  1800. }
  1801. &__prepend-icon-wrapper {
  1802. left: -32px;
  1803. }
  1804. .media-gallery,
  1805. &__action-bar,
  1806. .video-player {
  1807. margin-top: 10px;
  1808. }
  1809. }
  1810. .account {
  1811. padding: 15px 10px;
  1812. &__header__bio {
  1813. margin: 0 -10px;
  1814. }
  1815. }
  1816. .notification {
  1817. &__message {
  1818. margin-left: 48px + 15px * 2;
  1819. padding-top: 15px;
  1820. }
  1821. &__favourite-icon-wrapper {
  1822. left: -32px;
  1823. }
  1824. .status {
  1825. padding-top: 8px;
  1826. }
  1827. .account {
  1828. padding-top: 8px;
  1829. }
  1830. .account__avatar-wrapper {
  1831. margin-left: 17px;
  1832. margin-right: 15px;
  1833. }
  1834. }
  1835. }
  1836. }
  1837. .floating-action-button {
  1838. position: fixed;
  1839. display: flex;
  1840. justify-content: center;
  1841. align-items: center;
  1842. width: 3.9375rem;
  1843. height: 3.9375rem;
  1844. bottom: 1.3125rem;
  1845. right: 1.3125rem;
  1846. background: darken($ui-highlight-color, 3%);
  1847. color: $white;
  1848. border-radius: 50%;
  1849. font-size: 21px;
  1850. line-height: 21px;
  1851. text-decoration: none;
  1852. box-shadow: 2px 3px 9px rgba($base-shadow-color, 0.4);
  1853. &:hover,
  1854. &:focus,
  1855. &:active {
  1856. background: lighten($ui-highlight-color, 7%);
  1857. }
  1858. }
  1859. @media screen and (min-width: $no-gap-breakpoint) {
  1860. .tabs-bar {
  1861. width: 100%;
  1862. }
  1863. .react-swipeable-view-container .columns-area--mobile {
  1864. height: calc(100% - 10px) !important;
  1865. }
  1866. .getting-started__wrapper,
  1867. .search {
  1868. margin-bottom: 10px;
  1869. }
  1870. }
  1871. @media screen and (max-width: 600px + (285px * 1) + (10px * 1)) {
  1872. .columns-area__panels__pane--compositional {
  1873. display: none;
  1874. }
  1875. }
  1876. @media screen and (min-width: 600px + (285px * 1) + (10px * 1)) {
  1877. .floating-action-button,
  1878. .tabs-bar__link.optional {
  1879. display: none;
  1880. }
  1881. .search-page .search {
  1882. display: none;
  1883. }
  1884. }
  1885. @media screen and (max-width: 600px + (285px * 2) + (10px * 2)) {
  1886. .columns-area__panels__pane--navigational {
  1887. display: none;
  1888. }
  1889. }
  1890. @media screen and (min-width: 600px + (285px * 2) + (10px * 2)) {
  1891. .tabs-bar {
  1892. display: none;
  1893. }
  1894. }
  1895. .icon-with-badge {
  1896. position: relative;
  1897. &__badge {
  1898. position: absolute;
  1899. left: 9px;
  1900. top: -13px;
  1901. background: $ui-highlight-color;
  1902. border: 2px solid lighten($ui-base-color, 8%);
  1903. padding: 1px 6px;
  1904. border-radius: 6px;
  1905. font-size: 10px;
  1906. font-weight: 500;
  1907. line-height: 14px;
  1908. color: $primary-text-color;
  1909. }
  1910. }
  1911. .column-link--transparent .icon-with-badge__badge {
  1912. border-color: darken($ui-base-color, 8%);
  1913. }
  1914. .compose-panel {
  1915. width: 285px;
  1916. margin-top: 10px;
  1917. display: flex;
  1918. flex-direction: column;
  1919. height: calc(100% - 10px);
  1920. overflow-y: hidden;
  1921. .navigation-bar {
  1922. padding-top: 20px;
  1923. padding-bottom: 20px;
  1924. flex: 0 1 48px;
  1925. min-height: 20px;
  1926. }
  1927. .flex-spacer {
  1928. background: transparent;
  1929. }
  1930. .compose-form {
  1931. flex: 1;
  1932. overflow-y: hidden;
  1933. display: flex;
  1934. flex-direction: column;
  1935. min-height: 310px;
  1936. padding-bottom: 71px;
  1937. margin-bottom: -71px;
  1938. }
  1939. .compose-form__autosuggest-wrapper {
  1940. overflow-y: auto;
  1941. background-color: $white;
  1942. border-radius: 4px 4px 0 0;
  1943. flex: 0 1 auto;
  1944. }
  1945. .autosuggest-textarea__textarea {
  1946. overflow-y: hidden;
  1947. }
  1948. .compose-form__upload-thumbnail {
  1949. height: 80px;
  1950. }
  1951. }
  1952. .navigation-panel {
  1953. margin-top: 10px;
  1954. margin-bottom: 10px;
  1955. height: calc(100% - 20px);
  1956. overflow-y: auto;
  1957. display: flex;
  1958. flex-direction: column;
  1959. & > a {
  1960. flex: 0 0 auto;
  1961. }
  1962. hr {
  1963. flex: 0 0 auto;
  1964. border: 0;
  1965. background: transparent;
  1966. border-top: 1px solid lighten($ui-base-color, 4%);
  1967. margin: 10px 0;
  1968. }
  1969. .flex-spacer {
  1970. background: transparent;
  1971. }
  1972. }
  1973. .drawer__pager {
  1974. box-sizing: border-box;
  1975. padding: 0;
  1976. flex-grow: 1;
  1977. position: relative;
  1978. overflow: hidden;
  1979. display: flex;
  1980. }
  1981. .drawer__inner {
  1982. position: absolute;
  1983. top: 0;
  1984. left: 0;
  1985. background: lighten($ui-base-color, 13%);
  1986. box-sizing: border-box;
  1987. padding: 0;
  1988. display: flex;
  1989. flex-direction: column;
  1990. overflow: hidden;
  1991. overflow-y: auto;
  1992. width: 100%;
  1993. height: 100%;
  1994. &.darker {
  1995. background: $ui-base-color;
  1996. }
  1997. }
  1998. .drawer__inner__mastodon {
  1999. background: lighten($ui-base-color, 13%) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 234.80078 31.757813" width="234.80078" height="31.757812"><path d="M19.599609 0c-1.05 0-2.10039.375-2.90039 1.125L0 16.925781v14.832031h234.80078V17.025391l-16.5-15.900391c-1.6-1.5-4.20078-1.5-5.80078 0l-13.80078 13.099609c-1.6 1.5-4.19883 1.5-5.79883 0L179.09961 1.125c-1.6-1.5-4.19883-1.5-5.79883 0L159.5 14.224609c-1.6 1.5-4.20078 1.5-5.80078 0L139.90039 1.125c-1.6-1.5-4.20078-1.5-5.80078 0l-13.79883 13.099609c-1.6 1.5-4.20078 1.5-5.80078 0L100.69922 1.125c-1.600001-1.5-4.198829-1.5-5.798829 0l-13.59961 13.099609c-1.6 1.5-4.200781 1.5-5.800781 0L61.699219 1.125c-1.6-1.5-4.198828-1.5-5.798828 0L42.099609 14.224609c-1.6 1.5-4.198828 1.5-5.798828 0L22.5 1.125C21.7.375 20.649609 0 19.599609 0z" fill="#{hex-color($ui-base-color)}"/></svg>') no-repeat bottom / 100% auto;
  2000. flex: 1;
  2001. min-height: 47px;
  2002. display: none;
  2003. > img {
  2004. display: block;
  2005. object-fit: contain;
  2006. object-position: bottom left;
  2007. width: 100%;
  2008. height: 100%;
  2009. pointer-events: none;
  2010. user-drag: none;
  2011. user-select: none;
  2012. }
  2013. @media screen and (min-height: 640px) {
  2014. display: block;
  2015. }
  2016. }
  2017. .pseudo-drawer {
  2018. background: lighten($ui-base-color, 13%);
  2019. font-size: 13px;
  2020. text-align: left;
  2021. }
  2022. .drawer__header {
  2023. flex: 0 0 auto;
  2024. font-size: 16px;
  2025. background: lighten($ui-base-color, 8%);
  2026. margin-bottom: 10px;
  2027. display: flex;
  2028. flex-direction: row;
  2029. a {
  2030. transition: background 100ms ease-in;
  2031. &:hover {
  2032. background: lighten($ui-base-color, 3%);
  2033. transition: background 200ms ease-out;
  2034. }
  2035. }
  2036. }
  2037. .scrollable {
  2038. overflow-y: scroll;
  2039. overflow-x: hidden;
  2040. flex: 1 1 auto;
  2041. -webkit-overflow-scrolling: touch;
  2042. will-change: transform; // improves perf in mobile Chrome
  2043. &.optionally-scrollable {
  2044. overflow-y: auto;
  2045. }
  2046. @supports(display: grid) { // hack to fix Chrome <57
  2047. contain: strict;
  2048. }
  2049. &--flex {
  2050. display: flex;
  2051. flex-direction: column;
  2052. }
  2053. &__append {
  2054. flex: 1 1 auto;
  2055. position: relative;
  2056. min-height: 120px;
  2057. }
  2058. }
  2059. .scrollable.fullscreen {
  2060. @supports(display: grid) { // hack to fix Chrome <57
  2061. contain: none;
  2062. }
  2063. }
  2064. .column-back-button {
  2065. box-sizing: border-box;
  2066. width: 100%;
  2067. background: lighten($ui-base-color, 4%);
  2068. color: $highlight-text-color;
  2069. cursor: pointer;
  2070. flex: 0 0 auto;
  2071. font-size: 16px;
  2072. line-height: inherit;
  2073. border: 0;
  2074. text-align: unset;
  2075. padding: 15px;
  2076. margin: 0;
  2077. z-index: 3;
  2078. outline: 0;
  2079. &:hover {
  2080. text-decoration: underline;
  2081. }
  2082. }
  2083. .column-header__back-button {
  2084. background: lighten($ui-base-color, 4%);
  2085. border: 0;
  2086. font-family: inherit;
  2087. color: $highlight-text-color;
  2088. cursor: pointer;
  2089. white-space: nowrap;
  2090. font-size: 16px;
  2091. padding: 0 5px 0 0;
  2092. z-index: 3;
  2093. &:hover {
  2094. text-decoration: underline;
  2095. }
  2096. &:last-child {
  2097. padding: 0 15px 0 0;
  2098. }
  2099. }
  2100. .column-back-button__icon {
  2101. display: inline-block;
  2102. margin-right: 5px;
  2103. }
  2104. .column-back-button--slim {
  2105. position: relative;
  2106. }
  2107. .column-back-button--slim-button {
  2108. cursor: pointer;
  2109. flex: 0 0 auto;
  2110. font-size: 16px;
  2111. padding: 15px;
  2112. position: absolute;
  2113. right: 0;
  2114. top: -48px;
  2115. }
  2116. .react-toggle {
  2117. display: inline-block;
  2118. position: relative;
  2119. cursor: pointer;
  2120. background-color: transparent;
  2121. border: 0;
  2122. padding: 0;
  2123. user-select: none;
  2124. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  2125. -webkit-tap-highlight-color: transparent;
  2126. }
  2127. .react-toggle-screenreader-only {
  2128. border: 0;
  2129. clip: rect(0 0 0 0);
  2130. height: 1px;
  2131. margin: -1px;
  2132. overflow: hidden;
  2133. padding: 0;
  2134. position: absolute;
  2135. width: 1px;
  2136. }
  2137. .react-toggle--disabled {
  2138. cursor: not-allowed;
  2139. opacity: 0.5;
  2140. transition: opacity 0.25s;
  2141. }
  2142. .react-toggle-track {
  2143. width: 50px;
  2144. height: 24px;
  2145. padding: 0;
  2146. border-radius: 30px;
  2147. background-color: $ui-base-color;
  2148. transition: background-color 0.2s ease;
  2149. }
  2150. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  2151. background-color: darken($ui-base-color, 10%);
  2152. }
  2153. .react-toggle--checked .react-toggle-track {
  2154. background-color: $ui-highlight-color;
  2155. }
  2156. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  2157. background-color: lighten($ui-highlight-color, 10%);
  2158. }
  2159. .react-toggle-track-check {
  2160. position: absolute;
  2161. width: 14px;
  2162. height: 10px;
  2163. top: 0;
  2164. bottom: 0;
  2165. margin-top: auto;
  2166. margin-bottom: auto;
  2167. line-height: 0;
  2168. left: 8px;
  2169. opacity: 0;
  2170. transition: opacity 0.25s ease;
  2171. }
  2172. .react-toggle--checked .react-toggle-track-check {
  2173. opacity: 1;
  2174. transition: opacity 0.25s ease;
  2175. }
  2176. .react-toggle-track-x {
  2177. position: absolute;
  2178. width: 10px;
  2179. height: 10px;
  2180. top: 0;
  2181. bottom: 0;
  2182. margin-top: auto;
  2183. margin-bottom: auto;
  2184. line-height: 0;
  2185. right: 10px;
  2186. opacity: 1;
  2187. transition: opacity 0.25s ease;
  2188. }
  2189. .react-toggle--checked .react-toggle-track-x {
  2190. opacity: 0;
  2191. }
  2192. .react-toggle-thumb {
  2193. position: absolute;
  2194. top: 1px;
  2195. left: 1px;
  2196. width: 22px;
  2197. height: 22px;
  2198. border: 1px solid $ui-base-color;
  2199. border-radius: 50%;
  2200. background-color: darken($simple-background-color, 2%);
  2201. box-sizing: border-box;
  2202. transition: all 0.25s ease;
  2203. transition-property: border-color, left;
  2204. }
  2205. .react-toggle--checked .react-toggle-thumb {
  2206. left: 27px;
  2207. border-color: $ui-highlight-color;
  2208. }
  2209. .column-link {
  2210. background: lighten($ui-base-color, 8%);
  2211. color: $primary-text-color;
  2212. display: block;
  2213. font-size: 16px;
  2214. padding: 15px;
  2215. text-decoration: none;
  2216. &:hover,
  2217. &:focus,
  2218. &:active {
  2219. background: lighten($ui-base-color, 11%);
  2220. }
  2221. &:focus {
  2222. outline: 0;
  2223. }
  2224. &--transparent {
  2225. background: transparent;
  2226. color: $ui-secondary-color;
  2227. &:hover,
  2228. &:focus,
  2229. &:active {
  2230. background: transparent;
  2231. color: $primary-text-color;
  2232. }
  2233. &.active {
  2234. color: $ui-highlight-color;
  2235. }
  2236. }
  2237. }
  2238. .column-link__icon {
  2239. display: inline-block;
  2240. margin-right: 5px;
  2241. }
  2242. .column-link__badge {
  2243. display: inline-block;
  2244. border-radius: 4px;
  2245. font-size: 12px;
  2246. line-height: 19px;
  2247. font-weight: 500;
  2248. background: $ui-base-color;
  2249. padding: 4px 8px;
  2250. margin: -6px 10px;
  2251. }
  2252. .column-subheading {
  2253. background: $ui-base-color;
  2254. color: $dark-text-color;
  2255. padding: 8px 20px;
  2256. font-size: 12px;
  2257. font-weight: 500;
  2258. text-transform: uppercase;
  2259. cursor: default;
  2260. }
  2261. .getting-started__wrapper,
  2262. .getting-started,
  2263. .flex-spacer {
  2264. background: $ui-base-color;
  2265. }
  2266. .getting-started__wrapper {
  2267. flex: 0 0 auto;
  2268. }
  2269. .flex-spacer {
  2270. flex: 1 1 auto;
  2271. }
  2272. .getting-started {
  2273. color: $dark-text-color;
  2274. overflow: auto;
  2275. &__footer {
  2276. flex: 0 0 auto;
  2277. padding: 10px;
  2278. padding-top: 20px;
  2279. ul {
  2280. margin-bottom: 10px;
  2281. }
  2282. ul li {
  2283. display: inline;
  2284. }
  2285. p {
  2286. color: $dark-text-color;
  2287. font-size: 13px;
  2288. margin-bottom: 20px;
  2289. a {
  2290. color: $dark-text-color;
  2291. text-decoration: underline;
  2292. }
  2293. }
  2294. a {
  2295. text-decoration: none;
  2296. color: $darker-text-color;
  2297. &:hover,
  2298. &:focus,
  2299. &:active {
  2300. text-decoration: underline;
  2301. }
  2302. }
  2303. }
  2304. &__trends {
  2305. flex: 0 1 auto;
  2306. opacity: 1;
  2307. animation: fade 150ms linear;
  2308. margin-top: 10px;
  2309. @media screen and (max-height: 810px) {
  2310. .trends__item:nth-child(3) {
  2311. display: none;
  2312. }
  2313. }
  2314. @media screen and (max-height: 720px) {
  2315. .trends__item:nth-child(2) {
  2316. display: none;
  2317. }
  2318. }
  2319. @media screen and (max-height: 670px) {
  2320. display: none;
  2321. }
  2322. .trends__item {
  2323. border-bottom: 0;
  2324. padding: 10px;
  2325. &__current {
  2326. color: $darker-text-color;
  2327. }
  2328. }
  2329. }
  2330. }
  2331. .keyboard-shortcuts {
  2332. padding: 8px 0 0;
  2333. overflow: hidden;
  2334. thead {
  2335. position: absolute;
  2336. left: -9999px;
  2337. }
  2338. td {
  2339. padding: 0 10px 8px;
  2340. }
  2341. kbd {
  2342. display: inline-block;
  2343. padding: 3px 5px;
  2344. background-color: lighten($ui-base-color, 8%);
  2345. border: 1px solid darken($ui-base-color, 4%);
  2346. }
  2347. }
  2348. .setting-text {
  2349. display: block;
  2350. box-sizing: border-box;
  2351. width: 100%;
  2352. margin: 0;
  2353. color: $inverted-text-color;
  2354. background: $simple-background-color;
  2355. padding: 10px;
  2356. font-family: inherit;
  2357. font-size: 14px;
  2358. resize: vertical;
  2359. border: 0;
  2360. outline: 0;
  2361. border-radius: 4px;
  2362. &:focus {
  2363. outline: 0;
  2364. }
  2365. @media screen and (max-width: 600px) {
  2366. font-size: 16px;
  2367. }
  2368. }
  2369. .no-reduce-motion button.icon-button i.fa-retweet {
  2370. background-position: 0 0;
  2371. height: 19px;
  2372. transition: background-position 0.9s steps(10);
  2373. transition-duration: 0s;
  2374. vertical-align: middle;
  2375. width: 22px;
  2376. &::before {
  2377. display: none !important;
  2378. }
  2379. }
  2380. .no-reduce-motion button.icon-button.active i.fa-retweet {
  2381. transition-duration: 0.9s;
  2382. background-position: 0 100%;
  2383. }
  2384. .reduce-motion button.icon-button i.fa-retweet {
  2385. color: $action-button-color;
  2386. transition: color 100ms ease-in;
  2387. }
  2388. .reduce-motion button.icon-button.active i.fa-retweet {
  2389. color: $highlight-text-color;
  2390. }
  2391. .status-card {
  2392. display: flex;
  2393. font-size: 14px;
  2394. border: 1px solid lighten($ui-base-color, 8%);
  2395. border-radius: 4px;
  2396. color: $dark-text-color;
  2397. margin-top: 14px;
  2398. text-decoration: none;
  2399. overflow: hidden;
  2400. &__actions {
  2401. bottom: 0;
  2402. left: 0;
  2403. position: absolute;
  2404. right: 0;
  2405. top: 0;
  2406. display: flex;
  2407. justify-content: center;
  2408. align-items: center;
  2409. & > div {
  2410. background: rgba($base-shadow-color, 0.6);
  2411. border-radius: 8px;
  2412. padding: 12px 9px;
  2413. flex: 0 0 auto;
  2414. display: flex;
  2415. justify-content: center;
  2416. align-items: center;
  2417. }
  2418. button,
  2419. a {
  2420. display: inline;
  2421. color: $secondary-text-color;
  2422. background: transparent;
  2423. border: 0;
  2424. padding: 0 8px;
  2425. text-decoration: none;
  2426. font-size: 18px;
  2427. line-height: 18px;
  2428. &:hover,
  2429. &:active,
  2430. &:focus {
  2431. color: $primary-text-color;
  2432. }
  2433. }
  2434. a {
  2435. font-size: 19px;
  2436. position: relative;
  2437. bottom: -1px;
  2438. }
  2439. }
  2440. }
  2441. a.status-card {
  2442. cursor: pointer;
  2443. &:hover {
  2444. background: lighten($ui-base-color, 8%);
  2445. }
  2446. }
  2447. .status-card-photo {
  2448. cursor: zoom-in;
  2449. display: block;
  2450. text-decoration: none;
  2451. width: 100%;
  2452. height: auto;
  2453. margin: 0;
  2454. }
  2455. .status-card-video {
  2456. iframe {
  2457. width: 100%;
  2458. height: 100%;
  2459. }
  2460. }
  2461. .status-card__title {
  2462. display: block;
  2463. font-weight: 500;
  2464. margin-bottom: 5px;
  2465. color: $darker-text-color;
  2466. overflow: hidden;
  2467. text-overflow: ellipsis;
  2468. white-space: nowrap;
  2469. text-decoration: none;
  2470. }
  2471. .status-card__content {
  2472. flex: 1 1 auto;
  2473. overflow: hidden;
  2474. padding: 14px 14px 14px 8px;
  2475. }
  2476. .status-card__description {
  2477. color: $darker-text-color;
  2478. }
  2479. .status-card__host {
  2480. display: block;
  2481. margin-top: 5px;
  2482. font-size: 13px;
  2483. overflow: hidden;
  2484. text-overflow: ellipsis;
  2485. white-space: nowrap;
  2486. }
  2487. .status-card__image {
  2488. flex: 0 0 100px;
  2489. background: lighten($ui-base-color, 8%);
  2490. position: relative;
  2491. & > .fa {
  2492. font-size: 21px;
  2493. position: absolute;
  2494. transform-origin: 50% 50%;
  2495. top: 50%;
  2496. left: 50%;
  2497. transform: translate(-50%, -50%);
  2498. }
  2499. }
  2500. .status-card.horizontal {
  2501. display: block;
  2502. .status-card__image {
  2503. width: 100%;
  2504. }
  2505. .status-card__image-image {
  2506. border-radius: 4px 4px 0 0;
  2507. }
  2508. .status-card__title {
  2509. white-space: inherit;
  2510. }
  2511. }
  2512. .status-card.compact {
  2513. border-color: lighten($ui-base-color, 4%);
  2514. &.interactive {
  2515. border: 0;
  2516. }
  2517. .status-card__content {
  2518. padding: 8px;
  2519. padding-top: 10px;
  2520. }
  2521. .status-card__title {
  2522. white-space: nowrap;
  2523. }
  2524. .status-card__image {
  2525. flex: 0 0 60px;
  2526. }
  2527. }
  2528. a.status-card.compact:hover {
  2529. background-color: lighten($ui-base-color, 4%);
  2530. }
  2531. .status-card__image-image {
  2532. border-radius: 4px 0 0 4px;
  2533. display: block;
  2534. margin: 0;
  2535. width: 100%;
  2536. height: 100%;
  2537. object-fit: cover;
  2538. background-size: cover;
  2539. background-position: center center;
  2540. }
  2541. .load-more {
  2542. display: block;
  2543. color: $dark-text-color;
  2544. background-color: transparent;
  2545. border: 0;
  2546. font-size: inherit;
  2547. text-align: center;
  2548. line-height: inherit;
  2549. margin: 0;
  2550. padding: 15px;
  2551. box-sizing: border-box;
  2552. width: 100%;
  2553. clear: both;
  2554. text-decoration: none;
  2555. &:hover {
  2556. background: lighten($ui-base-color, 2%);
  2557. }
  2558. }
  2559. .load-gap {
  2560. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2561. }
  2562. .regeneration-indicator {
  2563. text-align: center;
  2564. font-size: 16px;
  2565. font-weight: 500;
  2566. color: $dark-text-color;
  2567. background: $ui-base-color;
  2568. cursor: default;
  2569. display: flex;
  2570. flex: 1 1 auto;
  2571. align-items: center;
  2572. justify-content: center;
  2573. padding: 20px;
  2574. & > div {
  2575. width: 100%;
  2576. background: transparent;
  2577. padding-top: 0;
  2578. }
  2579. &__figure {
  2580. background: url('../images/elephant_ui_working.svg') no-repeat center 0;
  2581. width: 100%;
  2582. height: 160px;
  2583. background-size: contain;
  2584. position: absolute;
  2585. top: 50%;
  2586. left: 50%;
  2587. transform: translate(-50%, -50%);
  2588. }
  2589. &.missing-indicator {
  2590. padding-top: 20px + 48px;
  2591. .regeneration-indicator__figure {
  2592. background-image: url('../images/elephant_ui_disappointed.svg');
  2593. }
  2594. }
  2595. &__label {
  2596. margin-top: 200px;
  2597. strong {
  2598. display: block;
  2599. margin-bottom: 10px;
  2600. color: $dark-text-color;
  2601. }
  2602. span {
  2603. font-size: 15px;
  2604. font-weight: 400;
  2605. }
  2606. }
  2607. }
  2608. .column-header__wrapper {
  2609. position: relative;
  2610. flex: 0 0 auto;
  2611. &.active {
  2612. &::before {
  2613. display: block;
  2614. content: "";
  2615. position: absolute;
  2616. top: 35px;
  2617. left: 0;
  2618. right: 0;
  2619. margin: 0 auto;
  2620. width: 60%;
  2621. pointer-events: none;
  2622. height: 28px;
  2623. z-index: 1;
  2624. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  2625. }
  2626. }
  2627. }
  2628. .column-header {
  2629. display: flex;
  2630. font-size: 16px;
  2631. background: lighten($ui-base-color, 4%);
  2632. flex: 0 0 auto;
  2633. cursor: pointer;
  2634. position: relative;
  2635. z-index: 2;
  2636. outline: 0;
  2637. overflow: hidden;
  2638. & > button {
  2639. margin: 0;
  2640. border: 0;
  2641. padding: 15px 0 15px 15px;
  2642. color: inherit;
  2643. background: transparent;
  2644. font: inherit;
  2645. text-align: left;
  2646. text-overflow: ellipsis;
  2647. overflow: hidden;
  2648. white-space: nowrap;
  2649. flex: 1;
  2650. }
  2651. & > .column-header__back-button {
  2652. color: $highlight-text-color;
  2653. }
  2654. &.active {
  2655. box-shadow: 0 1px 0 rgba($highlight-text-color, 0.3);
  2656. .column-header__icon {
  2657. color: $highlight-text-color;
  2658. text-shadow: 0 0 10px rgba($highlight-text-color, 0.4);
  2659. }
  2660. }
  2661. &:focus,
  2662. &:active {
  2663. outline: 0;
  2664. }
  2665. }
  2666. .column-header__buttons {
  2667. height: 48px;
  2668. display: flex;
  2669. }
  2670. .column-header__links {
  2671. margin-bottom: 14px;
  2672. }
  2673. .column-header__links .text-btn {
  2674. margin-right: 10px;
  2675. }
  2676. .column-header__button {
  2677. background: lighten($ui-base-color, 4%);
  2678. border: 0;
  2679. color: $darker-text-color;
  2680. cursor: pointer;
  2681. font-size: 16px;
  2682. padding: 0 15px;
  2683. &:hover {
  2684. color: lighten($darker-text-color, 7%);
  2685. }
  2686. &.active {
  2687. color: $primary-text-color;
  2688. background: lighten($ui-base-color, 8%);
  2689. &:hover {
  2690. color: $primary-text-color;
  2691. background: lighten($ui-base-color, 8%);
  2692. }
  2693. }
  2694. }
  2695. .column-header__collapsible {
  2696. max-height: 70vh;
  2697. overflow: hidden;
  2698. overflow-y: auto;
  2699. color: $darker-text-color;
  2700. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  2701. opacity: 1;
  2702. &.collapsed {
  2703. max-height: 0;
  2704. opacity: 0.5;
  2705. }
  2706. &.animating {
  2707. overflow-y: hidden;
  2708. }
  2709. hr {
  2710. height: 0;
  2711. background: transparent;
  2712. border: 0;
  2713. border-top: 1px solid lighten($ui-base-color, 12%);
  2714. margin: 10px 0;
  2715. }
  2716. }
  2717. .column-header__collapsible-inner {
  2718. background: lighten($ui-base-color, 8%);
  2719. padding: 15px;
  2720. }
  2721. .column-header__setting-btn {
  2722. &:hover {
  2723. color: $darker-text-color;
  2724. text-decoration: underline;
  2725. }
  2726. }
  2727. .column-header__setting-arrows {
  2728. float: right;
  2729. .column-header__setting-btn {
  2730. padding: 0 10px;
  2731. &:last-child {
  2732. padding-right: 0;
  2733. }
  2734. }
  2735. }
  2736. .text-btn {
  2737. display: inline-block;
  2738. padding: 0;
  2739. font-family: inherit;
  2740. font-size: inherit;
  2741. color: inherit;
  2742. border: 0;
  2743. background: transparent;
  2744. cursor: pointer;
  2745. }
  2746. .column-header__icon {
  2747. display: inline-block;
  2748. margin-right: 5px;
  2749. }
  2750. .loading-indicator {
  2751. color: $dark-text-color;
  2752. font-size: 12px;
  2753. font-weight: 400;
  2754. text-transform: uppercase;
  2755. overflow: visible;
  2756. position: absolute;
  2757. top: 50%;
  2758. left: 50%;
  2759. transform: translate(-50%, -50%);
  2760. span {
  2761. display: block;
  2762. float: left;
  2763. margin-left: 50%;
  2764. transform: translateX(-50%);
  2765. margin: 82px 0 0 50%;
  2766. white-space: nowrap;
  2767. }
  2768. }
  2769. .loading-indicator__figure {
  2770. position: absolute;
  2771. top: 50%;
  2772. left: 50%;
  2773. transform: translate(-50%, -50%);
  2774. width: 42px;
  2775. height: 42px;
  2776. box-sizing: border-box;
  2777. background-color: transparent;
  2778. border: 0 solid lighten($ui-base-color, 26%);
  2779. border-width: 6px;
  2780. border-radius: 50%;
  2781. }
  2782. .no-reduce-motion .loading-indicator span {
  2783. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  2784. }
  2785. .no-reduce-motion .loading-indicator__figure {
  2786. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  2787. }
  2788. @keyframes loader-figure {
  2789. 0% {
  2790. width: 0;
  2791. height: 0;
  2792. background-color: lighten($ui-base-color, 26%);
  2793. }
  2794. 29% {
  2795. background-color: lighten($ui-base-color, 26%);
  2796. }
  2797. 30% {
  2798. width: 42px;
  2799. height: 42px;
  2800. background-color: transparent;
  2801. border-width: 21px;
  2802. opacity: 1;
  2803. }
  2804. 100% {
  2805. width: 42px;
  2806. height: 42px;
  2807. border-width: 0;
  2808. opacity: 0;
  2809. background-color: transparent;
  2810. }
  2811. }
  2812. @keyframes loader-label {
  2813. 0% { opacity: 0.25; }
  2814. 30% { opacity: 1; }
  2815. 100% { opacity: 0.25; }
  2816. }
  2817. .video-error-cover {
  2818. align-items: center;
  2819. background: $base-overlay-background;
  2820. color: $primary-text-color;
  2821. cursor: pointer;
  2822. display: flex;
  2823. flex-direction: column;
  2824. height: 100%;
  2825. justify-content: center;
  2826. margin-top: 8px;
  2827. position: relative;
  2828. text-align: center;
  2829. z-index: 100;
  2830. }
  2831. .media-spoiler {
  2832. background: $base-overlay-background;
  2833. color: $darker-text-color;
  2834. border: 0;
  2835. padding: 0;
  2836. width: 100%;
  2837. height: 100%;
  2838. border-radius: 4px;
  2839. appearance: none;
  2840. &:hover,
  2841. &:active,
  2842. &:focus {
  2843. padding: 0;
  2844. color: lighten($darker-text-color, 8%);
  2845. }
  2846. }
  2847. .media-spoiler__warning {
  2848. display: block;
  2849. font-size: 14px;
  2850. }
  2851. .media-spoiler__trigger {
  2852. display: block;
  2853. font-size: 11px;
  2854. font-weight: 700;
  2855. }
  2856. .spoiler-button {
  2857. top: 0;
  2858. left: 0;
  2859. width: 100%;
  2860. height: 100%;
  2861. position: absolute;
  2862. z-index: 100;
  2863. &--minified {
  2864. display: block;
  2865. left: 4px;
  2866. top: 4px;
  2867. width: auto;
  2868. height: auto;
  2869. }
  2870. &--hidden {
  2871. display: none;
  2872. }
  2873. &__overlay {
  2874. display: block;
  2875. background: transparent;
  2876. width: 100%;
  2877. height: 100%;
  2878. border: 0;
  2879. &__label {
  2880. display: inline-block;
  2881. background: rgba($base-overlay-background, 0.5);
  2882. border-radius: 8px;
  2883. padding: 8px 12px;
  2884. color: $primary-text-color;
  2885. font-weight: 500;
  2886. font-size: 14px;
  2887. }
  2888. &:hover,
  2889. &:focus,
  2890. &:active {
  2891. .spoiler-button__overlay__label {
  2892. background: rgba($base-overlay-background, 0.8);
  2893. }
  2894. }
  2895. }
  2896. }
  2897. .modal-container--preloader {
  2898. background: lighten($ui-base-color, 8%);
  2899. }
  2900. .account--panel {
  2901. background: lighten($ui-base-color, 4%);
  2902. border-top: 1px solid lighten($ui-base-color, 8%);
  2903. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2904. display: flex;
  2905. flex-direction: row;
  2906. padding: 10px 0;
  2907. }
  2908. .account--panel__button,
  2909. .detailed-status__button {
  2910. flex: 1 1 auto;
  2911. text-align: center;
  2912. }
  2913. .column-settings__outer {
  2914. background: lighten($ui-base-color, 8%);
  2915. padding: 15px;
  2916. }
  2917. .column-settings__section {
  2918. color: $darker-text-color;
  2919. cursor: default;
  2920. display: block;
  2921. font-weight: 500;
  2922. margin-bottom: 10px;
  2923. }
  2924. .column-settings__hashtags {
  2925. .column-settings__row {
  2926. margin-bottom: 15px;
  2927. }
  2928. .column-select {
  2929. &__control {
  2930. @include search-input;
  2931. }
  2932. &__placeholder {
  2933. color: $dark-text-color;
  2934. padding-left: 2px;
  2935. font-size: 12px;
  2936. }
  2937. &__value-container {
  2938. padding-left: 6px;
  2939. }
  2940. &__multi-value {
  2941. background: lighten($ui-base-color, 8%);
  2942. &__remove {
  2943. cursor: pointer;
  2944. &:hover,
  2945. &:active,
  2946. &:focus {
  2947. background: lighten($ui-base-color, 12%);
  2948. color: lighten($darker-text-color, 4%);
  2949. }
  2950. }
  2951. }
  2952. &__multi-value__label,
  2953. &__input {
  2954. color: $darker-text-color;
  2955. }
  2956. &__clear-indicator,
  2957. &__dropdown-indicator {
  2958. cursor: pointer;
  2959. transition: none;
  2960. color: $dark-text-color;
  2961. &:hover,
  2962. &:active,
  2963. &:focus {
  2964. color: lighten($dark-text-color, 4%);
  2965. }
  2966. }
  2967. &__indicator-separator {
  2968. background-color: lighten($ui-base-color, 8%);
  2969. }
  2970. &__menu {
  2971. @include search-popout;
  2972. padding: 0;
  2973. background: $ui-secondary-color;
  2974. }
  2975. &__menu-list {
  2976. padding: 6px;
  2977. }
  2978. &__option {
  2979. color: $inverted-text-color;
  2980. border-radius: 4px;
  2981. font-size: 14px;
  2982. &--is-focused,
  2983. &--is-selected {
  2984. background: darken($ui-secondary-color, 10%);
  2985. }
  2986. }
  2987. }
  2988. }
  2989. .column-settings__row {
  2990. .text-btn {
  2991. margin-bottom: 15px;
  2992. }
  2993. }
  2994. .relationship-tag {
  2995. color: $primary-text-color;
  2996. margin-bottom: 4px;
  2997. display: block;
  2998. vertical-align: top;
  2999. background-color: $base-overlay-background;
  3000. text-transform: uppercase;
  3001. font-size: 11px;
  3002. font-weight: 500;
  3003. padding: 4px;
  3004. border-radius: 4px;
  3005. opacity: 0.7;
  3006. &:hover {
  3007. opacity: 1;
  3008. }
  3009. }
  3010. .setting-toggle {
  3011. display: block;
  3012. line-height: 24px;
  3013. }
  3014. .setting-toggle__label {
  3015. color: $darker-text-color;
  3016. display: inline-block;
  3017. margin-bottom: 14px;
  3018. margin-left: 8px;
  3019. vertical-align: middle;
  3020. }
  3021. .empty-column-indicator,
  3022. .error-column {
  3023. color: $dark-text-color;
  3024. background: $ui-base-color;
  3025. text-align: center;
  3026. padding: 20px;
  3027. font-size: 15px;
  3028. font-weight: 400;
  3029. cursor: default;
  3030. display: flex;
  3031. flex: 1 1 auto;
  3032. align-items: center;
  3033. justify-content: center;
  3034. @supports(display: grid) { // hack to fix Chrome <57
  3035. contain: strict;
  3036. }
  3037. & > span {
  3038. max-width: 400px;
  3039. }
  3040. a {
  3041. color: $highlight-text-color;
  3042. text-decoration: none;
  3043. &:hover {
  3044. text-decoration: underline;
  3045. }
  3046. }
  3047. }
  3048. .error-column {
  3049. flex-direction: column;
  3050. }
  3051. @keyframes heartbeat {
  3052. from {
  3053. transform: scale(1);
  3054. animation-timing-function: ease-out;
  3055. }
  3056. 10% {
  3057. transform: scale(0.91);
  3058. animation-timing-function: ease-in;
  3059. }
  3060. 17% {
  3061. transform: scale(0.98);
  3062. animation-timing-function: ease-out;
  3063. }
  3064. 33% {
  3065. transform: scale(0.87);
  3066. animation-timing-function: ease-in;
  3067. }
  3068. 45% {
  3069. transform: scale(1);
  3070. animation-timing-function: ease-out;
  3071. }
  3072. }
  3073. .no-reduce-motion .pulse-loading {
  3074. transform-origin: center center;
  3075. animation: heartbeat 1.5s ease-in-out infinite both;
  3076. }
  3077. @keyframes shake-bottom {
  3078. 0%,
  3079. 100% {
  3080. transform: rotate(0deg);
  3081. transform-origin: 50% 100%;
  3082. }
  3083. 10% {
  3084. transform: rotate(2deg);
  3085. }
  3086. 20%,
  3087. 40%,
  3088. 60% {
  3089. transform: rotate(-4deg);
  3090. }
  3091. 30%,
  3092. 50%,
  3093. 70% {
  3094. transform: rotate(4deg);
  3095. }
  3096. 80% {
  3097. transform: rotate(-2deg);
  3098. }
  3099. 90% {
  3100. transform: rotate(2deg);
  3101. }
  3102. }
  3103. .no-reduce-motion .shake-bottom {
  3104. transform-origin: 50% 100%;
  3105. animation: shake-bottom 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) 2s 2 both;
  3106. }
  3107. .emoji-picker-dropdown__menu {
  3108. background: $simple-background-color;
  3109. position: absolute;
  3110. box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
  3111. border-radius: 4px;
  3112. margin-top: 5px;
  3113. z-index: 2;
  3114. .emoji-mart-scroll {
  3115. transition: opacity 200ms ease;
  3116. }
  3117. &.selecting .emoji-mart-scroll {
  3118. opacity: 0.5;
  3119. }
  3120. }
  3121. .emoji-picker-dropdown__modifiers {
  3122. position: absolute;
  3123. top: 60px;
  3124. right: 11px;
  3125. cursor: pointer;
  3126. }
  3127. .emoji-picker-dropdown__modifiers__menu {
  3128. position: absolute;
  3129. z-index: 4;
  3130. top: -4px;
  3131. left: -8px;
  3132. background: $simple-background-color;
  3133. border-radius: 4px;
  3134. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  3135. overflow: hidden;
  3136. button {
  3137. display: block;
  3138. cursor: pointer;
  3139. border: 0;
  3140. padding: 4px 8px;
  3141. background: transparent;
  3142. &:hover,
  3143. &:focus,
  3144. &:active {
  3145. background: rgba($ui-secondary-color, 0.4);
  3146. }
  3147. }
  3148. .emoji-mart-emoji {
  3149. height: 22px;
  3150. }
  3151. }
  3152. .emoji-mart-emoji {
  3153. span {
  3154. background-repeat: no-repeat;
  3155. }
  3156. }
  3157. .upload-area {
  3158. align-items: center;
  3159. background: rgba($base-overlay-background, 0.8);
  3160. display: flex;
  3161. height: 100%;
  3162. justify-content: center;
  3163. left: 0;
  3164. opacity: 0;
  3165. position: absolute;
  3166. top: 0;
  3167. visibility: hidden;
  3168. width: 100%;
  3169. z-index: 2000;
  3170. * {
  3171. pointer-events: none;
  3172. }
  3173. }
  3174. .upload-area__drop {
  3175. width: 320px;
  3176. height: 160px;
  3177. display: flex;
  3178. box-sizing: border-box;
  3179. position: relative;
  3180. padding: 8px;
  3181. }
  3182. .upload-area__background {
  3183. position: absolute;
  3184. top: 0;
  3185. right: 0;
  3186. bottom: 0;
  3187. left: 0;
  3188. z-index: -1;
  3189. border-radius: 4px;
  3190. background: $ui-base-color;
  3191. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  3192. }
  3193. .upload-area__content {
  3194. flex: 1;
  3195. display: flex;
  3196. align-items: center;
  3197. justify-content: center;
  3198. color: $secondary-text-color;
  3199. font-size: 18px;
  3200. font-weight: 500;
  3201. border: 2px dashed $ui-base-lighter-color;
  3202. border-radius: 4px;
  3203. }
  3204. .upload-progress {
  3205. padding: 10px;
  3206. color: $lighter-text-color;
  3207. overflow: hidden;
  3208. display: flex;
  3209. .fa {
  3210. font-size: 34px;
  3211. margin-right: 10px;
  3212. }
  3213. span {
  3214. font-size: 12px;
  3215. text-transform: uppercase;
  3216. font-weight: 500;
  3217. display: block;
  3218. }
  3219. }
  3220. .upload-progess__message {
  3221. flex: 1 1 auto;
  3222. }
  3223. .upload-progress__backdrop {
  3224. width: 100%;
  3225. height: 6px;
  3226. border-radius: 6px;
  3227. background: $ui-base-lighter-color;
  3228. position: relative;
  3229. margin-top: 5px;
  3230. }
  3231. .upload-progress__tracker {
  3232. position: absolute;
  3233. left: 0;
  3234. top: 0;
  3235. height: 6px;
  3236. background: $ui-highlight-color;
  3237. border-radius: 6px;
  3238. }
  3239. .emoji-button {
  3240. display: block;
  3241. font-size: 24px;
  3242. line-height: 24px;
  3243. margin-left: 2px;
  3244. width: 24px;
  3245. outline: 0;
  3246. cursor: pointer;
  3247. &:active,
  3248. &:focus {
  3249. outline: 0 !important;
  3250. }
  3251. img {
  3252. filter: grayscale(100%);
  3253. opacity: 0.8;
  3254. display: block;
  3255. margin: 0;
  3256. width: 22px;
  3257. height: 22px;
  3258. margin-top: 2px;
  3259. }
  3260. &:hover,
  3261. &:active,
  3262. &:focus {
  3263. img {
  3264. opacity: 1;
  3265. filter: none;
  3266. }
  3267. }
  3268. }
  3269. .dropdown--active .emoji-button img {
  3270. opacity: 1;
  3271. filter: none;
  3272. }
  3273. .privacy-dropdown__dropdown {
  3274. position: absolute;
  3275. background: $simple-background-color;
  3276. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  3277. border-radius: 4px;
  3278. margin-left: 40px;
  3279. overflow: hidden;
  3280. &.top {
  3281. transform-origin: 50% 100%;
  3282. }
  3283. &.bottom {
  3284. transform-origin: 50% 0;
  3285. }
  3286. }
  3287. .privacy-dropdown__option {
  3288. color: $inverted-text-color;
  3289. padding: 10px;
  3290. cursor: pointer;
  3291. display: flex;
  3292. &:hover,
  3293. &.active {
  3294. background: $ui-highlight-color;
  3295. color: $primary-text-color;
  3296. outline: 0;
  3297. .privacy-dropdown__option__content {
  3298. color: $primary-text-color;
  3299. strong {
  3300. color: $primary-text-color;
  3301. }
  3302. }
  3303. }
  3304. &.active:hover {
  3305. background: lighten($ui-highlight-color, 4%);
  3306. }
  3307. }
  3308. .privacy-dropdown__option__icon {
  3309. display: flex;
  3310. align-items: center;
  3311. justify-content: center;
  3312. margin-right: 10px;
  3313. }
  3314. .privacy-dropdown__option__content {
  3315. flex: 1 1 auto;
  3316. color: $lighter-text-color;
  3317. strong {
  3318. font-weight: 500;
  3319. display: block;
  3320. color: $inverted-text-color;
  3321. @each $lang in $cjk-langs {
  3322. &:lang(#{$lang}) {
  3323. font-weight: 700;
  3324. }
  3325. }
  3326. }
  3327. }
  3328. .privacy-dropdown.active {
  3329. .privacy-dropdown__value {
  3330. background: $simple-background-color;
  3331. border-radius: 4px 4px 0 0;
  3332. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  3333. .icon-button {
  3334. transition: none;
  3335. }
  3336. &.active {
  3337. background: $ui-highlight-color;
  3338. .icon-button {
  3339. color: $primary-text-color;
  3340. }
  3341. }
  3342. }
  3343. &.top .privacy-dropdown__value {
  3344. border-radius: 0 0 4px 4px;
  3345. }
  3346. .privacy-dropdown__dropdown {
  3347. display: block;
  3348. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  3349. }
  3350. }
  3351. .search {
  3352. position: relative;
  3353. }
  3354. .search__input {
  3355. @include search-input;
  3356. display: block;
  3357. padding: 15px;
  3358. padding-right: 30px;
  3359. line-height: 18px;
  3360. font-size: 16px;
  3361. }
  3362. .search__icon {
  3363. &::-moz-focus-inner {
  3364. border: 0;
  3365. }
  3366. &::-moz-focus-inner,
  3367. &:focus {
  3368. outline: 0 !important;
  3369. }
  3370. .fa {
  3371. position: absolute;
  3372. top: 16px;
  3373. right: 10px;
  3374. z-index: 2;
  3375. display: inline-block;
  3376. opacity: 0;
  3377. transition: all 100ms linear;
  3378. transition-property: transform, opacity;
  3379. font-size: 18px;
  3380. width: 18px;
  3381. height: 18px;
  3382. color: $secondary-text-color;
  3383. cursor: default;
  3384. pointer-events: none;
  3385. &.active {
  3386. pointer-events: auto;
  3387. opacity: 0.3;
  3388. }
  3389. }
  3390. .fa-search {
  3391. transform: rotate(90deg);
  3392. &.active {
  3393. pointer-events: none;
  3394. transform: rotate(0deg);
  3395. }
  3396. }
  3397. .fa-times-circle {
  3398. top: 17px;
  3399. transform: rotate(0deg);
  3400. color: $action-button-color;
  3401. cursor: pointer;
  3402. &.active {
  3403. transform: rotate(90deg);
  3404. }
  3405. &:hover {
  3406. color: lighten($action-button-color, 7%);
  3407. }
  3408. }
  3409. }
  3410. .search-results__header {
  3411. color: $dark-text-color;
  3412. background: lighten($ui-base-color, 2%);
  3413. padding: 15px;
  3414. font-weight: 500;
  3415. font-size: 16px;
  3416. cursor: default;
  3417. .fa {
  3418. display: inline-block;
  3419. margin-right: 5px;
  3420. }
  3421. }
  3422. .search-results__section {
  3423. margin-bottom: 5px;
  3424. h5 {
  3425. background: darken($ui-base-color, 4%);
  3426. border-bottom: 1px solid lighten($ui-base-color, 8%);
  3427. cursor: default;
  3428. display: flex;
  3429. padding: 15px;
  3430. font-weight: 500;
  3431. font-size: 16px;
  3432. color: $dark-text-color;
  3433. .fa {
  3434. display: inline-block;
  3435. margin-right: 5px;
  3436. }
  3437. }
  3438. .account:last-child,
  3439. & > div:last-child .status {
  3440. border-bottom: 0;
  3441. }
  3442. }
  3443. .search-results__hashtag {
  3444. display: block;
  3445. padding: 10px;
  3446. color: $secondary-text-color;
  3447. text-decoration: none;
  3448. &:hover,
  3449. &:active,
  3450. &:focus {
  3451. color: lighten($secondary-text-color, 4%);
  3452. text-decoration: underline;
  3453. }
  3454. }
  3455. .search-results__info {
  3456. padding: 20px;
  3457. color: $darker-text-color;
  3458. text-align: center;
  3459. }
  3460. .modal-root {
  3461. position: relative;
  3462. transition: opacity 0.3s linear;
  3463. will-change: opacity;
  3464. z-index: 9999;
  3465. }
  3466. .modal-root__overlay {
  3467. position: fixed;
  3468. top: 0;
  3469. left: 0;
  3470. right: 0;
  3471. bottom: 0;
  3472. background: rgba($base-overlay-background, 0.7);
  3473. }
  3474. .modal-root__container {
  3475. position: fixed;
  3476. top: 0;
  3477. left: 0;
  3478. width: 100%;
  3479. height: 100%;
  3480. display: flex;
  3481. flex-direction: column;
  3482. align-items: center;
  3483. justify-content: center;
  3484. align-content: space-around;
  3485. z-index: 9999;
  3486. pointer-events: none;
  3487. user-select: none;
  3488. }
  3489. .modal-root__modal {
  3490. pointer-events: auto;
  3491. display: flex;
  3492. z-index: 9999;
  3493. }
  3494. .video-modal {
  3495. max-width: 100vw;
  3496. max-height: 100vh;
  3497. position: relative;
  3498. }
  3499. .media-modal {
  3500. width: 100%;
  3501. height: 100%;
  3502. position: relative;
  3503. .extended-video-player {
  3504. width: 100%;
  3505. height: 100%;
  3506. display: flex;
  3507. align-items: center;
  3508. justify-content: center;
  3509. video {
  3510. max-width: $media-modal-media-max-width;
  3511. max-height: $media-modal-media-max-height;
  3512. }
  3513. }
  3514. }
  3515. .media-modal__closer {
  3516. position: absolute;
  3517. top: 0;
  3518. left: 0;
  3519. right: 0;
  3520. bottom: 0;
  3521. }
  3522. .media-modal__navigation {
  3523. position: absolute;
  3524. top: 0;
  3525. left: 0;
  3526. right: 0;
  3527. bottom: 0;
  3528. pointer-events: none;
  3529. transition: opacity 0.3s linear;
  3530. will-change: opacity;
  3531. * {
  3532. pointer-events: auto;
  3533. }
  3534. &.media-modal__navigation--hidden {
  3535. opacity: 0;
  3536. * {
  3537. pointer-events: none;
  3538. }
  3539. }
  3540. }
  3541. .media-modal__nav {
  3542. background: rgba($base-overlay-background, 0.5);
  3543. box-sizing: border-box;
  3544. border: 0;
  3545. color: $primary-text-color;
  3546. cursor: pointer;
  3547. display: flex;
  3548. align-items: center;
  3549. font-size: 24px;
  3550. height: 20vmax;
  3551. margin: auto 0;
  3552. padding: 30px 15px;
  3553. position: absolute;
  3554. top: 0;
  3555. bottom: 0;
  3556. }
  3557. .media-modal__nav--left {
  3558. left: 0;
  3559. }
  3560. .media-modal__nav--right {
  3561. right: 0;
  3562. }
  3563. .media-modal__pagination {
  3564. width: 100%;
  3565. text-align: center;
  3566. position: absolute;
  3567. left: 0;
  3568. bottom: 20px;
  3569. pointer-events: none;
  3570. }
  3571. .media-modal__meta {
  3572. text-align: center;
  3573. position: absolute;
  3574. left: 0;
  3575. bottom: 20px;
  3576. width: 100%;
  3577. pointer-events: none;
  3578. &--shifted {
  3579. bottom: 62px;
  3580. }
  3581. a {
  3582. text-decoration: none;
  3583. font-weight: 500;
  3584. color: $ui-secondary-color;
  3585. &:hover,
  3586. &:focus,
  3587. &:active {
  3588. text-decoration: underline;
  3589. }
  3590. }
  3591. }
  3592. .media-modal__page-dot {
  3593. display: inline-block;
  3594. }
  3595. .media-modal__button {
  3596. background-color: $primary-text-color;
  3597. height: 12px;
  3598. width: 12px;
  3599. border-radius: 6px;
  3600. margin: 10px;
  3601. padding: 0;
  3602. border: 0;
  3603. font-size: 0;
  3604. }
  3605. .media-modal__button--active {
  3606. background-color: $highlight-text-color;
  3607. }
  3608. .media-modal__close {
  3609. position: absolute;
  3610. right: 8px;
  3611. top: 8px;
  3612. z-index: 100;
  3613. }
  3614. .onboarding-modal,
  3615. .error-modal,
  3616. .embed-modal {
  3617. background: $ui-secondary-color;
  3618. color: $inverted-text-color;
  3619. border-radius: 8px;
  3620. overflow: hidden;
  3621. display: flex;
  3622. flex-direction: column;
  3623. }
  3624. .error-modal__body {
  3625. height: 80vh;
  3626. width: 80vw;
  3627. max-width: 520px;
  3628. max-height: 420px;
  3629. position: relative;
  3630. & > div {
  3631. position: absolute;
  3632. top: 0;
  3633. left: 0;
  3634. width: 100%;
  3635. height: 100%;
  3636. box-sizing: border-box;
  3637. padding: 25px;
  3638. display: none;
  3639. flex-direction: column;
  3640. align-items: center;
  3641. justify-content: center;
  3642. display: flex;
  3643. opacity: 0;
  3644. user-select: text;
  3645. }
  3646. }
  3647. .error-modal__body {
  3648. display: flex;
  3649. flex-direction: column;
  3650. justify-content: center;
  3651. align-items: center;
  3652. text-align: center;
  3653. }
  3654. .onboarding-modal__paginator,
  3655. .error-modal__footer {
  3656. flex: 0 0 auto;
  3657. background: darken($ui-secondary-color, 8%);
  3658. display: flex;
  3659. padding: 25px;
  3660. & > div {
  3661. min-width: 33px;
  3662. }
  3663. .onboarding-modal__nav,
  3664. .error-modal__nav {
  3665. color: $lighter-text-color;
  3666. border: 0;
  3667. font-size: 14px;
  3668. font-weight: 500;
  3669. padding: 10px 25px;
  3670. line-height: inherit;
  3671. height: auto;
  3672. margin: -10px;
  3673. border-radius: 4px;
  3674. background-color: transparent;
  3675. &:hover,
  3676. &:focus,
  3677. &:active {
  3678. color: darken($lighter-text-color, 4%);
  3679. background-color: darken($ui-secondary-color, 16%);
  3680. }
  3681. &.onboarding-modal__done,
  3682. &.onboarding-modal__next {
  3683. color: $inverted-text-color;
  3684. &:hover,
  3685. &:focus,
  3686. &:active {
  3687. color: lighten($inverted-text-color, 4%);
  3688. }
  3689. }
  3690. }
  3691. }
  3692. .error-modal__footer {
  3693. justify-content: center;
  3694. }
  3695. .display-case {
  3696. text-align: center;
  3697. font-size: 15px;
  3698. margin-bottom: 15px;
  3699. &__label {
  3700. font-weight: 500;
  3701. color: $inverted-text-color;
  3702. margin-bottom: 5px;
  3703. text-transform: uppercase;
  3704. font-size: 12px;
  3705. }
  3706. &__case {
  3707. background: $ui-base-color;
  3708. color: $secondary-text-color;
  3709. font-weight: 500;
  3710. padding: 10px;
  3711. border-radius: 4px;
  3712. }
  3713. }
  3714. .onboard-sliders {
  3715. display: inline-block;
  3716. max-width: 30px;
  3717. max-height: auto;
  3718. margin-left: 10px;
  3719. }
  3720. .boost-modal,
  3721. .confirmation-modal,
  3722. .report-modal,
  3723. .actions-modal,
  3724. .mute-modal {
  3725. background: lighten($ui-secondary-color, 8%);
  3726. color: $inverted-text-color;
  3727. border-radius: 8px;
  3728. overflow: hidden;
  3729. max-width: 90vw;
  3730. width: 480px;
  3731. position: relative;
  3732. flex-direction: column;
  3733. .status__display-name {
  3734. display: block;
  3735. max-width: 100%;
  3736. padding-right: 25px;
  3737. }
  3738. .status__avatar {
  3739. height: 28px;
  3740. left: 10px;
  3741. position: absolute;
  3742. top: 10px;
  3743. width: 48px;
  3744. }
  3745. .status__content__spoiler-link {
  3746. color: lighten($secondary-text-color, 8%);
  3747. }
  3748. }
  3749. .actions-modal {
  3750. .status {
  3751. background: $white;
  3752. border-bottom-color: $ui-secondary-color;
  3753. padding-top: 10px;
  3754. padding-bottom: 10px;
  3755. }
  3756. .dropdown-menu__separator {
  3757. border-bottom-color: $ui-secondary-color;
  3758. }
  3759. }
  3760. .boost-modal__container {
  3761. overflow-x: scroll;
  3762. padding: 10px;
  3763. .status {
  3764. user-select: text;
  3765. border-bottom: 0;
  3766. }
  3767. }
  3768. .boost-modal__action-bar,
  3769. .confirmation-modal__action-bar,
  3770. .mute-modal__action-bar {
  3771. display: flex;
  3772. justify-content: space-between;
  3773. background: $ui-secondary-color;
  3774. padding: 10px;
  3775. line-height: 36px;
  3776. & > div {
  3777. flex: 1 1 auto;
  3778. text-align: right;
  3779. color: $lighter-text-color;
  3780. padding-right: 10px;
  3781. }
  3782. .button {
  3783. flex: 0 0 auto;
  3784. }
  3785. }
  3786. .boost-modal__status-header {
  3787. font-size: 15px;
  3788. }
  3789. .boost-modal__status-time {
  3790. float: right;
  3791. font-size: 14px;
  3792. }
  3793. .mute-modal {
  3794. line-height: 24px;
  3795. }
  3796. .mute-modal .react-toggle {
  3797. vertical-align: middle;
  3798. }
  3799. .report-modal {
  3800. width: 90vw;
  3801. max-width: 700px;
  3802. }
  3803. .report-modal__container {
  3804. display: flex;
  3805. border-top: 1px solid $ui-secondary-color;
  3806. @media screen and (max-width: 480px) {
  3807. flex-wrap: wrap;
  3808. overflow-y: auto;
  3809. }
  3810. }
  3811. .report-modal__statuses,
  3812. .report-modal__comment {
  3813. box-sizing: border-box;
  3814. width: 50%;
  3815. @media screen and (max-width: 480px) {
  3816. width: 100%;
  3817. }
  3818. }
  3819. .report-modal__statuses {
  3820. flex: 1 1 auto;
  3821. min-height: 20vh;
  3822. max-height: 80vh;
  3823. overflow-y: auto;
  3824. overflow-x: hidden;
  3825. .status__content a {
  3826. color: $highlight-text-color;
  3827. }
  3828. .status__content,
  3829. .status__content p {
  3830. color: $inverted-text-color;
  3831. }
  3832. @media screen and (max-width: 480px) {
  3833. max-height: 10vh;
  3834. }
  3835. }
  3836. .report-modal__comment {
  3837. padding: 20px;
  3838. border-right: 1px solid $ui-secondary-color;
  3839. max-width: 320px;
  3840. p {
  3841. font-size: 14px;
  3842. line-height: 20px;
  3843. margin-bottom: 20px;
  3844. }
  3845. .setting-text {
  3846. display: block;
  3847. box-sizing: border-box;
  3848. width: 100%;
  3849. margin: 0;
  3850. color: $inverted-text-color;
  3851. background: $white;
  3852. padding: 10px;
  3853. font-family: inherit;
  3854. font-size: 14px;
  3855. resize: none;
  3856. border: 0;
  3857. outline: 0;
  3858. border-radius: 4px;
  3859. border: 1px solid $ui-secondary-color;
  3860. min-height: 100px;
  3861. max-height: 50vh;
  3862. margin-bottom: 10px;
  3863. &:focus {
  3864. border: 1px solid darken($ui-secondary-color, 8%);
  3865. }
  3866. &__wrapper {
  3867. background: $white;
  3868. border: 1px solid $ui-secondary-color;
  3869. margin-bottom: 10px;
  3870. border-radius: 4px;
  3871. .setting-text {
  3872. border: 0;
  3873. margin-bottom: 0;
  3874. border-radius: 0;
  3875. &:focus {
  3876. border: 0;
  3877. }
  3878. }
  3879. &__modifiers {
  3880. color: $inverted-text-color;
  3881. font-family: inherit;
  3882. font-size: 14px;
  3883. background: $white;
  3884. }
  3885. }
  3886. &__toolbar {
  3887. display: flex;
  3888. justify-content: space-between;
  3889. margin-bottom: 20px;
  3890. }
  3891. }
  3892. .setting-text-label {
  3893. display: block;
  3894. color: $inverted-text-color;
  3895. font-size: 14px;
  3896. font-weight: 500;
  3897. margin-bottom: 10px;
  3898. }
  3899. .setting-toggle {
  3900. margin-top: 20px;
  3901. margin-bottom: 24px;
  3902. &__label {
  3903. color: $inverted-text-color;
  3904. font-size: 14px;
  3905. }
  3906. }
  3907. @media screen and (max-width: 480px) {
  3908. padding: 10px;
  3909. max-width: 100%;
  3910. order: 2;
  3911. .setting-toggle {
  3912. margin-bottom: 4px;
  3913. }
  3914. }
  3915. }
  3916. .actions-modal {
  3917. max-height: 80vh;
  3918. max-width: 80vw;
  3919. .status {
  3920. overflow-y: auto;
  3921. max-height: 300px;
  3922. }
  3923. .actions-modal__item-label {
  3924. font-weight: 500;
  3925. }
  3926. ul {
  3927. overflow-y: auto;
  3928. flex-shrink: 0;
  3929. max-height: 80vh;
  3930. &.with-status {
  3931. max-height: calc(80vh - 75px);
  3932. }
  3933. li:empty {
  3934. margin: 0;
  3935. }
  3936. li:not(:empty) {
  3937. a {
  3938. color: $inverted-text-color;
  3939. display: flex;
  3940. padding: 12px 16px;
  3941. font-size: 15px;
  3942. align-items: center;
  3943. text-decoration: none;
  3944. &,
  3945. button {
  3946. transition: none;
  3947. }
  3948. &.active,
  3949. &:hover,
  3950. &:active,
  3951. &:focus {
  3952. &,
  3953. button {
  3954. background: $ui-highlight-color;
  3955. color: $primary-text-color;
  3956. }
  3957. }
  3958. button:first-child {
  3959. margin-right: 10px;
  3960. }
  3961. }
  3962. }
  3963. }
  3964. }
  3965. .confirmation-modal__action-bar,
  3966. .mute-modal__action-bar {
  3967. .confirmation-modal__secondary-button,
  3968. .confirmation-modal__cancel-button,
  3969. .mute-modal__cancel-button {
  3970. background-color: transparent;
  3971. color: $lighter-text-color;
  3972. font-size: 14px;
  3973. font-weight: 500;
  3974. &:hover,
  3975. &:focus,
  3976. &:active {
  3977. color: darken($lighter-text-color, 4%);
  3978. }
  3979. }
  3980. .confirmation-modal__secondary-button {
  3981. flex-shrink: 1;
  3982. }
  3983. }
  3984. .confirmation-modal__container,
  3985. .mute-modal__container,
  3986. .report-modal__target {
  3987. padding: 30px;
  3988. font-size: 16px;
  3989. text-align: center;
  3990. strong {
  3991. font-weight: 500;
  3992. @each $lang in $cjk-langs {
  3993. &:lang(#{$lang}) {
  3994. font-weight: 700;
  3995. }
  3996. }
  3997. }
  3998. }
  3999. .report-modal__target {
  4000. padding: 20px;
  4001. .media-modal__close {
  4002. top: 19px;
  4003. right: 15px;
  4004. }
  4005. }
  4006. .loading-bar {
  4007. background-color: $highlight-text-color;
  4008. height: 3px;
  4009. position: absolute;
  4010. top: 0;
  4011. left: 0;
  4012. }
  4013. .media-gallery__gifv__label {
  4014. display: block;
  4015. position: absolute;
  4016. color: $primary-text-color;
  4017. background: rgba($base-overlay-background, 0.5);
  4018. bottom: 6px;
  4019. left: 6px;
  4020. padding: 2px 6px;
  4021. border-radius: 2px;
  4022. font-size: 11px;
  4023. font-weight: 600;
  4024. z-index: 1;
  4025. pointer-events: none;
  4026. opacity: 0.9;
  4027. transition: opacity 0.1s ease;
  4028. line-height: 18px;
  4029. }
  4030. .media-gallery__gifv {
  4031. &.autoplay {
  4032. .media-gallery__gifv__label {
  4033. display: none;
  4034. }
  4035. }
  4036. &:hover {
  4037. .media-gallery__gifv__label {
  4038. opacity: 1;
  4039. }
  4040. }
  4041. }
  4042. .attachment-list {
  4043. display: flex;
  4044. font-size: 14px;
  4045. border: 1px solid lighten($ui-base-color, 8%);
  4046. border-radius: 4px;
  4047. margin-top: 14px;
  4048. overflow: hidden;
  4049. &__icon {
  4050. flex: 0 0 auto;
  4051. color: $dark-text-color;
  4052. padding: 8px 18px;
  4053. cursor: default;
  4054. border-right: 1px solid lighten($ui-base-color, 8%);
  4055. display: flex;
  4056. flex-direction: column;
  4057. align-items: center;
  4058. justify-content: center;
  4059. font-size: 26px;
  4060. .fa {
  4061. display: block;
  4062. }
  4063. }
  4064. &__list {
  4065. list-style: none;
  4066. padding: 4px 0;
  4067. padding-left: 8px;
  4068. display: flex;
  4069. flex-direction: column;
  4070. justify-content: center;
  4071. li {
  4072. display: block;
  4073. padding: 4px 0;
  4074. }
  4075. a {
  4076. text-decoration: none;
  4077. color: $dark-text-color;
  4078. font-weight: 500;
  4079. &:hover {
  4080. text-decoration: underline;
  4081. }
  4082. }
  4083. }
  4084. &.compact {
  4085. border: 0;
  4086. margin-top: 4px;
  4087. .attachment-list__list {
  4088. padding: 0;
  4089. display: block;
  4090. }
  4091. .fa {
  4092. color: $dark-text-color;
  4093. }
  4094. }
  4095. }
  4096. /* Media Gallery */
  4097. .media-gallery {
  4098. box-sizing: border-box;
  4099. margin-top: 8px;
  4100. overflow: hidden;
  4101. border-radius: 4px;
  4102. position: relative;
  4103. width: 100%;
  4104. }
  4105. .media-gallery__item {
  4106. border: 0;
  4107. box-sizing: border-box;
  4108. display: block;
  4109. float: left;
  4110. position: relative;
  4111. border-radius: 4px;
  4112. overflow: hidden;
  4113. &.standalone {
  4114. .media-gallery__item-gifv-thumbnail {
  4115. transform: none;
  4116. top: 0;
  4117. }
  4118. }
  4119. }
  4120. .media-gallery__item-thumbnail {
  4121. cursor: zoom-in;
  4122. display: block;
  4123. text-decoration: none;
  4124. color: $secondary-text-color;
  4125. position: relative;
  4126. z-index: 1;
  4127. &,
  4128. img {
  4129. height: 100%;
  4130. width: 100%;
  4131. }
  4132. img {
  4133. object-fit: cover;
  4134. }
  4135. }
  4136. .media-gallery__preview {
  4137. width: 100%;
  4138. height: 100%;
  4139. object-fit: cover;
  4140. position: absolute;
  4141. top: 0;
  4142. left: 0;
  4143. z-index: 0;
  4144. background: $base-overlay-background;
  4145. &--hidden {
  4146. display: none;
  4147. }
  4148. }
  4149. .media-gallery__gifv {
  4150. height: 100%;
  4151. overflow: hidden;
  4152. position: relative;
  4153. width: 100%;
  4154. }
  4155. .media-gallery__item-gifv-thumbnail {
  4156. cursor: zoom-in;
  4157. height: 100%;
  4158. object-fit: cover;
  4159. position: relative;
  4160. top: 50%;
  4161. transform: translateY(-50%);
  4162. width: 100%;
  4163. z-index: 1;
  4164. }
  4165. .media-gallery__item-thumbnail-label {
  4166. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  4167. clip: rect(1px, 1px, 1px, 1px);
  4168. overflow: hidden;
  4169. position: absolute;
  4170. }
  4171. /* End Media Gallery */
  4172. /* Status Video Player */
  4173. .status__video-player {
  4174. background: $base-overlay-background;
  4175. box-sizing: border-box;
  4176. cursor: default; /* May not be needed */
  4177. margin-top: 8px;
  4178. overflow: hidden;
  4179. position: relative;
  4180. }
  4181. .status__video-player-video {
  4182. height: 100%;
  4183. object-fit: cover;
  4184. position: relative;
  4185. top: 50%;
  4186. transform: translateY(-50%);
  4187. width: 100%;
  4188. z-index: 1;
  4189. }
  4190. .status__video-player-expand,
  4191. .status__video-player-mute {
  4192. color: $primary-text-color;
  4193. opacity: 0.8;
  4194. position: absolute;
  4195. right: 4px;
  4196. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  4197. }
  4198. .status__video-player-spoiler {
  4199. display: none;
  4200. color: $primary-text-color;
  4201. left: 4px;
  4202. position: absolute;
  4203. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  4204. top: 4px;
  4205. z-index: 100;
  4206. &.status__video-player-spoiler--visible {
  4207. display: block;
  4208. }
  4209. }
  4210. .status__video-player-expand {
  4211. bottom: 4px;
  4212. z-index: 100;
  4213. }
  4214. .status__video-player-mute {
  4215. top: 4px;
  4216. z-index: 5;
  4217. }
  4218. .detailed,
  4219. .fullscreen {
  4220. .video-player__volume__current,
  4221. .video-player__volume::before {
  4222. bottom: 27px;
  4223. }
  4224. .video-player__volume__handle {
  4225. bottom: 23px;
  4226. }
  4227. }
  4228. .video-player {
  4229. overflow: hidden;
  4230. position: relative;
  4231. background: $base-shadow-color;
  4232. max-width: 100%;
  4233. border-radius: 4px;
  4234. &.editable {
  4235. border-radius: 0;
  4236. }
  4237. &:focus {
  4238. outline: 0;
  4239. }
  4240. video {
  4241. max-width: 100vw;
  4242. max-height: 80vh;
  4243. z-index: 1;
  4244. }
  4245. &.fullscreen {
  4246. width: 100% !important;
  4247. height: 100% !important;
  4248. margin: 0;
  4249. video {
  4250. max-width: 100% !important;
  4251. max-height: 100% !important;
  4252. width: 100% !important;
  4253. height: 100% !important;
  4254. }
  4255. }
  4256. &.inline {
  4257. video {
  4258. object-fit: contain;
  4259. position: relative;
  4260. top: 50%;
  4261. transform: translateY(-50%);
  4262. }
  4263. }
  4264. &__controls {
  4265. position: absolute;
  4266. z-index: 2;
  4267. bottom: 0;
  4268. left: 0;
  4269. right: 0;
  4270. box-sizing: border-box;
  4271. background: linear-gradient(0deg, rgba($base-shadow-color, 0.85) 0, rgba($base-shadow-color, 0.45) 60%, transparent);
  4272. padding: 0 15px;
  4273. opacity: 0;
  4274. transition: opacity .1s ease;
  4275. &.active {
  4276. opacity: 1;
  4277. }
  4278. }
  4279. &.inactive {
  4280. video,
  4281. .video-player__controls {
  4282. visibility: hidden;
  4283. }
  4284. }
  4285. &__spoiler {
  4286. display: none;
  4287. position: absolute;
  4288. top: 0;
  4289. left: 0;
  4290. width: 100%;
  4291. height: 100%;
  4292. z-index: 4;
  4293. border: 0;
  4294. background: $base-overlay-background;
  4295. color: $darker-text-color;
  4296. transition: none;
  4297. pointer-events: none;
  4298. &.active {
  4299. display: block;
  4300. pointer-events: auto;
  4301. &:hover,
  4302. &:active,
  4303. &:focus {
  4304. color: lighten($darker-text-color, 7%);
  4305. }
  4306. }
  4307. &__title {
  4308. display: block;
  4309. font-size: 14px;
  4310. }
  4311. &__subtitle {
  4312. display: block;
  4313. font-size: 11px;
  4314. font-weight: 500;
  4315. }
  4316. }
  4317. &__buttons-bar {
  4318. display: flex;
  4319. justify-content: space-between;
  4320. padding-bottom: 10px;
  4321. }
  4322. &__buttons {
  4323. font-size: 16px;
  4324. white-space: nowrap;
  4325. overflow: hidden;
  4326. text-overflow: ellipsis;
  4327. &.left {
  4328. button {
  4329. padding-left: 0;
  4330. }
  4331. }
  4332. &.right {
  4333. button {
  4334. padding-right: 0;
  4335. }
  4336. }
  4337. button {
  4338. background: transparent;
  4339. padding: 2px 10px;
  4340. font-size: 16px;
  4341. border: 0;
  4342. color: rgba($white, 0.75);
  4343. &:active,
  4344. &:hover,
  4345. &:focus {
  4346. color: $white;
  4347. }
  4348. }
  4349. }
  4350. &__time-sep,
  4351. &__time-total,
  4352. &__time-current {
  4353. font-size: 14px;
  4354. font-weight: 500;
  4355. }
  4356. &__time-current {
  4357. color: $white;
  4358. margin-left: 60px;
  4359. }
  4360. &__time-sep {
  4361. display: inline-block;
  4362. margin: 0 6px;
  4363. }
  4364. &__time-sep,
  4365. &__time-total {
  4366. color: $white;
  4367. }
  4368. &__volume {
  4369. cursor: pointer;
  4370. height: 24px;
  4371. display: inline;
  4372. &::before {
  4373. content: "";
  4374. width: 50px;
  4375. background: rgba($white, 0.35);
  4376. border-radius: 4px;
  4377. display: block;
  4378. position: absolute;
  4379. height: 4px;
  4380. left: 70px;
  4381. bottom: 20px;
  4382. }
  4383. &__current {
  4384. display: block;
  4385. position: absolute;
  4386. height: 4px;
  4387. border-radius: 4px;
  4388. left: 70px;
  4389. bottom: 20px;
  4390. background: lighten($ui-highlight-color, 8%);
  4391. }
  4392. &__handle {
  4393. position: absolute;
  4394. z-index: 3;
  4395. border-radius: 50%;
  4396. width: 12px;
  4397. height: 12px;
  4398. bottom: 16px;
  4399. left: 70px;
  4400. transition: opacity .1s ease;
  4401. background: lighten($ui-highlight-color, 8%);
  4402. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  4403. pointer-events: none;
  4404. }
  4405. }
  4406. &__link {
  4407. padding: 2px 10px;
  4408. a {
  4409. text-decoration: none;
  4410. font-size: 14px;
  4411. font-weight: 500;
  4412. color: $white;
  4413. &:hover,
  4414. &:active,
  4415. &:focus {
  4416. text-decoration: underline;
  4417. }
  4418. }
  4419. }
  4420. &__seek {
  4421. cursor: pointer;
  4422. height: 24px;
  4423. position: relative;
  4424. &::before {
  4425. content: "";
  4426. width: 100%;
  4427. background: rgba($white, 0.35);
  4428. border-radius: 4px;
  4429. display: block;
  4430. position: absolute;
  4431. height: 4px;
  4432. top: 10px;
  4433. }
  4434. &__progress,
  4435. &__buffer {
  4436. display: block;
  4437. position: absolute;
  4438. height: 4px;
  4439. border-radius: 4px;
  4440. top: 10px;
  4441. background: lighten($ui-highlight-color, 8%);
  4442. }
  4443. &__buffer {
  4444. background: rgba($white, 0.2);
  4445. }
  4446. &__handle {
  4447. position: absolute;
  4448. z-index: 3;
  4449. opacity: 0;
  4450. border-radius: 50%;
  4451. width: 12px;
  4452. height: 12px;
  4453. top: 6px;
  4454. margin-left: -6px;
  4455. transition: opacity .1s ease;
  4456. background: lighten($ui-highlight-color, 8%);
  4457. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.2);
  4458. pointer-events: none;
  4459. &.active {
  4460. opacity: 1;
  4461. }
  4462. }
  4463. &:hover {
  4464. .video-player__seek__handle {
  4465. opacity: 1;
  4466. }
  4467. }
  4468. }
  4469. &.detailed,
  4470. &.fullscreen {
  4471. .video-player__buttons {
  4472. button {
  4473. padding-top: 10px;
  4474. padding-bottom: 10px;
  4475. }
  4476. }
  4477. }
  4478. }
  4479. .media-spoiler-video {
  4480. background-size: cover;
  4481. background-repeat: no-repeat;
  4482. background-position: center;
  4483. cursor: pointer;
  4484. margin-top: 8px;
  4485. position: relative;
  4486. border: 0;
  4487. display: block;
  4488. }
  4489. .media-spoiler-video-play-icon {
  4490. border-radius: 100px;
  4491. color: rgba($primary-text-color, 0.8);
  4492. font-size: 36px;
  4493. left: 50%;
  4494. padding: 5px;
  4495. position: absolute;
  4496. top: 50%;
  4497. transform: translate(-50%, -50%);
  4498. }
  4499. /* End Video Player */
  4500. .account-gallery__container {
  4501. display: flex;
  4502. flex-wrap: wrap;
  4503. padding: 4px 2px;
  4504. }
  4505. .account-gallery__item {
  4506. border: 0;
  4507. box-sizing: border-box;
  4508. display: block;
  4509. position: relative;
  4510. border-radius: 4px;
  4511. overflow: hidden;
  4512. margin: 2px;
  4513. &__icons {
  4514. position: absolute;
  4515. top: 50%;
  4516. left: 50%;
  4517. transform: translate(-50%, -50%);
  4518. font-size: 24px;
  4519. }
  4520. }
  4521. .notification__filter-bar,
  4522. .account__section-headline {
  4523. background: darken($ui-base-color, 4%);
  4524. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4525. cursor: default;
  4526. display: flex;
  4527. flex-shrink: 0;
  4528. button {
  4529. background: darken($ui-base-color, 4%);
  4530. border: 0;
  4531. margin: 0;
  4532. }
  4533. button,
  4534. a {
  4535. display: block;
  4536. flex: 1 1 auto;
  4537. color: $darker-text-color;
  4538. padding: 15px 0;
  4539. font-size: 14px;
  4540. font-weight: 500;
  4541. text-align: center;
  4542. text-decoration: none;
  4543. position: relative;
  4544. &.active {
  4545. color: $secondary-text-color;
  4546. &::before,
  4547. &::after {
  4548. display: block;
  4549. content: "";
  4550. position: absolute;
  4551. bottom: 0;
  4552. left: 50%;
  4553. width: 0;
  4554. height: 0;
  4555. transform: translateX(-50%);
  4556. border-style: solid;
  4557. border-width: 0 10px 10px;
  4558. border-color: transparent transparent lighten($ui-base-color, 8%);
  4559. }
  4560. &::after {
  4561. bottom: -1px;
  4562. border-color: transparent transparent $ui-base-color;
  4563. }
  4564. }
  4565. }
  4566. }
  4567. ::-webkit-scrollbar-thumb {
  4568. border-radius: 0;
  4569. }
  4570. .search-popout {
  4571. @include search-popout;
  4572. }
  4573. noscript {
  4574. text-align: center;
  4575. img {
  4576. width: 200px;
  4577. opacity: 0.5;
  4578. animation: flicker 4s infinite;
  4579. }
  4580. div {
  4581. font-size: 14px;
  4582. margin: 30px auto;
  4583. color: $secondary-text-color;
  4584. max-width: 400px;
  4585. a {
  4586. color: $highlight-text-color;
  4587. text-decoration: underline;
  4588. &:hover {
  4589. text-decoration: none;
  4590. }
  4591. }
  4592. }
  4593. }
  4594. @keyframes flicker {
  4595. 0% { opacity: 1; }
  4596. 30% { opacity: 0.75; }
  4597. 100% { opacity: 1; }
  4598. }
  4599. @media screen and (max-width: 630px) and (max-height: 400px) {
  4600. $duration: 400ms;
  4601. $delay: 100ms;
  4602. .tabs-bar,
  4603. .search {
  4604. will-change: margin-top;
  4605. transition: margin-top $duration $delay;
  4606. }
  4607. .navigation-bar {
  4608. will-change: padding-bottom;
  4609. transition: padding-bottom $duration $delay;
  4610. }
  4611. .navigation-bar {
  4612. & > a:first-child {
  4613. will-change: margin-top, margin-left, margin-right, width;
  4614. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay), margin-right $duration ($duration + $delay);
  4615. }
  4616. & > .navigation-bar__profile-edit {
  4617. will-change: margin-top;
  4618. transition: margin-top $duration $delay;
  4619. }
  4620. .navigation-bar__actions {
  4621. & > .icon-button.close {
  4622. will-change: opacity transform;
  4623. transition: opacity $duration * 0.5 $delay,
  4624. transform $duration $delay;
  4625. }
  4626. & > .compose__action-bar .icon-button {
  4627. will-change: opacity transform;
  4628. transition: opacity $duration * 0.5 $delay + $duration * 0.5,
  4629. transform $duration $delay;
  4630. }
  4631. }
  4632. }
  4633. .is-composing {
  4634. .tabs-bar,
  4635. .search {
  4636. margin-top: -50px;
  4637. }
  4638. .navigation-bar {
  4639. padding-bottom: 0;
  4640. & > a:first-child {
  4641. margin: -100px 10px 0 -50px;
  4642. }
  4643. .navigation-bar__profile {
  4644. padding-top: 2px;
  4645. }
  4646. .navigation-bar__profile-edit {
  4647. position: absolute;
  4648. margin-top: -60px;
  4649. }
  4650. .navigation-bar__actions {
  4651. .icon-button.close {
  4652. pointer-events: auto;
  4653. opacity: 1;
  4654. transform: scale(1, 1) translate(0, 0);
  4655. bottom: 5px;
  4656. }
  4657. .compose__action-bar .icon-button {
  4658. pointer-events: none;
  4659. opacity: 0;
  4660. transform: scale(0, 1) translate(100%, 0);
  4661. }
  4662. }
  4663. }
  4664. }
  4665. }
  4666. .embed-modal {
  4667. max-width: 80vw;
  4668. max-height: 80vh;
  4669. h4 {
  4670. padding: 30px;
  4671. font-weight: 500;
  4672. font-size: 16px;
  4673. text-align: center;
  4674. }
  4675. .embed-modal__container {
  4676. padding: 10px;
  4677. .hint {
  4678. margin-bottom: 15px;
  4679. }
  4680. .embed-modal__html {
  4681. outline: 0;
  4682. box-sizing: border-box;
  4683. display: block;
  4684. width: 100%;
  4685. border: 0;
  4686. padding: 10px;
  4687. font-family: $font-monospace, monospace;
  4688. background: $ui-base-color;
  4689. color: $primary-text-color;
  4690. font-size: 14px;
  4691. margin: 0;
  4692. margin-bottom: 15px;
  4693. &::-moz-focus-inner {
  4694. border: 0;
  4695. }
  4696. &::-moz-focus-inner,
  4697. &:focus,
  4698. &:active {
  4699. outline: 0 !important;
  4700. }
  4701. &:focus {
  4702. background: lighten($ui-base-color, 4%);
  4703. }
  4704. @media screen and (max-width: 600px) {
  4705. font-size: 16px;
  4706. }
  4707. }
  4708. .embed-modal__iframe {
  4709. width: 400px;
  4710. max-width: 100%;
  4711. overflow: hidden;
  4712. border: 0;
  4713. }
  4714. }
  4715. }
  4716. .account__moved-note {
  4717. padding: 14px 10px;
  4718. padding-bottom: 16px;
  4719. background: lighten($ui-base-color, 4%);
  4720. border-top: 1px solid lighten($ui-base-color, 8%);
  4721. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4722. &__message {
  4723. position: relative;
  4724. margin-left: 58px;
  4725. color: $dark-text-color;
  4726. padding: 8px 0;
  4727. padding-top: 0;
  4728. padding-bottom: 4px;
  4729. font-size: 14px;
  4730. > span {
  4731. display: block;
  4732. overflow: hidden;
  4733. text-overflow: ellipsis;
  4734. }
  4735. }
  4736. &__icon-wrapper {
  4737. left: -26px;
  4738. position: absolute;
  4739. }
  4740. .detailed-status__display-avatar {
  4741. position: relative;
  4742. }
  4743. .detailed-status__display-name {
  4744. margin-bottom: 0;
  4745. }
  4746. }
  4747. .column-inline-form {
  4748. padding: 15px;
  4749. padding-right: 0;
  4750. display: flex;
  4751. justify-content: flex-start;
  4752. align-items: center;
  4753. background: lighten($ui-base-color, 4%);
  4754. label {
  4755. flex: 1 1 auto;
  4756. input {
  4757. width: 100%;
  4758. &:focus {
  4759. outline: 0;
  4760. }
  4761. }
  4762. }
  4763. .icon-button {
  4764. flex: 0 0 auto;
  4765. margin: 0 10px;
  4766. }
  4767. }
  4768. .drawer__backdrop {
  4769. cursor: pointer;
  4770. position: absolute;
  4771. top: 0;
  4772. left: 0;
  4773. width: 100%;
  4774. height: 100%;
  4775. background: rgba($base-overlay-background, 0.5);
  4776. }
  4777. .list-editor {
  4778. background: $ui-base-color;
  4779. flex-direction: column;
  4780. border-radius: 8px;
  4781. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4782. width: 380px;
  4783. overflow: hidden;
  4784. @media screen and (max-width: 420px) {
  4785. width: 90%;
  4786. }
  4787. h4 {
  4788. padding: 15px 0;
  4789. background: lighten($ui-base-color, 13%);
  4790. font-weight: 500;
  4791. font-size: 16px;
  4792. text-align: center;
  4793. border-radius: 8px 8px 0 0;
  4794. }
  4795. .drawer__pager {
  4796. height: 50vh;
  4797. }
  4798. .drawer__inner {
  4799. border-radius: 0 0 8px 8px;
  4800. &.backdrop {
  4801. width: calc(100% - 60px);
  4802. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4803. border-radius: 0 0 0 8px;
  4804. }
  4805. }
  4806. &__accounts {
  4807. overflow-y: auto;
  4808. }
  4809. .account__display-name {
  4810. &:hover strong {
  4811. text-decoration: none;
  4812. }
  4813. }
  4814. .account__avatar {
  4815. cursor: default;
  4816. }
  4817. .search {
  4818. margin-bottom: 0;
  4819. }
  4820. }
  4821. .list-adder {
  4822. background: $ui-base-color;
  4823. flex-direction: column;
  4824. border-radius: 8px;
  4825. box-shadow: 2px 4px 15px rgba($base-shadow-color, 0.4);
  4826. width: 380px;
  4827. overflow: hidden;
  4828. @media screen and (max-width: 420px) {
  4829. width: 90%;
  4830. }
  4831. &__account {
  4832. background: lighten($ui-base-color, 13%);
  4833. }
  4834. &__lists {
  4835. background: lighten($ui-base-color, 13%);
  4836. height: 50vh;
  4837. border-radius: 0 0 8px 8px;
  4838. overflow-y: auto;
  4839. }
  4840. .list {
  4841. padding: 10px;
  4842. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4843. }
  4844. .list__wrapper {
  4845. display: flex;
  4846. }
  4847. .list__display-name {
  4848. flex: 1 1 auto;
  4849. overflow: hidden;
  4850. text-decoration: none;
  4851. font-size: 16px;
  4852. padding: 10px;
  4853. }
  4854. }
  4855. .focal-point {
  4856. position: relative;
  4857. cursor: move;
  4858. overflow: hidden;
  4859. img,
  4860. video {
  4861. display: block;
  4862. max-height: 80vh;
  4863. width: 100%;
  4864. height: auto;
  4865. margin: 0;
  4866. object-fit: contain;
  4867. background: $base-shadow-color;
  4868. }
  4869. &__reticle {
  4870. position: absolute;
  4871. width: 100px;
  4872. height: 100px;
  4873. transform: translate(-50%, -50%);
  4874. background: url('../images/reticle.png') no-repeat 0 0;
  4875. border-radius: 50%;
  4876. box-shadow: 0 0 0 9999em rgba($base-shadow-color, 0.35);
  4877. }
  4878. &__overlay {
  4879. position: absolute;
  4880. width: 100%;
  4881. height: 100%;
  4882. top: 0;
  4883. left: 0;
  4884. }
  4885. &__preview {
  4886. position: absolute;
  4887. bottom: 10px;
  4888. right: 10px;
  4889. z-index: 2;
  4890. cursor: default;
  4891. strong {
  4892. color: $primary-text-color;
  4893. font-size: 14px;
  4894. font-weight: 500;
  4895. display: block;
  4896. margin-bottom: 5px;
  4897. }
  4898. div {
  4899. border-radius: 4px;
  4900. box-shadow: 0 0 14px rgba($base-shadow-color, 0.2);
  4901. }
  4902. }
  4903. }
  4904. .account__header__content {
  4905. color: $darker-text-color;
  4906. font-size: 14px;
  4907. font-weight: 400;
  4908. overflow: hidden;
  4909. word-break: normal;
  4910. word-wrap: break-word;
  4911. p {
  4912. margin-bottom: 20px;
  4913. &:last-child {
  4914. margin-bottom: 0;
  4915. }
  4916. }
  4917. a {
  4918. color: inherit;
  4919. text-decoration: underline;
  4920. &:hover {
  4921. text-decoration: none;
  4922. }
  4923. }
  4924. }
  4925. .account__header {
  4926. overflow: hidden;
  4927. &.inactive {
  4928. opacity: 0.5;
  4929. .account__header__image,
  4930. .account__avatar {
  4931. filter: grayscale(100%);
  4932. }
  4933. }
  4934. &__info {
  4935. position: absolute;
  4936. top: 10px;
  4937. left: 10px;
  4938. }
  4939. &__image {
  4940. overflow: hidden;
  4941. height: 145px;
  4942. position: relative;
  4943. background: darken($ui-base-color, 4%);
  4944. img {
  4945. object-fit: cover;
  4946. display: block;
  4947. width: 100%;
  4948. height: 100%;
  4949. margin: 0;
  4950. }
  4951. }
  4952. &__bar {
  4953. position: relative;
  4954. background: lighten($ui-base-color, 4%);
  4955. padding: 5px;
  4956. border-bottom: 1px solid lighten($ui-base-color, 12%);
  4957. .avatar {
  4958. display: block;
  4959. flex: 0 0 auto;
  4960. width: 94px;
  4961. margin-left: -2px;
  4962. .account__avatar {
  4963. background: darken($ui-base-color, 8%);
  4964. border: 2px solid lighten($ui-base-color, 4%);
  4965. }
  4966. }
  4967. }
  4968. &__tabs {
  4969. display: flex;
  4970. align-items: flex-start;
  4971. padding: 7px 5px;
  4972. margin-top: -55px;
  4973. &__buttons {
  4974. display: flex;
  4975. align-items: center;
  4976. padding-top: 55px;
  4977. overflow: hidden;
  4978. .icon-button {
  4979. border: 1px solid lighten($ui-base-color, 12%);
  4980. border-radius: 4px;
  4981. box-sizing: content-box;
  4982. padding: 2px;
  4983. }
  4984. .button {
  4985. margin: 0 8px;
  4986. }
  4987. }
  4988. &__name {
  4989. padding: 5px;
  4990. .account-role {
  4991. vertical-align: top;
  4992. }
  4993. .emojione {
  4994. width: 22px;
  4995. height: 22px;
  4996. }
  4997. h1 {
  4998. font-size: 16px;
  4999. line-height: 24px;
  5000. color: $primary-text-color;
  5001. font-weight: 500;
  5002. overflow: hidden;
  5003. white-space: nowrap;
  5004. text-overflow: ellipsis;
  5005. small {
  5006. display: block;
  5007. font-size: 14px;
  5008. color: $darker-text-color;
  5009. font-weight: 400;
  5010. overflow: hidden;
  5011. text-overflow: ellipsis;
  5012. }
  5013. }
  5014. }
  5015. .spacer {
  5016. flex: 1 1 auto;
  5017. }
  5018. }
  5019. &__bio {
  5020. overflow: hidden;
  5021. margin: 0 -5px;
  5022. .account__header__content {
  5023. padding: 20px 15px;
  5024. padding-bottom: 5px;
  5025. color: $primary-text-color;
  5026. }
  5027. .account__header__fields {
  5028. margin: 0;
  5029. border-top: 1px solid lighten($ui-base-color, 12%);
  5030. a {
  5031. color: lighten($ui-highlight-color, 8%);
  5032. }
  5033. dl:first-child .verified {
  5034. border-radius: 0 4px 0 0;
  5035. }
  5036. .verified a {
  5037. color: $valid-value-color;
  5038. }
  5039. }
  5040. }
  5041. &__extra {
  5042. margin-top: 4px;
  5043. &__links {
  5044. font-size: 14px;
  5045. color: $darker-text-color;
  5046. a {
  5047. display: inline-block;
  5048. color: $darker-text-color;
  5049. text-decoration: none;
  5050. padding: 10px;
  5051. padding-top: 20px;
  5052. font-weight: 500;
  5053. strong {
  5054. font-weight: 700;
  5055. color: $primary-text-color;
  5056. }
  5057. }
  5058. }
  5059. }
  5060. }
  5061. .trends {
  5062. &__header {
  5063. color: $dark-text-color;
  5064. background: lighten($ui-base-color, 2%);
  5065. border-bottom: 1px solid darken($ui-base-color, 4%);
  5066. font-weight: 500;
  5067. padding: 15px;
  5068. font-size: 16px;
  5069. cursor: default;
  5070. .fa {
  5071. display: inline-block;
  5072. margin-right: 5px;
  5073. }
  5074. }
  5075. &__item {
  5076. display: flex;
  5077. align-items: center;
  5078. padding: 15px;
  5079. border-bottom: 1px solid lighten($ui-base-color, 8%);
  5080. &:last-child {
  5081. border-bottom: 0;
  5082. }
  5083. &__name {
  5084. flex: 1 1 auto;
  5085. color: $dark-text-color;
  5086. overflow: hidden;
  5087. text-overflow: ellipsis;
  5088. white-space: nowrap;
  5089. strong {
  5090. font-weight: 500;
  5091. }
  5092. a {
  5093. color: $darker-text-color;
  5094. text-decoration: none;
  5095. font-size: 14px;
  5096. font-weight: 500;
  5097. display: block;
  5098. overflow: hidden;
  5099. text-overflow: ellipsis;
  5100. white-space: nowrap;
  5101. &:hover,
  5102. &:focus,
  5103. &:active {
  5104. span {
  5105. text-decoration: underline;
  5106. }
  5107. }
  5108. }
  5109. }
  5110. &__current {
  5111. flex: 0 0 auto;
  5112. width: 100px;
  5113. font-size: 24px;
  5114. line-height: 36px;
  5115. font-weight: 500;
  5116. text-align: right;
  5117. padding-right: 15px;
  5118. color: $secondary-text-color;
  5119. }
  5120. &__sparkline {
  5121. flex: 0 0 auto;
  5122. width: 50px;
  5123. path:first-child {
  5124. fill: rgba($highlight-text-color, 0.25) !important;
  5125. fill-opacity: 1 !important;
  5126. }
  5127. path:last-child {
  5128. stroke: lighten($highlight-text-color, 6%) !important;
  5129. }
  5130. }
  5131. }
  5132. }
  5133. .layout-toggle {
  5134. display: flex;
  5135. padding: 5px;
  5136. button {
  5137. box-sizing: border-box;
  5138. flex: 0 0 50%;
  5139. background: transparent;
  5140. padding: 5px;
  5141. border: 0;
  5142. position: relative;
  5143. &:hover,
  5144. &:focus,
  5145. &:active {
  5146. svg path:first-child {
  5147. fill: lighten($ui-base-color, 16%);
  5148. }
  5149. }
  5150. }
  5151. svg {
  5152. width: 100%;
  5153. height: auto;
  5154. path:first-child {
  5155. fill: lighten($ui-base-color, 12%);
  5156. }
  5157. path:last-child {
  5158. fill: darken($ui-base-color, 14%);
  5159. }
  5160. }
  5161. &__active {
  5162. color: $ui-highlight-color;
  5163. position: absolute;
  5164. top: 50%;
  5165. left: 50%;
  5166. transform: translate(-50%, -50%);
  5167. background: lighten($ui-base-color, 12%);
  5168. border-radius: 50%;
  5169. padding: 0.35rem;
  5170. }
  5171. }