闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3119 lines
49 KiB

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