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

3715 lines
61 KiB

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