components.scss 105 KB

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