The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

components.scss 65 KiB

7 年前
Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
6 年前
Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
6 年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944
  1. @import 'variables';
  2. .app-body {
  3. -webkit-overflow-scrolling: touch;
  4. -ms-overflow-style: -ms-autohiding-scrollbar;
  5. }
  6. .button {
  7. background-color: darken($ui-highlight-color, 3%);
  8. border: 10px none;
  9. border-radius: 4px;
  10. box-sizing: border-box;
  11. color: $primary-text-color;
  12. cursor: pointer;
  13. display: inline-block;
  14. font-family: inherit;
  15. font-size: 14px;
  16. font-weight: 500;
  17. height: 36px;
  18. letter-spacing: 0;
  19. line-height: 36px;
  20. overflow: hidden;
  21. padding: 0 16px;
  22. position: relative;
  23. text-align: center;
  24. text-transform: uppercase;
  25. text-decoration: none;
  26. text-overflow: ellipsis;
  27. transition: all 100ms ease-in;
  28. white-space: nowrap;
  29. width: auto;
  30. &:active,
  31. &:focus,
  32. &:hover {
  33. background-color: lighten($ui-highlight-color, 7%);
  34. transition: all 200ms ease-out;
  35. }
  36. &:disabled {
  37. background-color: $ui-primary-color;
  38. cursor: default;
  39. }
  40. &.button-alternative {
  41. font-size: 16px;
  42. line-height: 36px;
  43. height: auto;
  44. color: $ui-base-color;
  45. background: $ui-primary-color;
  46. text-transform: none;
  47. padding: 4px 16px;
  48. &:active,
  49. &:focus,
  50. &:hover {
  51. background-color: lighten($ui-primary-color, 4%);
  52. }
  53. }
  54. &.button-secondary {
  55. font-size: 16px;
  56. line-height: 36px;
  57. height: auto;
  58. color: $ui-primary-color;
  59. text-transform: none;
  60. background: transparent;
  61. padding: 3px 15px;
  62. border: 1px solid $ui-primary-color;
  63. &:active,
  64. &:focus,
  65. &:hover {
  66. border-color: lighten($ui-primary-color, 4%);
  67. color: lighten($ui-primary-color, 4%);
  68. }
  69. }
  70. &.button--block {
  71. display: block;
  72. width: 100%;
  73. }
  74. }
  75. .column__wrapper {
  76. display: flex;
  77. flex: 1 1 auto;
  78. position: relative;
  79. }
  80. .column-icon {
  81. background: lighten($ui-base-color, 4%);
  82. color: $ui-primary-color;
  83. cursor: pointer;
  84. font-size: 16px;
  85. padding: 15px;
  86. position: absolute;
  87. right: 0;
  88. top: -48px;
  89. z-index: 3;
  90. &:hover {
  91. color: lighten($ui-primary-color, 7%);
  92. }
  93. }
  94. .icon-button {
  95. display: inline-block;
  96. padding: 0;
  97. color: $ui-base-lighter-color;
  98. border: none;
  99. background: transparent;
  100. cursor: pointer;
  101. transition: color 100ms ease-in;
  102. &:hover,
  103. &:active,
  104. &:focus {
  105. color: lighten($ui-base-color, 33%);
  106. transition: color 200ms ease-out;
  107. }
  108. &.disabled {
  109. color: lighten($ui-base-color, 13%);
  110. cursor: default;
  111. }
  112. &.active {
  113. color: $ui-highlight-color;
  114. }
  115. &::-moz-focus-inner {
  116. border: 0;
  117. }
  118. &::-moz-focus-inner,
  119. &:focus,
  120. &:active {
  121. outline: 0 !important;
  122. }
  123. &.inverted {
  124. color: lighten($ui-base-color, 33%);
  125. &:hover,
  126. &:active,
  127. &:focus {
  128. color: $ui-base-lighter-color;
  129. }
  130. &.disabled {
  131. color: $ui-primary-color;
  132. }
  133. &.active {
  134. color: $ui-highlight-color;
  135. &.disabled {
  136. color: lighten($ui-highlight-color, 13%);
  137. }
  138. }
  139. }
  140. &.overlayed {
  141. box-sizing: content-box;
  142. background: rgba($base-overlay-background, 0.6);
  143. color: rgba($primary-text-color, 0.7);
  144. border-radius: 4px;
  145. padding: 2px;
  146. &:hover {
  147. background: rgba($base-overlay-background, 0.9);
  148. }
  149. }
  150. }
  151. .text-icon-button {
  152. color: lighten($ui-base-color, 33%);
  153. border: none;
  154. background: transparent;
  155. cursor: pointer;
  156. font-weight: 600;
  157. font-size: 11px;
  158. padding: 0 3px;
  159. line-height: 27px;
  160. outline: 0;
  161. transition: color 100ms ease-in;
  162. &:hover,
  163. &:active,
  164. &:focus {
  165. color: $ui-base-lighter-color;
  166. transition: color 200ms ease-out;
  167. }
  168. &.disabled {
  169. color: lighten($ui-base-color, 13%);
  170. cursor: default;
  171. }
  172. &.active {
  173. color: $ui-highlight-color;
  174. }
  175. &::-moz-focus-inner {
  176. border: 0;
  177. }
  178. &::-moz-focus-inner,
  179. &:focus,
  180. &:active {
  181. outline: 0 !important;
  182. }
  183. }
  184. .dropdown--active .icon-button {
  185. color: $ui-highlight-color;
  186. }
  187. .dropdown--active::after {
  188. @media screen and (min-width: 1025px) {
  189. content: "";
  190. display: block;
  191. position: absolute;
  192. width: 0;
  193. height: 0;
  194. border-style: solid;
  195. border-width: 0 4.5px 7.8px;
  196. border-color: transparent transparent $ui-secondary-color;
  197. bottom: 8px;
  198. right: 104px;
  199. }
  200. }
  201. .invisible {
  202. font-size: 0;
  203. line-height: 0;
  204. display: inline-block;
  205. width: 0;
  206. }
  207. .ellipsis {
  208. &::after {
  209. content: "…";
  210. }
  211. }
  212. .lightbox .icon-button {
  213. color: $ui-base-color;
  214. }
  215. .compose-form {
  216. padding: 10px;
  217. }
  218. .compose-form__warning {
  219. color: darken($ui-secondary-color, 65%);
  220. margin-bottom: 15px;
  221. background: $ui-primary-color;
  222. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);
  223. padding: 8px 10px;
  224. border-radius: 4px;
  225. font-size: 13px;
  226. font-weight: 400;
  227. strong {
  228. color: darken($ui-secondary-color, 65%);
  229. font-weight: 500;
  230. }
  231. a {
  232. color: darken($ui-primary-color, 33%);
  233. font-weight: 500;
  234. text-decoration: underline;
  235. &:hover,
  236. &:active,
  237. &:focus {
  238. text-decoration: none;
  239. }
  240. }
  241. }
  242. .compose-form__modifiers {
  243. color: $ui-base-color;
  244. font-family: inherit;
  245. font-size: 14px;
  246. background: $simple-background-color;
  247. border-radius: 0 0 4px;
  248. }
  249. .compose-form__buttons-wrapper {
  250. display: flex;
  251. justify-content: space-between;
  252. }
  253. .compose-form__buttons {
  254. padding: 10px;
  255. background: darken($simple-background-color, 8%);
  256. box-shadow: inset 0 5px 5px rgba($base-shadow-color, 0.05);
  257. border-radius: 0 0 4px 4px;
  258. display: flex;
  259. .icon-button {
  260. box-sizing: content-box;
  261. padding: 0 3px;
  262. }
  263. }
  264. .compose-form__upload-button-icon {
  265. line-height: 27px;
  266. }
  267. .compose-form__sensitive-button {
  268. display: none;
  269. &.compose-form__sensitive-button--visible {
  270. display: block;
  271. }
  272. .compose-form__sensitive-button__icon {
  273. line-height: 27px;
  274. }
  275. }
  276. .compose-form__upload-wrapper {
  277. overflow: hidden;
  278. }
  279. .compose-form__uploads-wrapper {
  280. display: flex;
  281. padding: 5px;
  282. }
  283. .compose-form__upload {
  284. flex: 1 1 0;
  285. margin: 5px;
  286. }
  287. .compose-form__upload-thumbnail {
  288. border-radius: 4px;
  289. background-position: center;
  290. background-size: cover;
  291. background-repeat: no-repeat;
  292. height: 100px;
  293. width: 100%;
  294. }
  295. .compose-form__upload-cancel {
  296. background-size: cover;
  297. border-radius: 4px;
  298. height: 100px;
  299. width: 100px;
  300. }
  301. .compose-form__label {
  302. display: block;
  303. line-height: 24px;
  304. vertical-align: middle;
  305. &.with-border {
  306. border-top: 1px solid $ui-base-color;
  307. padding-top: 10px;
  308. }
  309. .compose-form__label__text {
  310. display: inline-block;
  311. vertical-align: middle;
  312. margin-bottom: 14px;
  313. margin-left: 8px;
  314. color: $ui-primary-color;
  315. }
  316. }
  317. .compose-form__textarea,
  318. .follow-form__input {
  319. background: $simple-background-color;
  320. &:disabled {
  321. background: $ui-secondary-color;
  322. }
  323. }
  324. .compose-form__autosuggest-wrapper {
  325. position: relative;
  326. .emoji-picker__dropdown {
  327. position: absolute;
  328. right: 5px;
  329. top: 5px;
  330. &.dropdown--active::after {
  331. border-color: transparent transparent $base-border-color;
  332. bottom: -1px;
  333. right: 8px;
  334. }
  335. }
  336. }
  337. .compose-form__publish {
  338. display: flex;
  339. min-width: 0;
  340. }
  341. .compose-form__publish-button-wrapper {
  342. overflow: hidden;
  343. padding-top: 10px;
  344. }
  345. .emojione {
  346. display: inline-block;
  347. font-size: inherit;
  348. vertical-align: middle;
  349. margin: -.2ex .15em .2ex;
  350. width: 16px;
  351. height: 16px;
  352. img {
  353. width: auto;
  354. }
  355. }
  356. .reply-indicator {
  357. border-radius: 4px 4px 0 0;
  358. position: relative;
  359. bottom: -2px;
  360. background: $ui-primary-color;
  361. padding: 10px;
  362. }
  363. .reply-indicator__header {
  364. margin-bottom: 5px;
  365. overflow: hidden;
  366. }
  367. .reply-indicator__cancel {
  368. float: right;
  369. line-height: 24px;
  370. }
  371. .reply-indicator__display-name {
  372. color: $ui-base-color;
  373. display: block;
  374. max-width: 100%;
  375. line-height: 24px;
  376. overflow: hidden;
  377. padding-right: 25px;
  378. text-decoration: none;
  379. }
  380. .reply-indicator__display-avatar {
  381. float: left;
  382. margin-right: 5px;
  383. }
  384. .status__content--with-action {
  385. cursor: pointer;
  386. }
  387. .status__content,
  388. .reply-indicator__content {
  389. font-size: 15px;
  390. line-height: 20px;
  391. word-wrap: break-word;
  392. font-weight: 400;
  393. overflow: hidden;
  394. white-space: pre-wrap;
  395. .emojione {
  396. width: 18px;
  397. height: 18px;
  398. }
  399. p {
  400. margin-bottom: 20px;
  401. &:last-child {
  402. margin-bottom: 0;
  403. }
  404. }
  405. a {
  406. color: $ui-secondary-color;
  407. text-decoration: none;
  408. &:hover {
  409. text-decoration: underline;
  410. .fa {
  411. color: lighten($ui-base-color, 40%);
  412. }
  413. }
  414. &.mention {
  415. &:hover {
  416. text-decoration: none;
  417. span {
  418. text-decoration: underline;
  419. }
  420. }
  421. }
  422. .fa {
  423. color: lighten($ui-base-color, 30%);
  424. }
  425. }
  426. .status__content__spoiler-link {
  427. background: lighten($ui-base-color, 30%);
  428. &:hover {
  429. background: lighten($ui-base-color, 33%);
  430. text-decoration: none;
  431. }
  432. }
  433. .status__content__text {
  434. display: none;
  435. &.status__content__text--visible {
  436. display: block;
  437. }
  438. }
  439. }
  440. .status__content__spoiler-link {
  441. display: inline-block;
  442. border-radius: 2px;
  443. background: transparent;
  444. border: 0;
  445. color: lighten($ui-base-color, 8%);
  446. font-weight: 500;
  447. font-size: 11px;
  448. padding: 0 6px;
  449. text-transform: uppercase;
  450. line-height: inherit;
  451. cursor: pointer;
  452. }
  453. .status__prepend-icon-wrapper {
  454. left: -26px;
  455. position: absolute;
  456. }
  457. .status {
  458. padding: 8px 10px;
  459. padding-left: 68px;
  460. position: relative;
  461. min-height: 48px;
  462. border-bottom: 1px solid lighten($ui-base-color, 8%);
  463. cursor: default;
  464. @keyframes fade {
  465. 0% { opacity: 0; }
  466. 100% { opacity: 1; }
  467. }
  468. opacity: 1;
  469. animation: fade 150ms linear;
  470. &.status-direct {
  471. background: lighten($ui-base-color, 8%);
  472. .icon-button.disabled {
  473. color: lighten($ui-base-color, 16%);
  474. }
  475. }
  476. &.light {
  477. .status__relative-time {
  478. color: $ui-primary-color;
  479. }
  480. .status__display-name {
  481. color: $ui-base-color;
  482. }
  483. .display-name {
  484. strong {
  485. color: $ui-base-color;
  486. }
  487. span {
  488. color: $ui-primary-color;
  489. }
  490. }
  491. .status__content {
  492. color: $ui-base-color;
  493. a {
  494. color: $ui-highlight-color;
  495. }
  496. a.status__content__spoiler-link {
  497. color: $primary-text-color;
  498. background: $ui-primary-color;
  499. &:hover {
  500. background: lighten($ui-primary-color, 8%);
  501. }
  502. }
  503. }
  504. }
  505. }
  506. .notification-favourite {
  507. .status.status-direct {
  508. background: transparent;
  509. .icon-button.disabled {
  510. color: lighten($ui-base-color, 13%);
  511. }
  512. }
  513. }
  514. .status__relative-time {
  515. color: $ui-base-lighter-color;
  516. float: right;
  517. font-size: 14px;
  518. }
  519. .status__display-name {
  520. color: $ui-base-lighter-color;
  521. }
  522. .status__info .status__display-name {
  523. display: block;
  524. max-width: 100%;
  525. padding-right: 25px;
  526. }
  527. .status__info {
  528. font-size: 15px;
  529. }
  530. .status-check-box {
  531. border-bottom: 1px solid $ui-secondary-color;
  532. display: flex;
  533. .status__content {
  534. flex: 1 1 auto;
  535. padding: 10px;
  536. overflow: hidden;
  537. text-overflow: ellipsis;
  538. white-space: nowrap;
  539. }
  540. }
  541. .status-check-box-toggle {
  542. align-items: center;
  543. display: flex;
  544. flex: 0 0 auto;
  545. justify-content: center;
  546. padding: 10px;
  547. }
  548. .status__prepend {
  549. margin-left: 68px;
  550. color: $ui-base-lighter-color;
  551. padding: 8px 0;
  552. padding-bottom: 2px;
  553. font-size: 14px;
  554. position: relative;
  555. .status__display-name strong {
  556. color: $ui-base-lighter-color;
  557. }
  558. }
  559. .status__action-bar {
  560. align-items: center;
  561. display: flex;
  562. margin-top: 10px;
  563. }
  564. .status__action-bar-button {
  565. float: left;
  566. margin-right: 18px;
  567. }
  568. .status__action-bar-dropdown {
  569. float: left;
  570. height: 18px;
  571. width: 18px;
  572. }
  573. .detailed-status__action-bar-dropdown {
  574. flex: 1 1 auto;
  575. display: flex;
  576. align-items: center;
  577. justify-content: center;
  578. position: relative;
  579. .dropdown {
  580. display: block;
  581. width: 18px;
  582. height: 18px;
  583. }
  584. .dropdown--active {
  585. .dropdown__content.dropdown__left {
  586. left: 20px;
  587. right: initial;
  588. }
  589. &::after {
  590. bottom: initial;
  591. margin-left: 7px;
  592. margin-top: -7px;
  593. right: initial;
  594. }
  595. }
  596. }
  597. .detailed-status {
  598. background: lighten($ui-base-color, 4%);
  599. padding: 14px 10px;
  600. .status__content {
  601. font-size: 19px;
  602. line-height: 24px;
  603. .emojione {
  604. width: 22px;
  605. height: 22px;
  606. }
  607. }
  608. }
  609. .detailed-status__meta {
  610. margin-top: 15px;
  611. color: $ui-base-lighter-color;
  612. font-size: 14px;
  613. line-height: 18px;
  614. }
  615. .detailed-status__action-bar {
  616. background: lighten($ui-base-color, 4%);
  617. border-top: 1px solid lighten($ui-base-color, 8%);
  618. border-bottom: 1px solid lighten($ui-base-color, 8%);
  619. display: flex;
  620. flex-direction: row;
  621. padding: 10px 0;
  622. }
  623. .detailed-status__link {
  624. color: inherit;
  625. text-decoration: none;
  626. }
  627. .detailed-status__favorites,
  628. .detailed-status__reblogs {
  629. display: inline-block;
  630. font-weight: 500;
  631. font-size: 12px;
  632. margin-left: 6px;
  633. }
  634. .reply-indicator__content {
  635. color: $ui-base-color;
  636. font-size: 14px;
  637. a {
  638. color: lighten($ui-base-color, 20%);
  639. }
  640. }
  641. .account {
  642. padding: 10px;
  643. border-bottom: 1px solid lighten($ui-base-color, 8%);
  644. .account__display-name {
  645. flex: 1 1 auto;
  646. display: block;
  647. color: $ui-primary-color;
  648. overflow: hidden;
  649. text-decoration: none;
  650. font-size: 14px;
  651. }
  652. }
  653. .account__wrapper {
  654. display: flex;
  655. }
  656. .account__avatar-wrapper {
  657. float: left;
  658. margin-left: 12px;
  659. margin-right: 12px;
  660. }
  661. .account__avatar {
  662. @include avatar-radius();
  663. position: relative;
  664. cursor: pointer;
  665. &-inline {
  666. display: inline-block;
  667. vertical-align: middle;
  668. margin-right: 5px;
  669. }
  670. }
  671. .account__avatar-overlay {
  672. @include avatar-size(48px);
  673. &-base {
  674. @include avatar-radius();
  675. @include avatar-size(36px);
  676. }
  677. &-overlay {
  678. @include avatar-radius();
  679. @include avatar-size(24px);
  680. position: absolute;
  681. bottom: 0;
  682. right: 0;
  683. z-index: 1;
  684. }
  685. }
  686. .account__relationship {
  687. height: 18px;
  688. padding: 10px;
  689. }
  690. .account__header {
  691. flex: 0 0 auto;
  692. background: lighten($ui-base-color, 4%);
  693. text-align: center;
  694. background-size: cover;
  695. background-position: center;
  696. position: relative;
  697. & > div {
  698. background: rgba(lighten($ui-base-color, 4%), 0.9);
  699. padding: 20px 10px;
  700. }
  701. .account__header__content {
  702. color: $ui-secondary-color;
  703. }
  704. .account__header__display-name {
  705. color: $primary-text-color;
  706. display: inline-block;
  707. font-size: 20px;
  708. line-height: 27px;
  709. font-weight: 500;
  710. }
  711. .account__header__username {
  712. color: $ui-highlight-color;
  713. font-size: 14px;
  714. font-weight: 400;
  715. display: block;
  716. margin-bottom: 10px;
  717. }
  718. }
  719. .account__disclaimer {
  720. padding: 10px;
  721. border-top: 1px solid lighten($ui-base-color, 8%);
  722. color: $ui-base-lighter-color;
  723. strong {
  724. font-weight: 500;
  725. }
  726. a {
  727. font-weight: 500;
  728. color: inherit;
  729. text-decoration: underline;
  730. &:hover,
  731. &:focus,
  732. &:active {
  733. text-decoration: none;
  734. }
  735. }
  736. }
  737. .account__header__content {
  738. color: $ui-primary-color;
  739. font-size: 14px;
  740. font-weight: 400;
  741. overflow: hidden;
  742. word-break: normal;
  743. word-wrap: break-word;
  744. p {
  745. margin-bottom: 20px;
  746. &:last-child {
  747. margin-bottom: 0;
  748. }
  749. }
  750. a {
  751. color: inherit;
  752. text-decoration: underline;
  753. &:hover {
  754. text-decoration: none;
  755. }
  756. }
  757. }
  758. .account__header__display-name {
  759. .emojione {
  760. width: 25px;
  761. height: 25px;
  762. }
  763. }
  764. .account__action-bar {
  765. border-top: 1px solid lighten($ui-base-color, 8%);
  766. border-bottom: 1px solid lighten($ui-base-color, 8%);
  767. line-height: 36px;
  768. overflow: hidden;
  769. flex: 0 0 auto;
  770. display: flex;
  771. }
  772. .account__action-bar-dropdown {
  773. flex: 1 1 auto;
  774. padding: 10px;
  775. .dropdown--active {
  776. .dropdown__content.dropdown__right {
  777. left: 6px;
  778. right: initial;
  779. }
  780. &::after {
  781. bottom: initial;
  782. margin-left: 11px;
  783. margin-top: -7px;
  784. right: initial;
  785. }
  786. }
  787. }
  788. .account__action-bar-links {
  789. display: flex;
  790. flex: 1 1 auto;
  791. line-height: 18px;
  792. }
  793. .account__action-bar__tab {
  794. text-decoration: none;
  795. overflow: hidden;
  796. width: 80px;
  797. border-left: 1px solid lighten($ui-base-color, 8%);
  798. padding: 10px 5px;
  799. & > span {
  800. display: block;
  801. text-transform: uppercase;
  802. font-size: 11px;
  803. color: $ui-primary-color;
  804. }
  805. strong {
  806. display: block;
  807. font-size: 15px;
  808. font-weight: 500;
  809. color: $primary-text-color;
  810. }
  811. abbr {
  812. color: $ui-base-lighter-color;
  813. }
  814. }
  815. .account__header__avatar {
  816. background-size: 90px 90px;
  817. display: block;
  818. height: 90px;
  819. margin: 0 auto 10px;
  820. overflow: hidden;
  821. width: 90px;
  822. }
  823. .account-authorize {
  824. padding: 14px 10px;
  825. .detailed-status__display-name {
  826. display: block;
  827. margin-bottom: 15px;
  828. overflow: hidden;
  829. }
  830. }
  831. .account-authorize__avatar {
  832. float: left;
  833. margin-right: 10px;
  834. }
  835. .status__display-name,
  836. .status__relative-time,
  837. .detailed-status__display-name,
  838. .detailed-status__datetime,
  839. .detailed-status__application,
  840. .account__display-name {
  841. text-decoration: none;
  842. }
  843. .status__display-name,
  844. .account__display-name {
  845. strong {
  846. color: $primary-text-color;
  847. }
  848. &.muted {
  849. .emojione {
  850. opacity: 0.5;
  851. }
  852. }
  853. }
  854. .status__display-name,
  855. .reply-indicator__display-name,
  856. .detailed-status__display-name,
  857. .account__display-name {
  858. &:hover strong {
  859. text-decoration: underline;
  860. }
  861. }
  862. .account__display-name strong {
  863. display: block;
  864. }
  865. .detailed-status__application,
  866. .detailed-status__datetime {
  867. color: inherit;
  868. }
  869. .detailed-status__display-name {
  870. color: $ui-secondary-color;
  871. display: block;
  872. line-height: 24px;
  873. margin-bottom: 15px;
  874. overflow: hidden;
  875. strong,
  876. span {
  877. display: block;
  878. }
  879. strong {
  880. font-size: 16px;
  881. color: $primary-text-color;
  882. }
  883. }
  884. .detailed-status__display-avatar {
  885. float: left;
  886. margin-right: 10px;
  887. }
  888. .status__avatar {
  889. height: 48px;
  890. left: 10px;
  891. position: absolute;
  892. top: 10px;
  893. width: 48px;
  894. }
  895. .muted {
  896. .status__content p,
  897. .status__content a {
  898. color: $ui-base-lighter-color;
  899. }
  900. .status__display-name strong {
  901. color: $ui-base-lighter-color;
  902. }
  903. .status__avatar {
  904. opacity: 0.5;
  905. }
  906. a.status__content__spoiler-link {
  907. background: $ui-base-lighter-color;
  908. color: lighten($ui-base-color, 4%);
  909. &:hover {
  910. background: lighten($ui-base-color, 29%);
  911. text-decoration: none;
  912. }
  913. }
  914. }
  915. .notification__message {
  916. margin-left: 68px;
  917. padding: 8px 0;
  918. padding-bottom: 0;
  919. cursor: default;
  920. color: $ui-primary-color;
  921. font-size: 15px;
  922. position: relative;
  923. .fa {
  924. color: $ui-highlight-color;
  925. }
  926. }
  927. .notification__favourite-icon-wrapper {
  928. left: -26px;
  929. position: absolute;
  930. .star-icon {
  931. color: $gold-star;
  932. }
  933. }
  934. .star-icon.active {
  935. color: $gold-star;
  936. }
  937. .notification__display-name {
  938. color: inherit;
  939. font-weight: 500;
  940. text-decoration: none;
  941. &:hover {
  942. color: $primary-text-color;
  943. text-decoration: underline;
  944. }
  945. }
  946. .display-name {
  947. display: block;
  948. max-width: 100%;
  949. overflow: hidden;
  950. text-overflow: ellipsis;
  951. white-space: nowrap;
  952. }
  953. .display-name__html {
  954. font-weight: 500;
  955. }
  956. .display-name__account {
  957. font-size: 14px;
  958. }
  959. .status__relative-time,
  960. .detailed-status__datetime {
  961. &:hover {
  962. text-decoration: underline;
  963. }
  964. }
  965. .image-loader {
  966. position: relative;
  967. &.image-loader--loading {
  968. .image-loader__preview-canvas {
  969. filter: blur(2px);
  970. }
  971. }
  972. .image-loader__img {
  973. position: absolute;
  974. top: 0;
  975. left: 0;
  976. right: 0;
  977. max-width: 100%;
  978. max-height: 100%;
  979. background-image: none;
  980. }
  981. &.image-loader--amorphous {
  982. position: static;
  983. .image-loader__preview-canvas {
  984. display: none;
  985. }
  986. .image-loader__img {
  987. position: static;
  988. width: auto;
  989. height: auto;
  990. }
  991. }
  992. }
  993. .navigation-bar {
  994. padding: 10px;
  995. display: flex;
  996. flex-shrink: 0;
  997. cursor: default;
  998. color: $ui-primary-color;
  999. strong {
  1000. color: $primary-text-color;
  1001. }
  1002. .permalink {
  1003. text-decoration: none;
  1004. }
  1005. .icon-button {
  1006. pointer-events: none;
  1007. opacity: 0;
  1008. }
  1009. }
  1010. .navigation-bar__profile {
  1011. flex: 1 1 auto;
  1012. margin-left: 8px;
  1013. }
  1014. .navigation-bar__profile-account {
  1015. display: block;
  1016. font-weight: 500;
  1017. }
  1018. .navigation-bar__profile-edit {
  1019. color: inherit;
  1020. text-decoration: none;
  1021. }
  1022. .dropdown {
  1023. display: inline-block;
  1024. }
  1025. .dropdown__content {
  1026. display: none;
  1027. position: absolute;
  1028. }
  1029. .dropdown__sep {
  1030. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1031. margin: 5px 7px 6px;
  1032. padding-top: 1px;
  1033. }
  1034. .dropdown--active .dropdown__content {
  1035. display: block;
  1036. line-height: 18px;
  1037. max-width: 311px;
  1038. right: 0;
  1039. text-align: left;
  1040. z-index: 9999;
  1041. & > ul {
  1042. list-style: none;
  1043. background: $ui-secondary-color;
  1044. padding: 4px 0;
  1045. border-radius: 4px;
  1046. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1047. min-width: 140px;
  1048. position: relative;
  1049. }
  1050. &.dropdown__right {
  1051. right: 0;
  1052. }
  1053. &.dropdown__left {
  1054. & > ul {
  1055. left: -98px;
  1056. }
  1057. }
  1058. & > ul > li > a {
  1059. font-size: 13px;
  1060. line-height: 18px;
  1061. display: block;
  1062. padding: 4px 14px;
  1063. box-sizing: border-box;
  1064. text-decoration: none;
  1065. background: $ui-secondary-color;
  1066. color: $ui-base-color;
  1067. overflow: hidden;
  1068. text-overflow: ellipsis;
  1069. white-space: nowrap;
  1070. &:focus {
  1071. outline: 0;
  1072. }
  1073. &:hover {
  1074. background: $ui-highlight-color;
  1075. color: $ui-secondary-color;
  1076. }
  1077. }
  1078. }
  1079. .dropdown__icon {
  1080. vertical-align: middle;
  1081. }
  1082. .static-content {
  1083. padding: 10px;
  1084. padding-top: 20px;
  1085. color: $ui-base-lighter-color;
  1086. h1 {
  1087. font-size: 16px;
  1088. font-weight: 500;
  1089. margin-bottom: 40px;
  1090. text-align: center;
  1091. }
  1092. p {
  1093. font-size: 13px;
  1094. margin-bottom: 20px;
  1095. }
  1096. }
  1097. .columns-area {
  1098. display: flex;
  1099. flex: 1 1 auto;
  1100. flex-direction: row;
  1101. justify-content: flex-start;
  1102. overflow-x: auto;
  1103. position: relative;
  1104. }
  1105. @media screen and (min-width: 360px) {
  1106. .columns-area {
  1107. padding: 10px;
  1108. }
  1109. .react-swipeable-view-container .columns-area {
  1110. height: calc(100% - 20px) !important;
  1111. }
  1112. }
  1113. .react-swipeable-view-container {
  1114. &,
  1115. .columns-area,
  1116. .drawer,
  1117. .column {
  1118. height: 100%;
  1119. }
  1120. }
  1121. .react-swipeable-view-container > * {
  1122. display: flex;
  1123. align-items: center;
  1124. justify-content: center;
  1125. height: 100%;
  1126. }
  1127. .column {
  1128. width: 330px;
  1129. position: relative;
  1130. box-sizing: border-box;
  1131. display: flex;
  1132. flex-direction: column;
  1133. > .scrollable {
  1134. background: $ui-base-color;
  1135. }
  1136. }
  1137. .ui {
  1138. flex: 0 0 auto;
  1139. display: flex;
  1140. flex-direction: column;
  1141. width: 100%;
  1142. height: 100%;
  1143. background: darken($ui-base-color, 7%);
  1144. }
  1145. .drawer {
  1146. width: 300px;
  1147. box-sizing: border-box;
  1148. display: flex;
  1149. flex-direction: column;
  1150. overflow-y: hidden;
  1151. }
  1152. .drawer__tab {
  1153. display: block;
  1154. flex: 1 1 auto;
  1155. padding: 15px 5px 13px;
  1156. color: $ui-primary-color;
  1157. text-decoration: none;
  1158. text-align: center;
  1159. font-size: 16px;
  1160. border-bottom: 2px solid transparent;
  1161. }
  1162. .column,
  1163. .drawer {
  1164. flex: 1 1 100%;
  1165. overflow: hidden;
  1166. @supports(display: grid) { // hack to fix Chrome <57
  1167. contain: strict;
  1168. }
  1169. }
  1170. @media screen and (min-width: 360px) {
  1171. .tabs-bar {
  1172. margin: 10px;
  1173. margin-bottom: 0;
  1174. }
  1175. .search {
  1176. margin-bottom: 10px;
  1177. }
  1178. }
  1179. @media screen and (max-width: 1024px) {
  1180. .column,
  1181. .drawer {
  1182. width: 100%;
  1183. padding: 0;
  1184. }
  1185. .columns-area {
  1186. flex-direction: column;
  1187. }
  1188. .search__input,
  1189. .autosuggest-textarea__textarea {
  1190. font-size: 16px;
  1191. }
  1192. }
  1193. @media screen and (min-width: 1025px) {
  1194. .columns-area {
  1195. padding: 0;
  1196. }
  1197. .column,
  1198. .drawer {
  1199. flex: 0 0 auto;
  1200. padding: 10px;
  1201. padding-left: 5px;
  1202. padding-right: 5px;
  1203. &:first-child {
  1204. padding-left: 10px;
  1205. }
  1206. &:last-child {
  1207. padding-right: 10px;
  1208. }
  1209. }
  1210. .columns-area > div {
  1211. .column,
  1212. .drawer {
  1213. padding-left: 5px;
  1214. padding-right: 5px;
  1215. }
  1216. }
  1217. }
  1218. .drawer__pager {
  1219. box-sizing: border-box;
  1220. padding: 0;
  1221. flex-grow: 1;
  1222. position: relative;
  1223. overflow: hidden;
  1224. display: flex;
  1225. }
  1226. .drawer__inner {
  1227. position: absolute;
  1228. top: 0;
  1229. left: 0;
  1230. background: lighten($ui-base-color, 13%);
  1231. box-sizing: border-box;
  1232. padding: 0;
  1233. display: flex;
  1234. flex-direction: column;
  1235. overflow: hidden;
  1236. overflow-y: auto;
  1237. width: 100%;
  1238. height: 100%;
  1239. &.darker {
  1240. background: $ui-base-color;
  1241. }
  1242. }
  1243. .pseudo-drawer {
  1244. background: lighten($ui-base-color, 13%);
  1245. font-size: 13px;
  1246. text-align: left;
  1247. }
  1248. .drawer__header {
  1249. flex: 0 0 auto;
  1250. font-size: 16px;
  1251. background: lighten($ui-base-color, 8%);
  1252. margin-bottom: 10px;
  1253. display: flex;
  1254. flex-direction: row;
  1255. a {
  1256. transition: background 100ms ease-in;
  1257. &:hover {
  1258. background: lighten($ui-base-color, 3%);
  1259. transition: background 200ms ease-out;
  1260. }
  1261. }
  1262. }
  1263. .tabs-bar {
  1264. display: flex;
  1265. background: lighten($ui-base-color, 8%);
  1266. flex: 0 0 auto;
  1267. overflow-y: auto;
  1268. }
  1269. .tabs-bar__link {
  1270. display: block;
  1271. flex: 1 1 auto;
  1272. padding: 15px 10px;
  1273. color: $primary-text-color;
  1274. text-decoration: none;
  1275. text-align: center;
  1276. font-size: 14px;
  1277. font-weight: 500;
  1278. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1279. transition: all 200ms linear;
  1280. .fa {
  1281. font-weight: 400;
  1282. font-size: 16px;
  1283. }
  1284. &.active {
  1285. border-bottom: 2px solid $ui-highlight-color;
  1286. color: $ui-highlight-color;
  1287. }
  1288. &:hover,
  1289. &:focus,
  1290. &:active {
  1291. @media screen and (min-width: 1025px) {
  1292. background: lighten($ui-base-color, 14%);
  1293. transition: all 100ms linear;
  1294. }
  1295. }
  1296. span {
  1297. margin-left: 5px;
  1298. display: none;
  1299. }
  1300. }
  1301. @media screen and (min-width: 600px) {
  1302. .tabs-bar__link {
  1303. span {
  1304. display: inline;
  1305. }
  1306. }
  1307. }
  1308. @media screen and (min-width: 1025px) {
  1309. .tabs-bar {
  1310. display: none;
  1311. }
  1312. }
  1313. .scrollable {
  1314. overflow-y: scroll;
  1315. overflow-x: hidden;
  1316. flex: 1 1 auto;
  1317. backface-visibility: hidden;
  1318. -webkit-overflow-scrolling: touch;
  1319. @supports(display: grid) { // hack to fix Chrome <57
  1320. contain: strict;
  1321. }
  1322. &.optionally-scrollable {
  1323. overflow-y: auto;
  1324. }
  1325. }
  1326. .column-back-button {
  1327. background: lighten($ui-base-color, 4%);
  1328. color: $ui-highlight-color;
  1329. cursor: pointer;
  1330. flex: 0 0 auto;
  1331. font-size: 16px;
  1332. border: 0;
  1333. text-align: start;
  1334. padding: 15px;
  1335. z-index: 3;
  1336. &:hover {
  1337. text-decoration: underline;
  1338. }
  1339. }
  1340. .column-header__back-button {
  1341. background: lighten($ui-base-color, 4%);
  1342. border: 0;
  1343. font-family: inherit;
  1344. color: $ui-highlight-color;
  1345. cursor: pointer;
  1346. flex: 0 0 auto;
  1347. font-size: 16px;
  1348. padding: 0 5px 0 0;
  1349. z-index: 3;
  1350. &:hover {
  1351. text-decoration: underline;
  1352. }
  1353. }
  1354. .column-back-button__icon {
  1355. display: inline-block;
  1356. margin-right: 5px;
  1357. }
  1358. .column-back-button--slim {
  1359. position: relative;
  1360. }
  1361. .column-back-button--slim-button {
  1362. cursor: pointer;
  1363. flex: 0 0 auto;
  1364. font-size: 16px;
  1365. padding: 15px;
  1366. position: absolute;
  1367. right: 0;
  1368. top: -48px;
  1369. }
  1370. .react-toggle {
  1371. display: inline-block;
  1372. position: relative;
  1373. cursor: pointer;
  1374. background-color: transparent;
  1375. border: 0;
  1376. padding: 0;
  1377. user-select: none;
  1378. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1379. -webkit-tap-highlight-color: transparent;
  1380. }
  1381. .react-toggle-screenreader-only {
  1382. border: 0;
  1383. clip: rect(0 0 0 0);
  1384. height: 1px;
  1385. margin: -1px;
  1386. overflow: hidden;
  1387. padding: 0;
  1388. position: absolute;
  1389. width: 1px;
  1390. }
  1391. .react-toggle--disabled {
  1392. cursor: not-allowed;
  1393. opacity: 0.5;
  1394. transition: opacity 0.25s;
  1395. }
  1396. .react-toggle-track {
  1397. width: 50px;
  1398. height: 24px;
  1399. padding: 0;
  1400. border-radius: 30px;
  1401. background-color: $ui-base-color;
  1402. transition: all 0.2s ease;
  1403. }
  1404. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1405. background-color: darken($ui-base-color, 10%);
  1406. }
  1407. .react-toggle--checked .react-toggle-track {
  1408. background-color: $ui-highlight-color;
  1409. }
  1410. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1411. background-color: lighten($ui-highlight-color, 10%);
  1412. }
  1413. .react-toggle-track-check {
  1414. position: absolute;
  1415. width: 14px;
  1416. height: 10px;
  1417. top: 0;
  1418. bottom: 0;
  1419. margin-top: auto;
  1420. margin-bottom: auto;
  1421. line-height: 0;
  1422. left: 8px;
  1423. opacity: 0;
  1424. transition: opacity 0.25s ease;
  1425. }
  1426. .react-toggle--checked .react-toggle-track-check {
  1427. opacity: 1;
  1428. transition: opacity 0.25s ease;
  1429. }
  1430. .react-toggle-track-x {
  1431. position: absolute;
  1432. width: 10px;
  1433. height: 10px;
  1434. top: 0;
  1435. bottom: 0;
  1436. margin-top: auto;
  1437. margin-bottom: auto;
  1438. line-height: 0;
  1439. right: 10px;
  1440. opacity: 1;
  1441. transition: opacity 0.25s ease;
  1442. }
  1443. .react-toggle--checked .react-toggle-track-x {
  1444. opacity: 0;
  1445. }
  1446. .react-toggle-thumb {
  1447. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1448. position: absolute;
  1449. top: 1px;
  1450. left: 1px;
  1451. width: 22px;
  1452. height: 22px;
  1453. border: 1px solid $ui-base-color;
  1454. border-radius: 50%;
  1455. background-color: darken($simple-background-color, 2%);
  1456. box-sizing: border-box;
  1457. transition: all 0.25s ease;
  1458. }
  1459. .react-toggle--checked .react-toggle-thumb {
  1460. left: 27px;
  1461. border-color: $ui-highlight-color;
  1462. }
  1463. .column-link {
  1464. background: lighten($ui-base-color, 8%);
  1465. color: $primary-text-color;
  1466. display: block;
  1467. font-size: 16px;
  1468. padding: 15px;
  1469. text-decoration: none;
  1470. &:hover {
  1471. background: lighten($ui-base-color, 11%);
  1472. }
  1473. }
  1474. .column-link__icon {
  1475. display: inline-block;
  1476. margin-right: 5px;
  1477. }
  1478. .column-subheading {
  1479. background: $ui-base-color;
  1480. color: $ui-base-lighter-color;
  1481. padding: 8px 20px;
  1482. font-size: 12px;
  1483. font-weight: 500;
  1484. text-transform: uppercase;
  1485. cursor: default;
  1486. }
  1487. .autosuggest-textarea,
  1488. .spoiler-input {
  1489. position: relative;
  1490. }
  1491. .autosuggest-textarea__textarea,
  1492. .spoiler-input__input {
  1493. display: block;
  1494. box-sizing: border-box;
  1495. width: 100%;
  1496. margin: 0;
  1497. color: $ui-base-color;
  1498. background: $simple-background-color;
  1499. padding: 10px;
  1500. font-family: inherit;
  1501. font-size: 14px;
  1502. resize: vertical;
  1503. border: 0;
  1504. outline: 0;
  1505. &:focus {
  1506. outline: 0;
  1507. }
  1508. @media screen and (max-width: 600px) {
  1509. font-size: 16px;
  1510. }
  1511. }
  1512. .spoiler-input__input {
  1513. border-radius: 4px;
  1514. }
  1515. .autosuggest-textarea__textarea {
  1516. min-height: 100px;
  1517. border-radius: 4px 4px 0 0;
  1518. padding-bottom: 0;
  1519. padding-right: 10px + 22px;
  1520. resize: none;
  1521. @media screen and (max-width: 600px) {
  1522. height: 100px !important; // prevent auto-resize textarea
  1523. resize: vertical;
  1524. }
  1525. }
  1526. .autosuggest-textarea__suggestions {
  1527. display: none;
  1528. position: absolute;
  1529. top: 100%;
  1530. width: 100%;
  1531. z-index: 99;
  1532. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1533. background: $ui-secondary-color;
  1534. color: $ui-base-color;
  1535. font-size: 14px;
  1536. &.autosuggest-textarea__suggestions--visible {
  1537. display: block;
  1538. }
  1539. }
  1540. .autosuggest-textarea__suggestions__item {
  1541. padding: 10px;
  1542. cursor: pointer;
  1543. &:hover {
  1544. background: darken($ui-secondary-color, 10%);
  1545. }
  1546. &.selected {
  1547. background: $ui-highlight-color;
  1548. color: $base-border-color;
  1549. }
  1550. }
  1551. .autosuggest-account {
  1552. overflow: hidden;
  1553. }
  1554. .autosuggest-account-icon {
  1555. float: left;
  1556. margin-right: 5px;
  1557. }
  1558. .autosuggest-status {
  1559. overflow: hidden;
  1560. white-space: nowrap;
  1561. text-overflow: ellipsis;
  1562. strong {
  1563. font-weight: 500;
  1564. }
  1565. }
  1566. .character-counter__wrapper {
  1567. line-height: 36px;
  1568. margin-right: 16px;
  1569. padding-top: 10px;
  1570. }
  1571. .character-counter {
  1572. cursor: default;
  1573. font-size: 16px;
  1574. }
  1575. .character-counter--over {
  1576. color: $warning-red;
  1577. }
  1578. .getting-started__wrapper {
  1579. position: relative;
  1580. overflow-y: auto;
  1581. }
  1582. .getting-started__footer {
  1583. display: flex;
  1584. flex-direction: column;
  1585. }
  1586. .getting-started {
  1587. box-sizing: border-box;
  1588. padding-bottom: 235px;
  1589. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1590. flex: 1 0 auto;
  1591. p {
  1592. color: $ui-secondary-color;
  1593. }
  1594. a {
  1595. color: $ui-base-lighter-color;
  1596. }
  1597. }
  1598. .setting-text {
  1599. color: $ui-primary-color;
  1600. background: transparent;
  1601. border: none;
  1602. border-bottom: 2px solid $ui-primary-color;
  1603. box-sizing: border-box;
  1604. display: block;
  1605. font-family: inherit;
  1606. margin-bottom: 10px;
  1607. padding: 7px 0;
  1608. width: 100%;
  1609. &:focus,
  1610. &:active {
  1611. color: $primary-text-color;
  1612. border-bottom-color: $ui-highlight-color;
  1613. }
  1614. @media screen and (max-width: 600px) {
  1615. font-size: 16px;
  1616. }
  1617. &.light {
  1618. color: $ui-base-color;
  1619. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1620. &:focus,
  1621. &:active {
  1622. color: $ui-base-color;
  1623. border-bottom-color: $ui-highlight-color;
  1624. }
  1625. }
  1626. }
  1627. @import 'boost';
  1628. button.icon-button i.fa-retweet {
  1629. background-position: 0 0;
  1630. height: 19px;
  1631. transition: background-position 0.9s steps(10);
  1632. transition-duration: 0s;
  1633. vertical-align: middle;
  1634. width: 22px;
  1635. &::before {
  1636. display: none !important;
  1637. }
  1638. }
  1639. button.icon-button.active i.fa-retweet {
  1640. transition-duration: 0.9s;
  1641. background-position: 0 100%;
  1642. }
  1643. .status-card {
  1644. display: flex;
  1645. cursor: pointer;
  1646. font-size: 14px;
  1647. border: 1px solid lighten($ui-base-color, 8%);
  1648. border-radius: 4px;
  1649. color: $ui-base-lighter-color;
  1650. margin-top: 14px;
  1651. text-decoration: none;
  1652. overflow: hidden;
  1653. &:hover {
  1654. background: lighten($ui-base-color, 8%);
  1655. }
  1656. }
  1657. .status-card-video,
  1658. .status-card-rich,
  1659. .status-card-photo {
  1660. margin-top: 14px;
  1661. overflow: hidden;
  1662. iframe {
  1663. width: 100%;
  1664. height: auto;
  1665. }
  1666. }
  1667. .status-card-photo {
  1668. display: block;
  1669. text-decoration: none;
  1670. img {
  1671. display: block;
  1672. width: 100%;
  1673. height: auto;
  1674. margin: 0;
  1675. }
  1676. }
  1677. .status-card-video {
  1678. position: relative;
  1679. width: 100%;
  1680. height: auto;
  1681. padding-top: 56.25%;
  1682. iframe {
  1683. position: absolute;
  1684. top: 0;
  1685. left: 0;
  1686. bottom: 0;
  1687. right: 0;
  1688. width: 1px;
  1689. min-width: 100%;
  1690. height: 1px;
  1691. min-height: 100%;
  1692. margin: auto;
  1693. }
  1694. }
  1695. .status-card__title {
  1696. display: block;
  1697. font-weight: 500;
  1698. margin-bottom: 5px;
  1699. color: $ui-primary-color;
  1700. overflow: hidden;
  1701. text-overflow: ellipsis;
  1702. white-space: nowrap;
  1703. }
  1704. .status-card__content {
  1705. flex: 1 1 auto;
  1706. overflow: hidden;
  1707. padding: 14px 14px 14px 8px;
  1708. }
  1709. .status-card__description {
  1710. color: $ui-primary-color;
  1711. }
  1712. .status-card__host {
  1713. display: block;
  1714. margin-top: 5px;
  1715. font-size: 13px;
  1716. }
  1717. .status-card__image {
  1718. flex: 0 0 100px;
  1719. background: lighten($ui-base-color, 8%);
  1720. }
  1721. .status-card__image-image {
  1722. border-radius: 4px 0 0 4px;
  1723. display: block;
  1724. height: auto;
  1725. margin: 0;
  1726. width: 100%;
  1727. }
  1728. .load-more {
  1729. display: block;
  1730. color: $ui-base-lighter-color;
  1731. background-color: transparent;
  1732. border: 0;
  1733. font-size: inherit;
  1734. text-align: center;
  1735. line-height: inherit;
  1736. margin: 0;
  1737. padding: 15px;
  1738. width: 100%;
  1739. clear: both;
  1740. &:hover {
  1741. background: lighten($ui-base-color, 2%);
  1742. }
  1743. }
  1744. .missing-indicator {
  1745. text-align: center;
  1746. font-size: 16px;
  1747. font-weight: 500;
  1748. color: lighten($ui-base-color, 16%);
  1749. background: $ui-base-color;
  1750. cursor: default;
  1751. display: flex;
  1752. flex: 1 1 auto;
  1753. align-items: center;
  1754. justify-content: center;
  1755. & > div {
  1756. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1757. padding-top: 210px;
  1758. width: 100%;
  1759. }
  1760. }
  1761. .column-header__wrapper {
  1762. position: relative;
  1763. flex: 0 0 auto;
  1764. &.active {
  1765. &::before {
  1766. display: block;
  1767. content: "";
  1768. position: absolute;
  1769. top: 35px;
  1770. left: 0;
  1771. right: 0;
  1772. margin: 0 auto;
  1773. width: 60%;
  1774. pointer-events: none;
  1775. height: 28px;
  1776. z-index: 1;
  1777. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1778. }
  1779. }
  1780. }
  1781. .column-header {
  1782. padding: 15px;
  1783. font-size: 16px;
  1784. background: lighten($ui-base-color, 4%);
  1785. flex: 0 0 auto;
  1786. cursor: pointer;
  1787. position: relative;
  1788. z-index: 2;
  1789. outline: 0;
  1790. &.active {
  1791. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1792. .column-header__icon {
  1793. color: $ui-highlight-color;
  1794. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1795. }
  1796. }
  1797. &:focus,
  1798. &:active {
  1799. outline: 0;
  1800. }
  1801. }
  1802. .column-header__buttons {
  1803. position: absolute;
  1804. right: 0;
  1805. top: 0;
  1806. height: 100%;
  1807. display: flex;
  1808. height: 48px;
  1809. }
  1810. .column-header__button {
  1811. background: lighten($ui-base-color, 4%);
  1812. border: 0;
  1813. color: $ui-primary-color;
  1814. cursor: pointer;
  1815. font-size: 16px;
  1816. padding: 0 15px;
  1817. &:hover {
  1818. color: lighten($ui-primary-color, 7%);
  1819. }
  1820. &.active {
  1821. color: $primary-text-color;
  1822. background: lighten($ui-base-color, 8%);
  1823. &:hover {
  1824. color: $primary-text-color;
  1825. background: lighten($ui-base-color, 8%);
  1826. }
  1827. }
  1828. }
  1829. .column-header__collapsible {
  1830. max-height: 70vh;
  1831. overflow: hidden;
  1832. overflow-y: auto;
  1833. color: $ui-primary-color;
  1834. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1835. opacity: 1;
  1836. &.collapsed {
  1837. max-height: 0;
  1838. opacity: 0.5;
  1839. }
  1840. &.animating {
  1841. overflow-y: hidden;
  1842. }
  1843. }
  1844. .column-header__collapsible-inner {
  1845. background: lighten($ui-base-color, 8%);
  1846. padding: 15px;
  1847. }
  1848. .column-header__setting-btn {
  1849. &:hover {
  1850. color: lighten($ui-primary-color, 4%);
  1851. text-decoration: underline;
  1852. }
  1853. }
  1854. .column-header__setting-arrows {
  1855. float: right;
  1856. .column-header__setting-btn {
  1857. padding: 0 10px;
  1858. &:last-child {
  1859. padding-right: 0;
  1860. }
  1861. }
  1862. }
  1863. .text-btn {
  1864. display: inline-block;
  1865. padding: 0;
  1866. font-family: inherit;
  1867. font-size: inherit;
  1868. color: inherit;
  1869. border: 0;
  1870. background: transparent;
  1871. cursor: pointer;
  1872. }
  1873. .column-header__icon {
  1874. display: inline-block;
  1875. margin-right: 5px;
  1876. }
  1877. .loading-indicator {
  1878. color: lighten($ui-base-color, 26%);
  1879. font-size: 12px;
  1880. font-weight: 400;
  1881. text-transform: uppercase;
  1882. overflow: visible;
  1883. position: absolute;
  1884. top: 50%;
  1885. left: 50%;
  1886. transform: translate(-50%, -50%);
  1887. span {
  1888. display: block;
  1889. float: left;
  1890. margin-left: 50%;
  1891. transform: translateX(-50%);
  1892. margin: 82px 0 0 50%;
  1893. white-space: nowrap;
  1894. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1895. }
  1896. }
  1897. .loading-indicator__figure {
  1898. position: absolute;
  1899. top: 50%;
  1900. left: 50%;
  1901. transform: translate(-50%, -50%);
  1902. width: 0;
  1903. height: 0;
  1904. box-sizing: border-box;
  1905. border: 0 solid lighten($ui-base-color, 26%);
  1906. border-radius: 50%;
  1907. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1908. }
  1909. @keyframes loader-figure {
  1910. 0% {
  1911. width: 0;
  1912. height: 0;
  1913. background-color: lighten($ui-base-color, 26%);
  1914. }
  1915. 29% {
  1916. background-color: lighten($ui-base-color, 26%);
  1917. }
  1918. 30% {
  1919. width: 42px;
  1920. height: 42px;
  1921. background-color: transparent;
  1922. border-width: 21px;
  1923. opacity: 1;
  1924. }
  1925. 100% {
  1926. width: 42px;
  1927. height: 42px;
  1928. border-width: 0;
  1929. opacity: 0;
  1930. background-color: transparent;
  1931. }
  1932. }
  1933. @keyframes loader-label {
  1934. 0% { opacity: 0.25; }
  1935. 30% { opacity: 1; }
  1936. 100% { opacity: 0.25; }
  1937. }
  1938. .video-error-cover {
  1939. align-items: center;
  1940. background: $base-overlay-background;
  1941. color: $primary-text-color;
  1942. cursor: pointer;
  1943. display: flex;
  1944. flex-direction: column;
  1945. height: 100%;
  1946. justify-content: center;
  1947. margin-top: 8px;
  1948. position: relative;
  1949. text-align: center;
  1950. z-index: 100;
  1951. }
  1952. .media-spoiler {
  1953. align-items: center;
  1954. background: $base-overlay-background;
  1955. color: $primary-text-color;
  1956. cursor: pointer;
  1957. display: flex;
  1958. flex-direction: column;
  1959. border: 0;
  1960. width: 100%;
  1961. height: 100%;
  1962. justify-content: center;
  1963. position: relative;
  1964. text-align: center;
  1965. z-index: 100;
  1966. }
  1967. .media-spoiler__warning {
  1968. display: block;
  1969. font-size: 14px;
  1970. }
  1971. .media-spoiler__trigger {
  1972. display: block;
  1973. font-size: 11px;
  1974. font-weight: 500;
  1975. }
  1976. .spoiler-button {
  1977. display: none;
  1978. left: 4px;
  1979. position: absolute;
  1980. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  1981. top: 4px;
  1982. z-index: 100;
  1983. &.spoiler-button--visible {
  1984. display: block;
  1985. }
  1986. }
  1987. .modal-container--preloader {
  1988. background: lighten($ui-base-color, 8%);
  1989. }
  1990. .account--panel {
  1991. background: lighten($ui-base-color, 4%);
  1992. border-top: 1px solid lighten($ui-base-color, 8%);
  1993. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1994. display: flex;
  1995. flex-direction: row;
  1996. padding: 10px 0;
  1997. }
  1998. .account--panel__button,
  1999. .detailed-status__button {
  2000. flex: 1 1 auto;
  2001. text-align: center;
  2002. }
  2003. .column-settings__outer {
  2004. background: lighten($ui-base-color, 8%);
  2005. padding: 15px;
  2006. }
  2007. .column-settings__section {
  2008. color: $ui-primary-color;
  2009. cursor: default;
  2010. display: block;
  2011. font-weight: 500;
  2012. margin-bottom: 10px;
  2013. }
  2014. .column-settings__row {
  2015. .text-btn {
  2016. margin-bottom: 15px;
  2017. }
  2018. }
  2019. .modal-container__nav {
  2020. align-items: center;
  2021. background: rgba($base-overlay-background, 0.5);
  2022. box-sizing: border-box;
  2023. border: 0;
  2024. color: $primary-text-color;
  2025. cursor: pointer;
  2026. display: flex;
  2027. font-size: 24px;
  2028. height: 100%;
  2029. padding: 30px 15px;
  2030. position: absolute;
  2031. top: 0;
  2032. }
  2033. .modal-container__nav--left {
  2034. left: -61px;
  2035. }
  2036. .modal-container__nav--right {
  2037. right: -61px;
  2038. }
  2039. .account--follows-info {
  2040. color: $primary-text-color;
  2041. position: absolute;
  2042. top: 10px;
  2043. right: 10px;
  2044. opacity: 0.7;
  2045. display: inline-block;
  2046. vertical-align: top;
  2047. background-color: rgba($base-overlay-background, 0.4);
  2048. text-transform: uppercase;
  2049. font-size: 11px;
  2050. font-weight: 500;
  2051. padding: 4px;
  2052. border-radius: 4px;
  2053. }
  2054. .account--action-button {
  2055. position: absolute;
  2056. top: 10px;
  2057. left: 20px;
  2058. }
  2059. .setting-toggle {
  2060. display: block;
  2061. line-height: 24px;
  2062. }
  2063. .setting-toggle__label,
  2064. .setting-meta__label {
  2065. color: $ui-primary-color;
  2066. display: inline-block;
  2067. margin-bottom: 14px;
  2068. margin-left: 8px;
  2069. vertical-align: middle;
  2070. }
  2071. .setting-meta__label {
  2072. color: $ui-primary-color;
  2073. float: right;
  2074. }
  2075. .empty-column-indicator,
  2076. .error-column {
  2077. color: lighten($ui-base-color, 20%);
  2078. background: $ui-base-color;
  2079. text-align: center;
  2080. padding: 20px;
  2081. font-size: 15px;
  2082. font-weight: 400;
  2083. cursor: default;
  2084. display: flex;
  2085. flex: 1 1 auto;
  2086. align-items: center;
  2087. justify-content: center;
  2088. @supports(display: grid) { // hack to fix Chrome <57
  2089. contain: strict;
  2090. }
  2091. a {
  2092. color: $ui-highlight-color;
  2093. text-decoration: none;
  2094. &:hover {
  2095. text-decoration: underline;
  2096. }
  2097. }
  2098. }
  2099. .error-column {
  2100. flex-direction: column;
  2101. }
  2102. @keyframes pulse {
  2103. 0% {
  2104. opacity: 1;
  2105. }
  2106. 100% {
  2107. opacity: 0.5;
  2108. }
  2109. }
  2110. .pulse-loading {
  2111. animation: pulse 1s ease-in-out infinite;
  2112. animation-direction: alternate;
  2113. }
  2114. .emoji-dialog {
  2115. width: 245px;
  2116. height: 270px;
  2117. background: $simple-background-color;
  2118. box-sizing: border-box;
  2119. border-radius: 4px;
  2120. overflow: hidden;
  2121. position: relative;
  2122. box-shadow: 0 0 8px rgba($base-shadow-color, 0.2);
  2123. .emojione {
  2124. margin: 0;
  2125. width: 100%;
  2126. height: auto;
  2127. }
  2128. .emoji-dialog-header {
  2129. padding: 0 10px;
  2130. ul {
  2131. padding: 0;
  2132. margin: 0;
  2133. list-style: none;
  2134. }
  2135. li {
  2136. display: inline-block;
  2137. box-sizing: border-box;
  2138. padding: 10px 5px;
  2139. cursor: pointer;
  2140. border-bottom: 2px solid transparent;
  2141. .emoji {
  2142. width: 18px;
  2143. height: 18px;
  2144. }
  2145. img,
  2146. svg {
  2147. width: 18px;
  2148. height: 18px;
  2149. filter: grayscale(100%);
  2150. }
  2151. &:hover {
  2152. img,
  2153. svg {
  2154. filter: grayscale(0);
  2155. }
  2156. }
  2157. &.active {
  2158. border-bottom-color: $ui-highlight-color;
  2159. img,
  2160. svg {
  2161. filter: grayscale(0);
  2162. }
  2163. }
  2164. }
  2165. }
  2166. .emoji-row {
  2167. box-sizing: border-box;
  2168. overflow-y: hidden;
  2169. padding-left: 10px;
  2170. .emoji {
  2171. display: inline-block;
  2172. padding: 2.5px;
  2173. border-radius: 4px;
  2174. }
  2175. }
  2176. .emoji-category-header {
  2177. box-sizing: border-box;
  2178. overflow-y: hidden;
  2179. padding: 10px 8px 10px 16px;
  2180. display: table;
  2181. > * {
  2182. display: table-cell;
  2183. vertical-align: middle;
  2184. }
  2185. }
  2186. .emoji-category-title {
  2187. font-size: 12px;
  2188. text-transform: uppercase;
  2189. font-weight: 500;
  2190. color: darken($ui-secondary-color, 18%);
  2191. cursor: default;
  2192. }
  2193. .emoji-category-heading-decoration {
  2194. text-align: right;
  2195. }
  2196. .modifiers {
  2197. list-style: none;
  2198. padding: 0;
  2199. margin: 0;
  2200. vertical-align: middle;
  2201. white-space: nowrap;
  2202. margin-top: 4px;
  2203. li {
  2204. display: inline-block;
  2205. padding: 0 2px;
  2206. &:last-of-type {
  2207. padding-right: 0;
  2208. }
  2209. }
  2210. .modifier {
  2211. display: inline-block;
  2212. border-radius: 10px;
  2213. width: 15px;
  2214. height: 15px;
  2215. position: relative;
  2216. cursor: pointer;
  2217. &.active::after {
  2218. content: "";
  2219. display: block;
  2220. position: absolute;
  2221. width: 7px;
  2222. height: 7px;
  2223. border-radius: 10px;
  2224. border: 2px solid $base-border-color;
  2225. top: 2px;
  2226. left: 2px;
  2227. }
  2228. }
  2229. }
  2230. .emoji-search-wrapper {
  2231. padding: 10px;
  2232. border-bottom: 1px solid lighten($ui-secondary-color, 4%);
  2233. }
  2234. .emoji-search {
  2235. font-size: 14px;
  2236. font-weight: 400;
  2237. padding: 7px 9px;
  2238. font-family: inherit;
  2239. display: block;
  2240. width: 100%;
  2241. background: rgba($ui-secondary-color, 0.3);
  2242. color: darken($ui-secondary-color, 18%);
  2243. border: 1px solid $ui-secondary-color;
  2244. border-radius: 4px;
  2245. }
  2246. .emoji-categories-wrapper {
  2247. position: absolute;
  2248. top: 42px;
  2249. bottom: 0;
  2250. left: 0;
  2251. right: 0;
  2252. }
  2253. .emoji-search-wrapper + .emoji-categories-wrapper {
  2254. top: 93px;
  2255. }
  2256. .emoji-row .emoji {
  2257. img,
  2258. svg {
  2259. transition: transform 60ms ease-in-out;
  2260. }
  2261. &:hover {
  2262. background: lighten($ui-secondary-color, 3%);
  2263. img,
  2264. svg {
  2265. transform: translateZ(0) scale(1.2);
  2266. }
  2267. }
  2268. }
  2269. .emoji {
  2270. width: 22px;
  2271. height: 22px;
  2272. cursor: pointer;
  2273. &:focus {
  2274. outline: 0;
  2275. }
  2276. }
  2277. }
  2278. .upload-area {
  2279. align-items: center;
  2280. background: rgba($base-overlay-background, 0.8);
  2281. display: flex;
  2282. height: 100%;
  2283. justify-content: center;
  2284. left: 0;
  2285. opacity: 0;
  2286. position: absolute;
  2287. top: 0;
  2288. visibility: hidden;
  2289. width: 100%;
  2290. z-index: 2000;
  2291. * {
  2292. pointer-events: none;
  2293. }
  2294. }
  2295. .upload-area__drop {
  2296. width: 320px;
  2297. height: 160px;
  2298. display: flex;
  2299. box-sizing: border-box;
  2300. position: relative;
  2301. padding: 8px;
  2302. }
  2303. .upload-area__background {
  2304. position: absolute;
  2305. top: 0;
  2306. right: 0;
  2307. bottom: 0;
  2308. left: 0;
  2309. z-index: -1;
  2310. border-radius: 4px;
  2311. background: $ui-base-color;
  2312. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2313. }
  2314. .upload-area__content {
  2315. flex: 1;
  2316. display: flex;
  2317. align-items: center;
  2318. justify-content: center;
  2319. color: $ui-secondary-color;
  2320. font-size: 18px;
  2321. font-weight: 500;
  2322. border: 2px dashed $ui-base-lighter-color;
  2323. border-radius: 4px;
  2324. }
  2325. .upload-progress {
  2326. padding: 10px;
  2327. color: $ui-base-lighter-color;
  2328. overflow: hidden;
  2329. display: flex;
  2330. .fa {
  2331. font-size: 34px;
  2332. margin-right: 10px;
  2333. }
  2334. span {
  2335. font-size: 12px;
  2336. text-transform: uppercase;
  2337. font-weight: 500;
  2338. display: block;
  2339. }
  2340. }
  2341. .upload-progess__message {
  2342. flex: 1 1 auto;
  2343. }
  2344. .upload-progress__backdrop {
  2345. width: 100%;
  2346. height: 6px;
  2347. border-radius: 6px;
  2348. background: $ui-base-lighter-color;
  2349. position: relative;
  2350. margin-top: 5px;
  2351. }
  2352. .upload-progress__tracker {
  2353. position: absolute;
  2354. left: 0;
  2355. top: 0;
  2356. height: 6px;
  2357. background: $ui-highlight-color;
  2358. border-radius: 6px;
  2359. }
  2360. .emoji-button {
  2361. display: block;
  2362. font-size: 24px;
  2363. line-height: 24px;
  2364. margin-left: 2px;
  2365. width: 24px;
  2366. outline: 0;
  2367. cursor: pointer;
  2368. &:active,
  2369. &:focus {
  2370. outline: 0 !important;
  2371. }
  2372. img {
  2373. filter: grayscale(100%);
  2374. opacity: 0.8;
  2375. display: block;
  2376. margin: 0;
  2377. width: 22px;
  2378. height: 22px;
  2379. margin-top: 2px;
  2380. }
  2381. &:hover,
  2382. &:active,
  2383. &:focus {
  2384. img {
  2385. opacity: 1;
  2386. filter: none;
  2387. }
  2388. }
  2389. }
  2390. .dropdown--active .emoji-button img {
  2391. opacity: 1;
  2392. filter: none;
  2393. }
  2394. .privacy-dropdown {
  2395. position: relative;
  2396. }
  2397. .privacy-dropdown__dropdown {
  2398. display: none;
  2399. position: absolute;
  2400. left: 0;
  2401. top: 27px;
  2402. width: 230px;
  2403. background: $simple-background-color;
  2404. border-radius: 0 4px 4px;
  2405. z-index: 2;
  2406. overflow: hidden;
  2407. }
  2408. .privacy-dropdown__option {
  2409. color: $ui-base-color;
  2410. padding: 10px;
  2411. cursor: pointer;
  2412. display: flex;
  2413. &:hover,
  2414. &.active {
  2415. background: $ui-highlight-color;
  2416. color: $primary-text-color;
  2417. .privacy-dropdown__option__content {
  2418. color: $primary-text-color;
  2419. strong {
  2420. color: $primary-text-color;
  2421. }
  2422. }
  2423. }
  2424. &.active:hover {
  2425. background: lighten($ui-highlight-color, 4%);
  2426. }
  2427. }
  2428. .privacy-dropdown__option__icon {
  2429. display: flex;
  2430. align-items: center;
  2431. justify-content: center;
  2432. margin-right: 10px;
  2433. }
  2434. .privacy-dropdown__option__content {
  2435. flex: 1 1 auto;
  2436. color: darken($ui-primary-color, 24%);
  2437. strong {
  2438. font-weight: 500;
  2439. display: block;
  2440. color: $ui-base-color;
  2441. }
  2442. }
  2443. .privacy-dropdown.active {
  2444. .privacy-dropdown__value {
  2445. background: $simple-background-color;
  2446. border-radius: 4px 4px 0 0;
  2447. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2448. }
  2449. .privacy-dropdown__dropdown {
  2450. display: block;
  2451. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2452. }
  2453. }
  2454. .search {
  2455. position: relative;
  2456. }
  2457. .search__input {
  2458. padding-right: 30px;
  2459. color: $ui-secondary-color;
  2460. outline: 0;
  2461. box-sizing: border-box;
  2462. display: block;
  2463. width: 100%;
  2464. border: none;
  2465. padding: 10px;
  2466. padding-right: 30px;
  2467. font-family: inherit;
  2468. background: $ui-base-color;
  2469. color: $ui-primary-color;
  2470. font-size: 14px;
  2471. margin: 0;
  2472. &::-moz-focus-inner {
  2473. border: 0;
  2474. }
  2475. &::-moz-focus-inner,
  2476. &:focus,
  2477. &:active {
  2478. outline: 0 !important;
  2479. }
  2480. &:focus {
  2481. background: lighten($ui-base-color, 4%);
  2482. }
  2483. @media screen and (max-width: 600px) {
  2484. font-size: 16px;
  2485. }
  2486. }
  2487. .search__icon {
  2488. .fa {
  2489. position: absolute;
  2490. top: 10px;
  2491. right: 10px;
  2492. z-index: 2;
  2493. display: inline-block;
  2494. opacity: 0;
  2495. transition: all 100ms linear;
  2496. font-size: 18px;
  2497. width: 18px;
  2498. height: 18px;
  2499. color: $ui-secondary-color;
  2500. cursor: default;
  2501. pointer-events: none;
  2502. &.active {
  2503. pointer-events: auto;
  2504. opacity: 0.3;
  2505. }
  2506. }
  2507. .fa-search {
  2508. transform: translateZ(0) rotate(90deg);
  2509. &.active {
  2510. pointer-events: none;
  2511. transform: translateZ(0) rotate(0deg);
  2512. }
  2513. }
  2514. .fa-times-circle {
  2515. top: 11px;
  2516. transform: translateZ(0) rotate(0deg);
  2517. cursor: pointer;
  2518. &.active {
  2519. transform: translateZ(0) rotate(90deg);
  2520. }
  2521. &:hover {
  2522. color: $primary-text-color;
  2523. }
  2524. }
  2525. }
  2526. .search-results__header {
  2527. color: $ui-base-lighter-color;
  2528. background: lighten($ui-base-color, 2%);
  2529. border-bottom: 1px solid darken($ui-base-color, 4%);
  2530. padding: 15px 10px;
  2531. font-size: 14px;
  2532. font-weight: 500;
  2533. }
  2534. .search-results__hashtag {
  2535. display: block;
  2536. padding: 10px;
  2537. color: $ui-secondary-color;
  2538. text-decoration: none;
  2539. &:hover,
  2540. &:active,
  2541. &:focus {
  2542. color: lighten($ui-secondary-color, 4%);
  2543. text-decoration: underline;
  2544. }
  2545. }
  2546. .modal-root__overlay {
  2547. position: absolute;
  2548. top: 0;
  2549. left: 0;
  2550. right: 0;
  2551. bottom: 0;
  2552. z-index: 9999;
  2553. opacity: 0;
  2554. background: rgba($base-overlay-background, 0.7);
  2555. transform: translateZ(0);
  2556. }
  2557. .modal-root__container {
  2558. position: absolute;
  2559. top: 0;
  2560. left: 0;
  2561. width: 100%;
  2562. height: 100%;
  2563. display: flex;
  2564. flex-direction: column;
  2565. align-items: center;
  2566. justify-content: center;
  2567. align-content: space-around;
  2568. z-index: 9999;
  2569. opacity: 0;
  2570. pointer-events: none;
  2571. user-select: none;
  2572. }
  2573. .modal-root__modal {
  2574. pointer-events: auto;
  2575. display: flex;
  2576. z-index: 9999;
  2577. }
  2578. .media-modal {
  2579. max-width: 80vw;
  2580. max-height: 80vh;
  2581. position: relative;
  2582. .extended-video-player,
  2583. img,
  2584. canvas,
  2585. video {
  2586. max-width: 80vw;
  2587. max-height: 80vh;
  2588. width: auto;
  2589. height: auto;
  2590. margin: auto;
  2591. }
  2592. .extended-video-player,
  2593. video {
  2594. display: flex;
  2595. width: 80vw;
  2596. height: 80vh;
  2597. }
  2598. img,
  2599. canvas {
  2600. display: block;
  2601. background: url('../images/void.png') repeat;
  2602. object-fit: contain;
  2603. }
  2604. .react-swipeable-view-container {
  2605. max-width: 80vw;
  2606. }
  2607. }
  2608. .media-modal__content {
  2609. background: $base-overlay-background;
  2610. }
  2611. .media-modal__close {
  2612. position: absolute;
  2613. right: 4px;
  2614. top: 4px;
  2615. z-index: 100;
  2616. }
  2617. .onboarding-modal,
  2618. .error-modal {
  2619. background: $ui-secondary-color;
  2620. color: $ui-base-color;
  2621. border-radius: 8px;
  2622. overflow: hidden;
  2623. display: flex;
  2624. flex-direction: column;
  2625. }
  2626. .onboarding-modal__pager {
  2627. height: 80vh;
  2628. width: 80vw;
  2629. max-width: 520px;
  2630. max-height: 420px;
  2631. .react-swipeable-view-container > div {
  2632. width: 100%;
  2633. height: 100%;
  2634. box-sizing: border-box;
  2635. padding: 25px;
  2636. display: none;
  2637. flex-direction: column;
  2638. align-items: center;
  2639. justify-content: center;
  2640. display: flex;
  2641. user-select: text;
  2642. }
  2643. }
  2644. .error-modal__body {
  2645. height: 80vh;
  2646. width: 80vw;
  2647. max-width: 520px;
  2648. max-height: 420px;
  2649. position: relative;
  2650. & > div {
  2651. position: absolute;
  2652. top: 0;
  2653. left: 0;
  2654. width: 100%;
  2655. height: 100%;
  2656. box-sizing: border-box;
  2657. padding: 25px;
  2658. display: none;
  2659. flex-direction: column;
  2660. align-items: center;
  2661. justify-content: center;
  2662. display: flex;
  2663. opacity: 0;
  2664. user-select: text;
  2665. }
  2666. }
  2667. .error-modal__body {
  2668. display: flex;
  2669. flex-direction: column;
  2670. justify-content: center;
  2671. align-items: center;
  2672. text-align: center;
  2673. }
  2674. @media screen and (max-width: 550px) {
  2675. .onboarding-modal {
  2676. width: 100%;
  2677. height: 100%;
  2678. border-radius: 0;
  2679. }
  2680. .onboarding-modal__pager {
  2681. width: 100%;
  2682. height: auto;
  2683. max-width: none;
  2684. max-height: none;
  2685. flex: 1 1 auto;
  2686. }
  2687. }
  2688. .onboarding-modal__paginator,
  2689. .error-modal__footer {
  2690. flex: 0 0 auto;
  2691. background: darken($ui-secondary-color, 8%);
  2692. display: flex;
  2693. padding: 25px;
  2694. & > div {
  2695. min-width: 33px;
  2696. }
  2697. .onboarding-modal__nav,
  2698. .error-modal__nav {
  2699. color: darken($ui-secondary-color, 34%);
  2700. background-color: transparent;
  2701. border: 0;
  2702. font-size: 14px;
  2703. font-weight: 500;
  2704. padding: 0;
  2705. line-height: inherit;
  2706. height: auto;
  2707. &:hover,
  2708. &:focus,
  2709. &:active {
  2710. color: darken($ui-secondary-color, 38%);
  2711. }
  2712. &.onboarding-modal__done,
  2713. &.onboarding-modal__next {
  2714. color: $ui-highlight-color;
  2715. }
  2716. }
  2717. }
  2718. .error-modal__footer {
  2719. justify-content: center;
  2720. }
  2721. .onboarding-modal__dots {
  2722. flex: 1 1 auto;
  2723. display: flex;
  2724. align-items: center;
  2725. justify-content: center;
  2726. }
  2727. .onboarding-modal__dot {
  2728. width: 14px;
  2729. height: 14px;
  2730. border-radius: 14px;
  2731. background: darken($ui-secondary-color, 16%);
  2732. margin: 0 3px;
  2733. cursor: pointer;
  2734. &:hover {
  2735. background: darken($ui-secondary-color, 18%);
  2736. }
  2737. &.active {
  2738. cursor: default;
  2739. background: darken($ui-secondary-color, 24%);
  2740. }
  2741. }
  2742. .onboarding-modal__page__wrapper {
  2743. pointer-events: none;
  2744. &.onboarding-modal__page__wrapper--active {
  2745. pointer-events: auto;
  2746. }
  2747. }
  2748. .onboarding-modal__page {
  2749. cursor: default;
  2750. line-height: 21px;
  2751. h1 {
  2752. font-size: 18px;
  2753. font-weight: 500;
  2754. color: $ui-base-color;
  2755. margin-bottom: 20px;
  2756. }
  2757. a {
  2758. color: $ui-highlight-color;
  2759. &:hover,
  2760. &:focus,
  2761. &:active {
  2762. color: lighten($ui-highlight-color, 4%);
  2763. }
  2764. }
  2765. p {
  2766. font-size: 16px;
  2767. color: lighten($ui-base-color, 8%);
  2768. margin-top: 10px;
  2769. margin-bottom: 10px;
  2770. &:last-child {
  2771. margin-bottom: 0;
  2772. }
  2773. strong {
  2774. font-weight: 500;
  2775. background: $ui-base-color;
  2776. color: $ui-secondary-color;
  2777. border-radius: 4px;
  2778. font-size: 14px;
  2779. padding: 3px 6px;
  2780. }
  2781. }
  2782. }
  2783. .onboarding-modal__page-one {
  2784. display: flex;
  2785. align-items: center;
  2786. }
  2787. .onboarding-modal__page-one__elephant-friend {
  2788. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2789. width: 155px;
  2790. height: 193px;
  2791. margin-right: 15px;
  2792. }
  2793. @media screen and (max-width: 400px) {
  2794. .onboarding-modal__page-one {
  2795. flex-direction: column;
  2796. align-items: normal;
  2797. }
  2798. .onboarding-modal__page-one__elephant-friend {
  2799. width: 100%;
  2800. height: 30vh;
  2801. max-height: 160px;
  2802. margin-bottom: 5vh;
  2803. }
  2804. }
  2805. .onboarding-modal__page-two,
  2806. .onboarding-modal__page-three,
  2807. .onboarding-modal__page-four,
  2808. .onboarding-modal__page-five {
  2809. p {
  2810. text-align: left;
  2811. }
  2812. .figure {
  2813. background: darken($ui-base-color, 8%);
  2814. color: $ui-secondary-color;
  2815. margin-bottom: 20px;
  2816. border-radius: 4px;
  2817. padding: 10px;
  2818. text-align: center;
  2819. font-size: 14px;
  2820. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2821. .onboarding-modal__image {
  2822. border-radius: 4px;
  2823. margin-bottom: 10px;
  2824. }
  2825. &.non-interactive {
  2826. pointer-events: none;
  2827. text-align: left;
  2828. }
  2829. }
  2830. }
  2831. .onboarding-modal__page-four__columns {
  2832. .row {
  2833. display: flex;
  2834. margin-bottom: 20px;
  2835. & > div {
  2836. flex: 1 1 0;
  2837. margin: 0 10px;
  2838. &:first-child {
  2839. margin-left: 0;
  2840. }
  2841. &:last-child {
  2842. margin-right: 0;
  2843. }
  2844. p {
  2845. text-align: center;
  2846. }
  2847. }
  2848. &:last-child {
  2849. margin-bottom: 0;
  2850. }
  2851. }
  2852. .column-header {
  2853. color: $primary-text-color;
  2854. }
  2855. }
  2856. @media screen and (max-width: 320px) and (max-height: 600px) {
  2857. .onboarding-modal__page p {
  2858. font-size: 14px;
  2859. line-height: 20px;
  2860. }
  2861. .onboarding-modal__page-two .figure,
  2862. .onboarding-modal__page-three .figure,
  2863. .onboarding-modal__page-four .figure,
  2864. .onboarding-modal__page-five .figure {
  2865. font-size: 12px;
  2866. margin-bottom: 10px;
  2867. }
  2868. .onboarding-modal__page-four__columns .row {
  2869. margin-bottom: 10px;
  2870. }
  2871. .onboarding-modal__page-four__columns .column-header {
  2872. padding: 5px;
  2873. font-size: 12px;
  2874. }
  2875. }
  2876. .onboarding-modal__image {
  2877. border-radius: 8px;
  2878. width: 70vw;
  2879. max-width: 450px;
  2880. max-height: auto;
  2881. display: block;
  2882. margin: auto;
  2883. margin-bottom: 20px;
  2884. }
  2885. .onboard-sliders {
  2886. display: inline-block;
  2887. max-width: 30px;
  2888. max-height: auto;
  2889. margin-left: 10px;
  2890. }
  2891. .boost-modal,
  2892. .confirmation-modal,
  2893. .report-modal,
  2894. .actions-modal {
  2895. background: lighten($ui-secondary-color, 8%);
  2896. color: $ui-base-color;
  2897. border-radius: 8px;
  2898. overflow: hidden;
  2899. max-width: 90vw;
  2900. width: 480px;
  2901. position: relative;
  2902. flex-direction: column;
  2903. .status__display-name {
  2904. display: block;
  2905. max-width: 100%;
  2906. padding-right: 25px;
  2907. }
  2908. .status__avatar {
  2909. height: 28px;
  2910. left: 10px;
  2911. position: absolute;
  2912. top: 10px;
  2913. width: 48px;
  2914. }
  2915. }
  2916. .actions-modal {
  2917. .status {
  2918. background: $white;
  2919. border-bottom-color: $ui-secondary-color;
  2920. padding-top: 10px;
  2921. padding-bottom: 10px;
  2922. }
  2923. }
  2924. .boost-modal__container {
  2925. overflow-x: scroll;
  2926. padding: 10px;
  2927. .status {
  2928. user-select: text;
  2929. border-bottom: 0;
  2930. }
  2931. }
  2932. .boost-modal__action-bar,
  2933. .confirmation-modal__action-bar,
  2934. .report-modal__action-bar {
  2935. display: flex;
  2936. justify-content: space-between;
  2937. background: $ui-secondary-color;
  2938. padding: 10px;
  2939. line-height: 36px;
  2940. & > div {
  2941. flex: 1 1 auto;
  2942. text-align: right;
  2943. color: lighten($ui-base-color, 33%);
  2944. padding-right: 10px;
  2945. }
  2946. .button {
  2947. flex: 0 0 auto;
  2948. }
  2949. }
  2950. .boost-modal__status-header {
  2951. font-size: 15px;
  2952. }
  2953. .boost-modal__status-time {
  2954. float: right;
  2955. font-size: 14px;
  2956. }
  2957. .confirmation-modal {
  2958. max-width: 85vw;
  2959. @media screen and (min-width: 480px) {
  2960. max-width: 380px;
  2961. }
  2962. }
  2963. .report-modal__statuses,
  2964. .report-modal__comment {
  2965. padding: 10px;
  2966. }
  2967. .report-modal__statuses {
  2968. min-height: 20vh;
  2969. max-height: 40vh;
  2970. overflow-y: auto;
  2971. overflow-x: hidden;
  2972. }
  2973. .report-modal__comment {
  2974. .setting-text {
  2975. margin-top: 10px;
  2976. }
  2977. }
  2978. .actions-modal {
  2979. .status {
  2980. overflow-y: auto;
  2981. max-height: 300px;
  2982. }
  2983. max-height: 80vh;
  2984. max-width: 80vw;
  2985. ul {
  2986. overflow-y: auto;
  2987. flex-shrink: 0;
  2988. li:empty {
  2989. margin: 0;
  2990. }
  2991. li:not(:empty) {
  2992. a {
  2993. color: $ui-base-color;
  2994. display: flex;
  2995. padding: 10px;
  2996. align-items: center;
  2997. text-decoration: none;
  2998. &.active {
  2999. &,
  3000. button {
  3001. background: $ui-highlight-color;
  3002. color: $primary-text-color;
  3003. }
  3004. }
  3005. button:first-child {
  3006. margin-right: 10px;
  3007. }
  3008. }
  3009. }
  3010. }
  3011. }
  3012. .confirmation-modal__action-bar {
  3013. .confirmation-modal__cancel-button {
  3014. background-color: transparent;
  3015. color: darken($ui-secondary-color, 34%);
  3016. font-size: 14px;
  3017. font-weight: 500;
  3018. &:hover,
  3019. &:focus,
  3020. &:active {
  3021. color: darken($ui-secondary-color, 38%);
  3022. }
  3023. }
  3024. }
  3025. .confirmation-modal__container,
  3026. .report-modal__target {
  3027. padding: 30px;
  3028. font-size: 16px;
  3029. text-align: center;
  3030. strong {
  3031. font-weight: 500;
  3032. }
  3033. }
  3034. .loading-bar {
  3035. background-color: $ui-highlight-color;
  3036. height: 3px;
  3037. position: absolute;
  3038. top: 0;
  3039. left: 0;
  3040. }
  3041. .media-gallery__gifv__label {
  3042. display: block;
  3043. position: absolute;
  3044. color: $primary-text-color;
  3045. background: rgba($base-overlay-background, 0.5);
  3046. bottom: 6px;
  3047. left: 6px;
  3048. padding: 2px 6px;
  3049. border-radius: 2px;
  3050. font-size: 11px;
  3051. font-weight: 600;
  3052. z-index: 1;
  3053. pointer-events: none;
  3054. opacity: 0.9;
  3055. transition: opacity 0.1s ease;
  3056. }
  3057. .media-gallery__gifv {
  3058. &.autoplay {
  3059. .media-gallery__gifv__label {
  3060. display: none;
  3061. }
  3062. }
  3063. &:hover {
  3064. .media-gallery__gifv__label {
  3065. opacity: 1;
  3066. }
  3067. }
  3068. }
  3069. .attachment-list {
  3070. display: flex;
  3071. font-size: 14px;
  3072. border: 1px solid lighten($ui-base-color, 8%);
  3073. border-radius: 4px;
  3074. margin-top: 14px;
  3075. overflow: hidden;
  3076. }
  3077. .attachment-list__icon {
  3078. flex: 0 0 auto;
  3079. color: $ui-base-lighter-color;
  3080. padding: 8px 18px;
  3081. cursor: default;
  3082. border-right: 1px solid lighten($ui-base-color, 8%);
  3083. display: flex;
  3084. flex-direction: column;
  3085. align-items: center;
  3086. justify-content: center;
  3087. font-size: 26px;
  3088. .fa {
  3089. display: block;
  3090. }
  3091. }
  3092. .attachment-list__list {
  3093. list-style: none;
  3094. padding: 4px 0;
  3095. padding-left: 8px;
  3096. display: flex;
  3097. flex-direction: column;
  3098. justify-content: center;
  3099. li {
  3100. display: block;
  3101. padding: 4px 0;
  3102. }
  3103. a {
  3104. text-decoration: none;
  3105. color: $ui-base-lighter-color;
  3106. font-weight: 500;
  3107. &:hover {
  3108. text-decoration: underline;
  3109. }
  3110. }
  3111. }
  3112. /* Media Gallery */
  3113. .media-gallery {
  3114. box-sizing: border-box;
  3115. margin-top: 8px;
  3116. overflow: hidden;
  3117. position: relative;
  3118. width: 100%;
  3119. }
  3120. .media-gallery__item {
  3121. border: none;
  3122. box-sizing: border-box;
  3123. display: block;
  3124. float: left;
  3125. position: relative;
  3126. }
  3127. .media-gallery__item-thumbnail {
  3128. cursor: zoom-in;
  3129. display: block;
  3130. text-decoration: none;
  3131. height: 100%;
  3132. &,
  3133. img {
  3134. width: 100%;
  3135. height: 100%;
  3136. object-fit: cover;
  3137. }
  3138. }
  3139. .media-gallery__gifv {
  3140. height: 100%;
  3141. overflow: hidden;
  3142. position: relative;
  3143. width: 100%;
  3144. }
  3145. .media-gallery__item-gifv-thumbnail {
  3146. cursor: zoom-in;
  3147. height: 100%;
  3148. object-fit: cover;
  3149. position: relative;
  3150. top: 50%;
  3151. transform: translateY(-50%);
  3152. width: 100%;
  3153. z-index: 1;
  3154. }
  3155. .media-gallery__item-thumbnail-label {
  3156. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3157. clip: rect(1px, 1px, 1px, 1px);
  3158. overflow: hidden;
  3159. position: absolute;
  3160. }
  3161. /* End Media Gallery */
  3162. /* Status Video Player */
  3163. .status__video-player {
  3164. background: $base-overlay-background;
  3165. box-sizing: border-box;
  3166. cursor: default; /* May not be needed */
  3167. margin-top: 8px;
  3168. overflow: hidden;
  3169. position: relative;
  3170. }
  3171. .status__video-player-video {
  3172. height: 100%;
  3173. object-fit: cover;
  3174. position: relative;
  3175. top: 50%;
  3176. transform: translateY(-50%);
  3177. width: 100%;
  3178. z-index: 1;
  3179. }
  3180. .status__video-player-expand,
  3181. .status__video-player-mute {
  3182. color: $primary-text-color;
  3183. opacity: 0.8;
  3184. position: absolute;
  3185. right: 4px;
  3186. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3187. }
  3188. .status__video-player-spoiler {
  3189. display: none;
  3190. color: $primary-text-color;
  3191. left: 4px;
  3192. position: absolute;
  3193. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3194. top: 4px;
  3195. z-index: 100;
  3196. &.status__video-player-spoiler--visible {
  3197. display: block;
  3198. }
  3199. }
  3200. .status__video-player-expand {
  3201. bottom: 4px;
  3202. z-index: 100;
  3203. }
  3204. .status__video-player-mute {
  3205. top: 4px;
  3206. z-index: 5;
  3207. }
  3208. .media-spoiler-video {
  3209. background-size: cover;
  3210. background-repeat: no-repeat;
  3211. background-position: center;
  3212. cursor: pointer;
  3213. margin-top: 8px;
  3214. position: relative;
  3215. }
  3216. .media-spoiler-video-play-icon {
  3217. border-radius: 100px;
  3218. color: rgba($primary-text-color, 0.8);
  3219. font-size: 36px;
  3220. left: 50%;
  3221. padding: 5px;
  3222. position: absolute;
  3223. top: 50%;
  3224. transform: translate(-50%, -50%);
  3225. }
  3226. /* End Video Player */
  3227. .account-gallery__container {
  3228. margin: -2px;
  3229. padding: 4px;
  3230. }
  3231. .account-gallery__item {
  3232. float: left;
  3233. width: 96px;
  3234. height: 96px;
  3235. margin: 2px;
  3236. a {
  3237. display: block;
  3238. width: 100%;
  3239. height: 100%;
  3240. background-color: $base-overlay-background;
  3241. background-size: cover;
  3242. background-position: center;
  3243. position: relative;
  3244. }
  3245. }
  3246. .account-section-headline {
  3247. color: $ui-base-lighter-color;
  3248. background: lighten($ui-base-color, 2%);
  3249. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3250. padding: 15px 10px;
  3251. font-size: 14px;
  3252. font-weight: 500;
  3253. position: relative;
  3254. cursor: default;
  3255. &::before,
  3256. &::after {
  3257. display: block;
  3258. content: "";
  3259. position: absolute;
  3260. bottom: 0;
  3261. left: 18px;
  3262. width: 0;
  3263. height: 0;
  3264. border-style: solid;
  3265. border-width: 0 10px 10px;
  3266. border-color: transparent transparent lighten($ui-base-color, 4%);
  3267. }
  3268. &::after {
  3269. bottom: -1px;
  3270. border-color: transparent transparent $ui-base-color;
  3271. }
  3272. }
  3273. ::-webkit-scrollbar-thumb {
  3274. border-radius: 0;
  3275. }
  3276. noscript {
  3277. text-align: center;
  3278. img {
  3279. width: 200px;
  3280. opacity: 0.5;
  3281. animation: flicker 4s infinite;
  3282. }
  3283. div {
  3284. font-size: 14px;
  3285. margin: 30px auto;
  3286. color: $ui-secondary-color;
  3287. max-width: 400px;
  3288. }
  3289. }
  3290. @keyframes flicker {
  3291. 0% { opacity: 1; }
  3292. 30% { opacity: 0.75; }
  3293. 100% { opacity: 1; }
  3294. }
  3295. @media screen and (max-width: 1024px) and (max-height: 400px) {
  3296. $duration: 400ms;
  3297. $delay: 100ms;
  3298. .tabs-bar,
  3299. .search {
  3300. will-change: margin-top;
  3301. transition: margin-top $duration $delay;
  3302. }
  3303. .navigation-bar {
  3304. will-change: padding-bottom;
  3305. transition: padding-bottom $duration $delay;
  3306. }
  3307. .navigation-bar {
  3308. & > a:first-child {
  3309. will-change: margin-top, margin-left, width;
  3310. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3311. }
  3312. & > .navigation-bar__profile-edit {
  3313. will-change: margin-top;
  3314. transition: margin-top $duration $delay;
  3315. }
  3316. & > .icon-button {
  3317. will-change: opacity;
  3318. transition: opacity $duration $delay;
  3319. }
  3320. }
  3321. .is-composing {
  3322. .tabs-bar,
  3323. .search {
  3324. margin-top: -50px;
  3325. }
  3326. .navigation-bar {
  3327. padding-bottom: 0;
  3328. & > a:first-child {
  3329. margin-top: -50px;
  3330. margin-left: -40px;
  3331. }
  3332. .navigation-bar__profile {
  3333. padding-top: 2px;
  3334. }
  3335. .navigation-bar__profile-edit {
  3336. position: absolute;
  3337. margin-top: -50px;
  3338. }
  3339. .icon-button {
  3340. pointer-events: auto;
  3341. opacity: 1;
  3342. }
  3343. }
  3344. }
  3345. }