闭社主体 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.

2058 lines
33 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
  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. .drawer__header {
  777. flex: 0 0 auto;
  778. font-size: 16px;
  779. background: lighten($color1, 8%);
  780. margin-bottom: 10px;
  781. display: flex;
  782. flex-direction: row;
  783. a {
  784. transition: all 100ms ease-in;
  785. &:hover {
  786. background: lighten($color1, 3%);
  787. transition: all 200ms ease-out;
  788. }
  789. }
  790. }
  791. .tabs-bar {
  792. display: flex;
  793. background: lighten($color1, 8%);
  794. flex: 0 0 auto;
  795. overflow-y: auto;
  796. }
  797. .tabs-bar__link {
  798. display: block;
  799. flex: 1 1 auto;
  800. padding: 15px 10px;
  801. color: $color5;
  802. text-decoration: none;
  803. text-align: center;
  804. font-size: 14px;
  805. font-weight: 500;
  806. border-bottom: 2px solid lighten($color1, 8%);
  807. transition: all 200ms linear;
  808. .fa {
  809. font-weight: 400;
  810. font-size: 16px;
  811. }
  812. &.active {
  813. border-bottom: 2px solid $color4;
  814. color: $color4;
  815. }
  816. &:hover, &:focus, &:active {
  817. background: lighten($color1, 14%);
  818. transition: all 100ms linear;
  819. }
  820. span {
  821. margin-left: 5px;
  822. display: none;
  823. }
  824. }
  825. @media screen and (min-width: 600px) {
  826. .tabs-bar__link {
  827. span {
  828. display: inline;
  829. }
  830. }
  831. }
  832. @media screen and (min-width: 1025px) {
  833. .tabs-bar {
  834. display: none;
  835. }
  836. }
  837. .react-autosuggest__container {
  838. position: relative;
  839. }
  840. .react-autosuggest__suggestions-container {
  841. position: absolute;
  842. top: 100%;
  843. width: 100%;
  844. z-index: 99;
  845. box-shadow: 0 0 15px rgba($color8, 0.4);
  846. }
  847. .react-autosuggest__section-title {
  848. background: $color3;
  849. padding: 4px 10px;
  850. font-weight: 500;
  851. cursor: default;
  852. color: $color1;
  853. text-transform: uppercase;
  854. font-size: 11px;
  855. }
  856. .react-autosuggest__suggestions-list {
  857. background: $color2;
  858. color: $color1;
  859. font-size: 14px;
  860. }
  861. .react-autosuggest__suggestion {
  862. padding: 10px;
  863. cursor: pointer;
  864. }
  865. .react-autosuggest__suggestion--focused {
  866. background: $color4;
  867. color: $color5;
  868. }
  869. .scrollable {
  870. overflow-y: scroll;
  871. overflow-x: hidden;
  872. flex: 1 1 auto;
  873. -webkit-overflow-scrolling: touch;
  874. &.optionally-scrollable {
  875. overflow-y: auto;
  876. }
  877. }
  878. .column-back-button {
  879. padding: 15px;
  880. font-size: 16px;
  881. background: lighten($color1, 4%);
  882. flex: 0 0 auto;
  883. cursor: pointer;
  884. color: $color4;
  885. z-index: 3;
  886. &:hover {
  887. text-decoration: underline;
  888. }
  889. }
  890. .react-toggle {
  891. display: inline-block;
  892. position: relative;
  893. cursor: pointer;
  894. background-color: transparent;
  895. border: 0;
  896. padding: 0;
  897. user-select: none;
  898. -webkit-tap-highlight-color: rgba($color8, 0);
  899. -webkit-tap-highlight-color: transparent;
  900. }
  901. .react-toggle-screenreader-only {
  902. border: 0;
  903. clip: rect(0 0 0 0);
  904. height: 1px;
  905. margin: -1px;
  906. overflow: hidden;
  907. padding: 0;
  908. position: absolute;
  909. width: 1px;
  910. }
  911. .react-toggle--disabled {
  912. cursor: not-allowed;
  913. opacity: 0.5;
  914. transition: opacity 0.25s;
  915. }
  916. .react-toggle-track {
  917. width: 50px;
  918. height: 24px;
  919. padding: 0;
  920. border-radius: 30px;
  921. background-color: $color1;
  922. transition: all 0.2s ease;
  923. }
  924. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  925. background-color: darken($color1, 10%);
  926. }
  927. .react-toggle--checked .react-toggle-track {
  928. background-color: $color4;
  929. }
  930. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  931. background-color: lighten($color4, 10%);
  932. }
  933. .react-toggle-track-check {
  934. position: absolute;
  935. width: 14px;
  936. height: 10px;
  937. top: 0px;
  938. bottom: 0px;
  939. margin-top: auto;
  940. margin-bottom: auto;
  941. line-height: 0;
  942. left: 8px;
  943. opacity: 0;
  944. transition: opacity 0.25s ease;
  945. }
  946. .react-toggle--checked .react-toggle-track-check {
  947. opacity: 1;
  948. transition: opacity 0.25s ease;
  949. }
  950. .react-toggle-track-x {
  951. position: absolute;
  952. width: 10px;
  953. height: 10px;
  954. top: 0px;
  955. bottom: 0px;
  956. margin-top: auto;
  957. margin-bottom: auto;
  958. line-height: 0;
  959. right: 10px;
  960. opacity: 1;
  961. transition: opacity 0.25s ease;
  962. }
  963. .react-toggle--checked .react-toggle-track-x {
  964. opacity: 0;
  965. }
  966. .react-toggle-thumb {
  967. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  968. position: absolute;
  969. top: 1px;
  970. left: 1px;
  971. width: 22px;
  972. height: 22px;
  973. border: 1px solid $color1;
  974. border-radius: 50%;
  975. background-color: darken($color5, 2%);
  976. box-sizing: border-box;
  977. transition: all 0.25s ease;
  978. }
  979. .react-toggle--checked .react-toggle-thumb {
  980. left: 27px;
  981. border-color: $color4;
  982. }
  983. .column-link {
  984. background: lighten($color1, 8%);
  985. color: $color5;
  986. &:hover {
  987. background: lighten($color1, 11%);
  988. }
  989. }
  990. .autosuggest-textarea, .spoiler-input {
  991. position: relative;
  992. }
  993. .autosuggest-textarea__textarea, .spoiler-input__input {
  994. display: block;
  995. box-sizing: border-box;
  996. width: 100%;
  997. resize: none;
  998. margin: 0;
  999. color: $color1;
  1000. padding: 10px;
  1001. font-family: inherit;
  1002. font-size: 14px;
  1003. resize: vertical;
  1004. border: 0;
  1005. outline: 0;
  1006. &:focus {
  1007. outline: 0;
  1008. }
  1009. }
  1010. .spoiler-input__input {
  1011. border-radius: 4px;
  1012. }
  1013. .autosuggest-textarea__textarea {
  1014. height: 100px;
  1015. background: $color5;
  1016. border-radius: 4px 4px 0 0;
  1017. padding-bottom: 0;
  1018. padding-right: 10px + 22px;
  1019. }
  1020. .autosuggest-textarea__suggestions {
  1021. position: absolute;
  1022. top: 100%;
  1023. width: 100%;
  1024. z-index: 99;
  1025. box-shadow: 0 0 15px rgba($color8, 0.4);
  1026. background: $color2;
  1027. color: $color1;
  1028. font-size: 14px;
  1029. }
  1030. .autosuggest-textarea__suggestions__item {
  1031. padding: 10px;
  1032. cursor: pointer;
  1033. &:hover {
  1034. background: darken($color2, 10%);
  1035. }
  1036. &.selected {
  1037. background: $color4;
  1038. color: $color5;
  1039. }
  1040. }
  1041. .getting-started {
  1042. box-sizing: border-box;
  1043. padding-bottom: 235px;
  1044. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  1045. flex: 1 0 auto;
  1046. p {
  1047. color: $color2;
  1048. }
  1049. a {
  1050. color: lighten($color1, 26%);
  1051. }
  1052. }
  1053. .setting-text {
  1054. color: $color3;
  1055. background: transparent;
  1056. border: none;
  1057. border-bottom: 2px solid $color3;
  1058. &:focus, &:active {
  1059. color: $color5;
  1060. border-bottom-color: $color4;
  1061. }
  1062. }
  1063. @import 'boost';
  1064. button.icon-button i.fa-retweet {
  1065. height: 19px;
  1066. width: 22px;
  1067. background-position: 0 0;
  1068. transition: background-position 0.9s steps(10);
  1069. transition-duration: 0s;
  1070. &::before {
  1071. display: none !important;
  1072. }
  1073. }
  1074. button.icon-button.active i.fa-retweet {
  1075. transition-duration: 0.9s;
  1076. background-position: 0 100%;
  1077. }
  1078. .status-card {
  1079. display: flex;
  1080. cursor: pointer;
  1081. font-size: 14px;
  1082. border: 1px solid lighten($color1, 8%);
  1083. border-radius: 4px;
  1084. color: lighten($color1, 26%);
  1085. margin-top: 14px;
  1086. text-decoration: none;
  1087. overflow: hidden;
  1088. &:hover {
  1089. background: lighten($color1, 8%);
  1090. }
  1091. }
  1092. .status-card__title {
  1093. display: block;
  1094. font-weight: 500;
  1095. margin-bottom: 5px;
  1096. color: $color3;
  1097. overflow: hidden;
  1098. text-overflow: ellipsis;
  1099. white-space: nowrap;
  1100. }
  1101. .status-card__description {
  1102. color: $color3;
  1103. }
  1104. .status-card__image {
  1105. flex: 0 0 100px;
  1106. background: lighten($color1, 8%);
  1107. }
  1108. .load-more {
  1109. display: block;
  1110. color: lighten($color1, 26%);
  1111. text-align: center;
  1112. padding: 15px;
  1113. text-decoration: none;
  1114. &:hover {
  1115. background: lighten($color1, 2%);
  1116. }
  1117. }
  1118. .missing-indicator {
  1119. text-align: center;
  1120. font-size: 16px;
  1121. font-weight: 500;
  1122. color: lighten($color1, 16%);
  1123. padding-top: 210px;
  1124. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1125. cursor: default;
  1126. }
  1127. .column-header {
  1128. padding: 15px;
  1129. font-size: 16px;
  1130. background: lighten($color1, 4%);
  1131. flex: 0 0 auto;
  1132. cursor: pointer;
  1133. position: relative;
  1134. z-index: 2;
  1135. &.active {
  1136. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1137. }
  1138. &.active .fa {
  1139. color: $color4;
  1140. text-shadow: 0 0 10px rgba($color4, 0.4);
  1141. }
  1142. }
  1143. .loading-indicator {
  1144. color: $color2;
  1145. }
  1146. .collapsable-collapsed {
  1147. color: $color3;
  1148. background: lighten($color1, 4%);
  1149. }
  1150. .collapsable {
  1151. color: $color5;
  1152. background: lighten($color1, 8%);
  1153. &:hover {
  1154. color: $color5;
  1155. background: lighten($color1, 8%);
  1156. }
  1157. }
  1158. .media-spoiler {
  1159. background: $color8;
  1160. color: $color5;
  1161. }
  1162. .modal-container--preloader {
  1163. background: lighten($color1, 8%);
  1164. }
  1165. .account--panel {
  1166. background: lighten($color1, 4%);
  1167. border-top: 1px solid lighten($color1, 8%);
  1168. border-bottom: 1px solid lighten($color1, 8%);
  1169. }
  1170. .column-settings--outer {
  1171. background: lighten($color1, 8%);
  1172. }
  1173. .column-settings--section {
  1174. color: $color3;
  1175. }
  1176. .modal-container__nav {
  1177. color: $color5;
  1178. }
  1179. .account--follows-info {
  1180. color: $color5;
  1181. }
  1182. .setting-toggle {
  1183. color: $color3;
  1184. }
  1185. .report__target {
  1186. border-bottom: 1px solid lighten($color1, 4%);
  1187. color: $color2;
  1188. padding-bottom: 10px;
  1189. strong {
  1190. display: block;
  1191. color: $color5;
  1192. font-weight: 500;
  1193. }
  1194. }
  1195. .report__textarea {
  1196. background: transparent;
  1197. box-sizing: border-box;
  1198. border: 0;
  1199. border-bottom: 2px solid $color3;
  1200. border-radius: 2px 2px 0 0;
  1201. padding: 7px 4px;
  1202. font-size: 14px;
  1203. color: $color5;
  1204. display: block;
  1205. width: 100%;
  1206. outline: 0;
  1207. font-family: inherit;
  1208. resize: vertical;
  1209. &:active, &:focus {
  1210. border-bottom-color: $color4;
  1211. background: rgba($color8, 0.1);
  1212. }
  1213. }
  1214. .empty-column-indicator {
  1215. color: lighten($color1, 20%);
  1216. background: $color1;
  1217. text-align: center;
  1218. padding: 20px;
  1219. font-size: 15px;
  1220. font-weight: 400;
  1221. cursor: default;
  1222. display: flex;
  1223. flex: 1 1 auto;
  1224. align-items: center;
  1225. a {
  1226. color: $color4;
  1227. text-decoration: none;
  1228. &:hover {
  1229. text-decoration: underline;
  1230. }
  1231. }
  1232. }
  1233. .status-list__unread-indicator, .notifications__unread-indicator {
  1234. position: absolute;
  1235. top: 35px;
  1236. left: 0;
  1237. right: 0;
  1238. margin: 0 auto;
  1239. width: 60%;
  1240. pointer-events: none;
  1241. height: 28px;
  1242. z-index: 1;
  1243. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1244. }
  1245. .emoji-dialog {
  1246. width: 245px;
  1247. height: 270px;
  1248. background: $color5;
  1249. box-sizing: border-box;
  1250. border-radius: 4px;
  1251. overflow: hidden;
  1252. position: relative;
  1253. box-shadow: 0 0 8px rgba($color8, 0.2);
  1254. .emojione {
  1255. margin: 0;
  1256. width: 100%;
  1257. height: auto;
  1258. }
  1259. .emoji-dialog-header {
  1260. padding: 0 10px;
  1261. ul {
  1262. padding: 0;
  1263. margin: 0;
  1264. list-style: none;
  1265. }
  1266. li {
  1267. display: inline-block;
  1268. box-sizing: border-box;
  1269. padding: 10px 5px;
  1270. cursor: pointer;
  1271. border-bottom: 2px solid transparent;
  1272. .emoji {
  1273. width: 18px;
  1274. height: 18px;
  1275. }
  1276. img, svg {
  1277. width: 18px;
  1278. height: 18px;
  1279. filter: grayscale(100%);
  1280. }
  1281. &:hover {
  1282. img, svg {
  1283. filter: grayscale(0);
  1284. }
  1285. }
  1286. &.active {
  1287. border-bottom-color: $color4;
  1288. img, svg {
  1289. filter: grayscale(0);
  1290. }
  1291. }
  1292. }
  1293. }
  1294. .emoji-row {
  1295. box-sizing: border-box;
  1296. overflow-y: hidden;
  1297. padding-left: 10px;
  1298. .emoji {
  1299. display: inline-block;
  1300. padding: 5px;
  1301. border-radius: 4px;
  1302. }
  1303. }
  1304. .emoji-category-header {
  1305. box-sizing: border-box;
  1306. overflow-y: hidden;
  1307. padding: 10px 8px 10px 16px;
  1308. display: table;
  1309. > * {
  1310. display: table-cell;
  1311. vertical-align: middle;
  1312. }
  1313. }
  1314. .emoji-category-title {
  1315. font-size: 12px;
  1316. text-transform: uppercase;
  1317. font-weight: 500;
  1318. color: darken($color2, 18%);
  1319. cursor: default;
  1320. }
  1321. .emoji-category-heading-decoration {
  1322. text-align: right;
  1323. }
  1324. .modifiers {
  1325. list-style: none;
  1326. padding: 0;
  1327. margin: 0;
  1328. vertical-align: middle;
  1329. white-space: nowrap;
  1330. margin-top: 4px;
  1331. li {
  1332. display: inline-block;
  1333. padding: 0 2px;
  1334. &:last-of-type {
  1335. padding-right: 0;
  1336. }
  1337. }
  1338. .modifier {
  1339. display: inline-block;
  1340. border-radius: 10px;
  1341. width: 15px;
  1342. height: 15px;
  1343. position: relative;
  1344. cursor: pointer;
  1345. &.active:after {
  1346. content: "";
  1347. display: block;
  1348. position: absolute;
  1349. width: 7px;
  1350. height: 7px;
  1351. border-radius: 10px;
  1352. border: 2px solid $color5;
  1353. top: 2px;
  1354. left: 2px;
  1355. }
  1356. }
  1357. }
  1358. .emoji-search-wrapper {
  1359. padding: 10px;
  1360. border-bottom: 1px solid lighten($color2, 4%);
  1361. }
  1362. .emoji-search {
  1363. font-size: 14px;
  1364. font-weight: 400;
  1365. padding: 7px 9px;
  1366. font-family: inherit;
  1367. display: block;
  1368. width: 100%;
  1369. background: rgba($color2, 0.3);
  1370. color: darken($color2, 18%);
  1371. border: 1px solid $color2;
  1372. border-radius: 4px;
  1373. }
  1374. .emoji-categories-wrapper {
  1375. position: absolute;
  1376. top: 42px;
  1377. bottom: 0;
  1378. left: 0;
  1379. right: 0;
  1380. }
  1381. .emoji-search-wrapper + .emoji-categories-wrapper {
  1382. top: 93px;
  1383. }
  1384. .emoji-row .emoji {
  1385. img, svg {
  1386. transition: transform 60ms ease-in-out;
  1387. }
  1388. &:hover {
  1389. background: lighten($color2, 3%);
  1390. img, svg {
  1391. transform: translateZ(0) scale(1.2);
  1392. }
  1393. }
  1394. }
  1395. .emoji {
  1396. width: 22px;
  1397. height: 22px;
  1398. cursor: pointer;
  1399. &:focus {
  1400. outline: 0;
  1401. }
  1402. }
  1403. }
  1404. .autosuggest-status {
  1405. overflow: hidden;
  1406. white-space: nowrap;
  1407. text-overflow: ellipsis;
  1408. strong {
  1409. font-weight: 500;
  1410. }
  1411. }
  1412. .upload-area {
  1413. position: absolute;
  1414. top: 0;
  1415. left: 0;
  1416. width: 100%;
  1417. height: 100%;
  1418. visibility: hidden;
  1419. background: rgba($color8, 0.8);
  1420. display: flex;
  1421. align-items: center;
  1422. justify-content: center;
  1423. opacity: 0;
  1424. z-index: 2000;
  1425. * {
  1426. pointer-events: none;
  1427. }
  1428. }
  1429. .upload-area__drop {
  1430. width: 320px;
  1431. height: 160px;
  1432. display: flex;
  1433. box-sizing: border-box;
  1434. position: relative;
  1435. padding: 8px;
  1436. }
  1437. .upload-area__background {
  1438. position: absolute;
  1439. top: 0;
  1440. right: 0;
  1441. bottom: 0;
  1442. left: 0;
  1443. z-index: -1;
  1444. border-radius: 4px;
  1445. background: $color1;
  1446. box-shadow: 0 0 5px rgba($color8, 0.2);
  1447. }
  1448. .upload-area__content {
  1449. flex: 1;
  1450. display: flex;
  1451. align-items: center;
  1452. justify-content: center;
  1453. color: $color2;
  1454. font-size: 18px;
  1455. font-weight: 500;
  1456. border: 2px dashed lighten($color1, 26%);
  1457. border-radius: 4px;
  1458. }
  1459. .upload-progress {
  1460. padding: 10px;
  1461. color: lighten($color1, 26%);
  1462. overflow: hidden;
  1463. display: flex;
  1464. .fa {
  1465. font-size: 34px;
  1466. margin-right: 10px;
  1467. }
  1468. span {
  1469. font-size: 12px;
  1470. text-transform: uppercase;
  1471. font-weight: 500;
  1472. display: block;
  1473. }
  1474. }
  1475. .upload-progress__backdrop {
  1476. width: 100%;
  1477. height: 6px;
  1478. border-radius: 6px;
  1479. background: lighten($color1, 26%);
  1480. position: relative;
  1481. margin-top: 5px;
  1482. }
  1483. .upload-progress__tracker {
  1484. position: absolute;
  1485. left: 0;
  1486. top: 0;
  1487. height: 6px;
  1488. background: $color4;
  1489. border-radius: 6px;
  1490. }
  1491. .emoji-button {
  1492. outline: 0;
  1493. &:active, &:focus {
  1494. outline: 0 !important;
  1495. }
  1496. img {
  1497. filter: grayscale(100%);
  1498. opacity: 0.8;
  1499. display: block;
  1500. margin: 0;
  1501. width: 22px;
  1502. height: 22px;
  1503. margin-top: 2px;
  1504. }
  1505. &:hover, &:active, &:focus {
  1506. img {
  1507. opacity: 1;
  1508. filter: none;
  1509. }
  1510. }
  1511. }
  1512. .dropdown--active .emoji-button img {
  1513. opacity: 1;
  1514. filter: none;
  1515. }
  1516. .privacy-dropdown {
  1517. position: relative;
  1518. }
  1519. .privacy-dropdown__dropdown {
  1520. display: none;
  1521. position: absolute;
  1522. left: 0;
  1523. top: 27px;
  1524. width: 230px;
  1525. background: $color5;
  1526. border-radius: 0 4px 4px 4px;
  1527. z-index: 2;
  1528. overflow: hidden;
  1529. }
  1530. .privacy-dropdown__option {
  1531. color: $color1;
  1532. padding: 10px;
  1533. cursor: pointer;
  1534. display: flex;
  1535. &:hover, &.active {
  1536. background: $color4;
  1537. color: $color5;
  1538. .privacy-dropdown__option__content {
  1539. color: $color5;
  1540. strong {
  1541. color: $color5;
  1542. }
  1543. }
  1544. }
  1545. &.active:hover {
  1546. background: lighten($color4, 4%);
  1547. }
  1548. }
  1549. .privacy-dropdown__option__icon {
  1550. display: flex;
  1551. align-items: center;
  1552. justify-content: center;
  1553. margin-right: 10px;
  1554. }
  1555. .privacy-dropdown__option__content {
  1556. flex: 1 1 auto;
  1557. color: darken($color3, 24%);
  1558. strong {
  1559. font-weight: 500;
  1560. display: block;
  1561. color: $color1;
  1562. }
  1563. }
  1564. .privacy-dropdown.active {
  1565. .privacy-dropdown__value {
  1566. background: $color5;
  1567. border-radius: 4px 4px 0 0;
  1568. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1569. }
  1570. .privacy-dropdown__dropdown {
  1571. display: block;
  1572. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1573. }
  1574. }
  1575. .search {
  1576. position: relative;
  1577. }
  1578. .search__input {
  1579. padding-right: 30px;
  1580. color: $color2;
  1581. outline: 0;
  1582. box-sizing: border-box;
  1583. display: block;
  1584. width: 100%;
  1585. border: none;
  1586. padding: 10px;
  1587. padding-right: 30px;
  1588. font-family: inherit;
  1589. background: $color1;
  1590. color: $color3;
  1591. font-size: 14px;
  1592. margin: 0;
  1593. &::-moz-focus-inner {
  1594. border: 0;
  1595. }
  1596. &::-moz-focus-inner, &:focus, &:active {
  1597. outline: 0 !important;
  1598. }
  1599. &:focus {
  1600. background: lighten($color1, 4%);
  1601. }
  1602. }
  1603. .search__icon {
  1604. .fa {
  1605. position: absolute;
  1606. top: 10px;
  1607. right: 10px;
  1608. z-index: 2;
  1609. display: inline-block;
  1610. opacity: 0;
  1611. transition: all 100ms linear;
  1612. font-size: 18px;
  1613. width: 18px;
  1614. height: 18px;
  1615. color: $color2;
  1616. cursor: default;
  1617. pointer-events: none;
  1618. &.active {
  1619. pointer-events: auto;
  1620. opacity: 0.3;
  1621. }
  1622. }
  1623. .fa-search {
  1624. transform: translateZ(0) rotate(90deg);
  1625. &.active {
  1626. pointer-events: none;
  1627. transform: translateZ(0) rotate(0deg);
  1628. }
  1629. }
  1630. .fa-times-circle {
  1631. top: 11px;
  1632. transform: translateZ(0) rotate(0deg);
  1633. cursor: pointer;
  1634. &.active {
  1635. transform: translateZ(0) rotate(90deg);
  1636. }
  1637. &:hover {
  1638. color: $color5;
  1639. }
  1640. }
  1641. }
  1642. .search-results__header {
  1643. color: lighten($color1, 26%);
  1644. background: lighten($color1, 2%);
  1645. border-bottom: 1px solid darken($color1, 4%);
  1646. padding: 15px 10px;
  1647. font-size: 14px;
  1648. font-weight: 500;
  1649. }
  1650. .search-results__hashtag {
  1651. display: block;
  1652. padding: 10px;
  1653. color: $color2;
  1654. text-decoration: none;
  1655. &:hover, &:active, &:focus {
  1656. color: lighten($color2, 4%);
  1657. text-decoration: underline;
  1658. }
  1659. }
  1660. .modal-root__overlay {
  1661. position: absolute;
  1662. top: 0;
  1663. left: 0;
  1664. right: 0;
  1665. bottom: 0;
  1666. z-index: 9999;
  1667. opacity: 0;
  1668. background: rgba($color8, 0.7);
  1669. }
  1670. .modal-root__container {
  1671. position: absolute;
  1672. top: 0;
  1673. left: 0;
  1674. width: 100%;
  1675. height: 100%;
  1676. display: flex;
  1677. flex-direction: column;
  1678. align-items: center;
  1679. justify-content: center;
  1680. align-content: space-around;
  1681. z-index: 9999;
  1682. opacity: 0;
  1683. pointer-events: none;
  1684. user-select: none;
  1685. }
  1686. .modal-root__modal {
  1687. pointer-events: auto;
  1688. display: flex;
  1689. }
  1690. .media-modal {
  1691. max-width: 80vw;
  1692. max-height: 80vh;
  1693. position: relative;
  1694. img, video {
  1695. max-width: 80vw;
  1696. max-height: 80vh;
  1697. }
  1698. }
  1699. .boost-modal {
  1700. background: lighten($color2, 8%);
  1701. color: $color1;
  1702. border-radius: 8px;
  1703. overflow: hidden;
  1704. max-width: 90vw;
  1705. width: 480px;
  1706. position: relative;
  1707. flex-direction: column;
  1708. }
  1709. .boost-modal__container {
  1710. padding: 10px;
  1711. .status {
  1712. user-select: text;
  1713. border-bottom: 0;
  1714. }
  1715. }
  1716. .boost-modal__action-bar {
  1717. display: flex;
  1718. background: $color2;
  1719. padding: 10px;
  1720. line-height: 36px;
  1721. & > div {
  1722. flex: 1 1 auto;
  1723. text-align: right;
  1724. color: lighten($color1, 33%);
  1725. padding-right: 10px;
  1726. }
  1727. .button {
  1728. flex: 0 0 auto;
  1729. }
  1730. }