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.

3079 lines
48 KiB

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