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.

3070 lines
48 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
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($color4, 3%);
  8. border: 10px none;
  9. border-radius: 4px;
  10. box-sizing: border-box;
  11. color: $color5;
  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. &:active,
  30. &:focus,
  31. &:hover {
  32. background-color: lighten($color4, 7%);
  33. transition: all 200ms ease-out;
  34. }
  35. &:disabled {
  36. background-color: $color3;
  37. cursor: default;
  38. }
  39. &.button-secondary {
  40. //
  41. }
  42. }
  43. .column-collapsable {
  44. position: relative;
  45. }
  46. .column-icon {
  47. background: lighten($color1, 4%);
  48. color: $color3;
  49. cursor: pointer;
  50. font-size: 16px;
  51. padding: 15px;
  52. position: absolute;
  53. right: 0;
  54. top: -48px;
  55. z-index: 3;
  56. &:hover {
  57. color: lighten($color3, 7%);
  58. }
  59. }
  60. .column-icon-clear {
  61. font-size: 16px;
  62. padding: 15px;
  63. position: absolute;
  64. right: 48px;
  65. top: 0;
  66. cursor: pointer;
  67. z-index: 2;
  68. }
  69. @media screen and (min-width: 1025px) {
  70. .column-icon-clear {
  71. top: 10px;
  72. }
  73. }
  74. .icon-button {
  75. display: inline-block;
  76. padding: 0;
  77. color: lighten($color1, 26%);
  78. border: none;
  79. background: transparent;
  80. cursor: pointer;
  81. transition: all 100ms ease-in;
  82. &:hover, &:active, &:focus {
  83. color: lighten($color1, 33%);
  84. transition: all 200ms ease-out;
  85. }
  86. &.disabled {
  87. color: lighten($color1, 13%);
  88. cursor: default;
  89. }
  90. &.active {
  91. color: $color4;
  92. }
  93. &::-moz-focus-inner {
  94. border: 0;
  95. }
  96. &::-moz-focus-inner, &:focus, &:active {
  97. outline: 0 !important;
  98. }
  99. &.inverted {
  100. color: lighten($color1, 33%);
  101. &:hover, &:active, &:focus {
  102. color: lighten($color1, 26%);
  103. }
  104. &.active {
  105. color: $color4;
  106. }
  107. &.disabled {
  108. color: $color3;
  109. }
  110. }
  111. &.overlayed {
  112. box-sizing: content-box;
  113. background: rgba($color8, 0.6);
  114. color: rgba($color5, 0.7);
  115. border-radius: 4px;
  116. padding: 2px;
  117. &:hover {
  118. background: rgba($color8, 0.9);
  119. }
  120. }
  121. }
  122. .text-icon-button {
  123. color: lighten($color1, 33%);
  124. border: none;
  125. background: transparent;
  126. cursor: pointer;
  127. font-weight: 600;
  128. font-size: 11px;
  129. padding: 0 3px;
  130. line-height: 27px;
  131. outline: 0;
  132. transition: all 100ms ease-in;
  133. &:hover, &:active, &:focus {
  134. color: lighten($color1, 26%);
  135. transition: all 200ms ease-out;
  136. }
  137. &.disabled {
  138. color: lighten($color1, 13%);
  139. cursor: default;
  140. }
  141. &.active {
  142. color: $color4;
  143. }
  144. &::-moz-focus-inner {
  145. border: 0;
  146. }
  147. &::-moz-focus-inner, &:focus, &:active {
  148. outline: 0 !important;
  149. }
  150. }
  151. .dropdown--active .icon-button {
  152. color: $color4;
  153. }
  154. .invisible {
  155. font-size: 0;
  156. line-height: 0;
  157. display: inline-block;
  158. width: 0;
  159. }
  160. .ellipsis {
  161. &:after {
  162. content: "";
  163. }
  164. }
  165. .lightbox .icon-button {
  166. color: $color1;
  167. }
  168. .compose-form {
  169. padding: 10px;
  170. }
  171. .compose-form__warning {
  172. color: $color2;
  173. margin-bottom: 15px;
  174. border: 1px solid $color3;
  175. padding: 8px 10px;
  176. border-radius: 4px;
  177. font-size: 12px;
  178. font-weight: 400;
  179. strong {
  180. color: $color5;
  181. font-weight: 500;
  182. }
  183. }
  184. .compose-form__modifiers {
  185. color: $color1;
  186. font-family: inherit;
  187. font-size: 14px;
  188. background: $color5;
  189. border-radius: 0 0 4px 0;
  190. }
  191. .compose-form__buttons-wrapper {
  192. display: flex;
  193. justify-content: space-between;
  194. }
  195. .compose-form__buttons {
  196. padding: 10px;
  197. background: darken($color5, 8%);
  198. box-shadow: inset 0 5px 5px rgba($color8, 0.05);
  199. border-radius: 0 0 4px 4px;
  200. display: flex;
  201. .icon-button {
  202. box-sizing: content-box;
  203. padding: 0 3px;
  204. }
  205. }
  206. .compose-form__upload-button-icon {
  207. line-height: 27px;
  208. }
  209. .compose-form__upload-wrapper {
  210. overflow: hidden;
  211. }
  212. .compose-form__uploads-wrapper {
  213. display: flex;
  214. padding: 5px;
  215. }
  216. .compose-form__upload {
  217. flex: 1 1 0;
  218. margin: 5px;
  219. }
  220. .compose-form__upload-cancel {
  221. background-size: cover;
  222. border-radius: 4px;
  223. height: 100px;
  224. width: 100px;
  225. }
  226. .compose-form__label {
  227. display: block;
  228. line-height: 24px;
  229. vertical-align: middle;
  230. &.with-border {
  231. border-top: 1px solid $color1;
  232. padding-top: 10px;
  233. }
  234. .compose-form__label__text {
  235. display: inline-block;
  236. vertical-align: middle;
  237. margin-bottom: 14px;
  238. margin-left: 8px;
  239. color: $color3;
  240. }
  241. }
  242. .compose-form__textarea, .follow-form__input {
  243. background: $color5;
  244. &:disabled {
  245. background: $color2;
  246. }
  247. }
  248. .compose-form__autosuggest-wrapper {
  249. position: relative;
  250. }
  251. .compose-form__publish {
  252. display: flex;
  253. min-width: 0;
  254. }
  255. .compose-form__publish-button-wrapper {
  256. overflow: hidden;
  257. padding-top: 10px;
  258. }
  259. .emojione {
  260. display: inline-block;
  261. font-size: inherit;
  262. vertical-align: middle;
  263. margin: -.2ex .15em .2ex;
  264. width: 16px;
  265. height: 16px;
  266. img {
  267. width: auto;
  268. }
  269. }
  270. .reply-indicator {
  271. border-radius: 4px 4px 0 0;
  272. position: relative;
  273. bottom: -2px;
  274. background: $color3;
  275. padding: 10px;
  276. }
  277. .reply-indicator__header {
  278. margin-bottom: 5px;
  279. overflow: hidden;
  280. }
  281. .reply-indicator__cancel {
  282. float: right;
  283. line-height: 24px;
  284. }
  285. .reply-indicator__display-name {
  286. color: $color1;
  287. display: block;
  288. max-width: 100%;
  289. line-height: 24px;
  290. overflow: hidden;
  291. padding-right: 25px;
  292. text-decoration: none;
  293. }
  294. .reply-indicator__display-avatar {
  295. float: left;
  296. margin-right: 5px;
  297. }
  298. .status__content {
  299. cursor: pointer;
  300. }
  301. .status__content--no-action {
  302. cursor: default;
  303. }
  304. .status__content,
  305. .reply-indicator__content {
  306. font-size: 15px;
  307. line-height: 20px;
  308. word-wrap: break-word;
  309. font-weight: 400;
  310. overflow: hidden;
  311. white-space: pre-wrap;
  312. .emojione {
  313. width: 18px;
  314. height: 18px;
  315. }
  316. p {
  317. margin-bottom: 20px;
  318. &:last-child {
  319. margin-bottom: 0;
  320. }
  321. }
  322. a {
  323. color: $color2;
  324. text-decoration: none;
  325. &:hover {
  326. text-decoration: underline;
  327. .fa {
  328. color: lighten($color1, 40%);
  329. }
  330. }
  331. &.mention {
  332. &:hover {
  333. text-decoration: none;
  334. span {
  335. text-decoration: underline;
  336. }
  337. }
  338. }
  339. .fa {
  340. color: lighten($color1, 30%);
  341. }
  342. }
  343. .status__content__spoiler-link {
  344. background: lighten($color1, 30%);
  345. &:hover {
  346. background: lighten($color1, 33%);
  347. text-decoration: none;
  348. }
  349. }
  350. }
  351. a.status__content__spoiler-link {
  352. display: inline-block;
  353. border-radius: 2px;
  354. color: lighten($color1, 8%);
  355. font-weight: 500;
  356. font-size: 11px;
  357. padding: 0px 6px;
  358. text-transform: uppercase;
  359. line-height: inherit;
  360. }
  361. .status__prepend-icon-wrapper {
  362. left: -26px;
  363. position: absolute;
  364. }
  365. .status {
  366. padding: 8px 10px;
  367. padding-left: 68px;
  368. position: relative;
  369. min-height: 48px;
  370. border-bottom: 1px solid lighten($color1, 8%);
  371. cursor: default;
  372. &.light {
  373. .status__relative-time {
  374. color: $color3;
  375. }
  376. .status__display-name {
  377. color: $color1;
  378. }
  379. .display-name {
  380. strong {
  381. color: $color1;
  382. }
  383. span {
  384. color: $color3;
  385. }
  386. }
  387. .status__content {
  388. color: $color1;
  389. a {
  390. color: $color4;
  391. }
  392. a.status__content__spoiler-link {
  393. color: $color5;
  394. background: $color3;
  395. &:hover {
  396. background: lighten($color3, 8%);
  397. }
  398. }
  399. }
  400. }
  401. }
  402. .status__relative-time {
  403. color: lighten($color1, 26%);
  404. }
  405. .status__display-name {
  406. color: lighten($color1, 26%);
  407. display: block;
  408. max-width: 100%;
  409. padding-right: 25px;
  410. }
  411. .status__info {
  412. font-size: 15px;
  413. }
  414. .status__info-time {
  415. float: right;
  416. font-size: 14px;
  417. }
  418. .status-check-box {
  419. border-bottom: 1px solid lighten($color1, 8%);
  420. display: flex;
  421. .status__content {
  422. background: lighten($color1, 4%);
  423. flex: 1 1 auto;
  424. padding: 10px;
  425. }
  426. }
  427. .status-check-box-toggle {
  428. align-items: center;
  429. display: flex;
  430. flex: 0 0 auto;
  431. justify-content: center;
  432. padding: 10px;
  433. }
  434. .status__prepend {
  435. margin-left: 68px;
  436. color: lighten($color1, 26%);
  437. padding: 8px 0;
  438. padding-bottom: 2px;
  439. font-size: 14px;
  440. position: relative;
  441. .status__display-name strong {
  442. color: lighten($color1, 26%);
  443. }
  444. }
  445. .status__action-bar {
  446. margin-top: 10px;
  447. overflow: hidden;
  448. }
  449. .status__action-bar-button-wrapper {
  450. float: left;
  451. margin-right: 18px;
  452. }
  453. .status__action-bar-dropdown {
  454. float: left;
  455. height: 18px;
  456. width: 18px;
  457. }
  458. .detailed-status {
  459. background: lighten($color1, 4%);
  460. padding: 14px 10px;
  461. .status__content {
  462. font-size: 19px;
  463. line-height: 24px;
  464. .emojione {
  465. width: 22px;
  466. height: 22px;
  467. }
  468. }
  469. }
  470. .detailed-status__meta {
  471. margin-top: 15px;
  472. color: lighten($color1, 26%);
  473. font-size: 14px;
  474. line-height: 18px;
  475. }
  476. .detailed-status__action-bar {
  477. background: lighten($color1, 4%);
  478. display: flex;
  479. flex-direction: row;
  480. border-top: 1px solid lighten($color1, 8%);
  481. border-bottom: 1px solid lighten($color1, 8%);
  482. padding: 10px 0;
  483. }
  484. .detailed-status__link {
  485. color: inherit;
  486. text-decoration: none;
  487. }
  488. .detailed-status__favorites,
  489. .detailed-status__reblogs {
  490. display: inline-block;
  491. font-weight: 500;
  492. font-size: 12px;
  493. margin-left: 6px;
  494. }
  495. .reply-indicator__content {
  496. color: $color1;
  497. font-size: 14px;
  498. a {
  499. color: lighten($color1, 20%);
  500. }
  501. }
  502. .account {
  503. padding: 10px;
  504. border-bottom: 1px solid lighten($color1, 8%);
  505. .account__display-name {
  506. flex: 1 1 auto;
  507. display: block;
  508. color: $color3;
  509. overflow: hidden;
  510. text-decoration: none;
  511. font-size: 14px;
  512. }
  513. }
  514. .account__wrapper {
  515. display: flex;
  516. }
  517. .account__avatar-wrapper {
  518. float: left;
  519. margin-left: 12px;
  520. margin-right: 12px;
  521. }
  522. .account__avatar {
  523. border-radius: 4px;
  524. background: transparent no-repeat;
  525. background-position: 50%;
  526. background-clip: padding-box;
  527. position: relative;
  528. }
  529. .account__relationship {
  530. height: 18px;
  531. padding: 10px;
  532. }
  533. .account__header {
  534. flex: 0 0 auto;
  535. background: lighten($color1, 4%);
  536. text-align: center;
  537. background-size: cover;
  538. background-position: center;
  539. position: relative;
  540. & > div {
  541. background: rgba(lighten($color1, 4%), 0.9);
  542. }
  543. .account__header__content {
  544. color: $color2;
  545. }
  546. .account__header__display-name {
  547. color: $color5;
  548. }
  549. .account__header__username {
  550. color: $color4;
  551. }
  552. }
  553. .account__header__content {
  554. color: $color3;
  555. font-size: 14px;
  556. font-weight: 400;
  557. overflow: hidden;
  558. word-break: normal;
  559. word-wrap: break-word;
  560. p {
  561. margin-bottom: 20px;
  562. &:last-child {
  563. margin-bottom: 0;
  564. }
  565. }
  566. a {
  567. color: inherit;
  568. text-decoration: underline;
  569. &:hover {
  570. text-decoration: none;
  571. }
  572. }
  573. }
  574. .account__header__display-name {
  575. .emojione {
  576. width: 25px;
  577. height: 25px;
  578. }
  579. }
  580. .account__action-bar {
  581. border-top: 1px solid lighten($color1, 8%);
  582. border-bottom: 1px solid lighten($color1, 8%);
  583. line-height: 36px;
  584. overflow: hidden;
  585. flex: 0 0 auto;
  586. display: flex;
  587. }
  588. .account__action-bar-dropdown {
  589. flex: 1 1 auto;
  590. padding: 10px;
  591. }
  592. .account__action-bar-links {
  593. display: flex;
  594. flex: 1 1 auto;
  595. line-height: 18px;
  596. }
  597. .account__action-bar__tab {
  598. text-decoration: none;
  599. overflow: hidden;
  600. width: 80px;
  601. border-left: 1px solid lighten($color1, 8%);
  602. padding: 10px 5px;
  603. & > span {
  604. display: block;
  605. text-transform: uppercase;
  606. font-size: 11px;
  607. color: $color3;
  608. }
  609. strong {
  610. display: block;
  611. font-size: 15px;
  612. font-weight: 500;
  613. color: $color5;
  614. }
  615. abbr {
  616. color: lighten($color1, 26%);
  617. }
  618. }
  619. .account__header__avatar {
  620. background-size: 90px 90px;
  621. display: block;
  622. height: 90px;
  623. margin: 0 auto 10px;
  624. overflow: hidden;
  625. width: 90px;
  626. }
  627. .account-authorize {
  628. padding: 14px 10px;
  629. .detailed-status__display-name {
  630. display: block;
  631. margin-bottom: 15px;
  632. overflow: hidden;
  633. }
  634. }
  635. .account-authorize__avatar {
  636. float: left;
  637. margin-right: 10px;
  638. }
  639. .status__display-name,
  640. .status__relative-time,
  641. .detailed-status__display-name,
  642. .detailed-status__datetime,
  643. .detailed-status__application,
  644. .account__display-name {
  645. text-decoration: none;
  646. }
  647. .status__display-name,
  648. .account__display-name {
  649. strong {
  650. color: $color5;
  651. }
  652. &.muted {
  653. .emojione {
  654. opacity: 0.5;
  655. }
  656. }
  657. }
  658. .status__display-name,
  659. .reply-indicator__display-name,
  660. .detailed-status__display-name,
  661. .account__display-name {
  662. &:hover strong {
  663. text-decoration: underline;
  664. }
  665. }
  666. .account__display-name strong {
  667. display: block;
  668. }
  669. .detailed-status__application,
  670. .detailed-status__datetime {
  671. color: inherit;
  672. }
  673. .detailed-status__display-name {
  674. color: $color2;
  675. display: block;
  676. line-height: 24px;
  677. margin-bottom: 15px;
  678. overflow: hidden;
  679. strong,
  680. span {
  681. display: block;
  682. }
  683. strong {
  684. font-size: 16px;
  685. color: $color5;
  686. }
  687. }
  688. .detailed-status__display-avatar {
  689. float: right;
  690. margin-right: 10px;
  691. }
  692. .status__avatar {
  693. height: 48px;
  694. left: 10px;
  695. position: absolute;
  696. top: 10px;
  697. width: 48px;
  698. }
  699. .muted {
  700. .status__content p,
  701. .status__content a {
  702. color: lighten($color1, 26%);
  703. }
  704. .status__display-name strong {
  705. color: lighten($color1, 26%);
  706. }
  707. .status__avatar {
  708. opacity: 0.5;
  709. }
  710. .status__content__spoiler-link {
  711. background: lighten($color1, 26%);
  712. color: lighten($color1, 4%);
  713. &:hover {
  714. background: lighten($color1, 29%);
  715. text-decoration: none;
  716. }
  717. }
  718. }
  719. .notification__message {
  720. margin-left: 68px;
  721. padding: 8px 0;
  722. padding-bottom: 0;
  723. cursor: default;
  724. color: $color3;
  725. font-size: 15px;
  726. position: relative;
  727. .fa {
  728. color: $color4;
  729. }
  730. }
  731. .notification__favourite-icon-wrapper {
  732. left: -26px;
  733. position: absolute;
  734. }
  735. .star-icon.active {
  736. color: #ca8f04;
  737. }
  738. .notification__display-name {
  739. color: inherit;
  740. font-weight: 500;
  741. text-decoration: none;
  742. &:hover {
  743. color: $color5;
  744. text-decoration: underline;
  745. }
  746. }
  747. .display-name {
  748. display: block;
  749. max-width: 100%;
  750. overflow: hidden;
  751. text-overflow: ellipsis;
  752. white-space: nowrap;
  753. }
  754. .display-name__html {
  755. font-weight: 500;
  756. }
  757. .display-name__account {
  758. font-size: 14px;
  759. }
  760. .status__relative-time,
  761. .detailed-status__datetime {
  762. &:hover {
  763. text-decoration: underline;
  764. }
  765. }
  766. .transparent-background, .imageloader {
  767. background: image-url('void.png');
  768. }
  769. .imageloader {
  770. display: block;
  771. }
  772. .navigation-bar {
  773. padding: 10px;
  774. display: flex;
  775. flex-shrink: 0;
  776. cursor: default;
  777. color: $color3;
  778. strong {
  779. color: $color5;
  780. }
  781. .permalink {
  782. text-decoration: none;
  783. }
  784. }
  785. .navigation-bar__profile {
  786. flex: 1 1 auto;
  787. margin-left: 8px;
  788. }
  789. .navigation-bar__profile-account {
  790. display: block;
  791. font-weight: 500;
  792. }
  793. .navigation-bar__profile-edit {
  794. color: inherit;
  795. text-decoration: none;
  796. }
  797. .dropdown {
  798. display: inline-block;
  799. }
  800. .dropdown__content {
  801. display: none;
  802. position: absolute;
  803. }
  804. .dropdown__sep {
  805. border-bottom: 1px solid darken($color2, 8%);
  806. margin: 5px 7px 6px;
  807. padding-top: 1px;
  808. }
  809. .dropdown--active .dropdown__content {
  810. display: block;
  811. line-height: 18px;
  812. text-align: left;
  813. z-index: 9999;
  814. &:before {
  815. content: "";
  816. display: block;
  817. position: absolute;
  818. width: 0;
  819. height: 0;
  820. border-style: solid;
  821. border-width: 0 4.5px 7.8px 4.5px;
  822. border-color: transparent transparent $color2 transparent;
  823. top: -7px;
  824. left: 8px;
  825. }
  826. &.light {
  827. &:before {
  828. border-color: transparent transparent $color5 transparent;
  829. }
  830. }
  831. & > ul {
  832. list-style: none;
  833. background: $color2;
  834. padding: 4px 0;
  835. border-radius: 4px;
  836. box-shadow: 0 0 15px rgba($color8, 0.4);
  837. min-width: 140px;
  838. position: relative;
  839. left: -10px;
  840. }
  841. &.dropdown__left {
  842. & > ul {
  843. left: -98px;
  844. }
  845. & > .emoji-dialog {
  846. left: -210px;
  847. }
  848. }
  849. & > ul > li > a {
  850. font-size: 13px;
  851. line-height: 18px;
  852. display: block;
  853. padding: 4px 14px;
  854. box-sizing: border-box;
  855. width: 140px;
  856. text-decoration: none;
  857. background: $color2;
  858. color: $color1;
  859. overflow: hidden;
  860. text-overflow: ellipsis;
  861. white-space: nowrap;
  862. &:focus {
  863. outline: 0;
  864. }
  865. &:hover {
  866. background: $color4;
  867. color: $color2;
  868. }
  869. }
  870. }
  871. .dropdown__icon {
  872. vertical-align: middle;
  873. }
  874. .static-content {
  875. padding: 10px;
  876. padding-top: 20px;
  877. color: lighten($color1, 26%);
  878. h1 {
  879. font-size: 16px;
  880. font-weight: 500;
  881. margin-bottom: 40px;
  882. text-align: center;
  883. }
  884. p {
  885. font-size: 13px;
  886. margin-bottom: 20px;
  887. }
  888. }
  889. .columns-area {
  890. display: flex;
  891. flex: 1 1 auto;
  892. flex-direction: row;
  893. justify-content: flex-start;
  894. overflow-x: auto;
  895. }
  896. @media screen and (min-width: 360px) {
  897. .columns-area {
  898. padding: 10px;
  899. }
  900. }
  901. .column {
  902. width: 330px;
  903. position: relative;
  904. box-sizing: border-box;
  905. display: flex;
  906. flex-direction: column;
  907. > .scrollable {
  908. background: $color1;
  909. }
  910. }
  911. .ui {
  912. flex: 0 0 auto;
  913. display: flex;
  914. flex-direction: column;
  915. width: 100%;
  916. height: 100%;
  917. background: darken($color1, 7%);
  918. }
  919. .drawer {
  920. width: 300px;
  921. box-sizing: border-box;
  922. display: flex;
  923. flex-direction: column;
  924. overflow-y: hidden;
  925. }
  926. .drawer__tab {
  927. display: block;
  928. flex: 1 1 auto;
  929. padding: 15px;
  930. padding-bottom: 13px;
  931. color: $color3;
  932. text-decoration: none;
  933. text-align: center;
  934. font-size: 16px;
  935. border-bottom: 2px solid transparent;
  936. }
  937. .column, .drawer {
  938. flex: 1 1 100%;
  939. overflow: hidden;
  940. }
  941. @media screen and (min-width: 360px) {
  942. .tabs-bar {
  943. margin: 10px;
  944. margin-bottom: 0;
  945. }
  946. .search {
  947. margin-bottom: 10px;
  948. }
  949. }
  950. @media screen and (max-width: 1024px) {
  951. .column, .drawer {
  952. width: 100%;
  953. padding: 0;
  954. }
  955. .columns-area {
  956. flex-direction: column;
  957. }
  958. .search__input, .autosuggest-textarea__textarea {
  959. font-size: 16px;
  960. }
  961. }
  962. @media screen and (min-width: 1025px) {
  963. .columns-area {
  964. padding: 0;
  965. }
  966. .column, .drawer {
  967. flex: 0 0 auto;
  968. padding: 10px;
  969. padding-left: 5px;
  970. padding-right: 5px;
  971. &:first-child {
  972. padding-left: 10px;
  973. }
  974. &:last-child {
  975. padding-right: 10px;
  976. }
  977. }
  978. }
  979. @media screen and (min-width: 2560px) {
  980. .columns-area {
  981. justify-content: center;
  982. }
  983. .column, .drawer {
  984. width: 350px;
  985. border-radius: 4px;
  986. height: 90vh;
  987. margin-top: 5vh;
  988. }
  989. }
  990. .drawer__pager {
  991. box-sizing: border-box;
  992. padding: 0;
  993. flex-grow: 1;
  994. position: relative;
  995. overflow: hidden;
  996. display: flex;
  997. }
  998. .drawer__inner {
  999. position: absolute;
  1000. top: 0;
  1001. left: 0;
  1002. background: lighten($color1, 13%);
  1003. box-sizing: border-box;
  1004. padding: 0;
  1005. display: flex;
  1006. flex-direction: column;
  1007. overflow: hidden;
  1008. overflow-y: auto;
  1009. width: 100%;
  1010. height: 100%;
  1011. &.darker {
  1012. background: $color1;
  1013. }
  1014. }
  1015. .pseudo-drawer {
  1016. background: lighten($color1, 13%);
  1017. font-size: 13px;
  1018. text-align: left;
  1019. }
  1020. .drawer__header {
  1021. flex: 0 0 auto;
  1022. font-size: 16px;
  1023. background: lighten($color1, 8%);
  1024. margin-bottom: 10px;
  1025. display: flex;
  1026. flex-direction: row;
  1027. a {
  1028. transition: all 100ms ease-in;
  1029. &:hover {
  1030. background: lighten($color1, 3%);
  1031. transition: all 200ms ease-out;
  1032. }
  1033. }
  1034. }
  1035. .tabs-bar {
  1036. display: flex;
  1037. background: lighten($color1, 8%);
  1038. flex: 0 0 auto;
  1039. overflow-y: auto;
  1040. }
  1041. .tabs-bar__link {
  1042. display: block;
  1043. flex: 1 1 auto;
  1044. padding: 15px 10px;
  1045. color: $color5;
  1046. text-decoration: none;
  1047. text-align: center;
  1048. font-size: 14px;
  1049. font-weight: 500;
  1050. border-bottom: 2px solid lighten($color1, 8%);
  1051. transition: all 200ms linear;
  1052. .fa {
  1053. font-weight: 400;
  1054. font-size: 16px;
  1055. }
  1056. &.active {
  1057. border-bottom: 2px solid $color4;
  1058. color: $color4;
  1059. }
  1060. &:hover, &:focus, &:active {
  1061. background: lighten($color1, 14%);
  1062. transition: all 100ms linear;
  1063. }
  1064. span {
  1065. margin-left: 5px;
  1066. display: none;
  1067. }
  1068. }
  1069. @media screen and (min-width: 600px) {
  1070. .tabs-bar__link {
  1071. span {
  1072. display: inline;
  1073. }
  1074. }
  1075. }
  1076. @media screen and (min-width: 1025px) {
  1077. .tabs-bar {
  1078. display: none;
  1079. }
  1080. }
  1081. .react-autosuggest__container {
  1082. position: relative;
  1083. }
  1084. .react-autosuggest__suggestions-container {
  1085. position: absolute;
  1086. top: 100%;
  1087. width: 100%;
  1088. z-index: 99;
  1089. box-shadow: 0 0 15px rgba($color8, 0.4);
  1090. }
  1091. .react-autosuggest__section-title {
  1092. background: $color3;
  1093. padding: 4px 10px;
  1094. font-weight: 500;
  1095. cursor: default;
  1096. color: $color1;
  1097. text-transform: uppercase;
  1098. font-size: 11px;
  1099. }
  1100. .react-autosuggest__suggestions-list {
  1101. background: $color2;
  1102. color: $color1;
  1103. font-size: 14px;
  1104. }
  1105. .react-autosuggest__suggestion {
  1106. padding: 10px;
  1107. cursor: pointer;
  1108. }
  1109. .react-autosuggest__suggestion--focused {
  1110. background: $color4;
  1111. color: $color5;
  1112. }
  1113. .scrollable {
  1114. overflow-y: scroll;
  1115. overflow-x: hidden;
  1116. flex: 1 1 auto;
  1117. backface-visibility: hidden;
  1118. -webkit-overflow-scrolling: touch;
  1119. &.optionally-scrollable {
  1120. overflow-y: auto;
  1121. }
  1122. }
  1123. .column-back-button {
  1124. padding: 15px;
  1125. font-size: 16px;
  1126. background: lighten($color1, 4%);
  1127. flex: 0 0 auto;
  1128. cursor: pointer;
  1129. color: $color4;
  1130. z-index: 3;
  1131. &:hover {
  1132. text-decoration: underline;
  1133. }
  1134. }
  1135. .column-back-button__icon {
  1136. display: inline-block;
  1137. margin-right: 5px;
  1138. }
  1139. .column-back-button--slim {
  1140. position: relative;
  1141. }
  1142. .column-back-button--slim-button {
  1143. cursor: pointer;
  1144. flex: 0 0 auto;
  1145. font-size: 16px;
  1146. padding: 15px;
  1147. position: absolute;
  1148. right: 0;
  1149. top: -48px;
  1150. }
  1151. .react-toggle {
  1152. display: inline-block;
  1153. position: relative;
  1154. cursor: pointer;
  1155. background-color: transparent;
  1156. border: 0;
  1157. padding: 0;
  1158. user-select: none;
  1159. -webkit-tap-highlight-color: rgba($color8, 0);
  1160. -webkit-tap-highlight-color: transparent;
  1161. }
  1162. .react-toggle-screenreader-only {
  1163. border: 0;
  1164. clip: rect(0 0 0 0);
  1165. height: 1px;
  1166. margin: -1px;
  1167. overflow: hidden;
  1168. padding: 0;
  1169. position: absolute;
  1170. width: 1px;
  1171. }
  1172. .react-toggle--disabled {
  1173. cursor: not-allowed;
  1174. opacity: 0.5;
  1175. transition: opacity 0.25s;
  1176. }
  1177. .react-toggle-track {
  1178. width: 50px;
  1179. height: 24px;
  1180. padding: 0;
  1181. border-radius: 30px;
  1182. background-color: $color1;
  1183. transition: all 0.2s ease;
  1184. }
  1185. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1186. background-color: darken($color1, 10%);
  1187. }
  1188. .react-toggle--checked .react-toggle-track {
  1189. background-color: $color4;
  1190. }
  1191. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1192. background-color: lighten($color4, 10%);
  1193. }
  1194. .react-toggle-track-check {
  1195. position: absolute;
  1196. width: 14px;
  1197. height: 10px;
  1198. top: 0px;
  1199. bottom: 0px;
  1200. margin-top: auto;
  1201. margin-bottom: auto;
  1202. line-height: 0;
  1203. left: 8px;
  1204. opacity: 0;
  1205. transition: opacity 0.25s ease;
  1206. }
  1207. .react-toggle--checked .react-toggle-track-check {
  1208. opacity: 1;
  1209. transition: opacity 0.25s ease;
  1210. }
  1211. .react-toggle-track-x {
  1212. position: absolute;
  1213. width: 10px;
  1214. height: 10px;
  1215. top: 0px;
  1216. bottom: 0px;
  1217. margin-top: auto;
  1218. margin-bottom: auto;
  1219. line-height: 0;
  1220. right: 10px;
  1221. opacity: 1;
  1222. transition: opacity 0.25s ease;
  1223. }
  1224. .react-toggle--checked .react-toggle-track-x {
  1225. opacity: 0;
  1226. }
  1227. .react-toggle-thumb {
  1228. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1229. position: absolute;
  1230. top: 1px;
  1231. left: 1px;
  1232. width: 22px;
  1233. height: 22px;
  1234. border: 1px solid $color1;
  1235. border-radius: 50%;
  1236. background-color: darken($color5, 2%);
  1237. box-sizing: border-box;
  1238. transition: all 0.25s ease;
  1239. }
  1240. .react-toggle--checked .react-toggle-thumb {
  1241. left: 27px;
  1242. border-color: $color4;
  1243. }
  1244. .column-link {
  1245. background: lighten($color1, 8%);
  1246. color: $color5;
  1247. display: block;
  1248. font-size: 16px;
  1249. padding: 15px;
  1250. text-decoration: none;
  1251. &:hover {
  1252. background: lighten($color1, 11%);
  1253. }
  1254. &.hidden-on-mobile {
  1255. @media screen and (max-width: 1024px) {
  1256. display: none;
  1257. }
  1258. }
  1259. }
  1260. .column-link__icon {
  1261. display: inline-block;
  1262. margin-right: 5px;
  1263. }
  1264. .autosuggest-textarea,
  1265. .spoiler-input {
  1266. position: relative;
  1267. }
  1268. .autosuggest-textarea__textarea,
  1269. .spoiler-input__input {
  1270. display: block;
  1271. box-sizing: border-box;
  1272. width: 100%;
  1273. margin: 0;
  1274. color: $color1;
  1275. padding: 10px;
  1276. font-family: inherit;
  1277. font-size: 14px;
  1278. resize: vertical;
  1279. border: 0;
  1280. outline: 0;
  1281. &:focus {
  1282. outline: 0;
  1283. }
  1284. @media screen and (max-width: 600px) {
  1285. font-size: 16px;
  1286. }
  1287. }
  1288. .spoiler-input__input {
  1289. border-radius: 4px;
  1290. }
  1291. .autosuggest-textarea__textarea {
  1292. min-height: 100px;
  1293. background: $color5;
  1294. border-radius: 4px 4px 0 0;
  1295. padding-bottom: 0;
  1296. padding-right: 10px + 22px;
  1297. resize: none;
  1298. @media screen and (max-width: 600px) {
  1299. height: 100px !important; // prevent auto-resize textarea
  1300. resize: vertical;
  1301. }
  1302. }
  1303. .autosuggest-textarea__suggestions {
  1304. position: absolute;
  1305. top: 100%;
  1306. width: 100%;
  1307. z-index: 99;
  1308. box-shadow: 0 0 15px rgba($color8, 0.4);
  1309. background: $color2;
  1310. color: $color1;
  1311. font-size: 14px;
  1312. }
  1313. .autosuggest-textarea__suggestions__item {
  1314. padding: 10px;
  1315. cursor: pointer;
  1316. &:hover {
  1317. background: darken($color2, 10%);
  1318. }
  1319. &.selected {
  1320. background: $color4;
  1321. color: $color5;
  1322. }
  1323. }
  1324. .autosuggest-account {
  1325. overflow: hidden;
  1326. }
  1327. .autosuggest-account-icon {
  1328. float: left;
  1329. margin-right: 5px;
  1330. }
  1331. .autosuggest-status {
  1332. overflow: hidden;
  1333. white-space: nowrap;
  1334. text-overflow: ellipsis;
  1335. strong {
  1336. font-weight: 500;
  1337. }
  1338. }
  1339. .character-counter__wrapper {
  1340. line-height: 36px;
  1341. margin-right: 16px;
  1342. padding-top: 10px;
  1343. }
  1344. .character-counter {
  1345. cursor: default;
  1346. font-size: 16px;
  1347. }
  1348. .character-counter--over {
  1349. color: #ff5050;
  1350. }
  1351. .getting-started__wrapper {
  1352. position: relative;
  1353. }
  1354. .getting-started {
  1355. box-sizing: border-box;
  1356. padding-bottom: 235px;
  1357. background: image-url('mastodon-getting-started.png') no-repeat 0 100%/contain local;
  1358. flex: 1 0 auto;
  1359. p {
  1360. color: $color2;
  1361. }
  1362. a {
  1363. color: lighten($color1, 26%);
  1364. }
  1365. }
  1366. .setting-text {
  1367. color: $color3;
  1368. background: transparent;
  1369. border: none;
  1370. border-bottom: 2px solid $color3;
  1371. box-sizing: border-box;
  1372. display: block;
  1373. font-family: inherit;
  1374. margin-bottom: 10px;
  1375. padding: 7px 0px;
  1376. width: 100%;
  1377. &:focus, &:active {
  1378. color: $color5;
  1379. border-bottom-color: $color4;
  1380. }
  1381. @media screen and (max-width: 600px) {
  1382. font-size: 16px;
  1383. }
  1384. }
  1385. @import 'boost';
  1386. button.icon-button i.fa-retweet {
  1387. height: 19px;
  1388. width: 22px;
  1389. background-position: 0 0;
  1390. transition: background-position 0.9s steps(10);
  1391. transition-duration: 0s;
  1392. &::before {
  1393. display: none !important;
  1394. }
  1395. }
  1396. button.icon-button.active i.fa-retweet {
  1397. transition-duration: 0.9s;
  1398. background-position: 0 100%;
  1399. }
  1400. .status-card {
  1401. display: flex;
  1402. cursor: pointer;
  1403. font-size: 14px;
  1404. border: 1px solid lighten($color1, 8%);
  1405. border-radius: 4px;
  1406. color: lighten($color1, 26%);
  1407. margin-top: 14px;
  1408. text-decoration: none;
  1409. overflow: hidden;
  1410. &:hover {
  1411. background: lighten($color1, 8%);
  1412. }
  1413. }
  1414. .status-card__title {
  1415. display: block;
  1416. font-weight: 500;
  1417. margin-bottom: 5px;
  1418. color: $color3;
  1419. overflow: hidden;
  1420. text-overflow: ellipsis;
  1421. white-space: nowrap;
  1422. }
  1423. .status-card__content {
  1424. flex: 1 1 auto;
  1425. overflow: hidden;
  1426. padding: 14px 14px 14px 8px;
  1427. }
  1428. .status-card__description {
  1429. color: $color3;
  1430. }
  1431. .status-card__image {
  1432. flex: 0 0 100px;
  1433. background: lighten($color1, 8%);
  1434. }
  1435. .status-card__image-image {
  1436. border-radius: 4px 0px 0px 4px;
  1437. display: block;
  1438. height: auto;
  1439. margin: 0;
  1440. width: 100%;
  1441. }
  1442. .load-more {
  1443. display: block;
  1444. color: lighten($color1, 26%);
  1445. text-align: center;
  1446. padding: 15px;
  1447. text-decoration: none;
  1448. &:hover {
  1449. background: lighten($color1, 2%);
  1450. }
  1451. }
  1452. .missing-indicator {
  1453. text-align: center;
  1454. font-size: 16px;
  1455. font-weight: 500;
  1456. color: lighten($color1, 16%);
  1457. padding-top: 210px;
  1458. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1459. cursor: default;
  1460. }
  1461. .column-header {
  1462. padding: 15px;
  1463. font-size: 16px;
  1464. background: lighten($color1, 4%);
  1465. flex: 0 0 auto;
  1466. cursor: pointer;
  1467. position: relative;
  1468. z-index: 2;
  1469. &.active {
  1470. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1471. }
  1472. &.active .fa {
  1473. color: $color4;
  1474. text-shadow: 0 0 10px rgba($color4, 0.4);
  1475. }
  1476. &.hidden-on-mobile {
  1477. @media screen and (max-width: 1024px) {
  1478. display: none;
  1479. }
  1480. }
  1481. }
  1482. .column-header__icon {
  1483. display: inline-block;
  1484. margin-right: 5px;
  1485. }
  1486. .loading-indicator {
  1487. color: $color2;
  1488. font-size: 16px;
  1489. font-weight: 500;
  1490. padding-top: 120px;
  1491. text-align: center;
  1492. }
  1493. .collapsable-collapsed {
  1494. color: $color3;
  1495. background: lighten($color1, 4%);
  1496. }
  1497. .collapsable {
  1498. color: $color5;
  1499. background: lighten($color1, 8%);
  1500. &:hover {
  1501. color: $color5;
  1502. background: lighten($color1, 8%);
  1503. }
  1504. }
  1505. .media-spoiler,
  1506. .video-error-cover {
  1507. align-items: center;
  1508. background: $color8;
  1509. color: $color5;
  1510. cursor: pointer;
  1511. display: flex;
  1512. flex-direction: column;
  1513. height: 100%;
  1514. justify-content: center;
  1515. margin-top: 8px;
  1516. position: relative;
  1517. text-align: center;
  1518. z-index: 100;
  1519. }
  1520. .media-spoiler__warning {
  1521. display: block;
  1522. font-size: 14px;
  1523. }
  1524. .media-spoiler__trigger {
  1525. display: block;
  1526. font-size: 11px;
  1527. font-weight: 500;
  1528. }
  1529. .spoiler-button {
  1530. left: 4px;
  1531. position: absolute;
  1532. top: 4px;
  1533. }
  1534. .modal-container--preloader {
  1535. background: lighten($color1, 8%);
  1536. }
  1537. .account--panel {
  1538. background: lighten($color1, 4%);
  1539. border-top: 1px solid lighten($color1, 8%);
  1540. border-bottom: 1px solid lighten($color1, 8%);
  1541. display: flex;
  1542. flex-direction: row;
  1543. padding: 10px 0px;
  1544. }
  1545. .account--panel__button,
  1546. .detailed-status__button {
  1547. flex: 1 1 auto;
  1548. text-align: center;
  1549. }
  1550. .column-settings__outer {
  1551. background: lighten($color1, 8%);
  1552. padding: 15px;
  1553. }
  1554. .column-settings__section {
  1555. color: $color3;
  1556. cursor: default;
  1557. display: block;
  1558. font-weight: 500;
  1559. margin-bottom: 10px;
  1560. }
  1561. .modal-container__nav {
  1562. align-items: center;
  1563. background: rgba(0, 0, 0, 0.5);
  1564. box-sizing: border-box;
  1565. color: $color5;
  1566. cursor: pointer;
  1567. display: flex;
  1568. font-size: 24px;
  1569. height: 100%;
  1570. padding: 30px 15px;
  1571. position: absolute;
  1572. top: 0;
  1573. }
  1574. .modal-container__nav--left {
  1575. left: -61px;
  1576. }
  1577. .modal-container__nav--right {
  1578. right: -61px;
  1579. }
  1580. .account--follows-info {
  1581. color: $color5;
  1582. }
  1583. .setting-toggle__label {
  1584. display: block;
  1585. line-height: 24px;
  1586. vertical-align: middle;
  1587. }
  1588. .setting-toggle {
  1589. color: $color3;
  1590. display: inline-block;
  1591. margin-bottom: 14px;
  1592. margin-left: 8px;
  1593. vertical-align: middle;
  1594. }
  1595. .report.scrollable {
  1596. box-sizing: border-box;
  1597. display: flex;
  1598. flex-direction: column;
  1599. max-height: 100%;
  1600. }
  1601. .report__target {
  1602. border-bottom: 1px solid lighten($color1, 4%);
  1603. color: $color2;
  1604. flex: 0 0 auto;
  1605. padding: 10px;
  1606. strong {
  1607. display: block;
  1608. color: $color5;
  1609. font-weight: 500;
  1610. }
  1611. }
  1612. .report__statuses {
  1613. flex: 1 1 auto;
  1614. }
  1615. .report__textarea-wrapper {
  1616. flex: 0 0 100px;
  1617. padding: 10px;
  1618. }
  1619. .report__textarea {
  1620. background: transparent;
  1621. box-sizing: border-box;
  1622. border: 0;
  1623. border-bottom: 2px solid $color3;
  1624. border-radius: 2px 2px 0 0;
  1625. color: $color5;
  1626. display: block;
  1627. font-family: inherit;
  1628. font-size: 14px;
  1629. margin-bottom: 10px;
  1630. outline: 0;
  1631. padding: 7px 4px;
  1632. resize: vertical;
  1633. width: 100%;
  1634. &:active, &:focus {
  1635. border-bottom-color: $color4;
  1636. background: rgba($color8, 0.1);
  1637. }
  1638. }
  1639. .report__submit {
  1640. margin-top: 10px;
  1641. overflow: hidden;
  1642. }
  1643. .report__submit-button {
  1644. float: right;
  1645. }
  1646. .empty-column-indicator {
  1647. color: lighten($color1, 20%);
  1648. background: $color1;
  1649. text-align: center;
  1650. padding: 20px;
  1651. font-size: 15px;
  1652. font-weight: 400;
  1653. cursor: default;
  1654. display: flex;
  1655. flex: 1 1 auto;
  1656. align-items: center;
  1657. a {
  1658. color: $color4;
  1659. text-decoration: none;
  1660. &:hover {
  1661. text-decoration: underline;
  1662. }
  1663. }
  1664. }
  1665. .status-list__unread-indicator, .notifications__unread-indicator {
  1666. position: absolute;
  1667. top: 35px;
  1668. left: 0;
  1669. right: 0;
  1670. margin: 0 auto;
  1671. width: 60%;
  1672. pointer-events: none;
  1673. height: 28px;
  1674. z-index: 1;
  1675. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1676. }
  1677. .emoji-dialog {
  1678. width: 245px;
  1679. height: 270px;
  1680. background: $color5;
  1681. box-sizing: border-box;
  1682. border-radius: 4px;
  1683. overflow: hidden;
  1684. position: relative;
  1685. box-shadow: 0 0 8px rgba($color8, 0.2);
  1686. .emojione {
  1687. margin: 0;
  1688. width: 100%;
  1689. height: auto;
  1690. }
  1691. .emoji-dialog-header {
  1692. padding: 0 10px;
  1693. ul {
  1694. padding: 0;
  1695. margin: 0;
  1696. list-style: none;
  1697. }
  1698. li {
  1699. display: inline-block;
  1700. box-sizing: border-box;
  1701. padding: 10px 5px;
  1702. cursor: pointer;
  1703. border-bottom: 2px solid transparent;
  1704. .emoji {
  1705. width: 18px;
  1706. height: 18px;
  1707. }
  1708. img, svg {
  1709. width: 18px;
  1710. height: 18px;
  1711. filter: grayscale(100%);
  1712. }
  1713. &:hover {
  1714. img, svg {
  1715. filter: grayscale(0);
  1716. }
  1717. }
  1718. &.active {
  1719. border-bottom-color: $color4;
  1720. img, svg {
  1721. filter: grayscale(0);
  1722. }
  1723. }
  1724. }
  1725. }
  1726. .emoji-row {
  1727. box-sizing: border-box;
  1728. overflow-y: hidden;
  1729. padding-left: 10px;
  1730. .emoji {
  1731. display: inline-block;
  1732. padding: 5px;
  1733. border-radius: 4px;
  1734. }
  1735. }
  1736. .emoji-category-header {
  1737. box-sizing: border-box;
  1738. overflow-y: hidden;
  1739. padding: 10px 8px 10px 16px;
  1740. display: table;
  1741. > * {
  1742. display: table-cell;
  1743. vertical-align: middle;
  1744. }
  1745. }
  1746. .emoji-category-title {
  1747. font-size: 12px;
  1748. text-transform: uppercase;
  1749. font-weight: 500;
  1750. color: darken($color2, 18%);
  1751. cursor: default;
  1752. }
  1753. .emoji-category-heading-decoration {
  1754. text-align: right;
  1755. }
  1756. .modifiers {
  1757. list-style: none;
  1758. padding: 0;
  1759. margin: 0;
  1760. vertical-align: middle;
  1761. white-space: nowrap;
  1762. margin-top: 4px;
  1763. li {
  1764. display: inline-block;
  1765. padding: 0 2px;
  1766. &:last-of-type {
  1767. padding-right: 0;
  1768. }
  1769. }
  1770. .modifier {
  1771. display: inline-block;
  1772. border-radius: 10px;
  1773. width: 15px;
  1774. height: 15px;
  1775. position: relative;
  1776. cursor: pointer;
  1777. &.active:after {
  1778. content: "";
  1779. display: block;
  1780. position: absolute;
  1781. width: 7px;
  1782. height: 7px;
  1783. border-radius: 10px;
  1784. border: 2px solid $color5;
  1785. top: 2px;
  1786. left: 2px;
  1787. }
  1788. }
  1789. }
  1790. .emoji-search-wrapper {
  1791. padding: 10px;
  1792. border-bottom: 1px solid lighten($color2, 4%);
  1793. }
  1794. .emoji-search {
  1795. font-size: 14px;
  1796. font-weight: 400;
  1797. padding: 7px 9px;
  1798. font-family: inherit;
  1799. display: block;
  1800. width: 100%;
  1801. background: rgba($color2, 0.3);
  1802. color: darken($color2, 18%);
  1803. border: 1px solid $color2;
  1804. border-radius: 4px;
  1805. }
  1806. .emoji-categories-wrapper {
  1807. position: absolute;
  1808. top: 42px;
  1809. bottom: 0;
  1810. left: 0;
  1811. right: 0;
  1812. }
  1813. .emoji-search-wrapper + .emoji-categories-wrapper {
  1814. top: 93px;
  1815. }
  1816. .emoji-row .emoji {
  1817. img, svg {
  1818. transition: transform 60ms ease-in-out;
  1819. }
  1820. &:hover {
  1821. background: lighten($color2, 3%);
  1822. img, svg {
  1823. transform: translateZ(0) scale(1.2);
  1824. }
  1825. }
  1826. }
  1827. .emoji {
  1828. width: 22px;
  1829. height: 22px;
  1830. cursor: pointer;
  1831. &:focus {
  1832. outline: 0;
  1833. }
  1834. }
  1835. }
  1836. .upload-area {
  1837. align-items: center;
  1838. background: rgba($color8, 0.8);
  1839. display: flex;
  1840. height: 100%;
  1841. justify-content: center;
  1842. left: 0;
  1843. opacity: 0;
  1844. position: absolute;
  1845. top: 0;
  1846. visibility: hidden;
  1847. width: 100%;
  1848. z-index: 2000;
  1849. * {
  1850. pointer-events: none;
  1851. }
  1852. }
  1853. .upload-area__drop {
  1854. width: 320px;
  1855. height: 160px;
  1856. display: flex;
  1857. box-sizing: border-box;
  1858. position: relative;
  1859. padding: 8px;
  1860. }
  1861. .upload-area__background {
  1862. position: absolute;
  1863. top: 0;
  1864. right: 0;
  1865. bottom: 0;
  1866. left: 0;
  1867. z-index: -1;
  1868. border-radius: 4px;
  1869. background: $color1;
  1870. box-shadow: 0 0 5px rgba($color8, 0.2);
  1871. }
  1872. .upload-area__content {
  1873. flex: 1;
  1874. display: flex;
  1875. align-items: center;
  1876. justify-content: center;
  1877. color: $color2;
  1878. font-size: 18px;
  1879. font-weight: 500;
  1880. border: 2px dashed lighten($color1, 26%);
  1881. border-radius: 4px;
  1882. }
  1883. .upload-progress {
  1884. padding: 10px;
  1885. color: lighten($color1, 26%);
  1886. overflow: hidden;
  1887. display: flex;
  1888. .fa {
  1889. font-size: 34px;
  1890. margin-right: 10px;
  1891. }
  1892. span {
  1893. font-size: 12px;
  1894. text-transform: uppercase;
  1895. font-weight: 500;
  1896. display: block;
  1897. }
  1898. }
  1899. .upload-progess__message {
  1900. flex: 1 1 auto;
  1901. }
  1902. .upload-progress__backdrop {
  1903. width: 100%;
  1904. height: 6px;
  1905. border-radius: 6px;
  1906. background: lighten($color1, 26%);
  1907. position: relative;
  1908. margin-top: 5px;
  1909. }
  1910. .upload-progress__tracker {
  1911. position: absolute;
  1912. left: 0;
  1913. top: 0;
  1914. height: 6px;
  1915. background: $color4;
  1916. border-radius: 6px;
  1917. }
  1918. .emoji-button {
  1919. outline: 0;
  1920. &:active, &:focus {
  1921. outline: 0 !important;
  1922. }
  1923. img {
  1924. filter: grayscale(100%);
  1925. opacity: 0.8;
  1926. display: block;
  1927. margin: 0;
  1928. width: 22px;
  1929. height: 22px;
  1930. margin-top: 2px;
  1931. }
  1932. &:hover, &:active, &:focus {
  1933. img {
  1934. opacity: 1;
  1935. filter: none;
  1936. }
  1937. }
  1938. }
  1939. .dropdown--active .emoji-button img {
  1940. opacity: 1;
  1941. filter: none;
  1942. }
  1943. .privacy-dropdown {
  1944. position: relative;
  1945. }
  1946. .privacy-dropdown__dropdown {
  1947. display: none;
  1948. position: absolute;
  1949. left: 0;
  1950. top: 27px;
  1951. width: 230px;
  1952. background: $color5;
  1953. border-radius: 0 4px 4px 4px;
  1954. z-index: 2;
  1955. overflow: hidden;
  1956. }
  1957. .privacy-dropdown__option {
  1958. color: $color1;
  1959. padding: 10px;
  1960. cursor: pointer;
  1961. display: flex;
  1962. &:hover, &.active {
  1963. background: $color4;
  1964. color: $color5;
  1965. .privacy-dropdown__option__content {
  1966. color: $color5;
  1967. strong {
  1968. color: $color5;
  1969. }
  1970. }
  1971. }
  1972. &.active:hover {
  1973. background: lighten($color4, 4%);
  1974. }
  1975. }
  1976. .privacy-dropdown__option__icon {
  1977. display: flex;
  1978. align-items: center;
  1979. justify-content: center;
  1980. margin-right: 10px;
  1981. }
  1982. .privacy-dropdown__option__content {
  1983. flex: 1 1 auto;
  1984. color: darken($color3, 24%);
  1985. strong {
  1986. font-weight: 500;
  1987. display: block;
  1988. color: $color1;
  1989. }
  1990. }
  1991. .privacy-dropdown.active {
  1992. .privacy-dropdown__value {
  1993. background: $color5;
  1994. border-radius: 4px 4px 0 0;
  1995. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1996. }
  1997. .privacy-dropdown__value-icon {
  1998. line-height: 27px;
  1999. }
  2000. .privacy-dropdown__dropdown {
  2001. display: block;
  2002. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  2003. }
  2004. }
  2005. .search {
  2006. position: relative;
  2007. }
  2008. .search__input {
  2009. padding-right: 30px;
  2010. color: $color2;
  2011. outline: 0;
  2012. box-sizing: border-box;
  2013. display: block;
  2014. width: 100%;
  2015. border: none;
  2016. padding: 10px;
  2017. padding-right: 30px;
  2018. font-family: inherit;
  2019. background: $color1;
  2020. color: $color3;
  2021. font-size: 14px;
  2022. margin: 0;
  2023. &::-moz-focus-inner {
  2024. border: 0;
  2025. }
  2026. &::-moz-focus-inner, &:focus, &:active {
  2027. outline: 0 !important;
  2028. }
  2029. &:focus {
  2030. background: lighten($color1, 4%);
  2031. }
  2032. @media screen and (max-width: 600px) {
  2033. font-size: 16px;
  2034. }
  2035. }
  2036. .search__icon {
  2037. .fa {
  2038. position: absolute;
  2039. top: 10px;
  2040. right: 10px;
  2041. z-index: 2;
  2042. display: inline-block;
  2043. opacity: 0;
  2044. transition: all 100ms linear;
  2045. font-size: 18px;
  2046. width: 18px;
  2047. height: 18px;
  2048. color: $color2;
  2049. cursor: default;
  2050. pointer-events: none;
  2051. &.active {
  2052. pointer-events: auto;
  2053. opacity: 0.3;
  2054. }
  2055. }
  2056. .fa-search {
  2057. transform: translateZ(0) rotate(90deg);
  2058. &.active {
  2059. pointer-events: none;
  2060. transform: translateZ(0) rotate(0deg);
  2061. }
  2062. }
  2063. .fa-times-circle {
  2064. top: 11px;
  2065. transform: translateZ(0) rotate(0deg);
  2066. cursor: pointer;
  2067. &.active {
  2068. transform: translateZ(0) rotate(90deg);
  2069. }
  2070. &:hover {
  2071. color: $color5;
  2072. }
  2073. }
  2074. }
  2075. .search-results__header {
  2076. color: lighten($color1, 26%);
  2077. background: lighten($color1, 2%);
  2078. border-bottom: 1px solid darken($color1, 4%);
  2079. padding: 15px 10px;
  2080. font-size: 14px;
  2081. font-weight: 500;
  2082. }
  2083. .search-results__hashtag {
  2084. display: block;
  2085. padding: 10px;
  2086. color: $color2;
  2087. text-decoration: none;
  2088. &:hover, &:active, &:focus {
  2089. color: lighten($color2, 4%);
  2090. text-decoration: underline;
  2091. }
  2092. }
  2093. .modal-root__overlay {
  2094. position: absolute;
  2095. top: 0;
  2096. left: 0;
  2097. right: 0;
  2098. bottom: 0;
  2099. z-index: 9999;
  2100. opacity: 0;
  2101. background: rgba($color8, 0.7);
  2102. transform: translateZ(0px);
  2103. }
  2104. .modal-root__container {
  2105. position: absolute;
  2106. top: 0;
  2107. left: 0;
  2108. width: 100%;
  2109. height: 100%;
  2110. display: flex;
  2111. flex-direction: column;
  2112. align-items: center;
  2113. justify-content: center;
  2114. align-content: space-around;
  2115. z-index: 9999;
  2116. opacity: 0;
  2117. pointer-events: none;
  2118. user-select: none;
  2119. }
  2120. .modal-root__modal {
  2121. pointer-events: auto;
  2122. display: flex;
  2123. z-index: 9999;
  2124. }
  2125. .media-modal {
  2126. max-width: 80vw;
  2127. max-height: 80vh;
  2128. position: relative;
  2129. img, video {
  2130. max-width: 80vw;
  2131. max-height: 80vh;
  2132. }
  2133. }
  2134. .media-modal__close {
  2135. position: absolute;
  2136. right: 4;
  2137. top: 4;
  2138. z-index: 100;
  2139. }
  2140. .onboarding-modal {
  2141. background: $color2;
  2142. color: $color1;
  2143. border-radius: 8px;
  2144. overflow: hidden;
  2145. display: flex;
  2146. flex-direction: column;
  2147. }
  2148. .onboarding-modal__pager {
  2149. height: 80vh;
  2150. width: 80vw;
  2151. max-width: 520px;
  2152. max-height: 420px;
  2153. position: relative;
  2154. & > div {
  2155. position: absolute;
  2156. top: 0;
  2157. left: 0;
  2158. width: 100%;
  2159. height: 100%;
  2160. box-sizing: border-box;
  2161. padding: 25px;
  2162. display: none;
  2163. flex-direction: column;
  2164. align-items: center;
  2165. justify-content: center;
  2166. display: flex;
  2167. opacity: 0;
  2168. user-select: text;
  2169. }
  2170. }
  2171. @media screen and (max-width: 550px) {
  2172. .onboarding-modal {
  2173. width: 100%;
  2174. height: 100%;
  2175. border-radius: 0;
  2176. }
  2177. .onboarding-modal__pager {
  2178. width: 100%;
  2179. height: auto;
  2180. max-width: none;
  2181. max-height: none;
  2182. flex: 1 1 auto;
  2183. }
  2184. }
  2185. .onboarding-modal__paginator {
  2186. flex: 0 0 auto;
  2187. background: darken($color2, 8%);
  2188. display: flex;
  2189. padding: 25px;
  2190. & > div {
  2191. min-width: 33px;
  2192. }
  2193. a {
  2194. color: darken($color2, 34%);
  2195. text-decoration: none;
  2196. font-size: 14px;
  2197. font-weight: 500;
  2198. &:hover, &:focus, &:active {
  2199. color: darken($color2, 38%);
  2200. }
  2201. &.onboarding-modal__done, &.onboarding-modal__next {
  2202. color: $color4;
  2203. }
  2204. }
  2205. }
  2206. .onboarding-modal__dots {
  2207. flex: 1 1 auto;
  2208. display: flex;
  2209. align-items: center;
  2210. justify-content: center;
  2211. }
  2212. .onboarding-modal__dot {
  2213. width: 14px;
  2214. height: 14px;
  2215. border-radius: 14px;
  2216. background: darken($color2, 16%);
  2217. margin: 0 3px;
  2218. cursor: pointer;
  2219. &:hover {
  2220. background: darken($color2, 18%);
  2221. }
  2222. &.active {
  2223. cursor: default;
  2224. background: darken($color2, 24%);
  2225. }
  2226. }
  2227. .onboarding-modal__page {
  2228. cursor: default;
  2229. line-height: 21px;
  2230. h1 {
  2231. font-size: 18px;
  2232. font-weight: 500;
  2233. color: $color1;
  2234. margin-bottom: 20px;
  2235. }
  2236. a {
  2237. color: $color4;
  2238. &:hover, &:focus, &:active {
  2239. color: lighten($color4, 4%);
  2240. }
  2241. }
  2242. p {
  2243. font-size: 16px;
  2244. color: lighten($color1, 8%);
  2245. margin-top: 10px;
  2246. margin-bottom: 10px;
  2247. &:last-child {
  2248. margin-bottom: 0;
  2249. }
  2250. strong {
  2251. font-weight: 500;
  2252. background: $color1;
  2253. color: $color2;
  2254. border-radius: 4px;
  2255. font-size: 14px;
  2256. padding: 3px 6px;
  2257. }
  2258. }
  2259. }
  2260. .onboarding-modal__page-one {
  2261. display: flex;
  2262. }
  2263. .onboarding-modal__page-one__elephant-friend {
  2264. background: image-url('elephant-friend.png') no-repeat center center/contain;
  2265. width: 147px;
  2266. height: 160px;
  2267. margin-right: 10px;
  2268. }
  2269. .onboarding-modal__page-two,
  2270. .onboarding-modal__page-three,
  2271. .onboarding-modal__page-four,
  2272. .onboarding-modal__page-five {
  2273. p {
  2274. text-align: left;
  2275. }
  2276. .figure {
  2277. background: darken($color1, 8%);
  2278. color: $color2;
  2279. margin-bottom: 20px;
  2280. border-radius: 4px;
  2281. padding: 10px;
  2282. text-align: center;
  2283. font-size: 14px;
  2284. box-shadow: 1px 2px 6px rgba($color8, 0.3);
  2285. .onboarding-modal__image {
  2286. border-radius: 4px;
  2287. margin-bottom: 10px;
  2288. }
  2289. &.non-interactive {
  2290. pointer-events: none;
  2291. text-align: left;
  2292. }
  2293. }
  2294. }
  2295. .onboarding-modal__page-four__columns {
  2296. .row {
  2297. display: flex;
  2298. margin-bottom: 20px;
  2299. & > div {
  2300. flex: 1 1 0;
  2301. margin: 0 10px;
  2302. &:first-child {
  2303. margin-left: 0;
  2304. }
  2305. &:last-child {
  2306. margin-right: 0;
  2307. }
  2308. p {
  2309. text-align: center;
  2310. }
  2311. }
  2312. &:last-child {
  2313. margin-bottom: 0;
  2314. }
  2315. }
  2316. .column-header {
  2317. color: $color5;
  2318. }
  2319. }
  2320. .onboarding-modal__image {
  2321. border-radius: 8px;
  2322. width: 70vw;
  2323. max-width: 450px;
  2324. max-height: auto;
  2325. display: block;
  2326. margin: auto;
  2327. margin-bottom: 20px;
  2328. }
  2329. .onboard-sliders {
  2330. display: inline-block;
  2331. max-width: 30px;
  2332. max-height: auto;
  2333. margin-left: 10px;
  2334. }
  2335. .boost-modal, .confirmation-modal {
  2336. background: lighten($color2, 8%);
  2337. color: $color1;
  2338. border-radius: 8px;
  2339. overflow: hidden;
  2340. max-width: 90vw;
  2341. width: 480px;
  2342. position: relative;
  2343. flex-direction: column;
  2344. .status__display-name {
  2345. display: block;
  2346. max-width: 100%;
  2347. padding-right: 25px;
  2348. }
  2349. .status__avatar {
  2350. height: 28px;
  2351. left: 10px;
  2352. position: absolute;
  2353. top: 10px;
  2354. width: 48px;
  2355. }
  2356. }
  2357. .boost-modal__container {
  2358. overflow-x: scroll;
  2359. padding: 10px;
  2360. .status {
  2361. user-select: text;
  2362. border-bottom: 0;
  2363. }
  2364. }
  2365. .boost-modal__action-bar, .confirmation-modal__action-bar {
  2366. display: flex;
  2367. background: $color2;
  2368. padding: 10px;
  2369. line-height: 36px;
  2370. & > div {
  2371. flex: 1 1 auto;
  2372. text-align: right;
  2373. color: lighten($color1, 33%);
  2374. padding-right: 10px;
  2375. }
  2376. .button {
  2377. flex: 0 0 auto;
  2378. }
  2379. }
  2380. .boost-modal__status-header {
  2381. font-size: 15px;
  2382. }
  2383. .boost-modal__status-time {
  2384. float: right;
  2385. font-size: 14px;
  2386. }
  2387. .confirmation-modal {
  2388. max-width: 380px;
  2389. }
  2390. .confirmation-modal__action-bar {
  2391. & > div {
  2392. text-align: left;
  2393. padding: 0 16px;
  2394. }
  2395. a {
  2396. color: darken($color2, 34%);
  2397. text-decoration: none;
  2398. font-size: 14px;
  2399. font-weight: 500;
  2400. &:hover, &:focus, &:active {
  2401. color: darken($color2, 38%);
  2402. }
  2403. }
  2404. }
  2405. .confirmation-modal__container {
  2406. padding: 30px;
  2407. font-size: 16px;
  2408. text-align: center;
  2409. strong {
  2410. font-weight: 500;
  2411. }
  2412. }
  2413. .loading-bar {
  2414. background-color: $color4;
  2415. height: 3px;
  2416. position: absolute;
  2417. top: 0;
  2418. left: 0;
  2419. }
  2420. .media-gallery__gifv__label {
  2421. display: block;
  2422. position: absolute;
  2423. color: $color5;
  2424. background: rgba($color8, 0.5);
  2425. bottom: 6px;
  2426. left: 6px;
  2427. padding: 2px 6px;
  2428. border-radius: 2px;
  2429. font-size: 11px;
  2430. font-weight: 600;
  2431. z-index: 1;
  2432. pointer-events: none;
  2433. opacity: 0.9;
  2434. transition: opacity 0.1s ease;
  2435. }
  2436. .media-gallery__gifv {
  2437. &.autoplay {
  2438. .media-gallery__gifv__label {
  2439. display: none;
  2440. }
  2441. }
  2442. &:hover {
  2443. .media-gallery__gifv__label {
  2444. opacity: 1;
  2445. }
  2446. }
  2447. }
  2448. .attachment-list {
  2449. display: flex;
  2450. font-size: 14px;
  2451. border: 1px solid lighten($color1, 8%);
  2452. border-radius: 4px;
  2453. margin-top: 14px;
  2454. overflow: hidden;
  2455. }
  2456. .attachment-list__icon {
  2457. flex: 0 0 auto;
  2458. color: lighten($color1, 26%);
  2459. padding: 8px 18px;
  2460. cursor: default;
  2461. border-right: 1px solid lighten($color1, 8%);
  2462. display: flex;
  2463. flex-direction: column;
  2464. align-items: center;
  2465. justify-content: center;
  2466. font-size: 26px;
  2467. .fa {
  2468. display: block;
  2469. }
  2470. }
  2471. .attachment-list__list {
  2472. list-style: none;
  2473. padding: 4px 0;
  2474. padding-left: 8px;
  2475. display: flex;
  2476. flex-direction: column;
  2477. justify-content: center;
  2478. li {
  2479. display: block;
  2480. padding: 4px 0;
  2481. }
  2482. a {
  2483. text-decoration: none;
  2484. color: lighten($color1, 26%);
  2485. font-weight: 500;
  2486. &:hover {
  2487. text-decoration: underline;
  2488. }
  2489. }
  2490. }
  2491. /* Media Gallery */
  2492. .media-gallery {
  2493. box-sizing: border-box;
  2494. margin-top: 8px;
  2495. overflow: hidden;
  2496. position: relative;
  2497. width: 100%;
  2498. }
  2499. .media-gallery__item {
  2500. border: none;
  2501. box-sizing: border-box;
  2502. display: block;
  2503. float: left;
  2504. position: relative;
  2505. }
  2506. .media-gallery__item-thumbnail {
  2507. background-size: cover;
  2508. cursor: zoom-in;
  2509. display: block;
  2510. height: 100%;
  2511. text-decoration: none;
  2512. width: 100%;
  2513. }
  2514. .media-gallery__gifv {
  2515. height: 100%;
  2516. overflow: hidden;
  2517. position: relative;
  2518. width: 100%;
  2519. }
  2520. .media-gallery__item-gifv-thumbnail {
  2521. cursor: zoom-in;
  2522. height: 100%;
  2523. object-fit: cover;
  2524. position: relative;
  2525. top: 50%;
  2526. transform: translateY(-50%);
  2527. width: 100%;
  2528. z-index: 1;
  2529. }
  2530. .media-gallery__item-thumbnail-label {
  2531. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  2532. clip: rect(1px, 1px, 1px, 1px);
  2533. overflow: hidden;
  2534. position: absolute;
  2535. }
  2536. /* End Media Gallery */
  2537. /* Status Video Player */
  2538. .status__video-player {
  2539. background: #000;
  2540. box-sizing: border-box;
  2541. cursor: default; /* May not be needed */
  2542. margin-top: 8px;
  2543. overflow: hidden;
  2544. position: relative;
  2545. }
  2546. .status__video-player-video {
  2547. height: 100%;
  2548. object-fit: cover;
  2549. position: relative;
  2550. top: 50%;
  2551. transform: translateY(-50%);
  2552. width: 100%;
  2553. z-index: 1;
  2554. }
  2555. .status__video-player-expand,
  2556. .status__video-player-mute {
  2557. color: #fff;
  2558. opacity: 0.8;
  2559. position: absolute;
  2560. right: 4px;
  2561. text-shadow: 0px 1px 1px #000, 1px 0px 1px #000;
  2562. top: 4px;
  2563. }
  2564. .status__video-player-spoiler {
  2565. color: #fff;
  2566. text-shadow: 0px 1px 1px #000, 1px 0px 1px #000;
  2567. }
  2568. .status__video-player-expand {
  2569. z-index: 100;
  2570. }
  2571. .status__video-player-mute {
  2572. z-index: 5;
  2573. }
  2574. .media-spoiler-video {
  2575. background-size: cover;
  2576. cursor: pointer;
  2577. margin-top: 8px;
  2578. position: relative;
  2579. }
  2580. .media-spoiler-video-play-icon {
  2581. border-radius: 100px;
  2582. color: rgba(255, 255, 255, 0.8);
  2583. fontSize: 36px;
  2584. padding: 5px;
  2585. position: absolute;
  2586. top: 50%;
  2587. transform: translate(-50%, -50%);
  2588. }
  2589. /* End Video Player */