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.

1818 lines
29 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
  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. font-weight: 400;
  353. overflow: hidden;
  354. color: $color3;
  355. p {
  356. margin-bottom: 20px;
  357. &:last-child {
  358. margin-bottom: 0;
  359. }
  360. }
  361. a {
  362. color: inherit;
  363. text-decoration: underline;
  364. &:hover {
  365. text-decoration: none;
  366. }
  367. }
  368. }
  369. .account__header__display-name {
  370. .emojione {
  371. width: 25px;
  372. height: 25px;
  373. }
  374. }
  375. .account__action-bar {
  376. border-top: 1px solid lighten($color1, 8%);
  377. border-bottom: 1px solid lighten($color1, 8%);
  378. line-height: 36px;
  379. overflow: hidden;
  380. flex: 0 0 auto;
  381. display: flex;
  382. }
  383. .account__action-bar__tab {
  384. text-decoration: none;
  385. overflow: hidden;
  386. width: 80px;
  387. border-left: 1px solid lighten($color1, 8%);
  388. padding: 10px 5px;
  389. & > span {
  390. display: block;
  391. text-transform: uppercase;
  392. font-size: 11px;
  393. color: $color3;
  394. }
  395. strong {
  396. display: block;
  397. font-size: 15px;
  398. font-weight: 500;
  399. color: $color5;
  400. }
  401. abbr {
  402. color: lighten($color1, 26%);
  403. }
  404. }
  405. .status__display-name, .status__relative-time, .detailed-status__display-name, .detailed-status__datetime, .detailed-status__application, .account__display-name {
  406. text-decoration: none;
  407. }
  408. .status__display-name, .account__display-name {
  409. strong {
  410. color: $color5;
  411. }
  412. &.muted {
  413. .emojione {
  414. opacity: 0.5;
  415. }
  416. }
  417. }
  418. .status__display-name, .reply-indicator__display-name, .detailed-status__display-name, .account__display-name {
  419. &:hover {
  420. strong {
  421. text-decoration: underline;
  422. }
  423. }
  424. }
  425. .account__display-name {
  426. strong {
  427. display: block;
  428. }
  429. }
  430. .detailed-status__display-name {
  431. color: $color2;
  432. line-height: 24px;
  433. strong, span {
  434. display: block;
  435. }
  436. strong {
  437. font-size: 16px;
  438. color: $color5;
  439. }
  440. }
  441. .muted {
  442. .status__content p, .status__content a {
  443. color: lighten($color1, 26%);
  444. }
  445. .status__display-name strong {
  446. color: lighten($color1, 26%);
  447. }
  448. .status__avatar {
  449. opacity: 0.5;
  450. }
  451. a.status__content__spoiler-link {
  452. background: lighten($color1, 26%);
  453. color: lighten($color1, 4%);
  454. &:hover {
  455. background: lighten($color1, 29%);
  456. text-decoration: none;
  457. }
  458. }
  459. }
  460. .notification__message {
  461. margin-left: 68px;
  462. padding: 8px 0;
  463. padding-bottom: 0;
  464. cursor: default;
  465. color: $color3;
  466. font-size: 15px;
  467. position: relative;
  468. .fa {
  469. color: $color4;
  470. }
  471. }
  472. .notification__display-name {
  473. color: inherit;
  474. text-decoration: none;
  475. &:hover {
  476. color: $color5;
  477. text-decoration: underline;
  478. }
  479. }
  480. .status__relative-time, .detailed-status__datetime {
  481. &:hover {
  482. text-decoration: underline;
  483. }
  484. }
  485. .transparent-background, .imageloader {
  486. background: image-url('void.png');
  487. }
  488. .imageloader {
  489. display: block;
  490. }
  491. .navigation-bar {
  492. padding: 10px;
  493. display: flex;
  494. flex-shrink: 0;
  495. cursor: default;
  496. color: $color3;
  497. strong {
  498. color: $color5;
  499. }
  500. }
  501. .dropdown {
  502. display: inline-block;
  503. }
  504. .dropdown__content {
  505. display: none;
  506. position: absolute;
  507. }
  508. .dropdown__sep {
  509. border-bottom: 1px solid darken($color2, 8%);
  510. margin: 5px 7px 6px;
  511. padding-top: 1px;
  512. }
  513. .dropdown--active .dropdown__content {
  514. display: block;
  515. z-index: 9999;
  516. &:before {
  517. content: "";
  518. display: block;
  519. position: absolute;
  520. width: 0;
  521. height: 0;
  522. border-style: solid;
  523. border-width: 0 4.5px 7.8px 4.5px;
  524. border-color: transparent transparent $color2 transparent;
  525. top: -7px;
  526. left: 8px;
  527. }
  528. & > ul {
  529. list-style: none;
  530. background: $color2;
  531. padding: 4px 0;
  532. border-radius: 4px;
  533. box-shadow: 0 0 15px rgba($color8, 0.4);
  534. min-width: 140px;
  535. position: relative;
  536. left: -10px;
  537. }
  538. &.dropdown__left {
  539. & > ul {
  540. left: -98px;
  541. }
  542. & > .emoji-dialog {
  543. left: -249px;
  544. }
  545. }
  546. & > ul > li > a {
  547. font-size: 13px;
  548. line-height: 18px;
  549. display: block;
  550. padding: 4px 14px;
  551. box-sizing: border-box;
  552. width: 140px;
  553. text-decoration: none;
  554. background: $color2;
  555. color: $color1;
  556. overflow: hidden;
  557. text-overflow: ellipsis;
  558. white-space: nowrap;
  559. &:focus {
  560. outline: 0;
  561. }
  562. &:hover {
  563. background: $color4;
  564. color: $color2;
  565. }
  566. }
  567. }
  568. .static-content {
  569. padding: 10px;
  570. padding-top: 20px;
  571. color: lighten($color1, 26%);
  572. h1 {
  573. font-size: 16px;
  574. font-weight: 500;
  575. margin-bottom: 40px;
  576. text-align: center;
  577. }
  578. p {
  579. font-size: 13px;
  580. margin-bottom: 20px;
  581. }
  582. }
  583. .columns-area {
  584. flex-direction: row;
  585. justify-content: flex-start;
  586. }
  587. @media screen and (min-width: 360px) {
  588. .columns-area {
  589. margin: 10px;
  590. }
  591. }
  592. .column {
  593. width: 330px;
  594. position: relative;
  595. box-sizing: border-box;
  596. background: $color1;
  597. display: flex;
  598. flex-direction: column;
  599. }
  600. .ui {
  601. flex: 0 0 auto;
  602. display: flex;
  603. flex-direction: column;
  604. width: 100%;
  605. height: 100%;
  606. background: darken($color1, 7%);
  607. }
  608. .drawer {
  609. width: 300px;
  610. box-sizing: border-box;
  611. display: flex;
  612. flex-direction: column;
  613. overflow-y: hidden;
  614. }
  615. .drawer__tab {
  616. display: block;
  617. flex: 1 1 auto;
  618. padding: 15px;
  619. padding-bottom: 13px;
  620. color: $color3;
  621. text-decoration: none;
  622. text-align: center;
  623. font-size: 16px;
  624. border-bottom: 2px solid transparent;
  625. }
  626. @media screen and (min-width: 2560px) {
  627. .columns-area {
  628. justify-content: center;
  629. }
  630. .column, .drawer {
  631. width: 350px;
  632. border-radius: 4px;
  633. height: 90vh;
  634. margin-top: 5vh;
  635. }
  636. }
  637. .drawer__pager {
  638. box-sizing: border-box;
  639. padding: 0;
  640. flex-grow: 1;
  641. position: relative;
  642. overflow: hidden;
  643. display: flex;
  644. }
  645. .drawer__inner {
  646. position: absolute;
  647. top: 0;
  648. left: 0;
  649. background: lighten($color1, 13%);
  650. box-sizing: border-box;
  651. padding: 0;
  652. display: flex;
  653. flex-direction: column;
  654. overflow: hidden;
  655. overflow-y: auto;
  656. width: 100%;
  657. height: 100%;
  658. &.darker {
  659. background: $color1;
  660. }
  661. }
  662. .drawer__header {
  663. flex: 0 0 auto;
  664. font-size: 16px;
  665. background: lighten($color1, 8%);
  666. margin-bottom: 10px;
  667. display: flex;
  668. flex-direction: row;
  669. a {
  670. transition: all 100ms ease-in;
  671. &:hover {
  672. background: lighten($color1, 3%);
  673. transition: all 200ms ease-out;
  674. }
  675. }
  676. }
  677. .column, .drawer {
  678. margin-left: 5px;
  679. margin-right: 5px;
  680. flex: 0 0 auto;
  681. overflow: hidden;
  682. }
  683. .column:first-child, .drawer:first-child {
  684. margin-left: 0;
  685. }
  686. .column:last-child, .drawer:last-child {
  687. margin-right: 0;
  688. }
  689. @media screen and (max-width: 1024px) {
  690. .column, .drawer {
  691. width: 100%;
  692. margin: 0;
  693. flex: 1 1 100%;
  694. }
  695. .columns-area {
  696. flex-direction: column;
  697. }
  698. .search__input, .autosuggest-textarea__textarea {
  699. font-size: 16px;
  700. }
  701. }
  702. .tabs-bar {
  703. display: flex;
  704. background: lighten($color1, 8%);
  705. flex: 0 0 auto;
  706. overflow-y: auto;
  707. }
  708. .tabs-bar__link {
  709. display: block;
  710. flex: 1 1 auto;
  711. padding: 10px 5px;
  712. color: $color5;
  713. text-decoration: none;
  714. text-align: center;
  715. font-size:12px;
  716. font-weight: 500;
  717. border-bottom: 2px solid lighten($color1, 8%);
  718. &.active {
  719. border-bottom: 2px solid $color4;
  720. color: $color4;
  721. }
  722. }
  723. @media screen and (min-width: 360px) {
  724. .tabs-bar {
  725. margin: 10px;
  726. margin-bottom: 0;
  727. }
  728. }
  729. @media screen and (min-width: 1025px) {
  730. .tabs-bar {
  731. display: none;
  732. }
  733. }
  734. .react-autosuggest__container {
  735. position: relative;
  736. }
  737. .react-autosuggest__suggestions-container {
  738. position: absolute;
  739. top: 100%;
  740. width: 100%;
  741. z-index: 99;
  742. box-shadow: 0 0 15px rgba($color8, 0.4);
  743. }
  744. .react-autosuggest__section-title {
  745. background: $color3;
  746. padding: 4px 10px;
  747. font-weight: 500;
  748. cursor: default;
  749. color: $color1;
  750. text-transform: uppercase;
  751. font-size: 11px;
  752. }
  753. .react-autosuggest__suggestions-list {
  754. background: $color2;
  755. color: $color1;
  756. font-size: 14px;
  757. }
  758. .react-autosuggest__suggestion {
  759. padding: 10px;
  760. cursor: pointer;
  761. }
  762. .react-autosuggest__suggestion--focused {
  763. background: $color4;
  764. color: $color5;
  765. }
  766. .scrollable {
  767. overflow-y: scroll;
  768. overflow-x: hidden;
  769. flex: 1 1 auto;
  770. -webkit-overflow-scrolling: touch;
  771. &.optionally-scrollable {
  772. overflow-y: auto;
  773. }
  774. }
  775. .column-back-button {
  776. padding: 15px;
  777. font-size: 16px;
  778. background: lighten($color1, 4%);
  779. flex: 0 0 auto;
  780. cursor: pointer;
  781. color: $color4;
  782. z-index: 3;
  783. &:hover {
  784. text-decoration: underline;
  785. }
  786. }
  787. .react-toggle {
  788. display: inline-block;
  789. position: relative;
  790. cursor: pointer;
  791. background-color: transparent;
  792. border: 0;
  793. padding: 0;
  794. user-select: none;
  795. -webkit-tap-highlight-color: rgba($color8, 0);
  796. -webkit-tap-highlight-color: transparent;
  797. }
  798. .react-toggle-screenreader-only {
  799. border: 0;
  800. clip: rect(0 0 0 0);
  801. height: 1px;
  802. margin: -1px;
  803. overflow: hidden;
  804. padding: 0;
  805. position: absolute;
  806. width: 1px;
  807. }
  808. .react-toggle--disabled {
  809. cursor: not-allowed;
  810. opacity: 0.5;
  811. transition: opacity 0.25s;
  812. }
  813. .react-toggle-track {
  814. width: 50px;
  815. height: 24px;
  816. padding: 0;
  817. border-radius: 30px;
  818. background-color: $color1;
  819. transition: all 0.2s ease;
  820. }
  821. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  822. background-color: darken($color1, 10%);
  823. }
  824. .react-toggle--checked .react-toggle-track {
  825. background-color: $color4;
  826. }
  827. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  828. background-color: lighten($color4, 10%);
  829. }
  830. .react-toggle-track-check {
  831. position: absolute;
  832. width: 14px;
  833. height: 10px;
  834. top: 0px;
  835. bottom: 0px;
  836. margin-top: auto;
  837. margin-bottom: auto;
  838. line-height: 0;
  839. left: 8px;
  840. opacity: 0;
  841. transition: opacity 0.25s ease;
  842. }
  843. .react-toggle--checked .react-toggle-track-check {
  844. opacity: 1;
  845. transition: opacity 0.25s ease;
  846. }
  847. .react-toggle-track-x {
  848. position: absolute;
  849. width: 10px;
  850. height: 10px;
  851. top: 0px;
  852. bottom: 0px;
  853. margin-top: auto;
  854. margin-bottom: auto;
  855. line-height: 0;
  856. right: 10px;
  857. opacity: 1;
  858. transition: opacity 0.25s ease;
  859. }
  860. .react-toggle--checked .react-toggle-track-x {
  861. opacity: 0;
  862. }
  863. .react-toggle-thumb {
  864. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  865. position: absolute;
  866. top: 1px;
  867. left: 1px;
  868. width: 22px;
  869. height: 22px;
  870. border: 1px solid $color1;
  871. border-radius: 50%;
  872. background-color: darken($color5, 2%);
  873. box-sizing: border-box;
  874. transition: all 0.25s ease;
  875. }
  876. .react-toggle--checked .react-toggle-thumb {
  877. left: 27px;
  878. border-color: $color4;
  879. }
  880. .column-link {
  881. background: lighten($color1, 8%);
  882. color: $color5;
  883. &:hover {
  884. background: lighten($color1, 11%);
  885. }
  886. }
  887. .autosuggest-textarea, .spoiler-input {
  888. position: relative;
  889. }
  890. .autosuggest-textarea__textarea, .spoiler-input__input {
  891. display: block;
  892. box-sizing: border-box;
  893. width: 100%;
  894. resize: none;
  895. margin: 0;
  896. color: $color1;
  897. padding: 10px;
  898. font-family: inherit;
  899. font-size: 14px;
  900. resize: vertical;
  901. border: 0;
  902. outline: 0;
  903. &:focus {
  904. outline: 0;
  905. }
  906. }
  907. .spoiler-input__input {
  908. border-radius: 4px;
  909. }
  910. .autosuggest-textarea__textarea {
  911. height: 100px;
  912. background: $color5;
  913. border-radius: 4px 4px 0 0;
  914. padding-bottom: 0;
  915. padding-right: 10px + 22px;
  916. }
  917. .autosuggest-textarea__suggestions {
  918. position: absolute;
  919. top: 100%;
  920. width: 100%;
  921. z-index: 99;
  922. box-shadow: 0 0 15px rgba($color8, 0.4);
  923. background: $color2;
  924. color: $color1;
  925. font-size: 14px;
  926. }
  927. .autosuggest-textarea__suggestions__item {
  928. padding: 10px;
  929. cursor: pointer;
  930. &:hover {
  931. background: darken($color2, 10%);
  932. }
  933. &.selected {
  934. background: $color4;
  935. color: $color5;
  936. }
  937. }
  938. .getting-started {
  939. box-sizing: border-box;
  940. overflow-y: auto;
  941. padding-bottom: 235px;
  942. background: image-url('mastodon-getting-started.png') no-repeat bottom left;
  943. height: auto;
  944. min-height: 100%;
  945. p {
  946. color: $color2;
  947. }
  948. a {
  949. color: lighten($color1, 26%);
  950. }
  951. }
  952. .setting-text {
  953. color: $color3;
  954. background: transparent;
  955. border: none;
  956. border-bottom: 2px solid $color3;
  957. &:focus, &:active {
  958. color: $color5;
  959. border-bottom-color: $color4;
  960. }
  961. }
  962. @import 'boost';
  963. button i.fa-retweet {
  964. height: 19px;
  965. width: 22px;
  966. background-position: 0 0;
  967. transition: background-position 0.9s steps(10);
  968. transition-duration: 0s;
  969. &::before {
  970. display: none !important;
  971. }
  972. }
  973. button.active i.fa-retweet {
  974. transition-duration: 0.9s;
  975. background-position: 0 100%;
  976. }
  977. .status-card {
  978. display: flex;
  979. cursor: pointer;
  980. font-size: 14px;
  981. border: 1px solid lighten($color1, 8%);
  982. border-radius: 4px;
  983. color: lighten($color1, 26%);
  984. margin-top: 14px;
  985. text-decoration: none;
  986. overflow: hidden;
  987. &:hover {
  988. background: lighten($color1, 8%);
  989. }
  990. }
  991. .status-card__title {
  992. display: block;
  993. font-weight: 500;
  994. margin-bottom: 5px;
  995. color: $color3;
  996. overflow: hidden;
  997. text-overflow: ellipsis;
  998. white-space: nowrap;
  999. }
  1000. .status-card__description {
  1001. color: $color3;
  1002. }
  1003. .status-card__image {
  1004. flex: 0 0 100px;
  1005. background: lighten($color1, 8%);
  1006. }
  1007. .load-more {
  1008. display: block;
  1009. color: lighten($color1, 26%);
  1010. text-align: center;
  1011. padding: 15px;
  1012. text-decoration: none;
  1013. &:hover {
  1014. background: lighten($color1, 2%);
  1015. }
  1016. }
  1017. .missing-indicator {
  1018. text-align: center;
  1019. font-size: 16px;
  1020. font-weight: 500;
  1021. color: lighten($color1, 16%);
  1022. padding-top: 210px;
  1023. background: image-url('mastodon-not-found.png') no-repeat center -50px;
  1024. cursor: default;
  1025. }
  1026. .column-header {
  1027. padding: 15px;
  1028. font-size: 16px;
  1029. background: lighten($color1, 4%);
  1030. flex: 0 0 auto;
  1031. cursor: pointer;
  1032. position: relative;
  1033. z-index: 2;
  1034. &.active {
  1035. box-shadow: 0 1px 0 rgba($color4, 0.3);
  1036. }
  1037. &.active .fa {
  1038. color: $color4;
  1039. text-shadow: 0 0 10px rgba($color4, 0.4);
  1040. }
  1041. }
  1042. .loading-indicator {
  1043. color: $color2;
  1044. }
  1045. .collapsable-collapsed {
  1046. color: $color3;
  1047. background: lighten($color1, 4%);
  1048. }
  1049. .collapsable {
  1050. color: $color5;
  1051. background: lighten($color1, 8%);
  1052. &:hover {
  1053. color: $color5;
  1054. background: lighten($color1, 8%);
  1055. }
  1056. }
  1057. .media-spoiler {
  1058. background: $color8;
  1059. color: $color5;
  1060. }
  1061. .modal-container--preloader {
  1062. background: lighten($color1, 8%);
  1063. }
  1064. .account--panel {
  1065. background: lighten($color1, 4%);
  1066. border-top: 1px solid lighten($color1, 8%);
  1067. border-bottom: 1px solid lighten($color1, 8%);
  1068. }
  1069. .column-settings--outer {
  1070. background: lighten($color1, 8%);
  1071. }
  1072. .column-settings--section {
  1073. color: $color3;
  1074. }
  1075. .modal-container--nav {
  1076. color: $color5;
  1077. }
  1078. .account--follows-info {
  1079. color: $color5;
  1080. }
  1081. .setting-toggle {
  1082. color: $color3;
  1083. }
  1084. .report__target {
  1085. border-bottom: 1px solid lighten($color1, 4%);
  1086. color: $color2;
  1087. padding-bottom: 10px;
  1088. strong {
  1089. display: block;
  1090. color: $color5;
  1091. font-weight: 500;
  1092. }
  1093. }
  1094. .report__textarea {
  1095. background: transparent;
  1096. box-sizing: border-box;
  1097. border: 0;
  1098. border-bottom: 2px solid $color3;
  1099. border-radius: 2px 2px 0 0;
  1100. padding: 7px 4px;
  1101. font-size: 14px;
  1102. color: $color5;
  1103. display: block;
  1104. width: 100%;
  1105. outline: 0;
  1106. font-family: inherit;
  1107. resize: vertical;
  1108. &:active, &:focus {
  1109. border-bottom-color: $color4;
  1110. background: rgba($color8, 0.1);
  1111. }
  1112. }
  1113. .empty-column-indicator {
  1114. color: lighten($color1, 20%);
  1115. text-align: center;
  1116. padding: 20px;
  1117. padding-top: 100px;
  1118. font-size: 15px;
  1119. font-weight: 400;
  1120. cursor: default;
  1121. a {
  1122. color: $color4;
  1123. text-decoration: none;
  1124. &:hover {
  1125. text-decoration: underline;
  1126. }
  1127. }
  1128. }
  1129. .status-list__unread-indicator, .notifications__unread-indicator {
  1130. position: absolute;
  1131. top: 35px;
  1132. left: 0;
  1133. right: 0;
  1134. margin: 0 auto;
  1135. width: 60%;
  1136. pointer-events: none;
  1137. height: 28px;
  1138. z-index: 1;
  1139. background: radial-gradient(ellipse, rgba($color4, 0.23) 0%, rgba($color4, 0) 60%);
  1140. }
  1141. .emoji-dialog {
  1142. width: 280px;
  1143. height: 220px;
  1144. background: $color2;
  1145. box-sizing: border-box;
  1146. border-radius: 2px;
  1147. overflow: hidden;
  1148. position: relative;
  1149. box-shadow: 0 0 15px rgba($color8, 0.4);
  1150. .emojione {
  1151. margin: 0;
  1152. }
  1153. .emoji-dialog-header {
  1154. padding: 0 10px;
  1155. background-color: $color3;
  1156. ul {
  1157. padding: 0;
  1158. margin: 0;
  1159. list-style: none;
  1160. }
  1161. li {
  1162. display: inline-block;
  1163. box-sizing: border-box;
  1164. height: 42px;
  1165. padding: 9px 5px;
  1166. cursor: pointer;
  1167. img, svg {
  1168. width: 22px;
  1169. height: 22px;
  1170. filter: grayscale(100%);
  1171. }
  1172. &.active {
  1173. background: lighten($color3, 6%);
  1174. img, svg {
  1175. filter: grayscale(0);
  1176. }
  1177. }
  1178. }
  1179. }
  1180. .emoji-row {
  1181. box-sizing: border-box;
  1182. overflow-y: hidden;
  1183. padding-left: 10px;
  1184. .emoji {
  1185. display: inline-block;
  1186. padding: 5px;
  1187. border-radius: 4px;
  1188. }
  1189. }
  1190. .emoji-category-header {
  1191. box-sizing: border-box;
  1192. overflow-y: hidden;
  1193. padding: 8px 16px 0;
  1194. display: table;
  1195. > * {
  1196. display: table-cell;
  1197. vertical-align: middle;
  1198. }
  1199. }
  1200. .emoji-category-title {
  1201. font-size: 14px;
  1202. font-family: sans-serif;
  1203. font-weight: normal;
  1204. color: $color1;
  1205. cursor: default;
  1206. }
  1207. .emoji-category-heading-decoration {
  1208. text-align: right;
  1209. }
  1210. .modifiers {
  1211. list-style: none;
  1212. padding: 0;
  1213. margin: 0;
  1214. vertical-align: middle;
  1215. white-space: nowrap;
  1216. margin-top: 4px;
  1217. li {
  1218. display: inline-block;
  1219. padding: 0 2px;
  1220. &:last-of-type {
  1221. padding-right: 0;
  1222. }
  1223. }
  1224. .modifier {
  1225. display: inline-block;
  1226. border-radius: 10px;
  1227. width: 15px;
  1228. height: 15px;
  1229. position: relative;
  1230. cursor: pointer;
  1231. &.active:after {
  1232. content: "";
  1233. display: block;
  1234. position: absolute;
  1235. width: 7px;
  1236. height: 7px;
  1237. border-radius: 10px;
  1238. border: 2px solid $color1;
  1239. top: 2px;
  1240. left: 2px;
  1241. }
  1242. }
  1243. }
  1244. .emoji-search-wrapper {
  1245. padding: 6px 16px;
  1246. }
  1247. .emoji-search {
  1248. font-size: 12px;
  1249. padding: 6px 4px;
  1250. width: 100%;
  1251. border: 1px solid #ddd;
  1252. border-radius: 4px;
  1253. }
  1254. .emoji-categories-wrapper {
  1255. position: absolute;
  1256. top: 42px;
  1257. bottom: 0;
  1258. left: 0;
  1259. right: 0;
  1260. }
  1261. .emoji-search-wrapper + .emoji-categories-wrapper {
  1262. top: 83px;
  1263. }
  1264. .emoji-row .emoji:hover {
  1265. background: lighten($color2, 3%);
  1266. }
  1267. .emoji {
  1268. width: 22px;
  1269. height: 22px;
  1270. cursor: pointer;
  1271. &:focus {
  1272. outline: 0;
  1273. }
  1274. }
  1275. }
  1276. .autosuggest-status {
  1277. overflow: hidden;
  1278. white-space: nowrap;
  1279. text-overflow: ellipsis;
  1280. strong {
  1281. font-weight: 500;
  1282. }
  1283. }
  1284. .upload-area {
  1285. position: absolute;
  1286. top: 0;
  1287. left: 0;
  1288. width: 100%;
  1289. height: 100%;
  1290. visibility: hidden;
  1291. background: rgba($color8, 0.8);
  1292. display: flex;
  1293. align-items: center;
  1294. justify-content: center;
  1295. opacity: 0;
  1296. z-index: 2000;
  1297. * {
  1298. pointer-events: none;
  1299. }
  1300. }
  1301. .upload-area__drop {
  1302. width: 320px;
  1303. height: 160px;
  1304. display: flex;
  1305. box-sizing: border-box;
  1306. position: relative;
  1307. padding: 8px;
  1308. }
  1309. .upload-area__background {
  1310. position: absolute;
  1311. top: 0;
  1312. right: 0;
  1313. bottom: 0;
  1314. left: 0;
  1315. z-index: -1;
  1316. border-radius: 4px;
  1317. background: $color1;
  1318. box-shadow: 0 0 5px rgba($color8, 0.2);
  1319. }
  1320. .upload-area__content {
  1321. flex: 1;
  1322. display: flex;
  1323. align-items: center;
  1324. justify-content: center;
  1325. color: $color2;
  1326. font-size: 18px;
  1327. font-weight: 500;
  1328. border: 2px dashed lighten($color1, 26%);
  1329. border-radius: 4px;
  1330. }
  1331. .upload-progress {
  1332. padding: 10px;
  1333. color: lighten($color1, 26%);
  1334. overflow: hidden;
  1335. display: flex;
  1336. .fa {
  1337. font-size: 34px;
  1338. margin-right: 10px;
  1339. }
  1340. span {
  1341. font-size: 12px;
  1342. text-transform: uppercase;
  1343. font-weight: 500;
  1344. display: block;
  1345. }
  1346. }
  1347. .upload-progress__backdrop {
  1348. width: 100%;
  1349. height: 6px;
  1350. border-radius: 6px;
  1351. background: lighten($color1, 26%);
  1352. position: relative;
  1353. margin-top: 5px;
  1354. }
  1355. .upload-progress__tracker {
  1356. position: absolute;
  1357. left: 0;
  1358. top: 0;
  1359. height: 6px;
  1360. background: $color4;
  1361. border-radius: 6px;
  1362. }
  1363. .emoji-button {
  1364. outline: 0;
  1365. &:active, &:focus {
  1366. outline: 0 !important;
  1367. }
  1368. img {
  1369. filter: grayscale(100%);
  1370. opacity: 0.8;
  1371. display: block;
  1372. margin: 0;
  1373. width: 22px;
  1374. height: 22px;
  1375. margin-top: 2px;
  1376. }
  1377. &:hover, &:active, &:focus {
  1378. img {
  1379. opacity: 1;
  1380. filter: none;
  1381. }
  1382. }
  1383. }
  1384. .dropdown--active .emoji-button img {
  1385. opacity: 1;
  1386. filter: none;
  1387. }
  1388. .privacy-dropdown {
  1389. position: relative;
  1390. }
  1391. .privacy-dropdown__dropdown {
  1392. display: none;
  1393. position: absolute;
  1394. left: 0;
  1395. top: 27px;
  1396. width: 230px;
  1397. background: $color5;
  1398. border-radius: 0 4px 4px 4px;
  1399. z-index: 2;
  1400. overflow: hidden;
  1401. }
  1402. .privacy-dropdown__option {
  1403. color: $color1;
  1404. padding: 10px;
  1405. cursor: pointer;
  1406. display: flex;
  1407. &:hover, &.active {
  1408. background: $color4;
  1409. color: $color5;
  1410. .privacy-dropdown__option__content {
  1411. color: $color5;
  1412. strong {
  1413. color: $color5;
  1414. }
  1415. }
  1416. }
  1417. &.active:hover {
  1418. background: lighten($color4, 4%);
  1419. }
  1420. }
  1421. .privacy-dropdown__option__icon {
  1422. display: flex;
  1423. align-items: center;
  1424. justify-content: center;
  1425. margin-right: 10px;
  1426. }
  1427. .privacy-dropdown__option__content {
  1428. flex: 1 1 auto;
  1429. color: darken($color3, 24%);
  1430. strong {
  1431. font-weight: 500;
  1432. display: block;
  1433. color: $color1;
  1434. }
  1435. }
  1436. .privacy-dropdown.active {
  1437. .privacy-dropdown__value {
  1438. background: $color5;
  1439. border-radius: 4px 4px 0 0;
  1440. box-shadow: 0 -4px 4px rgba($color8, 0.1);
  1441. }
  1442. .privacy-dropdown__dropdown {
  1443. display: block;
  1444. box-shadow: 2px 4px 6px rgba($color8, 0.1);
  1445. }
  1446. }
  1447. .search {
  1448. position: relative;
  1449. margin-bottom: 10px;
  1450. }
  1451. .search__input {
  1452. padding-right: 30px;
  1453. color: $color2;
  1454. outline: 0;
  1455. box-sizing: border-box;
  1456. display: block;
  1457. width: 100%;
  1458. border: none;
  1459. padding: 10px;
  1460. padding-right: 30px;
  1461. font-family: inherit;
  1462. background: $color1;
  1463. color: $color3;
  1464. font-size: 14px;
  1465. margin: 0;
  1466. &::-moz-focus-inner {
  1467. border: 0;
  1468. }
  1469. &::-moz-focus-inner, &:focus, &:active {
  1470. outline: 0 !important;
  1471. }
  1472. &:focus {
  1473. background: lighten($color1, 4%);
  1474. }
  1475. }
  1476. .search__icon {
  1477. .fa {
  1478. position: absolute;
  1479. top: 10px;
  1480. right: 10px;
  1481. z-index: 2;
  1482. display: inline-block;
  1483. opacity: 0;
  1484. transition: all 100ms linear;
  1485. font-size: 18px;
  1486. width: 18px;
  1487. height: 18px;
  1488. color: $color2;
  1489. cursor: default;
  1490. pointer-events: none;
  1491. &.active {
  1492. pointer-events: auto;
  1493. opacity: 0.3;
  1494. }
  1495. }
  1496. .fa-search {
  1497. transform: translateZ(0) rotate(90deg);
  1498. &.active {
  1499. pointer-events: none;
  1500. transform: translateZ(0) rotate(0deg);
  1501. }
  1502. }
  1503. .fa-times-circle {
  1504. top: 11px;
  1505. transform: translateZ(0) rotate(0deg);
  1506. cursor: pointer;
  1507. &.active {
  1508. transform: translateZ(0) rotate(90deg);
  1509. }
  1510. }
  1511. }
  1512. .search-results__header {
  1513. color: lighten($color1, 26%);
  1514. background: lighten($color1, 2%);
  1515. border-bottom: 1px solid darken($color1, 4%);
  1516. padding: 15px 10px;
  1517. font-size: 14px;
  1518. font-weight: 500;
  1519. }
  1520. .search-results__hashtag {
  1521. display: block;
  1522. padding: 10px;
  1523. color: $color2;
  1524. text-decoration: none;
  1525. &:hover, &:active, &:focus {
  1526. color: lighten($color2, 4%);
  1527. text-decoration: underline;
  1528. }
  1529. }