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.

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