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.

2417 lines
38 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. font-family: inherit;
  9. display: inline-block;
  10. position: relative;
  11. box-sizing: border-box;
  12. text-align: center;
  13. border: 10px none;
  14. color: $color5;
  15. font-size: 14px;
  16. font-weight: 500;
  17. letter-spacing: 0;
  18. text-transform: uppercase;
  19. padding: 0 16px;
  20. height: 36px;
  21. cursor: pointer;
  22. line-height: 36px;
  23. border-radius: 4px;
  24. text-decoration: none;
  25. transition: all 100ms ease-in;
  26. &:hover, &:active, &:focus {
  27. background-color: lighten($color4, 7%);
  28. transition: all 200ms ease-out;
  29. }
  30. &:disabled {
  31. background-color: $color3;
  32. cursor: default;
  33. }
  34. &.button-secondary {
  35. //
  36. }
  37. }
  38. .column-icon {
  39. color: $color3;
  40. background: lighten($color1, 4%);
  41. &:hover {
  42. color: lighten($color3, 7%);
  43. }
  44. }
  45. .column-icon-clear {
  46. font-size: 16px;
  47. padding: 15px;
  48. position: absolute;
  49. right: 48px;
  50. top: 0;
  51. cursor: pointer;
  52. z-index: 2;
  53. }
  54. @media screen and (min-width: 1025px) {
  55. .column-icon-clear {
  56. top: 10px;
  57. }
  58. }
  59. .icon-button {
  60. display: inline-block;
  61. padding: 0;
  62. color: lighten($color1, 26%);
  63. border: none;
  64. background: transparent;
  65. cursor: pointer;
  66. transition: all 100ms ease-in;
  67. &:hover, &:active, &:focus {
  68. color: lighten($color1, 33%);
  69. transition: all 200ms ease-out;
  70. }
  71. &.disabled {
  72. color: lighten($color1, 13%);
  73. cursor: default;
  74. }
  75. &.active {
  76. color: $color4;
  77. }
  78. &::-moz-focus-inner {
  79. border: 0;
  80. }
  81. &::-moz-focus-inner, &:focus, &:active {
  82. outline: 0 !important;
  83. }
  84. &.inverted {
  85. color: lighten($color1, 33%);
  86. &:hover, &:active, &:focus {
  87. color: lighten($color1, 26%);
  88. }
  89. &.active {
  90. color: $color4;
  91. }
  92. &.disabled {
  93. color: $color3;
  94. }
  95. }
  96. &.overlayed {
  97. box-sizing: content-box;
  98. background: rgba($color8, 0.6);
  99. color: rgba($color5, 0.7);
  100. border-radius: 4px;
  101. padding: 2px;
  102. &:hover {
  103. background: rgba($color8, 0.9);
  104. }
  105. }
  106. }
  107. .text-icon-button {
  108. color: lighten($color1, 33%);
  109. border: none;
  110. background: transparent;
  111. cursor: pointer;
  112. font-weight: 600;
  113. font-size: 11px;
  114. padding: 0 3px;
  115. line-height: 27px;
  116. outline: 0;
  117. transition: all 100ms ease-in;
  118. &:hover, &:active, &:focus {
  119. color: lighten($color1, 26%);
  120. transition: all 200ms ease-out;
  121. }
  122. &.disabled {
  123. color: lighten($color1, 13%);
  124. cursor: default;
  125. }
  126. &.active {
  127. color: $color4;
  128. }
  129. &::-moz-focus-inner {
  130. border: 0;
  131. }
  132. &::-moz-focus-inner, &:focus, &:active {
  133. outline: 0 !important;
  134. }
  135. }
  136. .dropdown--active .icon-button {
  137. color: $color4;
  138. }
  139. .invisible {
  140. font-size: 0;
  141. line-height: 0;
  142. display: inline-block;
  143. width: 0;
  144. }
  145. .ellipsis {
  146. &:after {
  147. content: "";
  148. }
  149. }
  150. .avatar {
  151. border-radius: 4px;
  152. background: transparent no-repeat;
  153. background-position: 50%;
  154. background-clip: padding-box;
  155. position: relative;
  156. }
  157. .lightbox .icon-button {
  158. color: $color1;
  159. }
  160. .compose-form__warning {
  161. color: $color2;
  162. margin-bottom: 15px;
  163. border: 1px solid $color3;
  164. padding: 8px 10px;
  165. border-radius: 4px;
  166. font-size: 12px;
  167. font-weight: 400;
  168. strong {
  169. color: $color5;
  170. font-weight: 500;
  171. }
  172. }
  173. .compose-form__modifiers {
  174. color: $color1;
  175. font-family: inherit;
  176. font-size: 14px;
  177. background: $color5;
  178. border-radius: 0 0 4px 0;
  179. }
  180. .compose-form__buttons {
  181. padding: 10px;
  182. background: darken($color5, 8%);
  183. box-shadow: inset 0 5px 5px rgba($color8, 0.05);
  184. border-radius: 0 0 4px 4px;
  185. display: flex;
  186. .icon-button {
  187. box-sizing: content-box;
  188. padding: 0 3px;
  189. }
  190. }
  191. .compose-form__label {
  192. display: block;
  193. line-height: 24px;
  194. vertical-align: middle;
  195. &.with-border {
  196. border-top: 1px solid $color1;
  197. padding-top: 10px;
  198. }
  199. .compose-form__label__text {
  200. display: inline-block;
  201. vertical-align: middle;
  202. margin-bottom: 14px;
  203. margin-left: 8px;
  204. color: $color3;
  205. }
  206. }
  207. .compose-form__textarea, .follow-form__input {
  208. background: $color5;
  209. &:disabled {
  210. background: $color2;
  211. }
  212. }
  213. .emojione {
  214. display: inline-block;
  215. font-size: inherit;
  216. vertical-align: middle;
  217. margin: -.2ex .15em .2ex;
  218. width: 16px;
  219. height: 16px;
  220. img {
  221. width: auto;
  222. }
  223. }
  224. .reply-indicator {
  225. border-radius: 4px 4px 0 0;
  226. position: relative;
  227. bottom: -2px;
  228. background: $color3;
  229. padding: 10px;
  230. .reply-indicator__display-name {
  231. color: $color1;
  232. }
  233. }
  234. .status__content, .reply-indicator__content {
  235. font-size: 15px;
  236. line-height: 20px;
  237. word-wrap: break-word;
  238. font-weight: 400;
  239. overflow: hidden;
  240. white-space: pre-wrap;
  241. .emojione {
  242. width: 18px;
  243. height: 18px;
  244. }
  245. p {
  246. margin-bottom: 20px;
  247. &:last-child {
  248. margin-bottom: 0;
  249. }
  250. }
  251. a {
  252. color: $color2;
  253. text-decoration: none;
  254. &:hover {
  255. text-decoration: underline;
  256. .fa {
  257. color: lighten($color1, 40%);
  258. }
  259. }
  260. &.mention {
  261. &:hover {
  262. text-decoration: none;
  263. span {
  264. text-decoration: underline;
  265. }
  266. }
  267. }
  268. .fa {
  269. color: lighten($color1, 30%);
  270. }
  271. }
  272. .status__content__spoiler-link {
  273. background: lighten($color1, 30%);
  274. &:hover {
  275. background: lighten($color1, 33%);
  276. text-decoration: none;
  277. }
  278. }
  279. }
  280. a.status__content__spoiler-link {
  281. display: inline-block;
  282. border-radius: 2px;
  283. color: lighten($color1, 8%);
  284. font-weight: 500;
  285. font-size: 11px;
  286. padding: 0px 6px;
  287. text-transform: uppercase;
  288. line-height: inherit;
  289. }
  290. .status {
  291. padding: 8px 10px;
  292. padding-left: 68px;
  293. position: relative;
  294. min-height: 48px;
  295. border-bottom: 1px solid lighten($color1, 8%);
  296. cursor: default;
  297. .status__relative-time {
  298. color: lighten($color1, 26%);
  299. }
  300. .status__display-name {
  301. color: lighten($color1, 26%);
  302. }
  303. &.light {
  304. .status__relative-time {
  305. color: $color3;
  306. }
  307. .status__display-name {
  308. color: $color1;
  309. }
  310. .display-name {
  311. strong {
  312. color: $color1;
  313. }
  314. span {
  315. color: $color3;
  316. }
  317. }
  318. .status__content {
  319. color: $color1;
  320. a {
  321. color: $color4;
  322. }
  323. a.status__content__spoiler-link {
  324. color: $color5;
  325. background: $color3;
  326. &:hover {
  327. background: lighten($color3, 8%);
  328. }
  329. }
  330. }
  331. }
  332. }
  333. .status-check-box {
  334. border-bottom: 1px solid lighten($color1, 8%);
  335. .status__content {
  336. background: lighten($color1, 4%);
  337. }
  338. }
  339. .status__prepend {
  340. margin-left: 68px;
  341. color: lighten($color1, 26%);
  342. padding: 8px 0;
  343. padding-bottom: 2px;
  344. font-size: 14px;
  345. position: relative;
  346. .status__display-name strong {
  347. color: lighten($color1, 26%);
  348. }
  349. }
  350. .detailed-status {
  351. background: lighten($color1, 4%);
  352. .status__content {
  353. font-size: 19px;
  354. line-height: 24px;
  355. .emojione {
  356. width: 22px;
  357. height: 22px;
  358. }
  359. }
  360. }
  361. .detailed-status__meta {
  362. margin-top: 15px;
  363. color: lighten($color1, 26%);
  364. font-size: 14px;
  365. line-height: 18px;
  366. }
  367. .detailed-status__action-bar {
  368. background: lighten($color1, 4%);
  369. display: flex;
  370. flex-direction: row;
  371. border-top: 1px solid lighten($color1, 8%);
  372. border-bottom: 1px solid lighten($color1, 8%);
  373. padding: 10px 0;
  374. }
  375. .reply-indicator__content {
  376. color: $color1;
  377. font-size: 14px;
  378. a {
  379. color: lighten($color1, 20%);
  380. }
  381. }
  382. .account {
  383. padding: 10px;
  384. border-bottom: 1px solid lighten($color1, 8%);
  385. .account__display-name {
  386. flex: 1 1 auto;
  387. display: block;
  388. color: $color3;
  389. overflow: hidden;
  390. text-decoration: none;
  391. font-size: 14px;
  392. }
  393. }
  394. .account__header {
  395. flex: 0 0 auto;
  396. background: lighten($color1, 4%);
  397. text-align: center;
  398. background-size: cover;
  399. background-position: center;
  400. position: relative;
  401. & > div {
  402. background: rgba(lighten($color1, 4%), 0.9);
  403. }
  404. .account__header__content {
  405. color: $color2;
  406. }
  407. .account__header__display-name {
  408. color: $color5;
  409. }
  410. .account__header__username {
  411. color: $color4;
  412. }
  413. }
  414. .account__header__content {
  415. word-wrap: break-word;
  416. word-break: normal;
  417. font-weight: 400;
  418. overflow: hidden;
  419. color: $color3;
  420. p {
  421. margin-bottom: 20px;
  422. &:last-child {
  423. margin-bottom: 0;
  424. }
  425. }
  426. a {
  427. color: inherit;
  428. text-decoration: underline;
  429. &:hover {
  430. text-decoration: none;
  431. }
  432. }
  433. }
  434. .account__header__display-name {
  435. .emojione {
  436. width: 25px;
  437. height: 25px;
  438. }
  439. }
  440. .account__action-bar {
  441. border-top: 1px solid lighten($color1, 8%);
  442. border-bottom: 1px solid lighten($color1, 8%);
  443. line-height: 36px;
  444. overflow: hidden;
  445. flex: 0 0 auto;
  446. display: flex;
  447. }
  448. .account__action-bar__tab {
  449. text-decoration: none;
  450. overflow: hidden;
  451. width: 80px;
  452. border-left: 1px solid lighten($color1, 8%);
  453. padding: 10px 5px;
  454. & > span {
  455. display: block;
  456. text-transform: uppercase;
  457. font-size: 11px;
  458. color: $color3;
  459. }
  460. strong {
  461. display: block;
  462. font-size: 15px;
  463. font-weight: 500;
  464. color: $color5;
  465. }
  466. abbr {
  467. color: lighten($color1, 26%);
  468. }
  469. }
  470. .status__display-name, .status__relative-time, .detailed-status__display-name, .detailed-status__datetime, .detailed-status__application, .account__display-name {
  471. text-decoration: none;
  472. }
  473. .status__display-name, .account__display-name {
  474. strong {
  475. color: $color5;
  476. }
  477. &.muted {
  478. .emojione {
  479. opacity: 0.5;
  480. }
  481. }
  482. }
  483. .status__display-name, .reply-indicator__display-name, .detailed-status__display-name, .account__display-name {
  484. &:hover {
  485. strong {
  486. text-decoration: underline;
  487. }
  488. }
  489. }
  490. .account__display-name {
  491. strong {
  492. display: block;
  493. }
  494. }
  495. .detailed-status__display-name {
  496. color: $color2;
  497. line-height: 24px;
  498. strong, span {
  499. display: block;
  500. }
  501. strong {
  502. font-size: 16px;
  503. color: $color5;
  504. }
  505. }
  506. .muted {
  507. .status__content p, .status__content a {
  508. color: lighten($color1, 26%);
  509. }
  510. .status__display-name strong {
  511. color: lighten($color1, 26%);
  512. }
  513. .status__avatar {
  514. opacity: 0.5;
  515. }
  516. a.status__content__spoiler-link {
  517. background: lighten($color1, 26%);
  518. color: lighten($color1, 4%);
  519. &:hover {
  520. background: lighten($color1, 29%);
  521. text-decoration: none;
  522. }
  523. }
  524. }
  525. .notification__message {
  526. margin-left: 68px;
  527. padding: 8px 0;
  528. padding-bottom: 0;
  529. cursor: default;
  530. color: $color3;
  531. font-size: 15px;
  532. position: relative;
  533. .fa {
  534. color: $color4;
  535. }
  536. }
  537. .notification__display-name {
  538. color: inherit;
  539. text-decoration: none;
  540. &:hover {
  541. color: $color5;
  542. text-decoration: underline;
  543. }
  544. }
  545. .status__relative-time, .detailed-status__datetime {
  546. &:hover {
  547. text-decoration: underline;
  548. }
  549. }
  550. .transparent-background, .imageloader {
  551. background: image-url('void.png');
  552. }
  553. .imageloader {
  554. display: block;
  555. }
  556. .navigation-bar {
  557. padding: 10px;
  558. display: flex;
  559. flex-shrink: 0;
  560. cursor: default;
  561. color: $color3;
  562. strong {
  563. color: $color5;
  564. }
  565. }
  566. .dropdown {
  567. display: inline-block;
  568. }
  569. .dropdown__content {
  570. display: none;
  571. position: absolute;
  572. }
  573. .dropdown__sep {
  574. border-bottom: 1px solid darken($color2, 8%);
  575. margin: 5px 7px 6px;
  576. padding-top: 1px;
  577. }
  578. .dropdown--active .dropdown__content {
  579. display: block;
  580. z-index: 9999;
  581. &:before {
  582. content: "";
  583. display: block;
  584. position: absolute;
  585. width: 0;
  586. height: 0;
  587. border-style: solid;
  588. border-width: 0 4.5px 7.8px 4.5px;
  589. border-color: transparent transparent $color2 transparent;
  590. top: -7px;
  591. left: 8px;
  592. }
  593. &.light {
  594. &:before {
  595. border-color: transparent transparent $color5 transparent;
  596. }
  597. }
  598. & > ul {
  599. list-style: none;
  600. background: $color2;
  601. padding: 4px 0;
  602. border-radius: 4px;
  603. box-shadow: 0 0 15px rgba($color8, 0.4);
  604. min-width: 140px;
  605. position: relative;
  606. left: -10px;
  607. }
  608. &.dropdown__left {
  609. & > ul {
  610. left: -98px;
  611. }
  612. & > .emoji-dialog {
  613. left: -210px;
  614. }
  615. }
  616. & > ul > li > a {
  617. font-size: 13px;
  618. line-height: 18px;
  619. display: block;
  620. padding: 4px 14px;
  621. box-sizing: border-box;
  622. width: 140px;
  623. text-decoration: none;
  624. background: $color2;
  625. color: $color1;
  626. overflow: hidden;
  627. text-overflow: ellipsis;
  628. white-space: nowrap;
  629. &:focus {
  630. outline: 0;
  631. }
  632. &:hover {
  633. background: $color4;
  634. color: $color2;
  635. }
  636. }
  637. }
  638. .static-content {
  639. padding: 10px;
  640. padding-top: 20px;
  641. color: lighten($color1, 26%);
  642. h1 {
  643. font-size: 16px;
  644. font-weight: 500;
  645. margin-bottom: 40px;
  646. text-align: center;
  647. }
  648. p {
  649. font-size: 13px;
  650. margin-bottom: 20px;
  651. }
  652. }
  653. .columns-area {
  654. flex-direction: row;
  655. justify-content: flex-start;
  656. }
  657. @media screen and (min-width: 360px) {
  658. .columns-area {
  659. padding: 10px;
  660. }
  661. }
  662. .column {
  663. width: 330px;
  664. position: relative;
  665. box-sizing: border-box;
  666. display: flex;
  667. flex-direction: column;
  668. > .scrollable {
  669. background: $color1;
  670. }
  671. }
  672. .ui {
  673. flex: 0 0 auto;
  674. display: flex;
  675. flex-direction: column;
  676. width: 100%;
  677. height: 100%;
  678. background: darken($color1, 7%);
  679. }
  680. .drawer {
  681. width: 300px;
  682. box-sizing: border-box;
  683. display: flex;
  684. flex-direction: column;
  685. overflow-y: hidden;
  686. }
  687. .drawer__tab {
  688. display: block;
  689. flex: 1 1 auto;
  690. padding: 15px;
  691. padding-bottom: 13px;
  692. color: $color3;
  693. text-decoration: none;
  694. text-align: center;
  695. font-size: 16px;
  696. border-bottom: 2px solid transparent;
  697. }
  698. .column, .drawer {
  699. flex: 1 1 100%;
  700. overflow: hidden;
  701. }
  702. @media screen and (min-width: 360px) {
  703. .tabs-bar {
  704. margin: 10px;
  705. margin-bottom: 0;
  706. }
  707. .search {
  708. margin-bottom: 10px;
  709. }
  710. }
  711. @media screen and (max-width: 1024px) {
  712. .column, .drawer {
  713. width: 100%;
  714. padding: 0;
  715. }
  716. .columns-area {
  717. flex-direction: column;
  718. }
  719. .search__input, .autosuggest-textarea__textarea {
  720. font-size: 16px;
  721. }
  722. }
  723. @media screen and (min-width: 1025px) {
  724. .columns-area {
  725. padding: 0;
  726. }
  727. .column, .drawer {
  728. flex: 0 0 auto;
  729. padding: 10px;
  730. padding-left: 5px;
  731. padding-right: 5px;
  732. &:first-child {
  733. padding-left: 10px;
  734. }
  735. &:last-child {
  736. padding-right: 10px;
  737. }
  738. }
  739. }
  740. @media screen and (min-width: 2560px) {
  741. .columns-area {
  742. justify-content: center;
  743. }
  744. .column, .drawer {
  745. width: 350px;
  746. border-radius: 4px;
  747. height: 90vh;
  748. margin-top: 5vh;
  749. }
  750. }
  751. .drawer__pager {
  752. box-sizing: border-box;
  753. padding: 0;
  754. flex-grow: 1;
  755. position: relative;
  756. overflow: hidden;
  757. display: flex;
  758. }
  759. .drawer__inner {
  760. position: absolute;
  761. top: 0;
  762. left: 0;
  763. background: lighten($color1, 13%);
  764. box-sizing: border-box;
  765. padding: 0;
  766. display: flex;
  767. flex-direction: column;
  768. overflow: hidden;
  769. overflow-y: auto;
  770. width: 100%;
  771. height: 100%;
  772. &.darker {
  773. background: $color1;
  774. }
  775. }
  776. .pseudo-drawer {
  777. background: lighten($color1, 13%);
  778. font-size: 13px;
  779. text-align: left;
  780. }
  781. .drawer__header {
  782. flex: 0 0 auto;
  783. font-size: 16px;
  784. background: lighten($color1, 8%);
  785. margin-bottom: 10px;
  786. display: flex;
  787. flex-direction: row;
  788. a {
  789. transition: all 100ms ease-in;
  790. &:hover {
  791. background: lighten($color1, 3%);
  792. transition: all 200ms ease-out;
  793. }
  794. }
  795. }
  796. .tabs-bar {
  797. display: flex;
  798. background: lighten($color1, 8%);
  799. flex: 0 0 auto;
  800. overflow-y: auto;
  801. }
  802. .tabs-bar__link {
  803. display: block;
  804. flex: 1 1 auto;
  805. padding: 15px 10px;
  806. color: $color5;
  807. text-decoration: none;
  808. text-align: center;
  809. font-size: 14px;
  810. font-weight: 500;
  811. border-bottom: 2px solid lighten($color1, 8%);
  812. transition: all 200ms linear;
  813. .fa {
  814. font-weight: 400;
  815. font-size: 16px;
  816. }
  817. &.active {
  818. border-bottom: 2px solid $color4;
  819. color: $color4;
  820. }
  821. &:hover, &:focus, &:active {
  822. background: lighten($color1, 14%);
  823. transition: all 100ms linear;
  824. }
  825. span {
  826. margin-left: 5px;
  827. display: none;
  828. }
  829. }
  830. @media screen and (min-width: 600px) {
  831. .tabs-bar__link {
  832. span {
  833. display: inline;
  834. }
  835. }
  836. }
  837. @media screen and (min-width: 1025px) {
  838. .tabs-bar {
  839. display: none;
  840. }
  841. }
  842. .react-autosuggest__container {
  843. position: relative;
  844. }
  845. .react-autosuggest__suggestions-container {
  846. position: absolute;
  847. top: 100%;
  848. width: 100%;
  849. z-index: 99;
  850. box-shadow: 0 0 15px rgba($color8, 0.4);
  851. }
  852. .react-autosuggest__section-title {
  853. background: $color3;
  854. padding: 4px 10px;
  855. font-weight: 500;
  856. cursor: default;
  857. color: $color1;
  858. text-transform: uppercase;
  859. font-size: 11px;
  860. }
  861. .react-autosuggest__suggestions-list {
  862. background: $color2;
  863. color: $color1;
  864. font-size: 14px;
  865. }
  866. .react-autosuggest__suggestion {
  867. padding: 10px;
  868. cursor: pointer;
  869. }
  870. .react-autosuggest__suggestion--focused {
  871. background: $color4;
  872. color: $color5;
  873. }
  874. .scrollable {
  875. overflow-y: scroll;
  876. overflow-x: hidden;
  877. flex: 1 1 auto;
  878. backface-visibility: hidden;
  879. -webkit-overflow-scrolling: touch;
  880. &.optionally-scrollable {
  881. overflow-y: auto;
  882. }
  883. }
  884. .column-back-button {
  885. padding: 15px;
  886. font-size: 16px;
  887. background: lighten($color1, 4%);
  888. flex: 0 0 auto;
  889. cursor: pointer;
  890. color: $color4;
  891. z-index: 3;
  892. &:hover {
  893. text-decoration: underline;
  894. }
  895. }
  896. .react-toggle {
  897. display: inline-block;
  898. position: relative;
  899. cursor: pointer;
  900. background-color: transparent;
  901. border: 0;
  902. padding: 0;
  903. user-select: none;
  904. -webkit-tap-highlight-color: rgba($color8, 0);
  905. -webkit-tap-highlight-color: transparent;
  906. }
  907. .react-toggle-screenreader-only {
  908. border: 0;
  909. clip: rect(0 0 0 0);
  910. height: 1px;
  911. margin: -1px;
  912. overflow: hidden;
  913. padding: 0;
  914. position: absolute;
  915. width: 1px;
  916. }
  917. .react-toggle--disabled {
  918. cursor: not-allowed;
  919. opacity: 0.5;
  920. transition: opacity 0.25s;
  921. }
  922. .react-toggle-track {
  923. width: 50px;
  924. height: 24px;
  925. padding: 0;
  926. border-radius: 30px;
  927. background-color: $color1;
  928. transition: all 0.2s ease;
  929. }
  930. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  931. background-color: darken($color1, 10%);
  932. }
  933. .react-toggle--checked .react-toggle-track {
  934. background-color: $color4;
  935. }
  936. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  937. background-color: lighten($color4, 10%);
  938. }
  939. .react-toggle-track-check {
  940. position: absolute;
  941. width: 14px;
  942. height: 10px;
  943. top: 0px;
  944. bottom: 0px;
  945. margin-top: auto;
  946. margin-bottom: auto;
  947. line-height: 0;
  948. left: 8px;
  949. opacity: 0;
  950. transition: opacity 0.25s ease;
  951. }
  952. .react-toggle--checked .react-toggle-track-check {
  953. opacity: 1;
  954. transition: opacity 0.25s ease;
  955. }
  956. .react-toggle-track-x {
  957. position: absolute;
  958. width: 10px;
  959. height: 10px;
  960. top: 0px;
  961. bottom: 0px;
  962. margin-top: auto;
  963. margin-bottom: auto;
  964. line-height: 0;
  965. right: 10px;
  966. opacity: 1;
  967. transition: opacity 0.25s ease;
  968. }
  969. .react-toggle--checked .react-toggle-track-x {
  970. opacity: 0;
  971. }
  972. .react-toggle-thumb {
  973. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  974. position: absolute;
  975. top: 1px;
  976. left: 1px;
  977. width: 22px;
  978. height: 22px;
  979. border: 1px solid $color1;
  980. border-radius: 50%;
  981. background-color: darken($color5, 2%);
  982. box-sizing: border-box;
  983. transition: all 0.25s ease;
  984. }
  985. .react-toggle--checked .react-toggle-thumb {
  986. left: 27px;
  987. border-color: $color4;
  988. }
  989. .column-link {
  990. background: lighten($color1, 8%);
  991. color: $color5;
  992. display: block;
  993. &:hover {
  994. background: lighten($color1, 11%);
  995. }
  996. &.hidden-on-mobile {
  997. @media screen and (max-width: 1024px) {
  998. display: none;
  999. }
  1000. }
  1001. }
  1002. .autosuggest-textarea, .spoiler-input {
  1003. position: relative;
  1004. }
  1005. .autosuggest-textarea__textarea, .spoiler-input__input {
  1006. display: block;
  1007. box-sizing: border-box;
  1008. width: 100%;
  1009. margin: 0;
  1010. color: $color1;
  1011. padding: 10px;
  1012. font-family: inherit;
  1013. font-size: 14px;
  1014. resize: vertical;
  1015. border: 0;
  1016. outline: 0;
  1017. &:focus {
  1018. outline: 0;
  1019. }
  1020. @media screen and (max-width: 600px) {
  1021. font-size: 16px;
  1022. }
  1023. }
  1024. .spoiler-input__input {
  1025. border-radius: 4px;
  1026. }
  1027. .autosuggest-textarea__textarea {
  1028. min-height: 100px;
  1029. background: $color5;
  1030. border-radius: 4px 4px 0 0;
  1031. padding-bottom: 0;
  1032. padding-right: 10px + 22px;
  1033. resize: none;
  1034. @media screen and (max-width: 600px) {
  1035. height: 100px !important; // prevent auto-resize textarea
  1036. resize: vertical;
  1037. }
  1038. }
  1039. .autosuggest-textarea__suggestions {
  1040. position: absolute;
  1041. top: 100%;
  1042. width: 100%;
  1043. z-index: 99;
  1044. box-shadow: 0 0 15px rgba($color8, 0.4);
  1045. background: $color2;
  1046. color: $color1;
  1047. font-size: 14px;
  1048. }
  1049. .autosuggest-textarea__suggestions__item {
  1050. padding: 10px;
  1051. cursor: pointer;
  1052. &:hover {
  1053. background: darken($color2, 10%);
  1054. }
  1055. &.selected {
  1056. background: $color4;
  1057. color: $color5;
  1058. }
  1059. }
  1060. .getting-started {
  1061. box-sizing: border-box;
  1062. padding-bottom: 235px;
  1063. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  1064. flex: 1 0 auto;
  1065. p {
  1066. color: $color2;
  1067. }
  1068. a {
  1069. color: lighten($color1, 26%);
  1070. }
  1071. }
  1072. .setting-text {
  1073. color: $color3;
  1074. background: transparent;
  1075. border: none;
  1076. border-bottom: 2px solid $color3;
  1077. &:focus, &:active {
  1078. color: $color5;
  1079. border-bottom-color: $color4;
  1080. }
  1081. @media screen and (max-width: 600px) {
  1082. font-size: 16px;
  1083. }
  1084. }
  1085. @import 'boost';
  1086. button.icon-button i.fa-retweet {
  1087. height: 19px;
  1088. width: 22px;
  1089. background-position: 0 0;
  1090. transition: background-position 0.9s steps(10);
  1091. transition-duration: 0s;
  1092. &::before {
  1093. display: none !important;
  1094. }
  1095. }
  1096. button.icon-button.active i.fa-retweet {
  1097. transition-duration: 0.9s;
  1098. background-position: 0 100%;
  1099. }
  1100. .status-card {
  1101. display: flex;
  1102. cursor: pointer;
  1103. font-size: 14px;
  1104. border: 1px solid lighten($color1, 8%);
  1105. border-radius: 4px;
  1106. color: lighten($color1, 26%);
  1107. margin-top: 14px;
  1108. text-decoration: none;
  1109. overflow: hidden;
  1110. &:hover {
  1111. background: lighten($color1, 8%);
  1112. }
  1113. }
  1114. .status-card__title {
  1115. display: block;
  1116. font-weight: 500;
  1117. margin-bottom: 5px;
  1118. color: $color3;
  1119. overflow: hidden;
  1120. text-overflow: ellipsis;
  1121. white-space: nowrap;
  1122. }
  1123. .status-card__description {
  1124. color: $color3;
  1125. }
  1126. .status-card__image {
  1127. flex: 0 0 100px;
  1128. background: lighten($color1, 8%);
  1129. }
  1130. .load-more {
  1131. display: block;
  1132. color: lighten($color1, 26%);
  1133. text-align: center;
  1134. padding: 15px;
  1135. text-decoration: none;
  1136. &:hover {
  1137. background: lighten($color1, 2%);
  1138. }
  1139. }
  1140. .missing-indicator {
  1141. text-align: center;
  1142. font-size: 16px;
  1143. font-weight: 500;
  1144. color: lighten($color1, 16%);
  1145. padding-top: 210px;
  1146. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1147. cursor: default;
  1148. }
  1149. .column-header {
  1150. padding: 15px;
  1151. font-size: 16px;
  1152. background: lighten($color1, 4%);
  1153. flex: 0 0 auto;
  1154. cursor: pointer;
  1155. position: relative;
  1156. z-index: 2;
  1157. &.active {
  1158. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1159. }
  1160. &.active .fa {
  1161. color: $color4;
  1162. text-shadow: 0 0 10px rgba($color4, 0.4);
  1163. }
  1164. &.hidden-on-mobile {
  1165. @media screen and (max-width: 1024px) {
  1166. display: none;
  1167. }
  1168. }
  1169. }
  1170. .loading-indicator {
  1171. color: $color2;
  1172. }
  1173. .collapsable-collapsed {
  1174. color: $color3;
  1175. background: lighten($color1, 4%);
  1176. }
  1177. .collapsable {
  1178. color: $color5;
  1179. background: lighten($color1, 8%);
  1180. &:hover {
  1181. color: $color5;
  1182. background: lighten($color1, 8%);
  1183. }
  1184. }
  1185. .media-spoiler, .video-error-cover {
  1186. background: $color8;
  1187. color: $color5;
  1188. }
  1189. .modal-container--preloader {
  1190. background: lighten($color1, 8%);
  1191. }
  1192. .account--panel {
  1193. background: lighten($color1, 4%);
  1194. border-top: 1px solid lighten($color1, 8%);
  1195. border-bottom: 1px solid lighten($color1, 8%);
  1196. }
  1197. .column-settings--outer {
  1198. background: lighten($color1, 8%);
  1199. }
  1200. .column-settings--section {
  1201. color: $color3;
  1202. }
  1203. .modal-container__nav {
  1204. color: $color5;
  1205. }
  1206. .account--follows-info {
  1207. color: $color5;
  1208. }
  1209. .setting-toggle {
  1210. color: $color3;
  1211. }
  1212. .report__target {
  1213. border-bottom: 1px solid lighten($color1, 4%);
  1214. color: $color2;
  1215. padding-bottom: 10px;
  1216. strong {
  1217. display: block;
  1218. color: $color5;
  1219. font-weight: 500;
  1220. }
  1221. }
  1222. .report__textarea {
  1223. background: transparent;
  1224. box-sizing: border-box;
  1225. border: 0;
  1226. border-bottom: 2px solid $color3;
  1227. border-radius: 2px 2px 0 0;
  1228. padding: 7px 4px;
  1229. font-size: 14px;
  1230. color: $color5;
  1231. display: block;
  1232. width: 100%;
  1233. outline: 0;
  1234. font-family: inherit;
  1235. resize: vertical;
  1236. &:active, &:focus {
  1237. border-bottom-color: $color4;
  1238. background: rgba($color8, 0.1);
  1239. }
  1240. }
  1241. .empty-column-indicator {
  1242. color: lighten($color1, 20%);
  1243. background: $color1;
  1244. text-align: center;
  1245. padding: 20px;
  1246. font-size: 15px;
  1247. font-weight: 400;
  1248. cursor: default;
  1249. display: flex;
  1250. flex: 1 1 auto;
  1251. align-items: center;
  1252. a {
  1253. color: $color4;
  1254. text-decoration: none;
  1255. &:hover {
  1256. text-decoration: underline;
  1257. }
  1258. }
  1259. }
  1260. .status-list__unread-indicator, .notifications__unread-indicator {
  1261. position: absolute;
  1262. top: 35px;
  1263. left: 0;
  1264. right: 0;
  1265. margin: 0 auto;
  1266. width: 60%;
  1267. pointer-events: none;
  1268. height: 28px;
  1269. z-index: 1;
  1270. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1271. }
  1272. .emoji-dialog {
  1273. width: 245px;
  1274. height: 270px;
  1275. background: $color5;
  1276. box-sizing: border-box;
  1277. border-radius: 4px;
  1278. overflow: hidden;
  1279. position: relative;
  1280. box-shadow: 0 0 8px rgba($color8, 0.2);
  1281. .emojione {
  1282. margin: 0;
  1283. width: 100%;
  1284. height: auto;
  1285. }
  1286. .emoji-dialog-header {
  1287. padding: 0 10px;
  1288. ul {
  1289. padding: 0;
  1290. margin: 0;
  1291. list-style: none;
  1292. }
  1293. li {
  1294. display: inline-block;
  1295. box-sizing: border-box;
  1296. padding: 10px 5px;
  1297. cursor: pointer;
  1298. border-bottom: 2px solid transparent;
  1299. .emoji {
  1300. width: 18px;
  1301. height: 18px;
  1302. }
  1303. img, svg {
  1304. width: 18px;
  1305. height: 18px;
  1306. filter: grayscale(100%);
  1307. }
  1308. &:hover {
  1309. img, svg {
  1310. filter: grayscale(0);
  1311. }
  1312. }
  1313. &.active {
  1314. border-bottom-color: $color4;
  1315. img, svg {
  1316. filter: grayscale(0);
  1317. }
  1318. }
  1319. }
  1320. }
  1321. .emoji-row {
  1322. box-sizing: border-box;
  1323. overflow-y: hidden;
  1324. padding-left: 10px;
  1325. .emoji {
  1326. display: inline-block;
  1327. padding: 5px;
  1328. border-radius: 4px;
  1329. }
  1330. }
  1331. .emoji-category-header {
  1332. box-sizing: border-box;
  1333. overflow-y: hidden;
  1334. padding: 10px 8px 10px 16px;
  1335. display: table;
  1336. > * {
  1337. display: table-cell;
  1338. vertical-align: middle;
  1339. }
  1340. }
  1341. .emoji-category-title {
  1342. font-size: 12px;
  1343. text-transform: uppercase;
  1344. font-weight: 500;
  1345. color: darken($color2, 18%);
  1346. cursor: default;
  1347. }
  1348. .emoji-category-heading-decoration {
  1349. text-align: right;
  1350. }
  1351. .modifiers {
  1352. list-style: none;
  1353. padding: 0;
  1354. margin: 0;
  1355. vertical-align: middle;
  1356. white-space: nowrap;
  1357. margin-top: 4px;
  1358. li {
  1359. display: inline-block;
  1360. padding: 0 2px;
  1361. &:last-of-type {
  1362. padding-right: 0;
  1363. }
  1364. }
  1365. .modifier {
  1366. display: inline-block;
  1367. border-radius: 10px;
  1368. width: 15px;
  1369. height: 15px;
  1370. position: relative;
  1371. cursor: pointer;
  1372. &.active:after {
  1373. content: "";
  1374. display: block;
  1375. position: absolute;
  1376. width: 7px;
  1377. height: 7px;
  1378. border-radius: 10px;
  1379. border: 2px solid $color5;
  1380. top: 2px;
  1381. left: 2px;
  1382. }
  1383. }
  1384. }
  1385. .emoji-search-wrapper {
  1386. padding: 10px;
  1387. border-bottom: 1px solid lighten($color2, 4%);
  1388. }
  1389. .emoji-search {
  1390. font-size: 14px;
  1391. font-weight: 400;
  1392. padding: 7px 9px;
  1393. font-family: inherit;
  1394. display: block;
  1395. width: 100%;
  1396. background: rgba($color2, 0.3);
  1397. color: darken($color2, 18%);
  1398. border: 1px solid $color2;
  1399. border-radius: 4px;
  1400. }
  1401. .emoji-categories-wrapper {
  1402. position: absolute;
  1403. top: 42px;
  1404. bottom: 0;
  1405. left: 0;
  1406. right: 0;
  1407. }
  1408. .emoji-search-wrapper + .emoji-categories-wrapper {
  1409. top: 93px;
  1410. }
  1411. .emoji-row .emoji {
  1412. img, svg {
  1413. transition: transform 60ms ease-in-out;
  1414. }
  1415. &:hover {
  1416. background: lighten($color2, 3%);
  1417. img, svg {
  1418. transform: translateZ(0) scale(1.2);
  1419. }
  1420. }
  1421. }
  1422. .emoji {
  1423. width: 22px;
  1424. height: 22px;
  1425. cursor: pointer;
  1426. &:focus {
  1427. outline: 0;
  1428. }
  1429. }
  1430. }
  1431. .autosuggest-status {
  1432. overflow: hidden;
  1433. white-space: nowrap;
  1434. text-overflow: ellipsis;
  1435. strong {
  1436. font-weight: 500;
  1437. }
  1438. }
  1439. .upload-area {
  1440. position: absolute;
  1441. top: 0;
  1442. left: 0;
  1443. width: 100%;
  1444. height: 100%;
  1445. visibility: hidden;
  1446. background: rgba($color8, 0.8);
  1447. display: flex;
  1448. align-items: center;
  1449. justify-content: center;
  1450. opacity: 0;
  1451. z-index: 2000;
  1452. * {
  1453. pointer-events: none;
  1454. }
  1455. }
  1456. .upload-area__drop {
  1457. width: 320px;
  1458. height: 160px;
  1459. display: flex;
  1460. box-sizing: border-box;
  1461. position: relative;
  1462. padding: 8px;
  1463. }
  1464. .upload-area__background {
  1465. position: absolute;
  1466. top: 0;
  1467. right: 0;
  1468. bottom: 0;
  1469. left: 0;
  1470. z-index: -1;
  1471. border-radius: 4px;
  1472. background: $color1;
  1473. box-shadow: 0 0 5px rgba($color8, 0.2);
  1474. }
  1475. .upload-area__content {
  1476. flex: 1;
  1477. display: flex;
  1478. align-items: center;
  1479. justify-content: center;
  1480. color: $color2;
  1481. font-size: 18px;
  1482. font-weight: 500;
  1483. border: 2px dashed lighten($color1, 26%);
  1484. border-radius: 4px;
  1485. }
  1486. .upload-progress {
  1487. padding: 10px;
  1488. color: lighten($color1, 26%);
  1489. overflow: hidden;
  1490. display: flex;
  1491. .fa {
  1492. font-size: 34px;
  1493. margin-right: 10px;
  1494. }
  1495. span {
  1496. font-size: 12px;
  1497. text-transform: uppercase;
  1498. font-weight: 500;
  1499. display: block;
  1500. }
  1501. }
  1502. .upload-progress__backdrop {
  1503. width: 100%;
  1504. height: 6px;
  1505. border-radius: 6px;
  1506. background: lighten($color1, 26%);
  1507. position: relative;
  1508. margin-top: 5px;
  1509. }
  1510. .upload-progress__tracker {
  1511. position: absolute;
  1512. left: 0;
  1513. top: 0;
  1514. height: 6px;
  1515. background: $color4;
  1516. border-radius: 6px;
  1517. }
  1518. .emoji-button {
  1519. outline: 0;
  1520. &:active, &:focus {
  1521. outline: 0 !important;
  1522. }
  1523. img {
  1524. filter: grayscale(100%);
  1525. opacity: 0.8;
  1526. display: block;
  1527. margin: 0;
  1528. width: 22px;
  1529. height: 22px;
  1530. margin-top: 2px;
  1531. }
  1532. &:hover, &:active, &:focus {
  1533. img {
  1534. opacity: 1;
  1535. filter: none;
  1536. }
  1537. }
  1538. }
  1539. .dropdown--active .emoji-button img {
  1540. opacity: 1;
  1541. filter: none;
  1542. }
  1543. .privacy-dropdown {
  1544. position: relative;
  1545. }
  1546. .privacy-dropdown__dropdown {
  1547. display: none;
  1548. position: absolute;
  1549. left: 0;
  1550. top: 27px;
  1551. width: 230px;
  1552. background: $color5;
  1553. border-radius: 0 4px 4px 4px;
  1554. z-index: 2;
  1555. overflow: hidden;
  1556. }
  1557. .privacy-dropdown__option {
  1558. color: $color1;
  1559. padding: 10px;
  1560. cursor: pointer;
  1561. display: flex;
  1562. &:hover, &.active {
  1563. background: $color4;
  1564. color: $color5;
  1565. .privacy-dropdown__option__content {
  1566. color: $color5;
  1567. strong {
  1568. color: $color5;
  1569. }
  1570. }
  1571. }
  1572. &.active:hover {
  1573. background: lighten($color4, 4%);
  1574. }
  1575. }
  1576. .privacy-dropdown__option__icon {
  1577. display: flex;
  1578. align-items: center;
  1579. justify-content: center;
  1580. margin-right: 10px;
  1581. }
  1582. .privacy-dropdown__option__content {
  1583. flex: 1 1 auto;
  1584. color: darken($color3, 24%);
  1585. strong {
  1586. font-weight: 500;
  1587. display: block;
  1588. color: $color1;
  1589. }
  1590. }
  1591. .privacy-dropdown.active {
  1592. .privacy-dropdown__value {
  1593. background: $color5;
  1594. border-radius: 4px 4px 0 0;
  1595. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1596. }
  1597. .privacy-dropdown__dropdown {
  1598. display: block;
  1599. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1600. }
  1601. }
  1602. .search {
  1603. position: relative;
  1604. }
  1605. .search__input {
  1606. padding-right: 30px;
  1607. color: $color2;
  1608. outline: 0;
  1609. box-sizing: border-box;
  1610. display: block;
  1611. width: 100%;
  1612. border: none;
  1613. padding: 10px;
  1614. padding-right: 30px;
  1615. font-family: inherit;
  1616. background: $color1;
  1617. color: $color3;
  1618. font-size: 14px;
  1619. margin: 0;
  1620. &::-moz-focus-inner {
  1621. border: 0;
  1622. }
  1623. &::-moz-focus-inner, &:focus, &:active {
  1624. outline: 0 !important;
  1625. }
  1626. &:focus {
  1627. background: lighten($color1, 4%);
  1628. }
  1629. @media screen and (max-width: 600px) {
  1630. font-size: 16px;
  1631. }
  1632. }
  1633. .search__icon {
  1634. .fa {
  1635. position: absolute;
  1636. top: 10px;
  1637. right: 10px;
  1638. z-index: 2;
  1639. display: inline-block;
  1640. opacity: 0;
  1641. transition: all 100ms linear;
  1642. font-size: 18px;
  1643. width: 18px;
  1644. height: 18px;
  1645. color: $color2;
  1646. cursor: default;
  1647. pointer-events: none;
  1648. &.active {
  1649. pointer-events: auto;
  1650. opacity: 0.3;
  1651. }
  1652. }
  1653. .fa-search {
  1654. transform: translateZ(0) rotate(90deg);
  1655. &.active {
  1656. pointer-events: none;
  1657. transform: translateZ(0) rotate(0deg);
  1658. }
  1659. }
  1660. .fa-times-circle {
  1661. top: 11px;
  1662. transform: translateZ(0) rotate(0deg);
  1663. cursor: pointer;
  1664. &.active {
  1665. transform: translateZ(0) rotate(90deg);
  1666. }
  1667. &:hover {
  1668. color: $color5;
  1669. }
  1670. }
  1671. }
  1672. .search-results__header {
  1673. color: lighten($color1, 26%);
  1674. background: lighten($color1, 2%);
  1675. border-bottom: 1px solid darken($color1, 4%);
  1676. padding: 15px 10px;
  1677. font-size: 14px;
  1678. font-weight: 500;
  1679. }
  1680. .search-results__hashtag {
  1681. display: block;
  1682. padding: 10px;
  1683. color: $color2;
  1684. text-decoration: none;
  1685. &:hover, &:active, &:focus {
  1686. color: lighten($color2, 4%);
  1687. text-decoration: underline;
  1688. }
  1689. }
  1690. .modal-root__overlay {
  1691. position: absolute;
  1692. top: 0;
  1693. left: 0;
  1694. right: 0;
  1695. bottom: 0;
  1696. z-index: 9999;
  1697. opacity: 0;
  1698. background: rgba($color8, 0.7);
  1699. }
  1700. .modal-root__container {
  1701. position: absolute;
  1702. top: 0;
  1703. left: 0;
  1704. width: 100%;
  1705. height: 100%;
  1706. display: flex;
  1707. flex-direction: column;
  1708. align-items: center;
  1709. justify-content: center;
  1710. align-content: space-around;
  1711. z-index: 9999;
  1712. opacity: 0;
  1713. pointer-events: none;
  1714. user-select: none;
  1715. }
  1716. .modal-root__modal {
  1717. pointer-events: auto;
  1718. display: flex;
  1719. z-index: 9999;
  1720. }
  1721. .media-modal {
  1722. max-width: 80vw;
  1723. max-height: 80vh;
  1724. position: relative;
  1725. img, video {
  1726. max-width: 80vw;
  1727. max-height: 80vh;
  1728. }
  1729. }
  1730. .onboarding-modal {
  1731. background: $color2;
  1732. color: $color1;
  1733. border-radius: 8px;
  1734. overflow: hidden;
  1735. display: flex;
  1736. flex-direction: column;
  1737. }
  1738. .onboarding-modal__pager {
  1739. height: 80vh;
  1740. width: 80vw;
  1741. max-width: 520px;
  1742. max-height: 420px;
  1743. position: relative;
  1744. & > div {
  1745. position: absolute;
  1746. top: 0;
  1747. left: 0;
  1748. width: 100%;
  1749. height: 100%;
  1750. box-sizing: border-box;
  1751. padding: 25px;
  1752. display: none;
  1753. flex-direction: column;
  1754. align-items: center;
  1755. justify-content: center;
  1756. display: flex;
  1757. opacity: 0;
  1758. user-select: text;
  1759. }
  1760. }
  1761. @media screen and (max-width: 550px) {
  1762. .onboarding-modal {
  1763. width: 100%;
  1764. height: 100%;
  1765. border-radius: 0;
  1766. }
  1767. .onboarding-modal__pager {
  1768. width: 100%;
  1769. height: auto;
  1770. max-width: none;
  1771. max-height: none;
  1772. flex: 1 1 auto;
  1773. }
  1774. }
  1775. .onboarding-modal__paginator {
  1776. flex: 0 0 auto;
  1777. background: darken($color2, 8%);
  1778. display: flex;
  1779. padding: 25px;
  1780. & > div {
  1781. min-width: 33px;
  1782. }
  1783. a {
  1784. color: darken($color2, 34%);
  1785. text-decoration: none;
  1786. font-size: 14px;
  1787. font-weight: 500;
  1788. &:hover, &:focus, &:active {
  1789. color: darken($color2, 38%);
  1790. }
  1791. &.onboarding-modal__done, &.onboarding-modal__next {
  1792. color: $color4;
  1793. }
  1794. }
  1795. }
  1796. .onboarding-modal__dots {
  1797. flex: 1 1 auto;
  1798. display: flex;
  1799. align-items: center;
  1800. justify-content: center;
  1801. }
  1802. .onboarding-modal__dot {
  1803. width: 14px;
  1804. height: 14px;
  1805. border-radius: 14px;
  1806. background: darken($color2, 16%);
  1807. margin: 0 3px;
  1808. cursor: pointer;
  1809. &:hover {
  1810. background: darken($color2, 18%);
  1811. }
  1812. &.active {
  1813. cursor: default;
  1814. background: darken($color2, 24%);
  1815. }
  1816. }
  1817. .onboarding-modal__page {
  1818. cursor: default;
  1819. line-height: 21px;
  1820. h1 {
  1821. font-size: 18px;
  1822. font-weight: 500;
  1823. color: $color1;
  1824. margin-bottom: 20px;
  1825. }
  1826. a {
  1827. color: $color4;
  1828. &:hover, &:focus, &:active {
  1829. color: lighten($color4, 4%);
  1830. }
  1831. }
  1832. p {
  1833. font-size: 16px;
  1834. color: lighten($color1, 8%);
  1835. margin-top: 10px;
  1836. margin-bottom: 10px;
  1837. &:last-child {
  1838. margin-bottom: 0;
  1839. }
  1840. strong {
  1841. font-weight: 500;
  1842. background: $color1;
  1843. color: $color2;
  1844. border-radius: 4px;
  1845. font-size: 14px;
  1846. padding: 3px 6px;
  1847. }
  1848. }
  1849. }
  1850. .onboarding-modal__page-one {
  1851. display: flex;
  1852. }
  1853. .onboarding-modal__page-one__elephant-friend {
  1854. background: image-url('elephant-friend.png') no-repeat 0 0;
  1855. width: 147px;
  1856. height: 160px;
  1857. margin-right: 10px;
  1858. }
  1859. .onboarding-modal__page-two,
  1860. .onboarding-modal__page-three,
  1861. .onboarding-modal__page-four,
  1862. .onboarding-modal__page-five {
  1863. p {
  1864. text-align: left;
  1865. }
  1866. .figure {
  1867. background: darken($color1, 8%);
  1868. color: $color2;
  1869. margin-bottom: 20px;
  1870. border-radius: 4px;
  1871. padding: 10px;
  1872. text-align: center;
  1873. font-size: 14px;
  1874. box-shadow: 1px 2px 6px rgba($color8, 0.3);
  1875. .onboarding-modal__image {
  1876. border-radius: 4px;
  1877. margin-bottom: 10px;
  1878. }
  1879. &.non-interactive {
  1880. pointer-events: none;
  1881. text-align: left;
  1882. }
  1883. }
  1884. }
  1885. .onboarding-modal__page-four__columns {
  1886. .row {
  1887. display: flex;
  1888. margin-bottom: 20px;
  1889. & > div {
  1890. flex: 1 1 0;
  1891. margin: 0 10px;
  1892. &:first-child {
  1893. margin-left: 0;
  1894. }
  1895. &:last-child {
  1896. margin-right: 0;
  1897. }
  1898. p {
  1899. text-align: center;
  1900. }
  1901. }
  1902. &:last-child {
  1903. margin-bottom: 0;
  1904. }
  1905. }
  1906. .column-header {
  1907. color: $color5;
  1908. }
  1909. }
  1910. .onboarding-modal__image {
  1911. border-radius: 8px;
  1912. width: 70vw;
  1913. max-width: 450px;
  1914. max-height: auto;
  1915. display: block;
  1916. margin: auto;
  1917. margin-bottom: 20px;
  1918. }
  1919. .onboard-sliders {
  1920. display: inline-block;
  1921. max-width: 30px;
  1922. max-height: auto;
  1923. margin-left: 10px;
  1924. }
  1925. .boost-modal {
  1926. background: lighten($color2, 8%);
  1927. color: $color1;
  1928. border-radius: 8px;
  1929. overflow: hidden;
  1930. max-width: 90vw;
  1931. width: 480px;
  1932. position: relative;
  1933. flex-direction: column;
  1934. }
  1935. .boost-modal__container {
  1936. overflow-x: scroll;
  1937. padding: 10px;
  1938. .status {
  1939. user-select: text;
  1940. border-bottom: 0;
  1941. }
  1942. }
  1943. .boost-modal__action-bar {
  1944. display: flex;
  1945. background: $color2;
  1946. padding: 10px;
  1947. line-height: 36px;
  1948. & > div {
  1949. flex: 1 1 auto;
  1950. text-align: right;
  1951. color: lighten($color1, 33%);
  1952. padding-right: 10px;
  1953. }
  1954. .button {
  1955. flex: 0 0 auto;
  1956. }
  1957. }
  1958. .loading-bar {
  1959. background-color: $color4;
  1960. height: 3px;
  1961. position: absolute;
  1962. top: 0;
  1963. left: 0;
  1964. }
  1965. .media-gallery__gifv__label {
  1966. display: block;
  1967. position: absolute;
  1968. color: $color5;
  1969. background: rgba($color8, 0.5);
  1970. bottom: 6px;
  1971. left: 6px;
  1972. padding: 2px 6px;
  1973. border-radius: 2px;
  1974. font-size: 11px;
  1975. font-weight: 600;
  1976. z-index: 1;
  1977. pointer-events: none;
  1978. opacity: 0.9;
  1979. transition: opacity 0.1s ease;
  1980. }
  1981. .media-gallery__gifv {
  1982. &.autoplay {
  1983. .media-gallery__gifv__label {
  1984. display: none;
  1985. }
  1986. }
  1987. &:hover {
  1988. .media-gallery__gifv__label {
  1989. opacity: 1;
  1990. }
  1991. }
  1992. }
  1993. .attachment-list {
  1994. display: flex;
  1995. font-size: 14px;
  1996. border: 1px solid lighten($color1, 8%);
  1997. border-radius: 4px;
  1998. margin-top: 14px;
  1999. overflow: hidden;
  2000. }
  2001. .attachment-list__icon {
  2002. flex: 0 0 auto;
  2003. color: lighten($color1, 26%);
  2004. padding: 8px 18px;
  2005. cursor: default;
  2006. border-right: 1px solid lighten($color1, 8%);
  2007. display: flex;
  2008. flex-direction: column;
  2009. align-items: center;
  2010. justify-content: center;
  2011. font-size: 26px;
  2012. .fa {
  2013. display: block;
  2014. }
  2015. }
  2016. .attachment-list__list {
  2017. list-style: none;
  2018. padding: 4px 0;
  2019. padding-left: 8px;
  2020. display: flex;
  2021. flex-direction: column;
  2022. justify-content: center;
  2023. li {
  2024. display: block;
  2025. padding: 4px 0;
  2026. }
  2027. a {
  2028. text-decoration: none;
  2029. color: lighten($color1, 26%);
  2030. font-weight: 500;
  2031. &:hover {
  2032. text-decoration: underline;
  2033. }
  2034. }
  2035. }