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

2348 lines
37 KiB

7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  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. -webkit-overflow-scrolling: touch;
  879. &.optionally-scrollable {
  880. overflow-y: auto;
  881. }
  882. }
  883. .column-back-button {
  884. padding: 15px;
  885. font-size: 16px;
  886. background: lighten($color1, 4%);
  887. flex: 0 0 auto;
  888. cursor: pointer;
  889. color: $color4;
  890. z-index: 3;
  891. &:hover {
  892. text-decoration: underline;
  893. }
  894. }
  895. .react-toggle {
  896. display: inline-block;
  897. position: relative;
  898. cursor: pointer;
  899. background-color: transparent;
  900. border: 0;
  901. padding: 0;
  902. user-select: none;
  903. -webkit-tap-highlight-color: rgba($color8, 0);
  904. -webkit-tap-highlight-color: transparent;
  905. }
  906. .react-toggle-screenreader-only {
  907. border: 0;
  908. clip: rect(0 0 0 0);
  909. height: 1px;
  910. margin: -1px;
  911. overflow: hidden;
  912. padding: 0;
  913. position: absolute;
  914. width: 1px;
  915. }
  916. .react-toggle--disabled {
  917. cursor: not-allowed;
  918. opacity: 0.5;
  919. transition: opacity 0.25s;
  920. }
  921. .react-toggle-track {
  922. width: 50px;
  923. height: 24px;
  924. padding: 0;
  925. border-radius: 30px;
  926. background-color: $color1;
  927. transition: all 0.2s ease;
  928. }
  929. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  930. background-color: darken($color1, 10%);
  931. }
  932. .react-toggle--checked .react-toggle-track {
  933. background-color: $color4;
  934. }
  935. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  936. background-color: lighten($color4, 10%);
  937. }
  938. .react-toggle-track-check {
  939. position: absolute;
  940. width: 14px;
  941. height: 10px;
  942. top: 0px;
  943. bottom: 0px;
  944. margin-top: auto;
  945. margin-bottom: auto;
  946. line-height: 0;
  947. left: 8px;
  948. opacity: 0;
  949. transition: opacity 0.25s ease;
  950. }
  951. .react-toggle--checked .react-toggle-track-check {
  952. opacity: 1;
  953. transition: opacity 0.25s ease;
  954. }
  955. .react-toggle-track-x {
  956. position: absolute;
  957. width: 10px;
  958. height: 10px;
  959. top: 0px;
  960. bottom: 0px;
  961. margin-top: auto;
  962. margin-bottom: auto;
  963. line-height: 0;
  964. right: 10px;
  965. opacity: 1;
  966. transition: opacity 0.25s ease;
  967. }
  968. .react-toggle--checked .react-toggle-track-x {
  969. opacity: 0;
  970. }
  971. .react-toggle-thumb {
  972. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  973. position: absolute;
  974. top: 1px;
  975. left: 1px;
  976. width: 22px;
  977. height: 22px;
  978. border: 1px solid $color1;
  979. border-radius: 50%;
  980. background-color: darken($color5, 2%);
  981. box-sizing: border-box;
  982. transition: all 0.25s ease;
  983. }
  984. .react-toggle--checked .react-toggle-thumb {
  985. left: 27px;
  986. border-color: $color4;
  987. }
  988. .column-link {
  989. background: lighten($color1, 8%);
  990. color: $color5;
  991. &:hover {
  992. background: lighten($color1, 11%);
  993. }
  994. }
  995. .autosuggest-textarea, .spoiler-input {
  996. position: relative;
  997. }
  998. .autosuggest-textarea__textarea, .spoiler-input__input {
  999. display: block;
  1000. box-sizing: border-box;
  1001. width: 100%;
  1002. resize: none;
  1003. margin: 0;
  1004. color: $color1;
  1005. padding: 10px;
  1006. font-family: inherit;
  1007. font-size: 14px;
  1008. resize: vertical;
  1009. border: 0;
  1010. outline: 0;
  1011. &:focus {
  1012. outline: 0;
  1013. }
  1014. @media screen and (max-width: 600px) {
  1015. font-size: 16px;
  1016. }
  1017. }
  1018. .spoiler-input__input {
  1019. border-radius: 4px;
  1020. }
  1021. .autosuggest-textarea__textarea {
  1022. height: 100px;
  1023. background: $color5;
  1024. border-radius: 4px 4px 0 0;
  1025. padding-bottom: 0;
  1026. padding-right: 10px + 22px;
  1027. }
  1028. .autosuggest-textarea__suggestions {
  1029. position: absolute;
  1030. top: 100%;
  1031. width: 100%;
  1032. z-index: 99;
  1033. box-shadow: 0 0 15px rgba($color8, 0.4);
  1034. background: $color2;
  1035. color: $color1;
  1036. font-size: 14px;
  1037. }
  1038. .autosuggest-textarea__suggestions__item {
  1039. padding: 10px;
  1040. cursor: pointer;
  1041. &:hover {
  1042. background: darken($color2, 10%);
  1043. }
  1044. &.selected {
  1045. background: $color4;
  1046. color: $color5;
  1047. }
  1048. }
  1049. .getting-started {
  1050. box-sizing: border-box;
  1051. padding-bottom: 235px;
  1052. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  1053. flex: 1 0 auto;
  1054. p {
  1055. color: $color2;
  1056. }
  1057. a {
  1058. color: lighten($color1, 26%);
  1059. }
  1060. }
  1061. .setting-text {
  1062. color: $color3;
  1063. background: transparent;
  1064. border: none;
  1065. border-bottom: 2px solid $color3;
  1066. &:focus, &:active {
  1067. color: $color5;
  1068. border-bottom-color: $color4;
  1069. }
  1070. @media screen and (max-width: 600px) {
  1071. font-size: 16px;
  1072. }
  1073. }
  1074. @import 'boost';
  1075. button.icon-button i.fa-retweet {
  1076. height: 19px;
  1077. width: 22px;
  1078. background-position: 0 0;
  1079. transition: background-position 0.9s steps(10);
  1080. transition-duration: 0s;
  1081. &::before {
  1082. display: none !important;
  1083. }
  1084. }
  1085. button.icon-button.active i.fa-retweet {
  1086. transition-duration: 0.9s;
  1087. background-position: 0 100%;
  1088. }
  1089. .status-card {
  1090. display: flex;
  1091. cursor: pointer;
  1092. font-size: 14px;
  1093. border: 1px solid lighten($color1, 8%);
  1094. border-radius: 4px;
  1095. color: lighten($color1, 26%);
  1096. margin-top: 14px;
  1097. text-decoration: none;
  1098. overflow: hidden;
  1099. &:hover {
  1100. background: lighten($color1, 8%);
  1101. }
  1102. }
  1103. .status-card__title {
  1104. display: block;
  1105. font-weight: 500;
  1106. margin-bottom: 5px;
  1107. color: $color3;
  1108. overflow: hidden;
  1109. text-overflow: ellipsis;
  1110. white-space: nowrap;
  1111. }
  1112. .status-card__description {
  1113. color: $color3;
  1114. }
  1115. .status-card__image {
  1116. flex: 0 0 100px;
  1117. background: lighten($color1, 8%);
  1118. }
  1119. .load-more {
  1120. display: block;
  1121. color: lighten($color1, 26%);
  1122. text-align: center;
  1123. padding: 15px;
  1124. text-decoration: none;
  1125. &:hover {
  1126. background: lighten($color1, 2%);
  1127. }
  1128. }
  1129. .missing-indicator {
  1130. text-align: center;
  1131. font-size: 16px;
  1132. font-weight: 500;
  1133. color: lighten($color1, 16%);
  1134. padding-top: 210px;
  1135. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1136. cursor: default;
  1137. }
  1138. .column-header {
  1139. padding: 15px;
  1140. font-size: 16px;
  1141. background: lighten($color1, 4%);
  1142. flex: 0 0 auto;
  1143. cursor: pointer;
  1144. position: relative;
  1145. z-index: 2;
  1146. &.active {
  1147. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1148. }
  1149. &.active .fa {
  1150. color: $color4;
  1151. text-shadow: 0 0 10px rgba($color4, 0.4);
  1152. }
  1153. }
  1154. .loading-indicator {
  1155. color: $color2;
  1156. }
  1157. .collapsable-collapsed {
  1158. color: $color3;
  1159. background: lighten($color1, 4%);
  1160. }
  1161. .collapsable {
  1162. color: $color5;
  1163. background: lighten($color1, 8%);
  1164. &:hover {
  1165. color: $color5;
  1166. background: lighten($color1, 8%);
  1167. }
  1168. }
  1169. .media-spoiler, .video-error-cover {
  1170. background: $color8;
  1171. color: $color5;
  1172. }
  1173. .modal-container--preloader {
  1174. background: lighten($color1, 8%);
  1175. }
  1176. .account--panel {
  1177. background: lighten($color1, 4%);
  1178. border-top: 1px solid lighten($color1, 8%);
  1179. border-bottom: 1px solid lighten($color1, 8%);
  1180. }
  1181. .column-settings--outer {
  1182. background: lighten($color1, 8%);
  1183. }
  1184. .column-settings--section {
  1185. color: $color3;
  1186. }
  1187. .modal-container__nav {
  1188. color: $color5;
  1189. }
  1190. .account--follows-info {
  1191. color: $color5;
  1192. }
  1193. .setting-toggle {
  1194. color: $color3;
  1195. }
  1196. .report__target {
  1197. border-bottom: 1px solid lighten($color1, 4%);
  1198. color: $color2;
  1199. padding-bottom: 10px;
  1200. strong {
  1201. display: block;
  1202. color: $color5;
  1203. font-weight: 500;
  1204. }
  1205. }
  1206. .report__textarea {
  1207. background: transparent;
  1208. box-sizing: border-box;
  1209. border: 0;
  1210. border-bottom: 2px solid $color3;
  1211. border-radius: 2px 2px 0 0;
  1212. padding: 7px 4px;
  1213. font-size: 14px;
  1214. color: $color5;
  1215. display: block;
  1216. width: 100%;
  1217. outline: 0;
  1218. font-family: inherit;
  1219. resize: vertical;
  1220. &:active, &:focus {
  1221. border-bottom-color: $color4;
  1222. background: rgba($color8, 0.1);
  1223. }
  1224. }
  1225. .empty-column-indicator {
  1226. color: lighten($color1, 20%);
  1227. background: $color1;
  1228. text-align: center;
  1229. padding: 20px;
  1230. font-size: 15px;
  1231. font-weight: 400;
  1232. cursor: default;
  1233. display: flex;
  1234. flex: 1 1 auto;
  1235. align-items: center;
  1236. a {
  1237. color: $color4;
  1238. text-decoration: none;
  1239. &:hover {
  1240. text-decoration: underline;
  1241. }
  1242. }
  1243. }
  1244. .status-list__unread-indicator, .notifications__unread-indicator {
  1245. position: absolute;
  1246. top: 35px;
  1247. left: 0;
  1248. right: 0;
  1249. margin: 0 auto;
  1250. width: 60%;
  1251. pointer-events: none;
  1252. height: 28px;
  1253. z-index: 1;
  1254. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1255. }
  1256. .emoji-dialog {
  1257. width: 245px;
  1258. height: 270px;
  1259. background: $color5;
  1260. box-sizing: border-box;
  1261. border-radius: 4px;
  1262. overflow: hidden;
  1263. position: relative;
  1264. box-shadow: 0 0 8px rgba($color8, 0.2);
  1265. .emojione {
  1266. margin: 0;
  1267. width: 100%;
  1268. height: auto;
  1269. }
  1270. .emoji-dialog-header {
  1271. padding: 0 10px;
  1272. ul {
  1273. padding: 0;
  1274. margin: 0;
  1275. list-style: none;
  1276. }
  1277. li {
  1278. display: inline-block;
  1279. box-sizing: border-box;
  1280. padding: 10px 5px;
  1281. cursor: pointer;
  1282. border-bottom: 2px solid transparent;
  1283. .emoji {
  1284. width: 18px;
  1285. height: 18px;
  1286. }
  1287. img, svg {
  1288. width: 18px;
  1289. height: 18px;
  1290. filter: grayscale(100%);
  1291. }
  1292. &:hover {
  1293. img, svg {
  1294. filter: grayscale(0);
  1295. }
  1296. }
  1297. &.active {
  1298. border-bottom-color: $color4;
  1299. img, svg {
  1300. filter: grayscale(0);
  1301. }
  1302. }
  1303. }
  1304. }
  1305. .emoji-row {
  1306. box-sizing: border-box;
  1307. overflow-y: hidden;
  1308. padding-left: 10px;
  1309. .emoji {
  1310. display: inline-block;
  1311. padding: 5px;
  1312. border-radius: 4px;
  1313. }
  1314. }
  1315. .emoji-category-header {
  1316. box-sizing: border-box;
  1317. overflow-y: hidden;
  1318. padding: 10px 8px 10px 16px;
  1319. display: table;
  1320. > * {
  1321. display: table-cell;
  1322. vertical-align: middle;
  1323. }
  1324. }
  1325. .emoji-category-title {
  1326. font-size: 12px;
  1327. text-transform: uppercase;
  1328. font-weight: 500;
  1329. color: darken($color2, 18%);
  1330. cursor: default;
  1331. }
  1332. .emoji-category-heading-decoration {
  1333. text-align: right;
  1334. }
  1335. .modifiers {
  1336. list-style: none;
  1337. padding: 0;
  1338. margin: 0;
  1339. vertical-align: middle;
  1340. white-space: nowrap;
  1341. margin-top: 4px;
  1342. li {
  1343. display: inline-block;
  1344. padding: 0 2px;
  1345. &:last-of-type {
  1346. padding-right: 0;
  1347. }
  1348. }
  1349. .modifier {
  1350. display: inline-block;
  1351. border-radius: 10px;
  1352. width: 15px;
  1353. height: 15px;
  1354. position: relative;
  1355. cursor: pointer;
  1356. &.active:after {
  1357. content: "";
  1358. display: block;
  1359. position: absolute;
  1360. width: 7px;
  1361. height: 7px;
  1362. border-radius: 10px;
  1363. border: 2px solid $color5;
  1364. top: 2px;
  1365. left: 2px;
  1366. }
  1367. }
  1368. }
  1369. .emoji-search-wrapper {
  1370. padding: 10px;
  1371. border-bottom: 1px solid lighten($color2, 4%);
  1372. }
  1373. .emoji-search {
  1374. font-size: 14px;
  1375. font-weight: 400;
  1376. padding: 7px 9px;
  1377. font-family: inherit;
  1378. display: block;
  1379. width: 100%;
  1380. background: rgba($color2, 0.3);
  1381. color: darken($color2, 18%);
  1382. border: 1px solid $color2;
  1383. border-radius: 4px;
  1384. }
  1385. .emoji-categories-wrapper {
  1386. position: absolute;
  1387. top: 42px;
  1388. bottom: 0;
  1389. left: 0;
  1390. right: 0;
  1391. }
  1392. .emoji-search-wrapper + .emoji-categories-wrapper {
  1393. top: 93px;
  1394. }
  1395. .emoji-row .emoji {
  1396. img, svg {
  1397. transition: transform 60ms ease-in-out;
  1398. }
  1399. &:hover {
  1400. background: lighten($color2, 3%);
  1401. img, svg {
  1402. transform: translateZ(0) scale(1.2);
  1403. }
  1404. }
  1405. }
  1406. .emoji {
  1407. width: 22px;
  1408. height: 22px;
  1409. cursor: pointer;
  1410. &:focus {
  1411. outline: 0;
  1412. }
  1413. }
  1414. }
  1415. .autosuggest-status {
  1416. overflow: hidden;
  1417. white-space: nowrap;
  1418. text-overflow: ellipsis;
  1419. strong {
  1420. font-weight: 500;
  1421. }
  1422. }
  1423. .upload-area {
  1424. position: absolute;
  1425. top: 0;
  1426. left: 0;
  1427. width: 100%;
  1428. height: 100%;
  1429. visibility: hidden;
  1430. background: rgba($color8, 0.8);
  1431. display: flex;
  1432. align-items: center;
  1433. justify-content: center;
  1434. opacity: 0;
  1435. z-index: 2000;
  1436. * {
  1437. pointer-events: none;
  1438. }
  1439. }
  1440. .upload-area__drop {
  1441. width: 320px;
  1442. height: 160px;
  1443. display: flex;
  1444. box-sizing: border-box;
  1445. position: relative;
  1446. padding: 8px;
  1447. }
  1448. .upload-area__background {
  1449. position: absolute;
  1450. top: 0;
  1451. right: 0;
  1452. bottom: 0;
  1453. left: 0;
  1454. z-index: -1;
  1455. border-radius: 4px;
  1456. background: $color1;
  1457. box-shadow: 0 0 5px rgba($color8, 0.2);
  1458. }
  1459. .upload-area__content {
  1460. flex: 1;
  1461. display: flex;
  1462. align-items: center;
  1463. justify-content: center;
  1464. color: $color2;
  1465. font-size: 18px;
  1466. font-weight: 500;
  1467. border: 2px dashed lighten($color1, 26%);
  1468. border-radius: 4px;
  1469. }
  1470. .upload-progress {
  1471. padding: 10px;
  1472. color: lighten($color1, 26%);
  1473. overflow: hidden;
  1474. display: flex;
  1475. .fa {
  1476. font-size: 34px;
  1477. margin-right: 10px;
  1478. }
  1479. span {
  1480. font-size: 12px;
  1481. text-transform: uppercase;
  1482. font-weight: 500;
  1483. display: block;
  1484. }
  1485. }
  1486. .upload-progress__backdrop {
  1487. width: 100%;
  1488. height: 6px;
  1489. border-radius: 6px;
  1490. background: lighten($color1, 26%);
  1491. position: relative;
  1492. margin-top: 5px;
  1493. }
  1494. .upload-progress__tracker {
  1495. position: absolute;
  1496. left: 0;
  1497. top: 0;
  1498. height: 6px;
  1499. background: $color4;
  1500. border-radius: 6px;
  1501. }
  1502. .emoji-button {
  1503. outline: 0;
  1504. &:active, &:focus {
  1505. outline: 0 !important;
  1506. }
  1507. img {
  1508. filter: grayscale(100%);
  1509. opacity: 0.8;
  1510. display: block;
  1511. margin: 0;
  1512. width: 22px;
  1513. height: 22px;
  1514. margin-top: 2px;
  1515. }
  1516. &:hover, &:active, &:focus {
  1517. img {
  1518. opacity: 1;
  1519. filter: none;
  1520. }
  1521. }
  1522. }
  1523. .dropdown--active .emoji-button img {
  1524. opacity: 1;
  1525. filter: none;
  1526. }
  1527. .privacy-dropdown {
  1528. position: relative;
  1529. }
  1530. .privacy-dropdown__dropdown {
  1531. display: none;
  1532. position: absolute;
  1533. left: 0;
  1534. top: 27px;
  1535. width: 230px;
  1536. background: $color5;
  1537. border-radius: 0 4px 4px 4px;
  1538. z-index: 2;
  1539. overflow: hidden;
  1540. }
  1541. .privacy-dropdown__option {
  1542. color: $color1;
  1543. padding: 10px;
  1544. cursor: pointer;
  1545. display: flex;
  1546. &:hover, &.active {
  1547. background: $color4;
  1548. color: $color5;
  1549. .privacy-dropdown__option__content {
  1550. color: $color5;
  1551. strong {
  1552. color: $color5;
  1553. }
  1554. }
  1555. }
  1556. &.active:hover {
  1557. background: lighten($color4, 4%);
  1558. }
  1559. }
  1560. .privacy-dropdown__option__icon {
  1561. display: flex;
  1562. align-items: center;
  1563. justify-content: center;
  1564. margin-right: 10px;
  1565. }
  1566. .privacy-dropdown__option__content {
  1567. flex: 1 1 auto;
  1568. color: darken($color3, 24%);
  1569. strong {
  1570. font-weight: 500;
  1571. display: block;
  1572. color: $color1;
  1573. }
  1574. }
  1575. .privacy-dropdown.active {
  1576. .privacy-dropdown__value {
  1577. background: $color5;
  1578. border-radius: 4px 4px 0 0;
  1579. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1580. }
  1581. .privacy-dropdown__dropdown {
  1582. display: block;
  1583. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1584. }
  1585. }
  1586. .search {
  1587. position: relative;
  1588. }
  1589. .search__input {
  1590. padding-right: 30px;
  1591. color: $color2;
  1592. outline: 0;
  1593. box-sizing: border-box;
  1594. display: block;
  1595. width: 100%;
  1596. border: none;
  1597. padding: 10px;
  1598. padding-right: 30px;
  1599. font-family: inherit;
  1600. background: $color1;
  1601. color: $color3;
  1602. font-size: 14px;
  1603. margin: 0;
  1604. &::-moz-focus-inner {
  1605. border: 0;
  1606. }
  1607. &::-moz-focus-inner, &:focus, &:active {
  1608. outline: 0 !important;
  1609. }
  1610. &:focus {
  1611. background: lighten($color1, 4%);
  1612. }
  1613. @media screen and (max-width: 600px) {
  1614. font-size: 16px;
  1615. }
  1616. }
  1617. .search__icon {
  1618. .fa {
  1619. position: absolute;
  1620. top: 10px;
  1621. right: 10px;
  1622. z-index: 2;
  1623. display: inline-block;
  1624. opacity: 0;
  1625. transition: all 100ms linear;
  1626. font-size: 18px;
  1627. width: 18px;
  1628. height: 18px;
  1629. color: $color2;
  1630. cursor: default;
  1631. pointer-events: none;
  1632. &.active {
  1633. pointer-events: auto;
  1634. opacity: 0.3;
  1635. }
  1636. }
  1637. .fa-search {
  1638. transform: translateZ(0) rotate(90deg);
  1639. &.active {
  1640. pointer-events: none;
  1641. transform: translateZ(0) rotate(0deg);
  1642. }
  1643. }
  1644. .fa-times-circle {
  1645. top: 11px;
  1646. transform: translateZ(0) rotate(0deg);
  1647. cursor: pointer;
  1648. &.active {
  1649. transform: translateZ(0) rotate(90deg);
  1650. }
  1651. &:hover {
  1652. color: $color5;
  1653. }
  1654. }
  1655. }
  1656. .search-results__header {
  1657. color: lighten($color1, 26%);
  1658. background: lighten($color1, 2%);
  1659. border-bottom: 1px solid darken($color1, 4%);
  1660. padding: 15px 10px;
  1661. font-size: 14px;
  1662. font-weight: 500;
  1663. }
  1664. .search-results__hashtag {
  1665. display: block;
  1666. padding: 10px;
  1667. color: $color2;
  1668. text-decoration: none;
  1669. &:hover, &:active, &:focus {
  1670. color: lighten($color2, 4%);
  1671. text-decoration: underline;
  1672. }
  1673. }
  1674. .modal-root__overlay {
  1675. position: absolute;
  1676. top: 0;
  1677. left: 0;
  1678. right: 0;
  1679. bottom: 0;
  1680. z-index: 9999;
  1681. opacity: 0;
  1682. background: rgba($color8, 0.7);
  1683. }
  1684. .modal-root__container {
  1685. position: absolute;
  1686. top: 0;
  1687. left: 0;
  1688. width: 100%;
  1689. height: 100%;
  1690. display: flex;
  1691. flex-direction: column;
  1692. align-items: center;
  1693. justify-content: center;
  1694. align-content: space-around;
  1695. z-index: 9999;
  1696. opacity: 0;
  1697. pointer-events: none;
  1698. user-select: none;
  1699. }
  1700. .modal-root__modal {
  1701. pointer-events: auto;
  1702. display: flex;
  1703. z-index: 9999;
  1704. }
  1705. .media-modal {
  1706. max-width: 80vw;
  1707. max-height: 80vh;
  1708. position: relative;
  1709. img, video {
  1710. max-width: 80vw;
  1711. max-height: 80vh;
  1712. }
  1713. }
  1714. .onboarding-modal {
  1715. background: $color2;
  1716. color: $color1;
  1717. border-radius: 8px;
  1718. overflow: hidden;
  1719. display: flex;
  1720. flex-direction: column;
  1721. }
  1722. .onboarding-modal__pager {
  1723. height: 80vh;
  1724. width: 80vw;
  1725. max-width: 520px;
  1726. max-height: 420px;
  1727. position: relative;
  1728. & > div {
  1729. position: absolute;
  1730. top: 0;
  1731. left: 0;
  1732. width: 100%;
  1733. height: 100%;
  1734. box-sizing: border-box;
  1735. padding: 25px;
  1736. display: none;
  1737. flex-direction: column;
  1738. align-items: center;
  1739. justify-content: center;
  1740. display: flex;
  1741. opacity: 0;
  1742. user-select: text;
  1743. }
  1744. }
  1745. @media screen and (max-width: 550px) {
  1746. .onboarding-modal {
  1747. width: 100%;
  1748. height: 100%;
  1749. border-radius: 0;
  1750. }
  1751. .onboarding-modal__pager {
  1752. width: 100%;
  1753. height: auto;
  1754. max-width: none;
  1755. max-height: none;
  1756. flex: 1 1 auto;
  1757. }
  1758. }
  1759. .onboarding-modal__paginator {
  1760. flex: 0 0 auto;
  1761. background: darken($color2, 8%);
  1762. display: flex;
  1763. padding: 25px;
  1764. & > div {
  1765. min-width: 33px;
  1766. }
  1767. a {
  1768. color: darken($color2, 34%);
  1769. text-decoration: none;
  1770. font-size: 14px;
  1771. font-weight: 500;
  1772. &:hover, &:focus, &:active {
  1773. color: darken($color2, 38%);
  1774. }
  1775. &.onboarding-modal__done, &.onboarding-modal__next {
  1776. color: $color4;
  1777. }
  1778. }
  1779. }
  1780. .onboarding-modal__dots {
  1781. flex: 1 1 auto;
  1782. display: flex;
  1783. align-items: center;
  1784. justify-content: center;
  1785. }
  1786. .onboarding-modal__dot {
  1787. width: 14px;
  1788. height: 14px;
  1789. border-radius: 14px;
  1790. background: darken($color2, 16%);
  1791. margin: 0 3px;
  1792. cursor: pointer;
  1793. &:hover {
  1794. background: darken($color2, 18%);
  1795. }
  1796. &.active {
  1797. cursor: default;
  1798. background: darken($color2, 24%);
  1799. }
  1800. }
  1801. .onboarding-modal__page {
  1802. cursor: default;
  1803. line-height: 21px;
  1804. h1 {
  1805. font-size: 18px;
  1806. font-weight: 500;
  1807. color: $color1;
  1808. margin-bottom: 20px;
  1809. }
  1810. a {
  1811. color: $color4;
  1812. &:hover, &:focus, &:active {
  1813. color: lighten($color4, 4%);
  1814. }
  1815. }
  1816. p {
  1817. font-size: 16px;
  1818. color: lighten($color1, 8%);
  1819. margin-top: 10px;
  1820. margin-bottom: 10px;
  1821. &:last-child {
  1822. margin-bottom: 0;
  1823. }
  1824. strong {
  1825. font-weight: 500;
  1826. background: $color1;
  1827. color: $color2;
  1828. border-radius: 4px;
  1829. font-size: 14px;
  1830. padding: 3px 6px;
  1831. }
  1832. }
  1833. }
  1834. .onboarding-modal__page-one {
  1835. display: flex;
  1836. }
  1837. .onboarding-modal__page-one__elephant-friend {
  1838. background: image-url('elephant-friend.png') no-repeat 0 0;
  1839. width: 147px;
  1840. height: 160px;
  1841. margin-right: 10px;
  1842. }
  1843. .onboarding-modal__page-two,
  1844. .onboarding-modal__page-three,
  1845. .onboarding-modal__page-four,
  1846. .onboarding-modal__page-five {
  1847. p {
  1848. text-align: left;
  1849. }
  1850. .figure {
  1851. background: darken($color1, 8%);
  1852. color: $color2;
  1853. margin-bottom: 20px;
  1854. border-radius: 4px;
  1855. padding: 10px;
  1856. text-align: center;
  1857. font-size: 14px;
  1858. box-shadow: 1px 2px 6px rgba($color8, 0.3);
  1859. .onboarding-modal__image {
  1860. border-radius: 4px;
  1861. margin-bottom: 10px;
  1862. }
  1863. &.non-interactive {
  1864. pointer-events: none;
  1865. text-align: left;
  1866. }
  1867. }
  1868. }
  1869. .onboarding-modal__page-four__columns {
  1870. .row {
  1871. display: flex;
  1872. margin-bottom: 20px;
  1873. & > div {
  1874. flex: 1 1 0;
  1875. margin: 0 10px;
  1876. &:first-child {
  1877. margin-left: 0;
  1878. }
  1879. &:last-child {
  1880. margin-right: 0;
  1881. }
  1882. p {
  1883. text-align: center;
  1884. }
  1885. }
  1886. &:last-child {
  1887. margin-bottom: 0;
  1888. }
  1889. }
  1890. .column-header {
  1891. color: $color5;
  1892. }
  1893. }
  1894. .onboarding-modal__image {
  1895. border-radius: 8px;
  1896. width: 70vw;
  1897. max-width: 450px;
  1898. max-height: auto;
  1899. display: block;
  1900. margin: auto;
  1901. margin-bottom: 20px;
  1902. }
  1903. .onboard-sliders {
  1904. display: inline-block;
  1905. max-width: 30px;
  1906. max-height: auto;
  1907. margin-left: 10px;
  1908. }
  1909. .boost-modal {
  1910. background: lighten($color2, 8%);
  1911. color: $color1;
  1912. border-radius: 8px;
  1913. overflow: hidden;
  1914. max-width: 90vw;
  1915. width: 480px;
  1916. position: relative;
  1917. flex-direction: column;
  1918. }
  1919. .boost-modal__container {
  1920. overflow-x: scroll;
  1921. padding: 10px;
  1922. .status {
  1923. user-select: text;
  1924. border-bottom: 0;
  1925. }
  1926. }
  1927. .boost-modal__action-bar {
  1928. display: flex;
  1929. background: $color2;
  1930. padding: 10px;
  1931. line-height: 36px;
  1932. & > div {
  1933. flex: 1 1 auto;
  1934. text-align: right;
  1935. color: lighten($color1, 33%);
  1936. padding-right: 10px;
  1937. }
  1938. .button {
  1939. flex: 0 0 auto;
  1940. }
  1941. }
  1942. .loading-bar {
  1943. background-color: $color4;
  1944. height: 3px;
  1945. position: absolute;
  1946. top: 0;
  1947. left: 0;
  1948. }
  1949. .media-gallery__gifv__label {
  1950. display: block;
  1951. position: absolute;
  1952. color: $color5;
  1953. background: rgba($color8, 0.5);
  1954. bottom: 6px;
  1955. left: 6px;
  1956. padding: 2px 6px;
  1957. border-radius: 2px;
  1958. font-size: 11px;
  1959. font-weight: 600;
  1960. z-index: 1;
  1961. pointer-events: none;
  1962. opacity: 0.9;
  1963. transition: opacity 0.1s ease;
  1964. }
  1965. .media-gallery__gifv {
  1966. &.autoplay {
  1967. .media-gallery__gifv__label {
  1968. display: none;
  1969. }
  1970. }
  1971. &:hover {
  1972. .media-gallery__gifv__label {
  1973. opacity: 1;
  1974. }
  1975. }
  1976. }