components.scss 84 KB

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