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.

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