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

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