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.

1927 lines
31 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: 10px;
  594. }
  595. }
  596. .column {
  597. width: 330px;
  598. position: relative;
  599. box-sizing: border-box;
  600. background: $color1;
  601. display: flex;
  602. flex-direction: column;
  603. }
  604. .ui {
  605. flex: 0 0 auto;
  606. display: flex;
  607. flex-direction: column;
  608. width: 100%;
  609. height: 100%;
  610. background: darken($color1, 7%);
  611. }
  612. .drawer {
  613. width: 300px;
  614. box-sizing: border-box;
  615. display: flex;
  616. flex-direction: column;
  617. overflow-y: hidden;
  618. }
  619. .drawer__tab {
  620. display: block;
  621. flex: 1 1 auto;
  622. padding: 15px;
  623. padding-bottom: 13px;
  624. color: $color3;
  625. text-decoration: none;
  626. text-align: center;
  627. font-size: 16px;
  628. border-bottom: 2px solid transparent;
  629. }
  630. @media screen and (min-width: 2560px) {
  631. .columns-area {
  632. justify-content: center;
  633. }
  634. .column, .drawer {
  635. width: 350px;
  636. border-radius: 4px;
  637. height: 90vh;
  638. margin-top: 5vh;
  639. }
  640. }
  641. .drawer__pager {
  642. box-sizing: border-box;
  643. padding: 0;
  644. flex-grow: 1;
  645. position: relative;
  646. overflow: hidden;
  647. display: flex;
  648. }
  649. .drawer__inner {
  650. position: absolute;
  651. top: 0;
  652. left: 0;
  653. background: lighten($color1, 13%);
  654. box-sizing: border-box;
  655. padding: 0;
  656. display: flex;
  657. flex-direction: column;
  658. overflow: hidden;
  659. overflow-y: auto;
  660. width: 100%;
  661. height: 100%;
  662. &.darker {
  663. background: $color1;
  664. }
  665. }
  666. .drawer__header {
  667. flex: 0 0 auto;
  668. font-size: 16px;
  669. background: lighten($color1, 8%);
  670. margin-bottom: 10px;
  671. display: flex;
  672. flex-direction: row;
  673. a {
  674. transition: all 100ms ease-in;
  675. &:hover {
  676. background: lighten($color1, 3%);
  677. transition: all 200ms ease-out;
  678. }
  679. }
  680. }
  681. .column, .drawer {
  682. margin-left: 5px;
  683. margin-right: 5px;
  684. flex: 0 0 auto;
  685. overflow: hidden;
  686. }
  687. .column:first-child, .drawer:first-child {
  688. margin-left: 0;
  689. }
  690. .column:last-child, .drawer:last-child {
  691. margin-right: 0;
  692. }
  693. @media screen and (max-width: 1024px) {
  694. .column, .drawer {
  695. width: 100%;
  696. margin: 0;
  697. flex: 1 1 100%;
  698. }
  699. .columns-area {
  700. flex-direction: column;
  701. }
  702. .search__input, .autosuggest-textarea__textarea {
  703. font-size: 16px;
  704. }
  705. }
  706. .tabs-bar {
  707. display: flex;
  708. background: lighten($color1, 8%);
  709. flex: 0 0 auto;
  710. overflow-y: auto;
  711. }
  712. .tabs-bar__link {
  713. display: block;
  714. flex: 1 1 auto;
  715. padding: 10px 5px;
  716. color: $color5;
  717. text-decoration: none;
  718. text-align: center;
  719. font-size:12px;
  720. font-weight: 500;
  721. border-bottom: 2px solid lighten($color1, 8%);
  722. transition: all 200ms linear;
  723. .fa {
  724. font-weight: 400;
  725. }
  726. &.active {
  727. border-bottom: 2px solid $color4;
  728. color: $color4;
  729. }
  730. &:hover, &:focus, &:active {
  731. background: lighten($color1, 14%);
  732. transition: all 100ms linear;
  733. }
  734. span {
  735. display: none;
  736. }
  737. }
  738. @media screen and (min-width: 360px) {
  739. .tabs-bar {
  740. margin: 10px;
  741. margin-bottom: 0;
  742. }
  743. .search {
  744. margin-bottom: 10px;
  745. }
  746. }
  747. @media screen and (min-width: 600px) {
  748. .tabs-bar__link {
  749. .fa {
  750. margin-right: 5px;
  751. }
  752. span {
  753. display: inline;
  754. }
  755. }
  756. }
  757. @media screen and (min-width: 1025px) {
  758. .tabs-bar {
  759. display: none;
  760. }
  761. }
  762. .react-autosuggest__container {
  763. position: relative;
  764. }
  765. .react-autosuggest__suggestions-container {
  766. position: absolute;
  767. top: 100%;
  768. width: 100%;
  769. z-index: 99;
  770. box-shadow: 0 0 15px rgba($color8, 0.4);
  771. }
  772. .react-autosuggest__section-title {
  773. background: $color3;
  774. padding: 4px 10px;
  775. font-weight: 500;
  776. cursor: default;
  777. color: $color1;
  778. text-transform: uppercase;
  779. font-size: 11px;
  780. }
  781. .react-autosuggest__suggestions-list {
  782. background: $color2;
  783. color: $color1;
  784. font-size: 14px;
  785. }
  786. .react-autosuggest__suggestion {
  787. padding: 10px;
  788. cursor: pointer;
  789. }
  790. .react-autosuggest__suggestion--focused {
  791. background: $color4;
  792. color: $color5;
  793. }
  794. .scrollable {
  795. overflow-y: scroll;
  796. overflow-x: hidden;
  797. flex: 1 1 auto;
  798. -webkit-overflow-scrolling: touch;
  799. &.optionally-scrollable {
  800. overflow-y: auto;
  801. }
  802. }
  803. .column-back-button {
  804. padding: 15px;
  805. font-size: 16px;
  806. background: lighten($color1, 4%);
  807. flex: 0 0 auto;
  808. cursor: pointer;
  809. color: $color4;
  810. z-index: 3;
  811. &:hover {
  812. text-decoration: underline;
  813. }
  814. }
  815. .react-toggle {
  816. display: inline-block;
  817. position: relative;
  818. cursor: pointer;
  819. background-color: transparent;
  820. border: 0;
  821. padding: 0;
  822. user-select: none;
  823. -webkit-tap-highlight-color: rgba($color8, 0);
  824. -webkit-tap-highlight-color: transparent;
  825. }
  826. .react-toggle-screenreader-only {
  827. border: 0;
  828. clip: rect(0 0 0 0);
  829. height: 1px;
  830. margin: -1px;
  831. overflow: hidden;
  832. padding: 0;
  833. position: absolute;
  834. width: 1px;
  835. }
  836. .react-toggle--disabled {
  837. cursor: not-allowed;
  838. opacity: 0.5;
  839. transition: opacity 0.25s;
  840. }
  841. .react-toggle-track {
  842. width: 50px;
  843. height: 24px;
  844. padding: 0;
  845. border-radius: 30px;
  846. background-color: $color1;
  847. transition: all 0.2s ease;
  848. }
  849. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  850. background-color: darken($color1, 10%);
  851. }
  852. .react-toggle--checked .react-toggle-track {
  853. background-color: $color4;
  854. }
  855. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  856. background-color: lighten($color4, 10%);
  857. }
  858. .react-toggle-track-check {
  859. position: absolute;
  860. width: 14px;
  861. height: 10px;
  862. top: 0px;
  863. bottom: 0px;
  864. margin-top: auto;
  865. margin-bottom: auto;
  866. line-height: 0;
  867. left: 8px;
  868. opacity: 0;
  869. transition: opacity 0.25s ease;
  870. }
  871. .react-toggle--checked .react-toggle-track-check {
  872. opacity: 1;
  873. transition: opacity 0.25s ease;
  874. }
  875. .react-toggle-track-x {
  876. position: absolute;
  877. width: 10px;
  878. height: 10px;
  879. top: 0px;
  880. bottom: 0px;
  881. margin-top: auto;
  882. margin-bottom: auto;
  883. line-height: 0;
  884. right: 10px;
  885. opacity: 1;
  886. transition: opacity 0.25s ease;
  887. }
  888. .react-toggle--checked .react-toggle-track-x {
  889. opacity: 0;
  890. }
  891. .react-toggle-thumb {
  892. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  893. position: absolute;
  894. top: 1px;
  895. left: 1px;
  896. width: 22px;
  897. height: 22px;
  898. border: 1px solid $color1;
  899. border-radius: 50%;
  900. background-color: darken($color5, 2%);
  901. box-sizing: border-box;
  902. transition: all 0.25s ease;
  903. }
  904. .react-toggle--checked .react-toggle-thumb {
  905. left: 27px;
  906. border-color: $color4;
  907. }
  908. .column-link {
  909. background: lighten($color1, 8%);
  910. color: $color5;
  911. &:hover {
  912. background: lighten($color1, 11%);
  913. }
  914. }
  915. .autosuggest-textarea, .spoiler-input {
  916. position: relative;
  917. }
  918. .autosuggest-textarea__textarea, .spoiler-input__input {
  919. display: block;
  920. box-sizing: border-box;
  921. width: 100%;
  922. resize: none;
  923. margin: 0;
  924. color: $color1;
  925. padding: 10px;
  926. font-family: inherit;
  927. font-size: 14px;
  928. resize: vertical;
  929. border: 0;
  930. outline: 0;
  931. &:focus {
  932. outline: 0;
  933. }
  934. }
  935. .spoiler-input__input {
  936. border-radius: 4px;
  937. }
  938. .autosuggest-textarea__textarea {
  939. height: 100px;
  940. background: $color5;
  941. border-radius: 4px 4px 0 0;
  942. padding-bottom: 0;
  943. padding-right: 10px + 22px;
  944. }
  945. .autosuggest-textarea__suggestions {
  946. position: absolute;
  947. top: 100%;
  948. width: 100%;
  949. z-index: 99;
  950. box-shadow: 0 0 15px rgba($color8, 0.4);
  951. background: $color2;
  952. color: $color1;
  953. font-size: 14px;
  954. }
  955. .autosuggest-textarea__suggestions__item {
  956. padding: 10px;
  957. cursor: pointer;
  958. &:hover {
  959. background: darken($color2, 10%);
  960. }
  961. &.selected {
  962. background: $color4;
  963. color: $color5;
  964. }
  965. }
  966. .getting-started {
  967. box-sizing: border-box;
  968. padding-bottom: 235px;
  969. background: image-url('mastodon-getting-started.png') no-repeat 0 100% local;
  970. flex: 1 0 auto;
  971. p {
  972. color: $color2;
  973. }
  974. a {
  975. color: lighten($color1, 26%);
  976. }
  977. }
  978. .setting-text {
  979. color: $color3;
  980. background: transparent;
  981. border: none;
  982. border-bottom: 2px solid $color3;
  983. &:focus, &:active {
  984. color: $color5;
  985. border-bottom-color: $color4;
  986. }
  987. }
  988. @import 'boost';
  989. button.icon-button i.fa-retweet {
  990. height: 19px;
  991. width: 22px;
  992. background-position: 0 0;
  993. transition: background-position 0.9s steps(10);
  994. transition-duration: 0s;
  995. &::before {
  996. display: none !important;
  997. }
  998. }
  999. button.icon-button.active i.fa-retweet {
  1000. transition-duration: 0.9s;
  1001. background-position: 0 100%;
  1002. }
  1003. .status-card {
  1004. display: flex;
  1005. cursor: pointer;
  1006. font-size: 14px;
  1007. border: 1px solid lighten($color1, 8%);
  1008. border-radius: 4px;
  1009. color: lighten($color1, 26%);
  1010. margin-top: 14px;
  1011. text-decoration: none;
  1012. overflow: hidden;
  1013. &:hover {
  1014. background: lighten($color1, 8%);
  1015. }
  1016. }
  1017. .status-card__title {
  1018. display: block;
  1019. font-weight: 500;
  1020. margin-bottom: 5px;
  1021. color: $color3;
  1022. overflow: hidden;
  1023. text-overflow: ellipsis;
  1024. white-space: nowrap;
  1025. }
  1026. .status-card__description {
  1027. color: $color3;
  1028. }
  1029. .status-card__image {
  1030. flex: 0 0 100px;
  1031. background: lighten($color1, 8%);
  1032. }
  1033. .load-more {
  1034. display: block;
  1035. color: lighten($color1, 26%);
  1036. text-align: center;
  1037. padding: 15px;
  1038. text-decoration: none;
  1039. &:hover {
  1040. background: lighten($color1, 2%);
  1041. }
  1042. }
  1043. .missing-indicator {
  1044. text-align: center;
  1045. font-size: 16px;
  1046. font-weight: 500;
  1047. color: lighten($color1, 16%);
  1048. padding-top: 210px;
  1049. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1050. cursor: default;
  1051. }
  1052. .column-header {
  1053. padding: 15px;
  1054. font-size: 16px;
  1055. background: lighten($color1, 4%);
  1056. flex: 0 0 auto;
  1057. cursor: pointer;
  1058. position: relative;
  1059. z-index: 2;
  1060. &.active {
  1061. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1062. }
  1063. &.active .fa {
  1064. color: $color4;
  1065. text-shadow: 0 0 10px rgba($color4, 0.4);
  1066. }
  1067. }
  1068. .loading-indicator {
  1069. color: $color2;
  1070. }
  1071. .collapsable-collapsed {
  1072. color: $color3;
  1073. background: lighten($color1, 4%);
  1074. }
  1075. .collapsable {
  1076. color: $color5;
  1077. background: lighten($color1, 8%);
  1078. &:hover {
  1079. color: $color5;
  1080. background: lighten($color1, 8%);
  1081. }
  1082. }
  1083. .media-spoiler {
  1084. background: $color8;
  1085. color: $color5;
  1086. }
  1087. .modal-container--preloader {
  1088. background: lighten($color1, 8%);
  1089. }
  1090. .account--panel {
  1091. background: lighten($color1, 4%);
  1092. border-top: 1px solid lighten($color1, 8%);
  1093. border-bottom: 1px solid lighten($color1, 8%);
  1094. }
  1095. .column-settings--outer {
  1096. background: lighten($color1, 8%);
  1097. }
  1098. .column-settings--section {
  1099. color: $color3;
  1100. }
  1101. .modal-container__nav {
  1102. color: $color5;
  1103. }
  1104. .account--follows-info {
  1105. color: $color5;
  1106. }
  1107. .setting-toggle {
  1108. color: $color3;
  1109. }
  1110. .report__target {
  1111. border-bottom: 1px solid lighten($color1, 4%);
  1112. color: $color2;
  1113. padding-bottom: 10px;
  1114. strong {
  1115. display: block;
  1116. color: $color5;
  1117. font-weight: 500;
  1118. }
  1119. }
  1120. .report__textarea {
  1121. background: transparent;
  1122. box-sizing: border-box;
  1123. border: 0;
  1124. border-bottom: 2px solid $color3;
  1125. border-radius: 2px 2px 0 0;
  1126. padding: 7px 4px;
  1127. font-size: 14px;
  1128. color: $color5;
  1129. display: block;
  1130. width: 100%;
  1131. outline: 0;
  1132. font-family: inherit;
  1133. resize: vertical;
  1134. &:active, &:focus {
  1135. border-bottom-color: $color4;
  1136. background: rgba($color8, 0.1);
  1137. }
  1138. }
  1139. .empty-column-indicator {
  1140. color: lighten($color1, 20%);
  1141. text-align: center;
  1142. padding: 20px;
  1143. padding-top: 100px;
  1144. font-size: 15px;
  1145. font-weight: 400;
  1146. cursor: default;
  1147. a {
  1148. color: $color4;
  1149. text-decoration: none;
  1150. &:hover {
  1151. text-decoration: underline;
  1152. }
  1153. }
  1154. }
  1155. .status-list__unread-indicator, .notifications__unread-indicator {
  1156. position: absolute;
  1157. top: 35px;
  1158. left: 0;
  1159. right: 0;
  1160. margin: 0 auto;
  1161. width: 60%;
  1162. pointer-events: none;
  1163. height: 28px;
  1164. z-index: 1;
  1165. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1166. }
  1167. .emoji-dialog {
  1168. width: 280px;
  1169. height: 220px;
  1170. background: $color2;
  1171. box-sizing: border-box;
  1172. border-radius: 2px;
  1173. overflow: hidden;
  1174. position: relative;
  1175. box-shadow: 0 0 15px rgba($color8, 0.4);
  1176. .emojione {
  1177. margin: 0;
  1178. }
  1179. .emoji-dialog-header {
  1180. padding: 0 10px;
  1181. background-color: $color3;
  1182. ul {
  1183. padding: 0;
  1184. margin: 0;
  1185. list-style: none;
  1186. }
  1187. li {
  1188. display: inline-block;
  1189. box-sizing: border-box;
  1190. height: 42px;
  1191. padding: 9px 5px;
  1192. cursor: pointer;
  1193. img, svg {
  1194. width: 22px;
  1195. height: 22px;
  1196. filter: grayscale(100%);
  1197. }
  1198. &.active {
  1199. background: lighten($color3, 6%);
  1200. img, svg {
  1201. filter: grayscale(0);
  1202. }
  1203. }
  1204. }
  1205. }
  1206. .emoji-row {
  1207. box-sizing: border-box;
  1208. overflow-y: hidden;
  1209. padding-left: 10px;
  1210. .emoji {
  1211. display: inline-block;
  1212. padding: 5px;
  1213. border-radius: 4px;
  1214. }
  1215. }
  1216. .emoji-category-header {
  1217. box-sizing: border-box;
  1218. overflow-y: hidden;
  1219. padding: 8px 16px 0;
  1220. display: table;
  1221. > * {
  1222. display: table-cell;
  1223. vertical-align: middle;
  1224. }
  1225. }
  1226. .emoji-category-title {
  1227. font-size: 14px;
  1228. font-family: sans-serif;
  1229. font-weight: normal;
  1230. color: $color1;
  1231. cursor: default;
  1232. }
  1233. .emoji-category-heading-decoration {
  1234. text-align: right;
  1235. }
  1236. .modifiers {
  1237. list-style: none;
  1238. padding: 0;
  1239. margin: 0;
  1240. vertical-align: middle;
  1241. white-space: nowrap;
  1242. margin-top: 4px;
  1243. li {
  1244. display: inline-block;
  1245. padding: 0 2px;
  1246. &:last-of-type {
  1247. padding-right: 0;
  1248. }
  1249. }
  1250. .modifier {
  1251. display: inline-block;
  1252. border-radius: 10px;
  1253. width: 15px;
  1254. height: 15px;
  1255. position: relative;
  1256. cursor: pointer;
  1257. &.active:after {
  1258. content: "";
  1259. display: block;
  1260. position: absolute;
  1261. width: 7px;
  1262. height: 7px;
  1263. border-radius: 10px;
  1264. border: 2px solid $color1;
  1265. top: 2px;
  1266. left: 2px;
  1267. }
  1268. }
  1269. }
  1270. .emoji-search-wrapper {
  1271. padding: 6px 16px;
  1272. }
  1273. .emoji-search {
  1274. font-size: 12px;
  1275. padding: 6px 4px;
  1276. width: 100%;
  1277. border: 1px solid #ddd;
  1278. border-radius: 4px;
  1279. }
  1280. .emoji-categories-wrapper {
  1281. position: absolute;
  1282. top: 42px;
  1283. bottom: 0;
  1284. left: 0;
  1285. right: 0;
  1286. }
  1287. .emoji-search-wrapper + .emoji-categories-wrapper {
  1288. top: 83px;
  1289. }
  1290. .emoji-row .emoji:hover {
  1291. background: lighten($color2, 3%);
  1292. }
  1293. .emoji {
  1294. width: 22px;
  1295. height: 22px;
  1296. cursor: pointer;
  1297. &:focus {
  1298. outline: 0;
  1299. }
  1300. }
  1301. }
  1302. .autosuggest-status {
  1303. overflow: hidden;
  1304. white-space: nowrap;
  1305. text-overflow: ellipsis;
  1306. strong {
  1307. font-weight: 500;
  1308. }
  1309. }
  1310. .upload-area {
  1311. position: absolute;
  1312. top: 0;
  1313. left: 0;
  1314. width: 100%;
  1315. height: 100%;
  1316. visibility: hidden;
  1317. background: rgba($color8, 0.8);
  1318. display: flex;
  1319. align-items: center;
  1320. justify-content: center;
  1321. opacity: 0;
  1322. z-index: 2000;
  1323. * {
  1324. pointer-events: none;
  1325. }
  1326. }
  1327. .upload-area__drop {
  1328. width: 320px;
  1329. height: 160px;
  1330. display: flex;
  1331. box-sizing: border-box;
  1332. position: relative;
  1333. padding: 8px;
  1334. }
  1335. .upload-area__background {
  1336. position: absolute;
  1337. top: 0;
  1338. right: 0;
  1339. bottom: 0;
  1340. left: 0;
  1341. z-index: -1;
  1342. border-radius: 4px;
  1343. background: $color1;
  1344. box-shadow: 0 0 5px rgba($color8, 0.2);
  1345. }
  1346. .upload-area__content {
  1347. flex: 1;
  1348. display: flex;
  1349. align-items: center;
  1350. justify-content: center;
  1351. color: $color2;
  1352. font-size: 18px;
  1353. font-weight: 500;
  1354. border: 2px dashed lighten($color1, 26%);
  1355. border-radius: 4px;
  1356. }
  1357. .upload-progress {
  1358. padding: 10px;
  1359. color: lighten($color1, 26%);
  1360. overflow: hidden;
  1361. display: flex;
  1362. .fa {
  1363. font-size: 34px;
  1364. margin-right: 10px;
  1365. }
  1366. span {
  1367. font-size: 12px;
  1368. text-transform: uppercase;
  1369. font-weight: 500;
  1370. display: block;
  1371. }
  1372. }
  1373. .upload-progress__backdrop {
  1374. width: 100%;
  1375. height: 6px;
  1376. border-radius: 6px;
  1377. background: lighten($color1, 26%);
  1378. position: relative;
  1379. margin-top: 5px;
  1380. }
  1381. .upload-progress__tracker {
  1382. position: absolute;
  1383. left: 0;
  1384. top: 0;
  1385. height: 6px;
  1386. background: $color4;
  1387. border-radius: 6px;
  1388. }
  1389. .emoji-button {
  1390. outline: 0;
  1391. &:active, &:focus {
  1392. outline: 0 !important;
  1393. }
  1394. img {
  1395. filter: grayscale(100%);
  1396. opacity: 0.8;
  1397. display: block;
  1398. margin: 0;
  1399. width: 22px;
  1400. height: 22px;
  1401. margin-top: 2px;
  1402. }
  1403. &:hover, &:active, &:focus {
  1404. img {
  1405. opacity: 1;
  1406. filter: none;
  1407. }
  1408. }
  1409. }
  1410. .dropdown--active .emoji-button img {
  1411. opacity: 1;
  1412. filter: none;
  1413. }
  1414. .privacy-dropdown {
  1415. position: relative;
  1416. }
  1417. .privacy-dropdown__dropdown {
  1418. display: none;
  1419. position: absolute;
  1420. left: 0;
  1421. top: 27px;
  1422. width: 230px;
  1423. background: $color5;
  1424. border-radius: 0 4px 4px 4px;
  1425. z-index: 2;
  1426. overflow: hidden;
  1427. }
  1428. .privacy-dropdown__option {
  1429. color: $color1;
  1430. padding: 10px;
  1431. cursor: pointer;
  1432. display: flex;
  1433. &:hover, &.active {
  1434. background: $color4;
  1435. color: $color5;
  1436. .privacy-dropdown__option__content {
  1437. color: $color5;
  1438. strong {
  1439. color: $color5;
  1440. }
  1441. }
  1442. }
  1443. &.active:hover {
  1444. background: lighten($color4, 4%);
  1445. }
  1446. }
  1447. .privacy-dropdown__option__icon {
  1448. display: flex;
  1449. align-items: center;
  1450. justify-content: center;
  1451. margin-right: 10px;
  1452. }
  1453. .privacy-dropdown__option__content {
  1454. flex: 1 1 auto;
  1455. color: darken($color3, 24%);
  1456. strong {
  1457. font-weight: 500;
  1458. display: block;
  1459. color: $color1;
  1460. }
  1461. }
  1462. .privacy-dropdown.active {
  1463. .privacy-dropdown__value {
  1464. background: $color5;
  1465. border-radius: 4px 4px 0 0;
  1466. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1467. }
  1468. .privacy-dropdown__dropdown {
  1469. display: block;
  1470. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1471. }
  1472. }
  1473. .search {
  1474. position: relative;
  1475. }
  1476. .search__input {
  1477. padding-right: 30px;
  1478. color: $color2;
  1479. outline: 0;
  1480. box-sizing: border-box;
  1481. display: block;
  1482. width: 100%;
  1483. border: none;
  1484. padding: 10px;
  1485. padding-right: 30px;
  1486. font-family: inherit;
  1487. background: $color1;
  1488. color: $color3;
  1489. font-size: 14px;
  1490. margin: 0;
  1491. &::-moz-focus-inner {
  1492. border: 0;
  1493. }
  1494. &::-moz-focus-inner, &:focus, &:active {
  1495. outline: 0 !important;
  1496. }
  1497. &:focus {
  1498. background: lighten($color1, 4%);
  1499. }
  1500. }
  1501. .search__icon {
  1502. .fa {
  1503. position: absolute;
  1504. top: 10px;
  1505. right: 10px;
  1506. z-index: 2;
  1507. display: inline-block;
  1508. opacity: 0;
  1509. transition: all 100ms linear;
  1510. font-size: 18px;
  1511. width: 18px;
  1512. height: 18px;
  1513. color: $color2;
  1514. cursor: default;
  1515. pointer-events: none;
  1516. &.active {
  1517. pointer-events: auto;
  1518. opacity: 0.3;
  1519. }
  1520. }
  1521. .fa-search {
  1522. transform: translateZ(0) rotate(90deg);
  1523. &.active {
  1524. pointer-events: none;
  1525. transform: translateZ(0) rotate(0deg);
  1526. }
  1527. }
  1528. .fa-times-circle {
  1529. top: 11px;
  1530. transform: translateZ(0) rotate(0deg);
  1531. cursor: pointer;
  1532. &.active {
  1533. transform: translateZ(0) rotate(90deg);
  1534. }
  1535. &:hover {
  1536. color: $color5;
  1537. }
  1538. }
  1539. }
  1540. .search-results__header {
  1541. color: lighten($color1, 26%);
  1542. background: lighten($color1, 2%);
  1543. border-bottom: 1px solid darken($color1, 4%);
  1544. padding: 15px 10px;
  1545. font-size: 14px;
  1546. font-weight: 500;
  1547. }
  1548. .search-results__hashtag {
  1549. display: block;
  1550. padding: 10px;
  1551. color: $color2;
  1552. text-decoration: none;
  1553. &:hover, &:active, &:focus {
  1554. color: lighten($color2, 4%);
  1555. text-decoration: underline;
  1556. }
  1557. }
  1558. .modal-root__overlay {
  1559. position: absolute;
  1560. top: 0;
  1561. left: 0;
  1562. right: 0;
  1563. bottom: 0;
  1564. z-index: 9999;
  1565. opacity: 0;
  1566. background: rgba($color8, 0.7);
  1567. }
  1568. .modal-root__container {
  1569. position: absolute;
  1570. top: 0;
  1571. left: 0;
  1572. width: 100%;
  1573. height: 100%;
  1574. display: flex;
  1575. flex-direction: column;
  1576. align-items: center;
  1577. justify-content: center;
  1578. align-content: space-around;
  1579. z-index: 9999;
  1580. opacity: 0;
  1581. pointer-events: none;
  1582. user-select: none;
  1583. }
  1584. .modal-root__modal {
  1585. pointer-events: auto;
  1586. display: flex;
  1587. }
  1588. .media-modal {
  1589. max-width: 80vw;
  1590. max-height: 80vh;
  1591. position: relative;
  1592. img, video {
  1593. max-width: 80vw;
  1594. max-height: 80vh;
  1595. }
  1596. }
  1597. .boost-modal {
  1598. display: block;
  1599. color: white;
  1600. background: lighten($color1, 13%);
  1601. max-width: 90vw;
  1602. width: 480px;
  1603. padding-top: 25px;
  1604. border-radius: 3px;
  1605. position: relative;
  1606. & .detailed-status {
  1607. pointer-events: none;
  1608. max-height: 60vh;
  1609. overflow-y: auto;
  1610. }
  1611. & > .icon-button {
  1612. color: lighten($color1, 40%);
  1613. &:hover, &:active {
  1614. color: lighten($color1, 60%);
  1615. }
  1616. }
  1617. }