components.scss 66 KB

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