where i deviate from standard mastodon assets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

components.scss 101KB

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