闭社主体 forked from https://github.com/tootsuite/mastodon
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.

3721 lines
61 KiB

7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 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
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
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
  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. max-width: 100%;
  955. max-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. justify-content: center;
  1098. height: 100%;
  1099. }
  1100. .column {
  1101. width: 330px;
  1102. position: relative;
  1103. box-sizing: border-box;
  1104. display: flex;
  1105. flex-direction: column;
  1106. > .scrollable {
  1107. background: $ui-base-color;
  1108. }
  1109. }
  1110. .ui {
  1111. flex: 0 0 auto;
  1112. display: flex;
  1113. flex-direction: column;
  1114. width: 100%;
  1115. height: 100%;
  1116. background: darken($ui-base-color, 7%);
  1117. }
  1118. .drawer {
  1119. width: 300px;
  1120. box-sizing: border-box;
  1121. display: flex;
  1122. flex-direction: column;
  1123. overflow-y: hidden;
  1124. }
  1125. .drawer__tab {
  1126. display: block;
  1127. flex: 1 1 auto;
  1128. padding: 15px 5px 13px;
  1129. color: $ui-primary-color;
  1130. text-decoration: none;
  1131. text-align: center;
  1132. font-size: 16px;
  1133. border-bottom: 2px solid transparent;
  1134. }
  1135. .column,
  1136. .drawer {
  1137. flex: 1 1 100%;
  1138. overflow: hidden;
  1139. @supports(display: grid) { // hack to fix Chrome <57
  1140. contain: strict;
  1141. }
  1142. }
  1143. @media screen and (min-width: 360px) {
  1144. .tabs-bar {
  1145. margin: 10px;
  1146. margin-bottom: 0;
  1147. }
  1148. .search {
  1149. margin-bottom: 10px;
  1150. }
  1151. }
  1152. @media screen and (max-width: 1024px) {
  1153. .column,
  1154. .drawer {
  1155. width: 100%;
  1156. padding: 0;
  1157. }
  1158. .columns-area {
  1159. flex-direction: column;
  1160. }
  1161. .search__input,
  1162. .autosuggest-textarea__textarea {
  1163. font-size: 16px;
  1164. }
  1165. }
  1166. @media screen and (min-width: 1025px) {
  1167. .columns-area {
  1168. padding: 0;
  1169. }
  1170. .column,
  1171. .drawer {
  1172. flex: 0 0 auto;
  1173. padding: 10px;
  1174. padding-left: 5px;
  1175. padding-right: 5px;
  1176. &:first-child {
  1177. padding-left: 10px;
  1178. }
  1179. &:last-child {
  1180. padding-right: 10px;
  1181. }
  1182. }
  1183. .columns-area > div {
  1184. .column,
  1185. .drawer {
  1186. padding-left: 5px;
  1187. padding-right: 5px;
  1188. }
  1189. }
  1190. }
  1191. .drawer__pager {
  1192. box-sizing: border-box;
  1193. padding: 0;
  1194. flex-grow: 1;
  1195. position: relative;
  1196. overflow: hidden;
  1197. display: flex;
  1198. }
  1199. .drawer__inner {
  1200. position: absolute;
  1201. top: 0;
  1202. left: 0;
  1203. background: lighten($ui-base-color, 13%);
  1204. box-sizing: border-box;
  1205. padding: 0;
  1206. display: flex;
  1207. flex-direction: column;
  1208. overflow: hidden;
  1209. overflow-y: auto;
  1210. width: 100%;
  1211. height: 100%;
  1212. &.darker {
  1213. background: $ui-base-color;
  1214. }
  1215. }
  1216. .pseudo-drawer {
  1217. background: lighten($ui-base-color, 13%);
  1218. font-size: 13px;
  1219. text-align: left;
  1220. }
  1221. .drawer__header {
  1222. flex: 0 0 auto;
  1223. font-size: 16px;
  1224. background: lighten($ui-base-color, 8%);
  1225. margin-bottom: 10px;
  1226. display: flex;
  1227. flex-direction: row;
  1228. a {
  1229. transition: background 100ms ease-in;
  1230. &:hover {
  1231. background: lighten($ui-base-color, 3%);
  1232. transition: background 200ms ease-out;
  1233. }
  1234. }
  1235. }
  1236. .tabs-bar {
  1237. display: flex;
  1238. background: lighten($ui-base-color, 8%);
  1239. flex: 0 0 auto;
  1240. overflow-y: auto;
  1241. }
  1242. .tabs-bar__link {
  1243. display: block;
  1244. flex: 1 1 auto;
  1245. padding: 15px 10px;
  1246. color: $primary-text-color;
  1247. text-decoration: none;
  1248. text-align: center;
  1249. font-size: 14px;
  1250. font-weight: 500;
  1251. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1252. transition: all 200ms linear;
  1253. .fa {
  1254. font-weight: 400;
  1255. font-size: 16px;
  1256. }
  1257. &.active {
  1258. border-bottom: 2px solid $ui-highlight-color;
  1259. color: $ui-highlight-color;
  1260. }
  1261. &:hover,
  1262. &:focus,
  1263. &:active {
  1264. @media screen and (min-width: 1025px) {
  1265. background: lighten($ui-base-color, 14%);
  1266. transition: all 100ms linear;
  1267. }
  1268. }
  1269. span {
  1270. margin-left: 5px;
  1271. display: none;
  1272. }
  1273. }
  1274. @media screen and (min-width: 600px) {
  1275. .tabs-bar__link {
  1276. span {
  1277. display: inline;
  1278. }
  1279. }
  1280. }
  1281. @media screen and (min-width: 1025px) {
  1282. .tabs-bar {
  1283. display: none;
  1284. }
  1285. }
  1286. .scrollable {
  1287. overflow-y: scroll;
  1288. overflow-x: hidden;
  1289. flex: 1 1 auto;
  1290. backface-visibility: hidden;
  1291. -webkit-overflow-scrolling: touch;
  1292. @supports(display: grid) { // hack to fix Chrome <57
  1293. contain: strict;
  1294. }
  1295. &.optionally-scrollable {
  1296. overflow-y: auto;
  1297. }
  1298. }
  1299. .column-back-button {
  1300. background: lighten($ui-base-color, 4%);
  1301. color: $ui-highlight-color;
  1302. cursor: pointer;
  1303. flex: 0 0 auto;
  1304. font-size: 16px;
  1305. padding: 15px;
  1306. z-index: 3;
  1307. &:hover {
  1308. text-decoration: underline;
  1309. }
  1310. }
  1311. .column-header__back-button {
  1312. background: lighten($ui-base-color, 4%);
  1313. border: 0;
  1314. font-family: inherit;
  1315. color: $ui-highlight-color;
  1316. cursor: pointer;
  1317. flex: 0 0 auto;
  1318. font-size: 16px;
  1319. padding: 0 5px 0 0;
  1320. z-index: 3;
  1321. &:hover {
  1322. text-decoration: underline;
  1323. }
  1324. }
  1325. .column-back-button__icon {
  1326. display: inline-block;
  1327. margin-right: 5px;
  1328. }
  1329. .column-back-button--slim {
  1330. position: relative;
  1331. }
  1332. .column-back-button--slim-button {
  1333. cursor: pointer;
  1334. flex: 0 0 auto;
  1335. font-size: 16px;
  1336. padding: 15px;
  1337. position: absolute;
  1338. right: 0;
  1339. top: -48px;
  1340. }
  1341. .react-toggle {
  1342. display: inline-block;
  1343. position: relative;
  1344. cursor: pointer;
  1345. background-color: transparent;
  1346. border: 0;
  1347. padding: 0;
  1348. user-select: none;
  1349. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1350. -webkit-tap-highlight-color: transparent;
  1351. }
  1352. .react-toggle-screenreader-only {
  1353. border: 0;
  1354. clip: rect(0 0 0 0);
  1355. height: 1px;
  1356. margin: -1px;
  1357. overflow: hidden;
  1358. padding: 0;
  1359. position: absolute;
  1360. width: 1px;
  1361. }
  1362. .react-toggle--disabled {
  1363. cursor: not-allowed;
  1364. opacity: 0.5;
  1365. transition: opacity 0.25s;
  1366. }
  1367. .react-toggle-track {
  1368. width: 50px;
  1369. height: 24px;
  1370. padding: 0;
  1371. border-radius: 30px;
  1372. background-color: $ui-base-color;
  1373. transition: all 0.2s ease;
  1374. }
  1375. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1376. background-color: darken($ui-base-color, 10%);
  1377. }
  1378. .react-toggle--checked .react-toggle-track {
  1379. background-color: $ui-highlight-color;
  1380. }
  1381. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1382. background-color: lighten($ui-highlight-color, 10%);
  1383. }
  1384. .react-toggle-track-check {
  1385. position: absolute;
  1386. width: 14px;
  1387. height: 10px;
  1388. top: 0;
  1389. bottom: 0;
  1390. margin-top: auto;
  1391. margin-bottom: auto;
  1392. line-height: 0;
  1393. left: 8px;
  1394. opacity: 0;
  1395. transition: opacity 0.25s ease;
  1396. }
  1397. .react-toggle--checked .react-toggle-track-check {
  1398. opacity: 1;
  1399. transition: opacity 0.25s ease;
  1400. }
  1401. .react-toggle-track-x {
  1402. position: absolute;
  1403. width: 10px;
  1404. height: 10px;
  1405. top: 0;
  1406. bottom: 0;
  1407. margin-top: auto;
  1408. margin-bottom: auto;
  1409. line-height: 0;
  1410. right: 10px;
  1411. opacity: 1;
  1412. transition: opacity 0.25s ease;
  1413. }
  1414. .react-toggle--checked .react-toggle-track-x {
  1415. opacity: 0;
  1416. }
  1417. .react-toggle-thumb {
  1418. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1419. position: absolute;
  1420. top: 1px;
  1421. left: 1px;
  1422. width: 22px;
  1423. height: 22px;
  1424. border: 1px solid $ui-base-color;
  1425. border-radius: 50%;
  1426. background-color: darken($simple-background-color, 2%);
  1427. box-sizing: border-box;
  1428. transition: all 0.25s ease;
  1429. }
  1430. .react-toggle--checked .react-toggle-thumb {
  1431. left: 27px;
  1432. border-color: $ui-highlight-color;
  1433. }
  1434. .column-link {
  1435. background: lighten($ui-base-color, 8%);
  1436. color: $primary-text-color;
  1437. display: block;
  1438. font-size: 16px;
  1439. padding: 15px;
  1440. text-decoration: none;
  1441. &:hover {
  1442. background: lighten($ui-base-color, 11%);
  1443. }
  1444. &.hidden-on-mobile {
  1445. @media screen and (max-width: 1024px) {
  1446. display: none;
  1447. }
  1448. }
  1449. }
  1450. .column-link__icon {
  1451. display: inline-block;
  1452. margin-right: 5px;
  1453. }
  1454. .column-subheading {
  1455. background: $ui-base-color;
  1456. color: lighten($ui-base-color, 26%);
  1457. padding: 8px 20px;
  1458. font-size: 12px;
  1459. font-weight: 500;
  1460. text-transform: uppercase;
  1461. cursor: default;
  1462. }
  1463. .autosuggest-textarea,
  1464. .spoiler-input {
  1465. position: relative;
  1466. }
  1467. .autosuggest-textarea__textarea,
  1468. .spoiler-input__input {
  1469. display: block;
  1470. box-sizing: border-box;
  1471. width: 100%;
  1472. margin: 0;
  1473. color: $ui-base-color;
  1474. background: $simple-background-color;
  1475. padding: 10px;
  1476. font-family: inherit;
  1477. font-size: 14px;
  1478. resize: vertical;
  1479. border: 0;
  1480. outline: 0;
  1481. &:focus {
  1482. outline: 0;
  1483. }
  1484. @media screen and (max-width: 600px) {
  1485. font-size: 16px;
  1486. }
  1487. }
  1488. .spoiler-input__input {
  1489. border-radius: 4px;
  1490. }
  1491. .autosuggest-textarea__textarea {
  1492. min-height: 100px;
  1493. border-radius: 4px 4px 0 0;
  1494. padding-bottom: 0;
  1495. padding-right: 10px + 22px;
  1496. resize: none;
  1497. @media screen and (max-width: 600px) {
  1498. height: 100px !important; // prevent auto-resize textarea
  1499. resize: vertical;
  1500. }
  1501. }
  1502. .autosuggest-textarea__suggestions {
  1503. display: none;
  1504. position: absolute;
  1505. top: 100%;
  1506. width: 100%;
  1507. z-index: 99;
  1508. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1509. background: $ui-secondary-color;
  1510. color: $ui-base-color;
  1511. font-size: 14px;
  1512. &.autosuggest-textarea__suggestions--visible {
  1513. display: block;
  1514. }
  1515. }
  1516. .autosuggest-textarea__suggestions__item {
  1517. padding: 10px;
  1518. cursor: pointer;
  1519. &:hover {
  1520. background: darken($ui-secondary-color, 10%);
  1521. }
  1522. &.selected {
  1523. background: $ui-highlight-color;
  1524. color: $base-border-color;
  1525. }
  1526. }
  1527. .autosuggest-account {
  1528. overflow: hidden;
  1529. }
  1530. .autosuggest-account-icon {
  1531. float: left;
  1532. margin-right: 5px;
  1533. }
  1534. .autosuggest-status {
  1535. overflow: hidden;
  1536. white-space: nowrap;
  1537. text-overflow: ellipsis;
  1538. strong {
  1539. font-weight: 500;
  1540. }
  1541. }
  1542. .character-counter__wrapper {
  1543. line-height: 36px;
  1544. margin-right: 16px;
  1545. padding-top: 10px;
  1546. }
  1547. .character-counter {
  1548. cursor: default;
  1549. font-size: 16px;
  1550. }
  1551. .character-counter--over {
  1552. color: $warning-red;
  1553. }
  1554. .getting-started__wrapper {
  1555. position: relative;
  1556. flex: 0 0 auto;
  1557. }
  1558. .getting-started__footer {
  1559. display: flex;
  1560. flex-direction: column;
  1561. }
  1562. .getting-started {
  1563. box-sizing: border-box;
  1564. padding-bottom: 235px;
  1565. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1566. flex: 1 0 auto;
  1567. p {
  1568. color: $ui-secondary-color;
  1569. }
  1570. a {
  1571. color: lighten($ui-base-color, 26%);
  1572. }
  1573. }
  1574. .setting-text {
  1575. color: $ui-primary-color;
  1576. background: transparent;
  1577. border: none;
  1578. border-bottom: 2px solid $ui-primary-color;
  1579. box-sizing: border-box;
  1580. display: block;
  1581. font-family: inherit;
  1582. margin-bottom: 10px;
  1583. padding: 7px 0;
  1584. width: 100%;
  1585. &:focus,
  1586. &:active {
  1587. color: $primary-text-color;
  1588. border-bottom-color: $ui-highlight-color;
  1589. }
  1590. @media screen and (max-width: 600px) {
  1591. font-size: 16px;
  1592. }
  1593. &.light {
  1594. color: $ui-base-color;
  1595. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1596. &:focus,
  1597. &:active {
  1598. color: $ui-base-color;
  1599. border-bottom-color: $ui-highlight-color;
  1600. }
  1601. }
  1602. }
  1603. @import 'boost';
  1604. button.icon-button i.fa-retweet {
  1605. background-position: 0 0;
  1606. height: 19px;
  1607. transition: background-position 0.9s steps(10);
  1608. transition-duration: 0s;
  1609. vertical-align: middle;
  1610. width: 22px;
  1611. &::before {
  1612. display: none !important;
  1613. }
  1614. }
  1615. button.icon-button.active i.fa-retweet {
  1616. transition-duration: 0.9s;
  1617. background-position: 0 100%;
  1618. }
  1619. .status-card {
  1620. display: flex;
  1621. cursor: pointer;
  1622. font-size: 14px;
  1623. border: 1px solid lighten($ui-base-color, 8%);
  1624. border-radius: 4px;
  1625. color: lighten($ui-base-color, 26%);
  1626. margin-top: 14px;
  1627. text-decoration: none;
  1628. overflow: hidden;
  1629. &:hover {
  1630. background: lighten($ui-base-color, 8%);
  1631. }
  1632. }
  1633. .status-card-video,
  1634. .status-card-rich,
  1635. .status-card-photo {
  1636. margin-top: 14px;
  1637. overflow: hidden;
  1638. iframe {
  1639. width: 100%;
  1640. height: auto;
  1641. }
  1642. }
  1643. .status-card-photo {
  1644. display: block;
  1645. text-decoration: none;
  1646. img {
  1647. display: block;
  1648. width: 100%;
  1649. height: auto;
  1650. margin: 0;
  1651. }
  1652. }
  1653. .status-card-video {
  1654. position: relative;
  1655. width: 100%;
  1656. height: auto;
  1657. padding-top: 56.25%;
  1658. iframe {
  1659. position: absolute;
  1660. top: 0;
  1661. left: 0;
  1662. bottom: 0;
  1663. right: 0;
  1664. width: 1px;
  1665. min-width: 100%;
  1666. height: 1px;
  1667. min-height: 100%;
  1668. margin: auto;
  1669. }
  1670. }
  1671. .status-card__title {
  1672. display: block;
  1673. font-weight: 500;
  1674. margin-bottom: 5px;
  1675. color: $ui-primary-color;
  1676. overflow: hidden;
  1677. text-overflow: ellipsis;
  1678. white-space: nowrap;
  1679. }
  1680. .status-card__content {
  1681. flex: 1 1 auto;
  1682. overflow: hidden;
  1683. padding: 14px 14px 14px 8px;
  1684. }
  1685. .status-card__description {
  1686. color: $ui-primary-color;
  1687. }
  1688. .status-card__host {
  1689. display: block;
  1690. margin-top: 5px;
  1691. font-size: 13px;
  1692. }
  1693. .status-card__image {
  1694. flex: 0 0 100px;
  1695. background: lighten($ui-base-color, 8%);
  1696. }
  1697. .status-card__image-image {
  1698. border-radius: 4px 0 0 4px;
  1699. display: block;
  1700. height: auto;
  1701. margin: 0;
  1702. width: 100%;
  1703. }
  1704. .load-more {
  1705. display: block;
  1706. color: lighten($ui-base-color, 26%);
  1707. background-color: transparent;
  1708. border: 0;
  1709. font-size: inherit;
  1710. text-align: center;
  1711. line-height: inherit;
  1712. margin: 0;
  1713. padding: 15px;
  1714. width: 100%;
  1715. clear: both;
  1716. &:hover {
  1717. background: lighten($ui-base-color, 2%);
  1718. }
  1719. }
  1720. .missing-indicator {
  1721. text-align: center;
  1722. font-size: 16px;
  1723. font-weight: 500;
  1724. color: lighten($ui-base-color, 16%);
  1725. background: $ui-base-color;
  1726. cursor: default;
  1727. display: flex;
  1728. flex: 1 1 auto;
  1729. align-items: center;
  1730. justify-content: center;
  1731. & > div {
  1732. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1733. padding-top: 210px;
  1734. width: 100%;
  1735. }
  1736. }
  1737. .column-header__wrapper {
  1738. position: relative;
  1739. flex: 0 0 auto;
  1740. &.active {
  1741. &::before {
  1742. display: block;
  1743. content: "";
  1744. position: absolute;
  1745. top: 35px;
  1746. left: 0;
  1747. right: 0;
  1748. margin: 0 auto;
  1749. width: 60%;
  1750. pointer-events: none;
  1751. height: 28px;
  1752. z-index: 1;
  1753. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1754. }
  1755. }
  1756. }
  1757. .column-header {
  1758. padding: 15px;
  1759. font-size: 16px;
  1760. background: lighten($ui-base-color, 4%);
  1761. flex: 0 0 auto;
  1762. cursor: pointer;
  1763. position: relative;
  1764. z-index: 2;
  1765. outline: 0;
  1766. &.active {
  1767. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1768. .column-header__icon {
  1769. color: $ui-highlight-color;
  1770. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1771. }
  1772. }
  1773. &.hidden-on-mobile {
  1774. @media screen and (max-width: 1024px) {
  1775. display: none;
  1776. }
  1777. }
  1778. &:focus,
  1779. &:active {
  1780. outline: 0;
  1781. }
  1782. }
  1783. .column-header__buttons {
  1784. position: absolute;
  1785. right: 0;
  1786. top: 0;
  1787. height: 100%;
  1788. display: flex;
  1789. height: 48px;
  1790. }
  1791. .column-header__button {
  1792. background: lighten($ui-base-color, 4%);
  1793. border: 0;
  1794. color: $ui-primary-color;
  1795. cursor: pointer;
  1796. font-size: 16px;
  1797. padding: 0 15px;
  1798. &:hover {
  1799. color: lighten($ui-primary-color, 7%);
  1800. }
  1801. &.active {
  1802. color: $primary-text-color;
  1803. background: lighten($ui-base-color, 8%);
  1804. &:hover {
  1805. color: $primary-text-color;
  1806. background: lighten($ui-base-color, 8%);
  1807. }
  1808. }
  1809. }
  1810. .column-header__collapsible {
  1811. max-height: 70vh;
  1812. overflow: hidden;
  1813. overflow-y: auto;
  1814. color: $ui-primary-color;
  1815. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1816. opacity: 1;
  1817. &.collapsed {
  1818. max-height: 0;
  1819. opacity: 0.5;
  1820. }
  1821. &.animating {
  1822. overflow-y: hidden;
  1823. }
  1824. }
  1825. .column-header__collapsible-inner {
  1826. background: lighten($ui-base-color, 8%);
  1827. padding: 15px;
  1828. }
  1829. .column-header__setting-btn {
  1830. &:hover {
  1831. color: lighten($ui-primary-color, 4%);
  1832. text-decoration: underline;
  1833. }
  1834. }
  1835. .column-header__setting-arrows {
  1836. float: right;
  1837. .column-header__setting-btn {
  1838. padding: 0 10px;
  1839. &:last-child {
  1840. padding-right: 0;
  1841. }
  1842. }
  1843. }
  1844. .text-btn {
  1845. display: inline-block;
  1846. padding: 0;
  1847. font-family: inherit;
  1848. font-size: inherit;
  1849. color: inherit;
  1850. border: 0;
  1851. background: transparent;
  1852. cursor: pointer;
  1853. }
  1854. .column-header__icon {
  1855. display: inline-block;
  1856. margin-right: 5px;
  1857. }
  1858. .loading-indicator {
  1859. color: $ui-secondary-color;
  1860. font-size: 16px;
  1861. font-weight: 500;
  1862. padding-top: 120px;
  1863. text-align: center;
  1864. }
  1865. .video-error-cover {
  1866. align-items: center;
  1867. background: $base-overlay-background;
  1868. color: $primary-text-color;
  1869. cursor: pointer;
  1870. display: flex;
  1871. flex-direction: column;
  1872. height: 100%;
  1873. justify-content: center;
  1874. margin-top: 8px;
  1875. position: relative;
  1876. text-align: center;
  1877. z-index: 100;
  1878. }
  1879. .media-spoiler {
  1880. align-items: center;
  1881. background: $base-overlay-background;
  1882. color: $primary-text-color;
  1883. cursor: pointer;
  1884. display: flex;
  1885. flex-direction: column;
  1886. height: 100%;
  1887. justify-content: center;
  1888. position: relative;
  1889. text-align: center;
  1890. z-index: 100;
  1891. }
  1892. .media-spoiler__warning {
  1893. display: block;
  1894. font-size: 14px;
  1895. }
  1896. .media-spoiler__trigger {
  1897. display: block;
  1898. font-size: 11px;
  1899. font-weight: 500;
  1900. }
  1901. .spoiler-button {
  1902. display: none;
  1903. left: 4px;
  1904. position: absolute;
  1905. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  1906. top: 4px;
  1907. z-index: 100;
  1908. &.spoiler-button--visible {
  1909. display: block;
  1910. }
  1911. }
  1912. .modal-container--preloader {
  1913. background: lighten($ui-base-color, 8%);
  1914. }
  1915. .account--panel {
  1916. background: lighten($ui-base-color, 4%);
  1917. border-top: 1px solid lighten($ui-base-color, 8%);
  1918. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1919. display: flex;
  1920. flex-direction: row;
  1921. padding: 10px 0;
  1922. }
  1923. .account--panel__button,
  1924. .detailed-status__button {
  1925. flex: 1 1 auto;
  1926. text-align: center;
  1927. }
  1928. .column-settings__outer {
  1929. background: lighten($ui-base-color, 8%);
  1930. padding: 15px;
  1931. }
  1932. .column-settings__section {
  1933. color: $ui-primary-color;
  1934. cursor: default;
  1935. display: block;
  1936. font-weight: 500;
  1937. margin-bottom: 10px;
  1938. }
  1939. .column-settings__row {
  1940. .text-btn {
  1941. margin-bottom: 15px;
  1942. }
  1943. }
  1944. .modal-container__nav {
  1945. align-items: center;
  1946. background: rgba($base-overlay-background, 0.5);
  1947. box-sizing: border-box;
  1948. color: $primary-text-color;
  1949. cursor: pointer;
  1950. display: flex;
  1951. font-size: 24px;
  1952. height: 100%;
  1953. padding: 30px 15px;
  1954. position: absolute;
  1955. top: 0;
  1956. }
  1957. .modal-container__nav--left {
  1958. left: -61px;
  1959. }
  1960. .modal-container__nav--right {
  1961. right: -61px;
  1962. }
  1963. .account--follows-info {
  1964. color: $primary-text-color;
  1965. position: absolute;
  1966. top: 10px;
  1967. right: 10px;
  1968. opacity: 0.7;
  1969. display: inline-block;
  1970. vertical-align: top;
  1971. background-color: rgba($base-overlay-background, 0.4);
  1972. text-transform: uppercase;
  1973. font-size: 11px;
  1974. font-weight: 500;
  1975. padding: 4px;
  1976. border-radius: 4px;
  1977. }
  1978. .account--action-button {
  1979. position: absolute;
  1980. top: 10px;
  1981. left: 20px;
  1982. }
  1983. .setting-toggle {
  1984. display: block;
  1985. line-height: 24px;
  1986. }
  1987. .setting-toggle__label,
  1988. .setting-meta__label {
  1989. color: $ui-primary-color;
  1990. display: inline-block;
  1991. margin-bottom: 14px;
  1992. margin-left: 8px;
  1993. vertical-align: middle;
  1994. }
  1995. .setting-meta__label {
  1996. color: $ui-primary-color;
  1997. float: right;
  1998. }
  1999. .empty-column-indicator,
  2000. .error-column {
  2001. color: lighten($ui-base-color, 20%);
  2002. background: $ui-base-color;
  2003. text-align: center;
  2004. padding: 20px;
  2005. font-size: 15px;
  2006. font-weight: 400;
  2007. cursor: default;
  2008. display: flex;
  2009. flex: 1 1 auto;
  2010. align-items: center;
  2011. justify-content: center;
  2012. @supports(display: grid) { // hack to fix Chrome <57
  2013. contain: strict;
  2014. }
  2015. a {
  2016. color: $ui-highlight-color;
  2017. text-decoration: none;
  2018. &:hover {
  2019. text-decoration: underline;
  2020. }
  2021. }
  2022. }
  2023. .error-column {
  2024. flex-direction: column;
  2025. }
  2026. @keyframes pulse {
  2027. 0% {
  2028. opacity: 1;
  2029. }
  2030. 100% {
  2031. opacity: 0.5;
  2032. }
  2033. }
  2034. .pulse-loading {
  2035. animation: pulse 1s ease-in-out infinite;
  2036. animation-direction: alternate;
  2037. }
  2038. .emoji-dialog {
  2039. width: 245px;
  2040. height: 270px;
  2041. background: $simple-background-color;
  2042. box-sizing: border-box;
  2043. border-radius: 4px;
  2044. overflow: hidden;
  2045. position: relative;
  2046. box-shadow: 0 0 8px rgba($base-shadow-color, 0.2);
  2047. .emojione {
  2048. margin: 0;
  2049. width: 100%;
  2050. height: auto;
  2051. }
  2052. .emoji-dialog-header {
  2053. padding: 0 10px;
  2054. ul {
  2055. padding: 0;
  2056. margin: 0;
  2057. list-style: none;
  2058. }
  2059. li {
  2060. display: inline-block;
  2061. box-sizing: border-box;
  2062. padding: 10px 5px;
  2063. cursor: pointer;
  2064. border-bottom: 2px solid transparent;
  2065. .emoji {
  2066. width: 18px;
  2067. height: 18px;
  2068. }
  2069. img,
  2070. svg {
  2071. width: 18px;
  2072. height: 18px;
  2073. filter: grayscale(100%);
  2074. }
  2075. &:hover {
  2076. img,
  2077. svg {
  2078. filter: grayscale(0);
  2079. }
  2080. }
  2081. &.active {
  2082. border-bottom-color: $ui-highlight-color;
  2083. img,
  2084. svg {
  2085. filter: grayscale(0);
  2086. }
  2087. }
  2088. }
  2089. }
  2090. .emoji-row {
  2091. box-sizing: border-box;
  2092. overflow-y: hidden;
  2093. padding-left: 10px;
  2094. .emoji {
  2095. display: inline-block;
  2096. padding: 2.5px;
  2097. border-radius: 4px;
  2098. }
  2099. }
  2100. .emoji-category-header {
  2101. box-sizing: border-box;
  2102. overflow-y: hidden;
  2103. padding: 10px 8px 10px 16px;
  2104. display: table;
  2105. > * {
  2106. display: table-cell;
  2107. vertical-align: middle;
  2108. }
  2109. }
  2110. .emoji-category-title {
  2111. font-size: 12px;
  2112. text-transform: uppercase;
  2113. font-weight: 500;
  2114. color: darken($ui-secondary-color, 18%);
  2115. cursor: default;
  2116. }
  2117. .emoji-category-heading-decoration {
  2118. text-align: right;
  2119. }
  2120. .modifiers {
  2121. list-style: none;
  2122. padding: 0;
  2123. margin: 0;
  2124. vertical-align: middle;
  2125. white-space: nowrap;
  2126. margin-top: 4px;
  2127. li {
  2128. display: inline-block;
  2129. padding: 0 2px;
  2130. &:last-of-type {
  2131. padding-right: 0;
  2132. }
  2133. }
  2134. .modifier {
  2135. display: inline-block;
  2136. border-radius: 10px;
  2137. width: 15px;
  2138. height: 15px;
  2139. position: relative;
  2140. cursor: pointer;
  2141. &.active::after {
  2142. content: "";
  2143. display: block;
  2144. position: absolute;
  2145. width: 7px;
  2146. height: 7px;
  2147. border-radius: 10px;
  2148. border: 2px solid $base-border-color;
  2149. top: 2px;
  2150. left: 2px;
  2151. }
  2152. }
  2153. }
  2154. .emoji-search-wrapper {
  2155. padding: 10px;
  2156. border-bottom: 1px solid lighten($ui-secondary-color, 4%);
  2157. }
  2158. .emoji-search {
  2159. font-size: 14px;
  2160. font-weight: 400;
  2161. padding: 7px 9px;
  2162. font-family: inherit;
  2163. display: block;
  2164. width: 100%;
  2165. background: rgba($ui-secondary-color, 0.3);
  2166. color: darken($ui-secondary-color, 18%);
  2167. border: 1px solid $ui-secondary-color;
  2168. border-radius: 4px;
  2169. }
  2170. .emoji-categories-wrapper {
  2171. position: absolute;
  2172. top: 42px;
  2173. bottom: 0;
  2174. left: 0;
  2175. right: 0;
  2176. }
  2177. .emoji-search-wrapper + .emoji-categories-wrapper {
  2178. top: 93px;
  2179. }
  2180. .emoji-row .emoji {
  2181. img,
  2182. svg {
  2183. transition: transform 60ms ease-in-out;
  2184. }
  2185. &:hover {
  2186. background: lighten($ui-secondary-color, 3%);
  2187. img,
  2188. svg {
  2189. transform: translateZ(0) scale(1.2);
  2190. }
  2191. }
  2192. }
  2193. .emoji {
  2194. width: 22px;
  2195. height: 22px;
  2196. cursor: pointer;
  2197. &:focus {
  2198. outline: 0;
  2199. }
  2200. }
  2201. }
  2202. .upload-area {
  2203. align-items: center;
  2204. background: rgba($base-overlay-background, 0.8);
  2205. display: flex;
  2206. height: 100%;
  2207. justify-content: center;
  2208. left: 0;
  2209. opacity: 0;
  2210. position: absolute;
  2211. top: 0;
  2212. visibility: hidden;
  2213. width: 100%;
  2214. z-index: 2000;
  2215. * {
  2216. pointer-events: none;
  2217. }
  2218. }
  2219. .upload-area__drop {
  2220. width: 320px;
  2221. height: 160px;
  2222. display: flex;
  2223. box-sizing: border-box;
  2224. position: relative;
  2225. padding: 8px;
  2226. }
  2227. .upload-area__background {
  2228. position: absolute;
  2229. top: 0;
  2230. right: 0;
  2231. bottom: 0;
  2232. left: 0;
  2233. z-index: -1;
  2234. border-radius: 4px;
  2235. background: $ui-base-color;
  2236. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2237. }
  2238. .upload-area__content {
  2239. flex: 1;
  2240. display: flex;
  2241. align-items: center;
  2242. justify-content: center;
  2243. color: $ui-secondary-color;
  2244. font-size: 18px;
  2245. font-weight: 500;
  2246. border: 2px dashed lighten($ui-base-color, 26%);
  2247. border-radius: 4px;
  2248. }
  2249. .upload-progress {
  2250. padding: 10px;
  2251. color: lighten($ui-base-color, 26%);
  2252. overflow: hidden;
  2253. display: flex;
  2254. .fa {
  2255. font-size: 34px;
  2256. margin-right: 10px;
  2257. }
  2258. span {
  2259. font-size: 12px;
  2260. text-transform: uppercase;
  2261. font-weight: 500;
  2262. display: block;
  2263. }
  2264. }
  2265. .upload-progess__message {
  2266. flex: 1 1 auto;
  2267. }
  2268. .upload-progress__backdrop {
  2269. width: 100%;
  2270. height: 6px;
  2271. border-radius: 6px;
  2272. background: lighten($ui-base-color, 26%);
  2273. position: relative;
  2274. margin-top: 5px;
  2275. }
  2276. .upload-progress__tracker {
  2277. position: absolute;
  2278. left: 0;
  2279. top: 0;
  2280. height: 6px;
  2281. background: $ui-highlight-color;
  2282. border-radius: 6px;
  2283. }
  2284. .emoji-button {
  2285. display: block;
  2286. font-size: 24px;
  2287. line-height: 24px;
  2288. margin-left: 2px;
  2289. width: 24px;
  2290. outline: 0;
  2291. cursor: pointer;
  2292. &:active,
  2293. &:focus {
  2294. outline: 0 !important;
  2295. }
  2296. img {
  2297. filter: grayscale(100%);
  2298. opacity: 0.8;
  2299. display: block;
  2300. margin: 0;
  2301. width: 22px;
  2302. height: 22px;
  2303. margin-top: 2px;
  2304. }
  2305. &:hover,
  2306. &:active,
  2307. &:focus {
  2308. img {
  2309. opacity: 1;
  2310. filter: none;
  2311. }
  2312. }
  2313. }
  2314. .dropdown--active .emoji-button img {
  2315. opacity: 1;
  2316. filter: none;
  2317. }
  2318. .privacy-dropdown {
  2319. position: relative;
  2320. }
  2321. .privacy-dropdown__dropdown {
  2322. display: none;
  2323. position: absolute;
  2324. left: 0;
  2325. top: 27px;
  2326. width: 230px;
  2327. background: $simple-background-color;
  2328. border-radius: 0 4px 4px;
  2329. z-index: 2;
  2330. overflow: hidden;
  2331. }
  2332. .privacy-dropdown__option {
  2333. color: $ui-base-color;
  2334. padding: 10px;
  2335. cursor: pointer;
  2336. display: flex;
  2337. &:hover,
  2338. &.active {
  2339. background: $ui-highlight-color;
  2340. color: $primary-text-color;
  2341. .privacy-dropdown__option__content {
  2342. color: $primary-text-color;
  2343. strong {
  2344. color: $primary-text-color;
  2345. }
  2346. }
  2347. }
  2348. &.active:hover {
  2349. background: lighten($ui-highlight-color, 4%);
  2350. }
  2351. }
  2352. .privacy-dropdown__option__icon {
  2353. display: flex;
  2354. align-items: center;
  2355. justify-content: center;
  2356. margin-right: 10px;
  2357. }
  2358. .privacy-dropdown__option__content {
  2359. flex: 1 1 auto;
  2360. color: darken($ui-primary-color, 24%);
  2361. strong {
  2362. font-weight: 500;
  2363. display: block;
  2364. color: $ui-base-color;
  2365. }
  2366. }
  2367. .privacy-dropdown.active {
  2368. .privacy-dropdown__value {
  2369. background: $simple-background-color;
  2370. border-radius: 4px 4px 0 0;
  2371. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2372. }
  2373. .privacy-dropdown__dropdown {
  2374. display: block;
  2375. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2376. }
  2377. }
  2378. .search {
  2379. position: relative;
  2380. }
  2381. .search__input {
  2382. padding-right: 30px;
  2383. color: $ui-secondary-color;
  2384. outline: 0;
  2385. box-sizing: border-box;
  2386. display: block;
  2387. width: 100%;
  2388. border: none;
  2389. padding: 10px;
  2390. padding-right: 30px;
  2391. font-family: inherit;
  2392. background: $ui-base-color;
  2393. color: $ui-primary-color;
  2394. font-size: 14px;
  2395. margin: 0;
  2396. &::-moz-focus-inner {
  2397. border: 0;
  2398. }
  2399. &::-moz-focus-inner,
  2400. &:focus,
  2401. &:active {
  2402. outline: 0 !important;
  2403. }
  2404. &:focus {
  2405. background: lighten($ui-base-color, 4%);
  2406. }
  2407. @media screen and (max-width: 600px) {
  2408. font-size: 16px;
  2409. }
  2410. }
  2411. .search__icon {
  2412. .fa {
  2413. position: absolute;
  2414. top: 10px;
  2415. right: 10px;
  2416. z-index: 2;
  2417. display: inline-block;
  2418. opacity: 0;
  2419. transition: all 100ms linear;
  2420. font-size: 18px;
  2421. width: 18px;
  2422. height: 18px;
  2423. color: $ui-secondary-color;
  2424. cursor: default;
  2425. pointer-events: none;
  2426. &.active {
  2427. pointer-events: auto;
  2428. opacity: 0.3;
  2429. }
  2430. }
  2431. .fa-search {
  2432. transform: translateZ(0) rotate(90deg);
  2433. &.active {
  2434. pointer-events: none;
  2435. transform: translateZ(0) rotate(0deg);
  2436. }
  2437. }
  2438. .fa-times-circle {
  2439. top: 11px;
  2440. transform: translateZ(0) rotate(0deg);
  2441. cursor: pointer;
  2442. &.active {
  2443. transform: translateZ(0) rotate(90deg);
  2444. }
  2445. &:hover {
  2446. color: $primary-text-color;
  2447. }
  2448. }
  2449. }
  2450. .search-results__header {
  2451. color: lighten($ui-base-color, 26%);
  2452. background: lighten($ui-base-color, 2%);
  2453. border-bottom: 1px solid darken($ui-base-color, 4%);
  2454. padding: 15px 10px;
  2455. font-size: 14px;
  2456. font-weight: 500;
  2457. }
  2458. .search-results__hashtag {
  2459. display: block;
  2460. padding: 10px;
  2461. color: $ui-secondary-color;
  2462. text-decoration: none;
  2463. &:hover,
  2464. &:active,
  2465. &:focus {
  2466. color: lighten($ui-secondary-color, 4%);
  2467. text-decoration: underline;
  2468. }
  2469. }
  2470. .modal-root__overlay {
  2471. position: absolute;
  2472. top: 0;
  2473. left: 0;
  2474. right: 0;
  2475. bottom: 0;
  2476. z-index: 9999;
  2477. opacity: 0;
  2478. background: rgba($base-overlay-background, 0.7);
  2479. transform: translateZ(0);
  2480. }
  2481. .modal-root__container {
  2482. position: absolute;
  2483. top: 0;
  2484. left: 0;
  2485. width: 100%;
  2486. height: 100%;
  2487. display: flex;
  2488. flex-direction: column;
  2489. align-items: center;
  2490. justify-content: center;
  2491. align-content: space-around;
  2492. z-index: 9999;
  2493. opacity: 0;
  2494. pointer-events: none;
  2495. user-select: none;
  2496. }
  2497. .modal-root__modal {
  2498. pointer-events: auto;
  2499. display: flex;
  2500. z-index: 9999;
  2501. }
  2502. .media-modal {
  2503. max-width: 80vw;
  2504. max-height: 80vh;
  2505. position: relative;
  2506. .extended-video-player,
  2507. img,
  2508. canvas,
  2509. video {
  2510. max-width: 80vw;
  2511. max-height: 80vh;
  2512. width: auto;
  2513. height: auto;
  2514. margin: auto;
  2515. }
  2516. .extended-video-player,
  2517. video {
  2518. display: flex;
  2519. width: 80vw;
  2520. height: 80vh;
  2521. }
  2522. img,
  2523. canvas {
  2524. display: block;
  2525. background: url('../images/void.png') repeat;
  2526. object-fit: contain;
  2527. }
  2528. .react-swipeable-view-container {
  2529. max-width: 80vw;
  2530. }
  2531. }
  2532. .media-modal__close {
  2533. position: absolute;
  2534. right: 4px;
  2535. top: 4px;
  2536. z-index: 100;
  2537. }
  2538. .onboarding-modal,
  2539. .error-modal {
  2540. background: $ui-secondary-color;
  2541. color: $ui-base-color;
  2542. border-radius: 8px;
  2543. overflow: hidden;
  2544. display: flex;
  2545. flex-direction: column;
  2546. }
  2547. .onboarding-modal__pager {
  2548. height: 80vh;
  2549. width: 80vw;
  2550. max-width: 520px;
  2551. max-height: 420px;
  2552. .react-swipeable-view-container > div {
  2553. width: 100%;
  2554. height: 100%;
  2555. box-sizing: border-box;
  2556. padding: 25px;
  2557. display: none;
  2558. flex-direction: column;
  2559. align-items: center;
  2560. justify-content: center;
  2561. display: flex;
  2562. user-select: text;
  2563. }
  2564. }
  2565. .error-modal__body {
  2566. height: 80vh;
  2567. width: 80vw;
  2568. max-width: 520px;
  2569. max-height: 420px;
  2570. position: relative;
  2571. & > div {
  2572. position: absolute;
  2573. top: 0;
  2574. left: 0;
  2575. width: 100%;
  2576. height: 100%;
  2577. box-sizing: border-box;
  2578. padding: 25px;
  2579. display: none;
  2580. flex-direction: column;
  2581. align-items: center;
  2582. justify-content: center;
  2583. display: flex;
  2584. opacity: 0;
  2585. user-select: text;
  2586. }
  2587. }
  2588. .error-modal__body {
  2589. display: flex;
  2590. flex-direction: column;
  2591. justify-content: center;
  2592. align-items: center;
  2593. text-align: center;
  2594. }
  2595. @media screen and (max-width: 550px) {
  2596. .onboarding-modal {
  2597. width: 100%;
  2598. height: 100%;
  2599. border-radius: 0;
  2600. }
  2601. .onboarding-modal__pager {
  2602. width: 100%;
  2603. height: auto;
  2604. max-width: none;
  2605. max-height: none;
  2606. flex: 1 1 auto;
  2607. }
  2608. }
  2609. .onboarding-modal__paginator,
  2610. .error-modal__footer {
  2611. flex: 0 0 auto;
  2612. background: darken($ui-secondary-color, 8%);
  2613. display: flex;
  2614. padding: 25px;
  2615. & > div {
  2616. min-width: 33px;
  2617. }
  2618. .onboarding-modal__nav,
  2619. .error-modal__nav {
  2620. color: darken($ui-secondary-color, 34%);
  2621. background-color: transparent;
  2622. border: 0;
  2623. font-size: 14px;
  2624. font-weight: 500;
  2625. padding: 0;
  2626. line-height: inherit;
  2627. height: auto;
  2628. &:hover,
  2629. &:focus,
  2630. &:active {
  2631. color: darken($ui-secondary-color, 38%);
  2632. }
  2633. &.onboarding-modal__done,
  2634. &.onboarding-modal__next {
  2635. color: $ui-highlight-color;
  2636. }
  2637. }
  2638. }
  2639. .error-modal__footer {
  2640. justify-content: center;
  2641. }
  2642. .onboarding-modal__dots {
  2643. flex: 1 1 auto;
  2644. display: flex;
  2645. align-items: center;
  2646. justify-content: center;
  2647. }
  2648. .onboarding-modal__dot {
  2649. width: 14px;
  2650. height: 14px;
  2651. border-radius: 14px;
  2652. background: darken($ui-secondary-color, 16%);
  2653. margin: 0 3px;
  2654. cursor: pointer;
  2655. &:hover {
  2656. background: darken($ui-secondary-color, 18%);
  2657. }
  2658. &.active {
  2659. cursor: default;
  2660. background: darken($ui-secondary-color, 24%);
  2661. }
  2662. }
  2663. .onboarding-modal__page__wrapper {
  2664. pointer-events: none;
  2665. &.onboarding-modal__page__wrapper--active {
  2666. pointer-events: auto;
  2667. }
  2668. }
  2669. .onboarding-modal__page {
  2670. cursor: default;
  2671. line-height: 21px;
  2672. h1 {
  2673. font-size: 18px;
  2674. font-weight: 500;
  2675. color: $ui-base-color;
  2676. margin-bottom: 20px;
  2677. }
  2678. a {
  2679. color: $ui-highlight-color;
  2680. &:hover,
  2681. &:focus,
  2682. &:active {
  2683. color: lighten($ui-highlight-color, 4%);
  2684. }
  2685. }
  2686. p {
  2687. font-size: 16px;
  2688. color: lighten($ui-base-color, 8%);
  2689. margin-top: 10px;
  2690. margin-bottom: 10px;
  2691. &:last-child {
  2692. margin-bottom: 0;
  2693. }
  2694. strong {
  2695. font-weight: 500;
  2696. background: $ui-base-color;
  2697. color: $ui-secondary-color;
  2698. border-radius: 4px;
  2699. font-size: 14px;
  2700. padding: 3px 6px;
  2701. }
  2702. }
  2703. }
  2704. .onboarding-modal__page-one {
  2705. display: flex;
  2706. align-items: center;
  2707. }
  2708. .onboarding-modal__page-one__elephant-friend {
  2709. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2710. width: 155px;
  2711. height: 193px;
  2712. margin-right: 15px;
  2713. }
  2714. @media screen and (max-width: 400px) {
  2715. .onboarding-modal__page-one {
  2716. flex-direction: column;
  2717. align-items: normal;
  2718. }
  2719. .onboarding-modal__page-one__elephant-friend {
  2720. width: 100%;
  2721. height: 30vh;
  2722. max-height: 160px;
  2723. margin-bottom: 5vh;
  2724. }
  2725. }
  2726. .onboarding-modal__page-two,
  2727. .onboarding-modal__page-three,
  2728. .onboarding-modal__page-four,
  2729. .onboarding-modal__page-five {
  2730. p {
  2731. text-align: left;
  2732. }
  2733. .figure {
  2734. background: darken($ui-base-color, 8%);
  2735. color: $ui-secondary-color;
  2736. margin-bottom: 20px;
  2737. border-radius: 4px;
  2738. padding: 10px;
  2739. text-align: center;
  2740. font-size: 14px;
  2741. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2742. .onboarding-modal__image {
  2743. border-radius: 4px;
  2744. margin-bottom: 10px;
  2745. }
  2746. &.non-interactive {
  2747. pointer-events: none;
  2748. text-align: left;
  2749. }
  2750. }
  2751. }
  2752. .onboarding-modal__page-four__columns {
  2753. .row {
  2754. display: flex;
  2755. margin-bottom: 20px;
  2756. & > div {
  2757. flex: 1 1 0;
  2758. margin: 0 10px;
  2759. &:first-child {
  2760. margin-left: 0;
  2761. }
  2762. &:last-child {
  2763. margin-right: 0;
  2764. }
  2765. p {
  2766. text-align: center;
  2767. }
  2768. }
  2769. &:last-child {
  2770. margin-bottom: 0;
  2771. }
  2772. }
  2773. .column-header {
  2774. color: $primary-text-color;
  2775. }
  2776. }
  2777. @media screen and (max-width: 320px) and (max-height: 600px) {
  2778. .onboarding-modal__page p {
  2779. font-size: 14px;
  2780. line-height: 20px;
  2781. }
  2782. .onboarding-modal__page-two .figure,
  2783. .onboarding-modal__page-three .figure,
  2784. .onboarding-modal__page-four .figure,
  2785. .onboarding-modal__page-five .figure {
  2786. font-size: 12px;
  2787. margin-bottom: 10px;
  2788. }
  2789. .onboarding-modal__page-four__columns .row {
  2790. margin-bottom: 10px;
  2791. }
  2792. .onboarding-modal__page-four__columns .column-header {
  2793. padding: 5px;
  2794. font-size: 12px;
  2795. }
  2796. }
  2797. .onboarding-modal__image {
  2798. border-radius: 8px;
  2799. width: 70vw;
  2800. max-width: 450px;
  2801. max-height: auto;
  2802. display: block;
  2803. margin: auto;
  2804. margin-bottom: 20px;
  2805. }
  2806. .onboard-sliders {
  2807. display: inline-block;
  2808. max-width: 30px;
  2809. max-height: auto;
  2810. margin-left: 10px;
  2811. }
  2812. .boost-modal,
  2813. .confirmation-modal,
  2814. .report-modal {
  2815. background: lighten($ui-secondary-color, 8%);
  2816. color: $ui-base-color;
  2817. border-radius: 8px;
  2818. overflow: hidden;
  2819. max-width: 90vw;
  2820. width: 480px;
  2821. position: relative;
  2822. flex-direction: column;
  2823. .status__display-name {
  2824. display: block;
  2825. max-width: 100%;
  2826. padding-right: 25px;
  2827. }
  2828. .status__avatar {
  2829. height: 28px;
  2830. left: 10px;
  2831. position: absolute;
  2832. top: 10px;
  2833. width: 48px;
  2834. }
  2835. }
  2836. .boost-modal__container {
  2837. overflow-x: scroll;
  2838. padding: 10px;
  2839. .status {
  2840. user-select: text;
  2841. border-bottom: 0;
  2842. }
  2843. }
  2844. .boost-modal__action-bar,
  2845. .confirmation-modal__action-bar,
  2846. .report-modal__action-bar {
  2847. display: flex;
  2848. justify-content: space-between;
  2849. background: $ui-secondary-color;
  2850. padding: 10px;
  2851. line-height: 36px;
  2852. & > div {
  2853. flex: 1 1 auto;
  2854. text-align: right;
  2855. color: lighten($ui-base-color, 33%);
  2856. padding-right: 10px;
  2857. }
  2858. .button {
  2859. flex: 0 0 auto;
  2860. }
  2861. }
  2862. .boost-modal__status-header {
  2863. font-size: 15px;
  2864. }
  2865. .boost-modal__status-time {
  2866. float: right;
  2867. font-size: 14px;
  2868. }
  2869. .confirmation-modal {
  2870. max-width: 280px;
  2871. @media screen and (min-width: 480px) {
  2872. max-width: 380px;
  2873. }
  2874. }
  2875. .report-modal__statuses,
  2876. .report-modal__comment {
  2877. padding: 10px;
  2878. }
  2879. .report-modal__statuses {
  2880. min-height: 20vh;
  2881. max-height: 40vh;
  2882. overflow-y: auto;
  2883. overflow-x: hidden;
  2884. }
  2885. .report-modal__comment {
  2886. .setting-text {
  2887. margin-top: 10px;
  2888. }
  2889. }
  2890. .confirmation-modal__action-bar {
  2891. .confirmation-modal__cancel-button {
  2892. background-color: transparent;
  2893. color: darken($ui-secondary-color, 34%);
  2894. font-size: 14px;
  2895. font-weight: 500;
  2896. &:hover,
  2897. &:focus,
  2898. &:active {
  2899. color: darken($ui-secondary-color, 38%);
  2900. }
  2901. }
  2902. }
  2903. .confirmation-modal__container,
  2904. .report-modal__target {
  2905. padding: 30px;
  2906. font-size: 16px;
  2907. text-align: center;
  2908. strong {
  2909. font-weight: 500;
  2910. }
  2911. }
  2912. .loading-bar {
  2913. background-color: $ui-highlight-color;
  2914. height: 3px;
  2915. position: absolute;
  2916. top: 0;
  2917. left: 0;
  2918. }
  2919. .media-gallery__gifv__label {
  2920. display: block;
  2921. position: absolute;
  2922. color: $primary-text-color;
  2923. background: rgba($base-overlay-background, 0.5);
  2924. bottom: 6px;
  2925. left: 6px;
  2926. padding: 2px 6px;
  2927. border-radius: 2px;
  2928. font-size: 11px;
  2929. font-weight: 600;
  2930. z-index: 1;
  2931. pointer-events: none;
  2932. opacity: 0.9;
  2933. transition: opacity 0.1s ease;
  2934. }
  2935. .media-gallery__gifv {
  2936. &.autoplay {
  2937. .media-gallery__gifv__label {
  2938. display: none;
  2939. }
  2940. }
  2941. &:hover {
  2942. .media-gallery__gifv__label {
  2943. opacity: 1;
  2944. }
  2945. }
  2946. }
  2947. .attachment-list {
  2948. display: flex;
  2949. font-size: 14px;
  2950. border: 1px solid lighten($ui-base-color, 8%);
  2951. border-radius: 4px;
  2952. margin-top: 14px;
  2953. overflow: hidden;
  2954. }
  2955. .attachment-list__icon {
  2956. flex: 0 0 auto;
  2957. color: lighten($ui-base-color, 26%);
  2958. padding: 8px 18px;
  2959. cursor: default;
  2960. border-right: 1px solid lighten($ui-base-color, 8%);
  2961. display: flex;
  2962. flex-direction: column;
  2963. align-items: center;
  2964. justify-content: center;
  2965. font-size: 26px;
  2966. .fa {
  2967. display: block;
  2968. }
  2969. }
  2970. .attachment-list__list {
  2971. list-style: none;
  2972. padding: 4px 0;
  2973. padding-left: 8px;
  2974. display: flex;
  2975. flex-direction: column;
  2976. justify-content: center;
  2977. li {
  2978. display: block;
  2979. padding: 4px 0;
  2980. }
  2981. a {
  2982. text-decoration: none;
  2983. color: lighten($ui-base-color, 26%);
  2984. font-weight: 500;
  2985. &:hover {
  2986. text-decoration: underline;
  2987. }
  2988. }
  2989. }
  2990. /* Media Gallery */
  2991. .media-gallery {
  2992. box-sizing: border-box;
  2993. margin-top: 8px;
  2994. overflow: hidden;
  2995. position: relative;
  2996. width: 100%;
  2997. }
  2998. .media-gallery__item {
  2999. border: none;
  3000. box-sizing: border-box;
  3001. display: block;
  3002. float: left;
  3003. position: relative;
  3004. }
  3005. .media-gallery__item-thumbnail {
  3006. cursor: zoom-in;
  3007. display: block;
  3008. text-decoration: none;
  3009. height: 100%;
  3010. &,
  3011. img {
  3012. width: 100%;
  3013. height: 100%;
  3014. object-fit: cover;
  3015. }
  3016. }
  3017. .media-gallery__gifv {
  3018. height: 100%;
  3019. overflow: hidden;
  3020. position: relative;
  3021. width: 100%;
  3022. }
  3023. .media-gallery__item-gifv-thumbnail {
  3024. cursor: zoom-in;
  3025. height: 100%;
  3026. object-fit: cover;
  3027. position: relative;
  3028. top: 50%;
  3029. transform: translateY(-50%);
  3030. width: 100%;
  3031. z-index: 1;
  3032. }
  3033. .media-gallery__item-thumbnail-label {
  3034. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3035. clip: rect(1px, 1px, 1px, 1px);
  3036. overflow: hidden;
  3037. position: absolute;
  3038. }
  3039. /* End Media Gallery */
  3040. /* Status Video Player */
  3041. .status__video-player {
  3042. background: $base-overlay-background;
  3043. box-sizing: border-box;
  3044. cursor: default; /* May not be needed */
  3045. margin-top: 8px;
  3046. overflow: hidden;
  3047. position: relative;
  3048. }
  3049. .status__video-player-video {
  3050. height: 100%;
  3051. object-fit: cover;
  3052. position: relative;
  3053. top: 50%;
  3054. transform: translateY(-50%);
  3055. width: 100%;
  3056. z-index: 1;
  3057. }
  3058. .status__video-player-expand,
  3059. .status__video-player-mute {
  3060. color: $primary-text-color;
  3061. opacity: 0.8;
  3062. position: absolute;
  3063. right: 4px;
  3064. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3065. }
  3066. .status__video-player-spoiler {
  3067. display: none;
  3068. color: $primary-text-color;
  3069. left: 4px;
  3070. position: absolute;
  3071. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3072. top: 4px;
  3073. z-index: 100;
  3074. &.status__video-player-spoiler--visible {
  3075. display: block;
  3076. }
  3077. }
  3078. .status__video-player-expand {
  3079. bottom: 4px;
  3080. z-index: 100;
  3081. }
  3082. .status__video-player-mute {
  3083. top: 4px;
  3084. z-index: 5;
  3085. }
  3086. .media-spoiler-video {
  3087. background-size: cover;
  3088. background-repeat: no-repeat;
  3089. background-position: center;
  3090. cursor: pointer;
  3091. margin-top: 8px;
  3092. position: relative;
  3093. }
  3094. .media-spoiler-video-play-icon {
  3095. border-radius: 100px;
  3096. color: rgba($primary-text-color, 0.8);
  3097. font-size: 36px;
  3098. left: 50%;
  3099. padding: 5px;
  3100. position: absolute;
  3101. top: 50%;
  3102. transform: translate(-50%, -50%);
  3103. }
  3104. /* End Video Player */
  3105. .account-gallery__container {
  3106. margin: -2px;
  3107. padding: 4px;
  3108. }
  3109. .account-gallery__item {
  3110. float: left;
  3111. width: 96px;
  3112. height: 96px;
  3113. margin: 2px;
  3114. a {
  3115. display: block;
  3116. width: 100%;
  3117. height: 100%;
  3118. background-color: $base-overlay-background;
  3119. background-size: cover;
  3120. background-position: center;
  3121. position: relative;
  3122. }
  3123. }
  3124. .account-section-headline {
  3125. color: lighten($ui-base-color, 26%);
  3126. background: lighten($ui-base-color, 2%);
  3127. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3128. padding: 15px 10px;
  3129. font-size: 14px;
  3130. font-weight: 500;
  3131. position: relative;
  3132. cursor: default;
  3133. &::before,
  3134. &::after {
  3135. display: block;
  3136. content: "";
  3137. position: absolute;
  3138. bottom: 0;
  3139. left: 18px;
  3140. width: 0;
  3141. height: 0;
  3142. border-style: solid;
  3143. border-width: 0 10px 10px;
  3144. border-color: transparent transparent lighten($ui-base-color, 4%);
  3145. }
  3146. &::after {
  3147. bottom: -1px;
  3148. border-color: transparent transparent $ui-base-color;
  3149. }
  3150. }
  3151. noscript {
  3152. text-align: center;
  3153. div {
  3154. font-size: 20px;
  3155. margin: 20px 0;
  3156. }
  3157. }