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

1894 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. padding-bottom: 235px;
  966. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  967. flex: 1 0 auto;
  968. p {
  969. color: $color2;
  970. }
  971. a {
  972. color: lighten($color1, 26%);
  973. }
  974. }
  975. .setting-text {
  976. color: $color3;
  977. background: transparent;
  978. border: none;
  979. border-bottom: 2px solid $color3;
  980. &:focus, &:active {
  981. color: $color5;
  982. border-bottom-color: $color4;
  983. }
  984. }
  985. @import 'boost';
  986. button i.fa-retweet {
  987. height: 19px;
  988. width: 22px;
  989. background-position: 0 0;
  990. transition: background-position 0.9s steps(10);
  991. transition-duration: 0s;
  992. &::before {
  993. display: none !important;
  994. }
  995. }
  996. button.active i.fa-retweet {
  997. transition-duration: 0.9s;
  998. background-position: 0 100%;
  999. }
  1000. .status-card {
  1001. display: flex;
  1002. cursor: pointer;
  1003. font-size: 14px;
  1004. border: 1px solid lighten($color1, 8%);
  1005. border-radius: 4px;
  1006. color: lighten($color1, 26%);
  1007. margin-top: 14px;
  1008. text-decoration: none;
  1009. overflow: hidden;
  1010. &:hover {
  1011. background: lighten($color1, 8%);
  1012. }
  1013. }
  1014. .status-card__title {
  1015. display: block;
  1016. font-weight: 500;
  1017. margin-bottom: 5px;
  1018. color: $color3;
  1019. overflow: hidden;
  1020. text-overflow: ellipsis;
  1021. white-space: nowrap;
  1022. }
  1023. .status-card__description {
  1024. color: $color3;
  1025. }
  1026. .status-card__image {
  1027. flex: 0 0 100px;
  1028. background: lighten($color1, 8%);
  1029. }
  1030. .load-more {
  1031. display: block;
  1032. color: lighten($color1, 26%);
  1033. text-align: center;
  1034. padding: 15px;
  1035. text-decoration: none;
  1036. &:hover {
  1037. background: lighten($color1, 2%);
  1038. }
  1039. }
  1040. .missing-indicator {
  1041. text-align: center;
  1042. font-size: 16px;
  1043. font-weight: 500;
  1044. color: lighten($color1, 16%);
  1045. padding-top: 210px;
  1046. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1047. cursor: default;
  1048. }
  1049. .column-header {
  1050. padding: 15px;
  1051. font-size: 16px;
  1052. background: lighten($color1, 4%);
  1053. flex: 0 0 auto;
  1054. cursor: pointer;
  1055. position: relative;
  1056. z-index: 2;
  1057. &.active {
  1058. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1059. }
  1060. &.active .fa {
  1061. color: $color4;
  1062. text-shadow: 0 0 10px rgba($color4, 0.4);
  1063. }
  1064. }
  1065. .loading-indicator {
  1066. color: $color2;
  1067. }
  1068. .collapsable-collapsed {
  1069. color: $color3;
  1070. background: lighten($color1, 4%);
  1071. }
  1072. .collapsable {
  1073. color: $color5;
  1074. background: lighten($color1, 8%);
  1075. &:hover {
  1076. color: $color5;
  1077. background: lighten($color1, 8%);
  1078. }
  1079. }
  1080. .media-spoiler {
  1081. background: $color8;
  1082. color: $color5;
  1083. }
  1084. .modal-container--preloader {
  1085. background: lighten($color1, 8%);
  1086. }
  1087. .account--panel {
  1088. background: lighten($color1, 4%);
  1089. border-top: 1px solid lighten($color1, 8%);
  1090. border-bottom: 1px solid lighten($color1, 8%);
  1091. }
  1092. .column-settings--outer {
  1093. background: lighten($color1, 8%);
  1094. }
  1095. .column-settings--section {
  1096. color: $color3;
  1097. }
  1098. .modal-container__nav {
  1099. color: $color5;
  1100. }
  1101. .account--follows-info {
  1102. color: $color5;
  1103. }
  1104. .setting-toggle {
  1105. color: $color3;
  1106. }
  1107. .report__target {
  1108. border-bottom: 1px solid lighten($color1, 4%);
  1109. color: $color2;
  1110. padding-bottom: 10px;
  1111. strong {
  1112. display: block;
  1113. color: $color5;
  1114. font-weight: 500;
  1115. }
  1116. }
  1117. .report__textarea {
  1118. background: transparent;
  1119. box-sizing: border-box;
  1120. border: 0;
  1121. border-bottom: 2px solid $color3;
  1122. border-radius: 2px 2px 0 0;
  1123. padding: 7px 4px;
  1124. font-size: 14px;
  1125. color: $color5;
  1126. display: block;
  1127. width: 100%;
  1128. outline: 0;
  1129. font-family: inherit;
  1130. resize: vertical;
  1131. &:active, &:focus {
  1132. border-bottom-color: $color4;
  1133. background: rgba($color8, 0.1);
  1134. }
  1135. }
  1136. .empty-column-indicator {
  1137. color: lighten($color1, 20%);
  1138. text-align: center;
  1139. padding: 20px;
  1140. padding-top: 100px;
  1141. font-size: 15px;
  1142. font-weight: 400;
  1143. cursor: default;
  1144. a {
  1145. color: $color4;
  1146. text-decoration: none;
  1147. &:hover {
  1148. text-decoration: underline;
  1149. }
  1150. }
  1151. }
  1152. .status-list__unread-indicator, .notifications__unread-indicator {
  1153. position: absolute;
  1154. top: 35px;
  1155. left: 0;
  1156. right: 0;
  1157. margin: 0 auto;
  1158. width: 60%;
  1159. pointer-events: none;
  1160. height: 28px;
  1161. z-index: 1;
  1162. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1163. }
  1164. .emoji-dialog {
  1165. width: 280px;
  1166. height: 220px;
  1167. background: $color2;
  1168. box-sizing: border-box;
  1169. border-radius: 2px;
  1170. overflow: hidden;
  1171. position: relative;
  1172. box-shadow: 0 0 15px rgba($color8, 0.4);
  1173. .emojione {
  1174. margin: 0;
  1175. }
  1176. .emoji-dialog-header {
  1177. padding: 0 10px;
  1178. background-color: $color3;
  1179. ul {
  1180. padding: 0;
  1181. margin: 0;
  1182. list-style: none;
  1183. }
  1184. li {
  1185. display: inline-block;
  1186. box-sizing: border-box;
  1187. height: 42px;
  1188. padding: 9px 5px;
  1189. cursor: pointer;
  1190. img, svg {
  1191. width: 22px;
  1192. height: 22px;
  1193. filter: grayscale(100%);
  1194. }
  1195. &.active {
  1196. background: lighten($color3, 6%);
  1197. img, svg {
  1198. filter: grayscale(0);
  1199. }
  1200. }
  1201. }
  1202. }
  1203. .emoji-row {
  1204. box-sizing: border-box;
  1205. overflow-y: hidden;
  1206. padding-left: 10px;
  1207. .emoji {
  1208. display: inline-block;
  1209. padding: 5px;
  1210. border-radius: 4px;
  1211. }
  1212. }
  1213. .emoji-category-header {
  1214. box-sizing: border-box;
  1215. overflow-y: hidden;
  1216. padding: 8px 16px 0;
  1217. display: table;
  1218. > * {
  1219. display: table-cell;
  1220. vertical-align: middle;
  1221. }
  1222. }
  1223. .emoji-category-title {
  1224. font-size: 14px;
  1225. font-family: sans-serif;
  1226. font-weight: normal;
  1227. color: $color1;
  1228. cursor: default;
  1229. }
  1230. .emoji-category-heading-decoration {
  1231. text-align: right;
  1232. }
  1233. .modifiers {
  1234. list-style: none;
  1235. padding: 0;
  1236. margin: 0;
  1237. vertical-align: middle;
  1238. white-space: nowrap;
  1239. margin-top: 4px;
  1240. li {
  1241. display: inline-block;
  1242. padding: 0 2px;
  1243. &:last-of-type {
  1244. padding-right: 0;
  1245. }
  1246. }
  1247. .modifier {
  1248. display: inline-block;
  1249. border-radius: 10px;
  1250. width: 15px;
  1251. height: 15px;
  1252. position: relative;
  1253. cursor: pointer;
  1254. &.active:after {
  1255. content: "";
  1256. display: block;
  1257. position: absolute;
  1258. width: 7px;
  1259. height: 7px;
  1260. border-radius: 10px;
  1261. border: 2px solid $color1;
  1262. top: 2px;
  1263. left: 2px;
  1264. }
  1265. }
  1266. }
  1267. .emoji-search-wrapper {
  1268. padding: 6px 16px;
  1269. }
  1270. .emoji-search {
  1271. font-size: 12px;
  1272. padding: 6px 4px;
  1273. width: 100%;
  1274. border: 1px solid #ddd;
  1275. border-radius: 4px;
  1276. }
  1277. .emoji-categories-wrapper {
  1278. position: absolute;
  1279. top: 42px;
  1280. bottom: 0;
  1281. left: 0;
  1282. right: 0;
  1283. }
  1284. .emoji-search-wrapper + .emoji-categories-wrapper {
  1285. top: 83px;
  1286. }
  1287. .emoji-row .emoji:hover {
  1288. background: lighten($color2, 3%);
  1289. }
  1290. .emoji {
  1291. width: 22px;
  1292. height: 22px;
  1293. cursor: pointer;
  1294. &:focus {
  1295. outline: 0;
  1296. }
  1297. }
  1298. }
  1299. .autosuggest-status {
  1300. overflow: hidden;
  1301. white-space: nowrap;
  1302. text-overflow: ellipsis;
  1303. strong {
  1304. font-weight: 500;
  1305. }
  1306. }
  1307. .upload-area {
  1308. position: absolute;
  1309. top: 0;
  1310. left: 0;
  1311. width: 100%;
  1312. height: 100%;
  1313. visibility: hidden;
  1314. background: rgba($color8, 0.8);
  1315. display: flex;
  1316. align-items: center;
  1317. justify-content: center;
  1318. opacity: 0;
  1319. z-index: 2000;
  1320. * {
  1321. pointer-events: none;
  1322. }
  1323. }
  1324. .upload-area__drop {
  1325. width: 320px;
  1326. height: 160px;
  1327. display: flex;
  1328. box-sizing: border-box;
  1329. position: relative;
  1330. padding: 8px;
  1331. }
  1332. .upload-area__background {
  1333. position: absolute;
  1334. top: 0;
  1335. right: 0;
  1336. bottom: 0;
  1337. left: 0;
  1338. z-index: -1;
  1339. border-radius: 4px;
  1340. background: $color1;
  1341. box-shadow: 0 0 5px rgba($color8, 0.2);
  1342. }
  1343. .upload-area__content {
  1344. flex: 1;
  1345. display: flex;
  1346. align-items: center;
  1347. justify-content: center;
  1348. color: $color2;
  1349. font-size: 18px;
  1350. font-weight: 500;
  1351. border: 2px dashed lighten($color1, 26%);
  1352. border-radius: 4px;
  1353. }
  1354. .upload-progress {
  1355. padding: 10px;
  1356. color: lighten($color1, 26%);
  1357. overflow: hidden;
  1358. display: flex;
  1359. .fa {
  1360. font-size: 34px;
  1361. margin-right: 10px;
  1362. }
  1363. span {
  1364. font-size: 12px;
  1365. text-transform: uppercase;
  1366. font-weight: 500;
  1367. display: block;
  1368. }
  1369. }
  1370. .upload-progress__backdrop {
  1371. width: 100%;
  1372. height: 6px;
  1373. border-radius: 6px;
  1374. background: lighten($color1, 26%);
  1375. position: relative;
  1376. margin-top: 5px;
  1377. }
  1378. .upload-progress__tracker {
  1379. position: absolute;
  1380. left: 0;
  1381. top: 0;
  1382. height: 6px;
  1383. background: $color4;
  1384. border-radius: 6px;
  1385. }
  1386. .emoji-button {
  1387. outline: 0;
  1388. &:active, &:focus {
  1389. outline: 0 !important;
  1390. }
  1391. img {
  1392. filter: grayscale(100%);
  1393. opacity: 0.8;
  1394. display: block;
  1395. margin: 0;
  1396. width: 22px;
  1397. height: 22px;
  1398. margin-top: 2px;
  1399. }
  1400. &:hover, &:active, &:focus {
  1401. img {
  1402. opacity: 1;
  1403. filter: none;
  1404. }
  1405. }
  1406. }
  1407. .dropdown--active .emoji-button img {
  1408. opacity: 1;
  1409. filter: none;
  1410. }
  1411. .privacy-dropdown {
  1412. position: relative;
  1413. }
  1414. .privacy-dropdown__dropdown {
  1415. display: none;
  1416. position: absolute;
  1417. left: 0;
  1418. top: 27px;
  1419. width: 230px;
  1420. background: $color5;
  1421. border-radius: 0 4px 4px 4px;
  1422. z-index: 2;
  1423. overflow: hidden;
  1424. }
  1425. .privacy-dropdown__option {
  1426. color: $color1;
  1427. padding: 10px;
  1428. cursor: pointer;
  1429. display: flex;
  1430. &:hover, &.active {
  1431. background: $color4;
  1432. color: $color5;
  1433. .privacy-dropdown__option__content {
  1434. color: $color5;
  1435. strong {
  1436. color: $color5;
  1437. }
  1438. }
  1439. }
  1440. &.active:hover {
  1441. background: lighten($color4, 4%);
  1442. }
  1443. }
  1444. .privacy-dropdown__option__icon {
  1445. display: flex;
  1446. align-items: center;
  1447. justify-content: center;
  1448. margin-right: 10px;
  1449. }
  1450. .privacy-dropdown__option__content {
  1451. flex: 1 1 auto;
  1452. color: darken($color3, 24%);
  1453. strong {
  1454. font-weight: 500;
  1455. display: block;
  1456. color: $color1;
  1457. }
  1458. }
  1459. .privacy-dropdown.active {
  1460. .privacy-dropdown__value {
  1461. background: $color5;
  1462. border-radius: 4px 4px 0 0;
  1463. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1464. }
  1465. .privacy-dropdown__dropdown {
  1466. display: block;
  1467. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1468. }
  1469. }
  1470. .search {
  1471. position: relative;
  1472. }
  1473. .search__input {
  1474. padding-right: 30px;
  1475. color: $color2;
  1476. outline: 0;
  1477. box-sizing: border-box;
  1478. display: block;
  1479. width: 100%;
  1480. border: none;
  1481. padding: 10px;
  1482. padding-right: 30px;
  1483. font-family: inherit;
  1484. background: $color1;
  1485. color: $color3;
  1486. font-size: 14px;
  1487. margin: 0;
  1488. &::-moz-focus-inner {
  1489. border: 0;
  1490. }
  1491. &::-moz-focus-inner, &:focus, &:active {
  1492. outline: 0 !important;
  1493. }
  1494. &:focus {
  1495. background: lighten($color1, 4%);
  1496. }
  1497. }
  1498. .search__icon {
  1499. .fa {
  1500. position: absolute;
  1501. top: 10px;
  1502. right: 10px;
  1503. z-index: 2;
  1504. display: inline-block;
  1505. opacity: 0;
  1506. transition: all 100ms linear;
  1507. font-size: 18px;
  1508. width: 18px;
  1509. height: 18px;
  1510. color: $color2;
  1511. cursor: default;
  1512. pointer-events: none;
  1513. &.active {
  1514. pointer-events: auto;
  1515. opacity: 0.3;
  1516. }
  1517. }
  1518. .fa-search {
  1519. transform: translateZ(0) rotate(90deg);
  1520. &.active {
  1521. pointer-events: none;
  1522. transform: translateZ(0) rotate(0deg);
  1523. }
  1524. }
  1525. .fa-times-circle {
  1526. top: 11px;
  1527. transform: translateZ(0) rotate(0deg);
  1528. cursor: pointer;
  1529. &.active {
  1530. transform: translateZ(0) rotate(90deg);
  1531. }
  1532. &:hover {
  1533. color: $color5;
  1534. }
  1535. }
  1536. }
  1537. .search-results__header {
  1538. color: lighten($color1, 26%);
  1539. background: lighten($color1, 2%);
  1540. border-bottom: 1px solid darken($color1, 4%);
  1541. padding: 15px 10px;
  1542. font-size: 14px;
  1543. font-weight: 500;
  1544. }
  1545. .search-results__hashtag {
  1546. display: block;
  1547. padding: 10px;
  1548. color: $color2;
  1549. text-decoration: none;
  1550. &:hover, &:active, &:focus {
  1551. color: lighten($color2, 4%);
  1552. text-decoration: underline;
  1553. }
  1554. }
  1555. .modal-root__overlay {
  1556. position: absolute;
  1557. top: 0;
  1558. left: 0;
  1559. right: 0;
  1560. bottom: 0;
  1561. z-index: 9999;
  1562. opacity: 0;
  1563. background: rgba($color8, 0.7);
  1564. }
  1565. .modal-root__container {
  1566. position: absolute;
  1567. top: 0;
  1568. left: 0;
  1569. width: 100%;
  1570. height: 100%;
  1571. display: flex;
  1572. flex-direction: column;
  1573. align-items: center;
  1574. justify-content: center;
  1575. align-content: space-around;
  1576. z-index: 9999;
  1577. opacity: 0;
  1578. pointer-events: none;
  1579. user-select: none;
  1580. }
  1581. .modal-root__modal {
  1582. pointer-events: auto;
  1583. display: flex;
  1584. }
  1585. .media-modal {
  1586. max-width: 80vw;
  1587. max-height: 80vh;
  1588. position: relative;
  1589. img, video {
  1590. max-width: 80vw;
  1591. max-height: 80vh;
  1592. }
  1593. }