The code powering m.abunchtell.com https://m.abunchtell.com
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

4035 linhas
66 KiB

  1. @import 'variables';
  2. .app-body {
  3. -webkit-overflow-scrolling: touch;
  4. -ms-overflow-style: -ms-autohiding-scrollbar;
  5. }
  6. .button {
  7. background-color: darken($ui-highlight-color, 3%);
  8. border: 10px none;
  9. border-radius: 4px;
  10. box-sizing: border-box;
  11. color: $primary-text-color;
  12. cursor: pointer;
  13. display: inline-block;
  14. font-family: inherit;
  15. font-size: 14px;
  16. font-weight: 500;
  17. height: 36px;
  18. letter-spacing: 0;
  19. line-height: 36px;
  20. overflow: hidden;
  21. padding: 0 16px;
  22. position: relative;
  23. text-align: center;
  24. text-transform: uppercase;
  25. text-decoration: none;
  26. text-overflow: ellipsis;
  27. transition: all 100ms ease-in;
  28. white-space: nowrap;
  29. width: auto;
  30. &:active,
  31. &:focus,
  32. &:hover {
  33. background-color: lighten($ui-highlight-color, 7%);
  34. transition: all 200ms ease-out;
  35. }
  36. &:disabled {
  37. background-color: $ui-primary-color;
  38. cursor: default;
  39. }
  40. &.button-alternative {
  41. font-size: 16px;
  42. line-height: 36px;
  43. height: auto;
  44. color: $ui-base-color;
  45. background: $ui-primary-color;
  46. text-transform: none;
  47. padding: 4px 16px;
  48. &:active,
  49. &:focus,
  50. &:hover {
  51. background-color: lighten($ui-primary-color, 4%);
  52. }
  53. }
  54. &.button-secondary {
  55. font-size: 16px;
  56. line-height: 36px;
  57. height: auto;
  58. color: $ui-primary-color;
  59. text-transform: none;
  60. background: transparent;
  61. padding: 3px 15px;
  62. border: 1px solid $ui-primary-color;
  63. &:active,
  64. &:focus,
  65. &:hover {
  66. border-color: lighten($ui-primary-color, 4%);
  67. color: lighten($ui-primary-color, 4%);
  68. }
  69. }
  70. &.button--block {
  71. display: block;
  72. width: 100%;
  73. }
  74. }
  75. .column__wrapper {
  76. display: flex;
  77. flex: 1 1 auto;
  78. position: relative;
  79. }
  80. .column-icon {
  81. background: lighten($ui-base-color, 4%);
  82. color: $ui-primary-color;
  83. cursor: pointer;
  84. font-size: 16px;
  85. padding: 15px;
  86. position: absolute;
  87. right: 0;
  88. top: -48px;
  89. z-index: 3;
  90. &:hover {
  91. color: lighten($ui-primary-color, 7%);
  92. }
  93. }
  94. .icon-button {
  95. display: inline-block;
  96. padding: 0;
  97. color: $ui-base-lighter-color;
  98. border: none;
  99. background: transparent;
  100. cursor: pointer;
  101. transition: color 100ms ease-in;
  102. &:hover,
  103. &:active,
  104. &:focus {
  105. color: lighten($ui-base-color, 33%);
  106. transition: color 200ms ease-out;
  107. }
  108. &.disabled {
  109. color: lighten($ui-base-color, 13%);
  110. cursor: default;
  111. }
  112. &.active {
  113. color: $ui-highlight-color;
  114. }
  115. &::-moz-focus-inner {
  116. border: 0;
  117. }
  118. &::-moz-focus-inner,
  119. &:focus,
  120. &:active {
  121. outline: 0 !important;
  122. }
  123. &.inverted {
  124. color: lighten($ui-base-color, 33%);
  125. &:hover,
  126. &:active,
  127. &:focus {
  128. color: $ui-base-lighter-color;
  129. }
  130. &.disabled {
  131. color: $ui-primary-color;
  132. }
  133. &.active {
  134. color: $ui-highlight-color;
  135. &.disabled {
  136. color: lighten($ui-highlight-color, 13%);
  137. }
  138. }
  139. }
  140. &.overlayed {
  141. box-sizing: content-box;
  142. background: rgba($base-overlay-background, 0.6);
  143. color: rgba($primary-text-color, 0.7);
  144. border-radius: 4px;
  145. padding: 2px;
  146. &:hover {
  147. background: rgba($base-overlay-background, 0.9);
  148. }
  149. }
  150. }
  151. .text-icon-button {
  152. color: lighten($ui-base-color, 33%);
  153. border: none;
  154. background: transparent;
  155. cursor: pointer;
  156. font-weight: 600;
  157. font-size: 11px;
  158. padding: 0 3px;
  159. line-height: 27px;
  160. outline: 0;
  161. transition: color 100ms ease-in;
  162. &:hover,
  163. &:active,
  164. &:focus {
  165. color: $ui-base-lighter-color;
  166. transition: color 200ms ease-out;
  167. }
  168. &.disabled {
  169. color: lighten($ui-base-color, 13%);
  170. cursor: default;
  171. }
  172. &.active {
  173. color: $ui-highlight-color;
  174. }
  175. &::-moz-focus-inner {
  176. border: 0;
  177. }
  178. &::-moz-focus-inner,
  179. &:focus,
  180. &:active {
  181. outline: 0 !important;
  182. }
  183. }
  184. .dropdown--active .icon-button {
  185. color: $ui-highlight-color;
  186. }
  187. .dropdown--active::after {
  188. @media screen and (min-width: 1025px) {
  189. content: "";
  190. display: block;
  191. position: absolute;
  192. width: 0;
  193. height: 0;
  194. border-style: solid;
  195. border-width: 0 4.5px 7.8px;
  196. border-color: transparent transparent $ui-secondary-color;
  197. bottom: 8px;
  198. right: 104px;
  199. }
  200. }
  201. .invisible {
  202. font-size: 0;
  203. line-height: 0;
  204. display: inline-block;
  205. width: 0;
  206. height: 0;
  207. position: absolute;
  208. }
  209. .ellipsis {
  210. &::after {
  211. content: "…";
  212. }
  213. }
  214. .lightbox .icon-button {
  215. color: $ui-base-color;
  216. }
  217. .compose-form {
  218. padding: 10px;
  219. }
  220. .compose-form__warning {
  221. color: darken($ui-secondary-color, 65%);
  222. margin-bottom: 15px;
  223. background: $ui-primary-color;
  224. box-shadow: 0 2px 6px rgba($base-shadow-color, 0.3);
  225. padding: 8px 10px;
  226. border-radius: 4px;
  227. font-size: 13px;
  228. font-weight: 400;
  229. strong {
  230. color: darken($ui-secondary-color, 65%);
  231. font-weight: 500;
  232. }
  233. a {
  234. color: darken($ui-primary-color, 33%);
  235. font-weight: 500;
  236. text-decoration: underline;
  237. &:hover,
  238. &:active,
  239. &:focus {
  240. text-decoration: none;
  241. }
  242. }
  243. }
  244. .compose-form__modifiers {
  245. color: $ui-base-color;
  246. font-family: inherit;
  247. font-size: 14px;
  248. background: $simple-background-color;
  249. border-radius: 0 0 4px;
  250. }
  251. .compose-form__buttons-wrapper {
  252. display: flex;
  253. justify-content: space-between;
  254. }
  255. .compose-form__buttons {
  256. padding: 10px;
  257. background: darken($simple-background-color, 8%);
  258. box-shadow: inset 0 5px 5px rgba($base-shadow-color, 0.05);
  259. border-radius: 0 0 4px 4px;
  260. display: flex;
  261. .icon-button {
  262. box-sizing: content-box;
  263. padding: 0 3px;
  264. }
  265. }
  266. .compose-form__upload-button-icon {
  267. line-height: 27px;
  268. }
  269. .compose-form__sensitive-button {
  270. display: none;
  271. &.compose-form__sensitive-button--visible {
  272. display: block;
  273. }
  274. .compose-form__sensitive-button__icon {
  275. line-height: 27px;
  276. }
  277. }
  278. .compose-form__upload-wrapper {
  279. overflow: hidden;
  280. }
  281. .compose-form__uploads-wrapper {
  282. display: flex;
  283. padding: 5px;
  284. }
  285. .compose-form__upload {
  286. flex: 1 1 0;
  287. margin: 5px;
  288. }
  289. .compose-form__upload-thumbnail {
  290. border-radius: 4px;
  291. background-position: center;
  292. background-size: cover;
  293. background-repeat: no-repeat;
  294. height: 100px;
  295. width: 100%;
  296. }
  297. .compose-form__upload-cancel {
  298. background-size: cover;
  299. border-radius: 4px;
  300. height: 100px;
  301. width: 100px;
  302. }
  303. .compose-form__label {
  304. display: block;
  305. line-height: 24px;
  306. vertical-align: middle;
  307. &.with-border {
  308. border-top: 1px solid $ui-base-color;
  309. padding-top: 10px;
  310. }
  311. .compose-form__label__text {
  312. display: inline-block;
  313. vertical-align: middle;
  314. margin-bottom: 14px;
  315. margin-left: 8px;
  316. color: $ui-primary-color;
  317. }
  318. }
  319. .compose-form__textarea,
  320. .follow-form__input {
  321. background: $simple-background-color;
  322. &:disabled {
  323. background: $ui-secondary-color;
  324. }
  325. }
  326. .compose-form__autosuggest-wrapper {
  327. position: relative;
  328. .emoji-picker__dropdown {
  329. position: absolute;
  330. right: 5px;
  331. top: 5px;
  332. &.dropdown--active::after {
  333. border-color: transparent transparent $base-border-color;
  334. bottom: -1px;
  335. right: 8px;
  336. }
  337. ::-webkit-scrollbar-track:hover,
  338. ::-webkit-scrollbar-track:active {
  339. background-color: rgba($base-overlay-background, 0.3);
  340. }
  341. }
  342. }
  343. .compose-form__publish {
  344. display: flex;
  345. min-width: 0;
  346. }
  347. .compose-form__publish-button-wrapper {
  348. overflow: hidden;
  349. padding-top: 10px;
  350. }
  351. .emojione {
  352. display: inline-block;
  353. font-size: inherit;
  354. vertical-align: middle;
  355. margin: -.2ex .15em .2ex;
  356. width: 16px;
  357. height: 16px;
  358. img {
  359. width: auto;
  360. }
  361. }
  362. .reply-indicator {
  363. border-radius: 4px 4px 0 0;
  364. position: relative;
  365. bottom: -2px;
  366. background: $ui-primary-color;
  367. padding: 10px;
  368. }
  369. .reply-indicator__header {
  370. margin-bottom: 5px;
  371. overflow: hidden;
  372. }
  373. .reply-indicator__cancel {
  374. float: right;
  375. line-height: 24px;
  376. }
  377. .reply-indicator__display-name {
  378. color: $ui-base-color;
  379. display: block;
  380. max-width: 100%;
  381. line-height: 24px;
  382. overflow: hidden;
  383. padding-right: 25px;
  384. text-decoration: none;
  385. }
  386. .reply-indicator__display-avatar {
  387. float: left;
  388. margin-right: 5px;
  389. }
  390. .status__content--with-action {
  391. cursor: pointer;
  392. }
  393. .status__content,
  394. .reply-indicator__content {
  395. font-size: 15px;
  396. line-height: 20px;
  397. word-wrap: break-word;
  398. font-weight: 400;
  399. overflow: hidden;
  400. white-space: pre-wrap;
  401. .emojione {
  402. width: 18px;
  403. height: 18px;
  404. }
  405. p {
  406. margin-bottom: 20px;
  407. &:last-child {
  408. margin-bottom: 0;
  409. }
  410. }
  411. a {
  412. color: $ui-secondary-color;
  413. text-decoration: none;
  414. &:hover {
  415. text-decoration: underline;
  416. .fa {
  417. color: lighten($ui-base-color, 40%);
  418. }
  419. }
  420. &.mention {
  421. &:hover {
  422. text-decoration: none;
  423. span {
  424. text-decoration: underline;
  425. }
  426. }
  427. }
  428. .fa {
  429. color: lighten($ui-base-color, 30%);
  430. }
  431. }
  432. .status__content__spoiler-link {
  433. background: lighten($ui-base-color, 30%);
  434. &:hover {
  435. background: lighten($ui-base-color, 33%);
  436. text-decoration: none;
  437. }
  438. }
  439. .status__content__text {
  440. display: none;
  441. &.status__content__text--visible {
  442. display: block;
  443. }
  444. }
  445. }
  446. .status__content__spoiler-link {
  447. display: inline-block;
  448. border-radius: 2px;
  449. background: transparent;
  450. border: 0;
  451. color: lighten($ui-base-color, 8%);
  452. font-weight: 500;
  453. font-size: 11px;
  454. padding: 0 6px;
  455. text-transform: uppercase;
  456. line-height: inherit;
  457. cursor: pointer;
  458. }
  459. .status__prepend-icon-wrapper {
  460. left: -26px;
  461. position: absolute;
  462. }
  463. .status {
  464. padding: 8px 10px;
  465. padding-left: 68px;
  466. position: relative;
  467. min-height: 48px;
  468. border-bottom: 1px solid lighten($ui-base-color, 8%);
  469. cursor: default;
  470. @keyframes fade {
  471. 0% { opacity: 0; }
  472. 100% { opacity: 1; }
  473. }
  474. opacity: 1;
  475. animation: fade 150ms linear;
  476. &.status-direct {
  477. background: lighten($ui-base-color, 8%);
  478. .icon-button.disabled {
  479. color: lighten($ui-base-color, 16%);
  480. }
  481. }
  482. &.light {
  483. .status__relative-time {
  484. color: $ui-primary-color;
  485. }
  486. .status__display-name {
  487. color: $ui-base-color;
  488. }
  489. .display-name {
  490. strong {
  491. color: $ui-base-color;
  492. }
  493. span {
  494. color: $ui-primary-color;
  495. }
  496. }
  497. .status__content {
  498. color: $ui-base-color;
  499. a {
  500. color: $ui-highlight-color;
  501. }
  502. a.status__content__spoiler-link {
  503. color: $primary-text-color;
  504. background: $ui-primary-color;
  505. &:hover {
  506. background: lighten($ui-primary-color, 8%);
  507. }
  508. }
  509. }
  510. }
  511. }
  512. .notification-favourite {
  513. .status.status-direct {
  514. background: transparent;
  515. .icon-button.disabled {
  516. color: lighten($ui-base-color, 13%);
  517. }
  518. }
  519. }
  520. .status__relative-time {
  521. color: $ui-base-lighter-color;
  522. float: right;
  523. font-size: 14px;
  524. }
  525. .status__display-name {
  526. color: $ui-base-lighter-color;
  527. }
  528. .status__info .status__display-name {
  529. display: block;
  530. max-width: 100%;
  531. padding-right: 25px;
  532. }
  533. .status__info {
  534. font-size: 15px;
  535. }
  536. .status-check-box {
  537. border-bottom: 1px solid $ui-secondary-color;
  538. display: flex;
  539. .status__content {
  540. flex: 1 1 auto;
  541. padding: 10px;
  542. overflow: hidden;
  543. text-overflow: ellipsis;
  544. white-space: nowrap;
  545. }
  546. }
  547. .status-check-box-toggle {
  548. align-items: center;
  549. display: flex;
  550. flex: 0 0 auto;
  551. justify-content: center;
  552. padding: 10px;
  553. }
  554. .status__prepend {
  555. margin-left: 68px;
  556. color: $ui-base-lighter-color;
  557. padding: 8px 0;
  558. padding-bottom: 2px;
  559. font-size: 14px;
  560. position: relative;
  561. .status__display-name strong {
  562. color: $ui-base-lighter-color;
  563. }
  564. }
  565. .status__action-bar {
  566. align-items: center;
  567. display: flex;
  568. margin-top: 10px;
  569. }
  570. .status__action-bar-button {
  571. float: left;
  572. margin-right: 18px;
  573. }
  574. .status__action-bar-dropdown {
  575. float: left;
  576. height: 18px;
  577. width: 18px;
  578. }
  579. .detailed-status__action-bar-dropdown {
  580. flex: 1 1 auto;
  581. display: flex;
  582. align-items: center;
  583. justify-content: center;
  584. position: relative;
  585. .dropdown {
  586. display: block;
  587. width: 18px;
  588. height: 18px;
  589. }
  590. .dropdown--active {
  591. .dropdown__content.dropdown__left {
  592. left: 20px;
  593. right: initial;
  594. }
  595. &::after {
  596. bottom: initial;
  597. margin-left: 7px;
  598. margin-top: -7px;
  599. right: initial;
  600. }
  601. }
  602. }
  603. .detailed-status {
  604. background: lighten($ui-base-color, 4%);
  605. padding: 14px 10px;
  606. .status__content {
  607. font-size: 19px;
  608. line-height: 24px;
  609. .emojione {
  610. width: 22px;
  611. height: 22px;
  612. }
  613. }
  614. }
  615. .detailed-status__meta {
  616. margin-top: 15px;
  617. color: $ui-base-lighter-color;
  618. font-size: 14px;
  619. line-height: 18px;
  620. }
  621. .detailed-status__action-bar {
  622. background: lighten($ui-base-color, 4%);
  623. border-top: 1px solid lighten($ui-base-color, 8%);
  624. border-bottom: 1px solid lighten($ui-base-color, 8%);
  625. display: flex;
  626. flex-direction: row;
  627. padding: 10px 0;
  628. }
  629. .detailed-status__link {
  630. color: inherit;
  631. text-decoration: none;
  632. }
  633. .detailed-status__favorites,
  634. .detailed-status__reblogs {
  635. display: inline-block;
  636. font-weight: 500;
  637. font-size: 12px;
  638. margin-left: 6px;
  639. }
  640. .reply-indicator__content {
  641. color: $ui-base-color;
  642. font-size: 14px;
  643. a {
  644. color: lighten($ui-base-color, 20%);
  645. }
  646. }
  647. .account {
  648. padding: 10px;
  649. border-bottom: 1px solid lighten($ui-base-color, 8%);
  650. .account__display-name {
  651. flex: 1 1 auto;
  652. display: block;
  653. color: $ui-primary-color;
  654. overflow: hidden;
  655. text-decoration: none;
  656. font-size: 14px;
  657. }
  658. }
  659. .account__wrapper {
  660. display: flex;
  661. }
  662. .account__avatar-wrapper {
  663. float: left;
  664. margin-left: 12px;
  665. margin-right: 12px;
  666. }
  667. .account__avatar {
  668. @include avatar-radius();
  669. position: relative;
  670. cursor: pointer;
  671. &-inline {
  672. display: inline-block;
  673. vertical-align: middle;
  674. margin-right: 5px;
  675. }
  676. }
  677. .account__avatar-overlay {
  678. @include avatar-size(48px);
  679. &-base {
  680. @include avatar-radius();
  681. @include avatar-size(36px);
  682. }
  683. &-overlay {
  684. @include avatar-radius();
  685. @include avatar-size(24px);
  686. position: absolute;
  687. bottom: 0;
  688. right: 0;
  689. z-index: 1;
  690. }
  691. }
  692. .account__relationship {
  693. height: 18px;
  694. padding: 10px;
  695. }
  696. .account__header {
  697. flex: 0 0 auto;
  698. background: lighten($ui-base-color, 4%);
  699. text-align: center;
  700. background-size: cover;
  701. background-position: center;
  702. position: relative;
  703. & > div {
  704. background: rgba(lighten($ui-base-color, 4%), 0.9);
  705. padding: 20px 10px;
  706. }
  707. .account__header__content {
  708. color: $ui-secondary-color;
  709. }
  710. .account__header__display-name {
  711. color: $primary-text-color;
  712. display: inline-block;
  713. font-size: 20px;
  714. line-height: 27px;
  715. font-weight: 500;
  716. }
  717. .account__header__username {
  718. color: $ui-highlight-color;
  719. font-size: 14px;
  720. font-weight: 400;
  721. display: block;
  722. margin-bottom: 10px;
  723. }
  724. }
  725. .account__disclaimer {
  726. padding: 10px;
  727. border-top: 1px solid lighten($ui-base-color, 8%);
  728. color: $ui-base-lighter-color;
  729. strong {
  730. font-weight: 500;
  731. }
  732. a {
  733. font-weight: 500;
  734. color: inherit;
  735. text-decoration: underline;
  736. &:hover,
  737. &:focus,
  738. &:active {
  739. text-decoration: none;
  740. }
  741. }
  742. }
  743. .account__header__content {
  744. color: $ui-primary-color;
  745. font-size: 14px;
  746. font-weight: 400;
  747. overflow: hidden;
  748. word-break: normal;
  749. word-wrap: break-word;
  750. p {
  751. margin-bottom: 20px;
  752. &:last-child {
  753. margin-bottom: 0;
  754. }
  755. }
  756. a {
  757. color: inherit;
  758. text-decoration: underline;
  759. &:hover {
  760. text-decoration: none;
  761. }
  762. }
  763. }
  764. .account__header__display-name {
  765. .emojione {
  766. width: 25px;
  767. height: 25px;
  768. }
  769. }
  770. .account__action-bar {
  771. border-top: 1px solid lighten($ui-base-color, 8%);
  772. border-bottom: 1px solid lighten($ui-base-color, 8%);
  773. line-height: 36px;
  774. overflow: hidden;
  775. flex: 0 0 auto;
  776. display: flex;
  777. }
  778. .account__action-bar-dropdown {
  779. flex: 1 1 auto;
  780. padding: 10px;
  781. .dropdown--active {
  782. .dropdown__content.dropdown__right {
  783. left: 6px;
  784. right: initial;
  785. }
  786. &::after {
  787. bottom: initial;
  788. margin-left: 11px;
  789. margin-top: -7px;
  790. right: initial;
  791. }
  792. }
  793. }
  794. .account__action-bar-links {
  795. display: flex;
  796. flex: 1 1 auto;
  797. line-height: 18px;
  798. }
  799. .account__action-bar__tab {
  800. text-decoration: none;
  801. overflow: hidden;
  802. width: 80px;
  803. border-left: 1px solid lighten($ui-base-color, 8%);
  804. padding: 10px 5px;
  805. & > span {
  806. display: block;
  807. text-transform: uppercase;
  808. font-size: 11px;
  809. color: $ui-primary-color;
  810. }
  811. strong {
  812. display: block;
  813. font-size: 15px;
  814. font-weight: 500;
  815. color: $primary-text-color;
  816. }
  817. abbr {
  818. color: $ui-base-lighter-color;
  819. }
  820. }
  821. .account__header__avatar {
  822. background-size: 90px 90px;
  823. display: block;
  824. height: 90px;
  825. margin: 0 auto 10px;
  826. overflow: hidden;
  827. width: 90px;
  828. }
  829. .account-authorize {
  830. padding: 14px 10px;
  831. .detailed-status__display-name {
  832. display: block;
  833. margin-bottom: 15px;
  834. overflow: hidden;
  835. }
  836. }
  837. .account-authorize__avatar {
  838. float: left;
  839. margin-right: 10px;
  840. }
  841. .status__display-name,
  842. .status__relative-time,
  843. .detailed-status__display-name,
  844. .detailed-status__datetime,
  845. .detailed-status__application,
  846. .account__display-name {
  847. text-decoration: none;
  848. }
  849. .status__display-name,
  850. .account__display-name {
  851. strong {
  852. color: $primary-text-color;
  853. }
  854. &.muted {
  855. .emojione {
  856. opacity: 0.5;
  857. }
  858. }
  859. }
  860. .status__display-name,
  861. .reply-indicator__display-name,
  862. .detailed-status__display-name,
  863. .account__display-name {
  864. &:hover strong {
  865. text-decoration: underline;
  866. }
  867. }
  868. .account__display-name strong {
  869. display: block;
  870. }
  871. .detailed-status__application,
  872. .detailed-status__datetime {
  873. color: inherit;
  874. }
  875. .detailed-status__display-name {
  876. color: $ui-secondary-color;
  877. display: block;
  878. line-height: 24px;
  879. margin-bottom: 15px;
  880. overflow: hidden;
  881. strong,
  882. span {
  883. display: block;
  884. text-overflow: ellipsis;
  885. overflow: hidden;
  886. }
  887. strong {
  888. font-size: 16px;
  889. color: $primary-text-color;
  890. }
  891. }
  892. .detailed-status__display-avatar {
  893. float: left;
  894. margin-right: 10px;
  895. }
  896. .status__avatar {
  897. height: 48px;
  898. left: 10px;
  899. position: absolute;
  900. top: 10px;
  901. width: 48px;
  902. }
  903. .muted {
  904. .status__content p,
  905. .status__content a {
  906. color: $ui-base-lighter-color;
  907. }
  908. .status__display-name strong {
  909. color: $ui-base-lighter-color;
  910. }
  911. .status__avatar {
  912. opacity: 0.5;
  913. }
  914. a.status__content__spoiler-link {
  915. background: $ui-base-lighter-color;
  916. color: lighten($ui-base-color, 4%);
  917. &:hover {
  918. background: lighten($ui-base-color, 29%);
  919. text-decoration: none;
  920. }
  921. }
  922. }
  923. .notification__message {
  924. margin-left: 68px;
  925. padding: 8px 0;
  926. padding-bottom: 0;
  927. cursor: default;
  928. color: $ui-primary-color;
  929. font-size: 15px;
  930. position: relative;
  931. .fa {
  932. color: $ui-highlight-color;
  933. }
  934. }
  935. .notification__favourite-icon-wrapper {
  936. left: -26px;
  937. position: absolute;
  938. .star-icon {
  939. color: $gold-star;
  940. }
  941. }
  942. .star-icon.active {
  943. color: $gold-star;
  944. }
  945. .notification__display-name {
  946. color: inherit;
  947. font-weight: 500;
  948. text-decoration: none;
  949. &:hover {
  950. color: $primary-text-color;
  951. text-decoration: underline;
  952. }
  953. }
  954. .display-name {
  955. display: block;
  956. max-width: 100%;
  957. overflow: hidden;
  958. text-overflow: ellipsis;
  959. white-space: nowrap;
  960. }
  961. .display-name__html {
  962. font-weight: 500;
  963. }
  964. .display-name__account {
  965. font-size: 14px;
  966. }
  967. .status__relative-time,
  968. .detailed-status__datetime {
  969. &:hover {
  970. text-decoration: underline;
  971. }
  972. }
  973. .image-loader {
  974. position: relative;
  975. &.image-loader--loading {
  976. .image-loader__preview-canvas {
  977. filter: blur(2px);
  978. }
  979. }
  980. .image-loader__img {
  981. position: absolute;
  982. top: 0;
  983. left: 0;
  984. right: 0;
  985. max-width: 100%;
  986. max-height: 100%;
  987. background-image: none;
  988. }
  989. &.image-loader--amorphous {
  990. position: static;
  991. .image-loader__preview-canvas {
  992. display: none;
  993. }
  994. .image-loader__img {
  995. position: static;
  996. width: auto;
  997. height: auto;
  998. }
  999. }
  1000. }
  1001. .navigation-bar {
  1002. padding: 10px;
  1003. display: flex;
  1004. flex-shrink: 0;
  1005. cursor: default;
  1006. color: $ui-primary-color;
  1007. strong {
  1008. color: $primary-text-color;
  1009. }
  1010. .permalink {
  1011. text-decoration: none;
  1012. }
  1013. .icon-button {
  1014. pointer-events: none;
  1015. opacity: 0;
  1016. }
  1017. }
  1018. .navigation-bar__profile {
  1019. flex: 1 1 auto;
  1020. margin-left: 8px;
  1021. }
  1022. .navigation-bar__profile-account {
  1023. display: block;
  1024. font-weight: 500;
  1025. }
  1026. .navigation-bar__profile-edit {
  1027. color: inherit;
  1028. text-decoration: none;
  1029. }
  1030. .dropdown {
  1031. display: inline-block;
  1032. }
  1033. .dropdown__content {
  1034. display: none;
  1035. position: absolute;
  1036. }
  1037. .dropdown__sep {
  1038. border-bottom: 1px solid darken($ui-secondary-color, 8%);
  1039. margin: 5px 7px 6px;
  1040. padding-top: 1px;
  1041. }
  1042. .dropdown--active .dropdown__content {
  1043. display: block;
  1044. line-height: 18px;
  1045. max-width: 311px;
  1046. right: 0;
  1047. text-align: left;
  1048. z-index: 9999;
  1049. & > ul {
  1050. list-style: none;
  1051. background: $ui-secondary-color;
  1052. padding: 4px 0;
  1053. border-radius: 4px;
  1054. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1055. min-width: 140px;
  1056. position: relative;
  1057. }
  1058. &.dropdown__right {
  1059. right: 0;
  1060. }
  1061. &.dropdown__left {
  1062. & > ul {
  1063. left: -98px;
  1064. }
  1065. }
  1066. & > ul > li > a {
  1067. font-size: 13px;
  1068. line-height: 18px;
  1069. display: block;
  1070. padding: 4px 14px;
  1071. box-sizing: border-box;
  1072. text-decoration: none;
  1073. background: $ui-secondary-color;
  1074. color: $ui-base-color;
  1075. overflow: hidden;
  1076. text-overflow: ellipsis;
  1077. white-space: nowrap;
  1078. &:focus {
  1079. outline: 0;
  1080. }
  1081. &:hover {
  1082. background: $ui-highlight-color;
  1083. color: $ui-secondary-color;
  1084. }
  1085. }
  1086. }
  1087. .dropdown__icon {
  1088. vertical-align: middle;
  1089. }
  1090. .static-content {
  1091. padding: 10px;
  1092. padding-top: 20px;
  1093. color: $ui-base-lighter-color;
  1094. h1 {
  1095. font-size: 16px;
  1096. font-weight: 500;
  1097. margin-bottom: 40px;
  1098. text-align: center;
  1099. }
  1100. p {
  1101. font-size: 13px;
  1102. margin-bottom: 20px;
  1103. }
  1104. }
  1105. .columns-area {
  1106. display: flex;
  1107. flex: 1 1 auto;
  1108. flex-direction: row;
  1109. justify-content: flex-start;
  1110. overflow-x: auto;
  1111. position: relative;
  1112. }
  1113. @media screen and (min-width: 360px) {
  1114. .columns-area {
  1115. padding: 10px;
  1116. }
  1117. .react-swipeable-view-container .columns-area {
  1118. height: calc(100% - 20px) !important;
  1119. }
  1120. }
  1121. .react-swipeable-view-container {
  1122. &,
  1123. .columns-area,
  1124. .drawer,
  1125. .column {
  1126. height: 100%;
  1127. }
  1128. }
  1129. .react-swipeable-view-container > * {
  1130. display: flex;
  1131. align-items: center;
  1132. justify-content: center;
  1133. height: 100%;
  1134. }
  1135. .column {
  1136. width: 330px;
  1137. position: relative;
  1138. box-sizing: border-box;
  1139. display: flex;
  1140. flex-direction: column;
  1141. > .scrollable {
  1142. background: $ui-base-color;
  1143. }
  1144. }
  1145. .ui {
  1146. flex: 0 0 auto;
  1147. display: flex;
  1148. flex-direction: column;
  1149. width: 100%;
  1150. height: 100%;
  1151. background: darken($ui-base-color, 7%);
  1152. }
  1153. .drawer {
  1154. width: 300px;
  1155. box-sizing: border-box;
  1156. display: flex;
  1157. flex-direction: column;
  1158. overflow-y: hidden;
  1159. }
  1160. .drawer__tab {
  1161. display: block;
  1162. flex: 1 1 auto;
  1163. padding: 15px 5px 13px;
  1164. color: $ui-primary-color;
  1165. text-decoration: none;
  1166. text-align: center;
  1167. font-size: 16px;
  1168. border-bottom: 2px solid transparent;
  1169. }
  1170. .column,
  1171. .drawer {
  1172. flex: 1 1 100%;
  1173. overflow: hidden;
  1174. @supports(display: grid) { // hack to fix Chrome <57
  1175. contain: strict;
  1176. }
  1177. }
  1178. @media screen and (min-width: 360px) {
  1179. .tabs-bar {
  1180. margin: 10px;
  1181. margin-bottom: 0;
  1182. }
  1183. .search {
  1184. margin-bottom: 10px;
  1185. }
  1186. }
  1187. @media screen and (max-width: 1024px) {
  1188. .column,
  1189. .drawer {
  1190. width: 100%;
  1191. padding: 0;
  1192. }
  1193. .columns-area {
  1194. flex-direction: column;
  1195. }
  1196. .search__input,
  1197. .autosuggest-textarea__textarea {
  1198. font-size: 16px;
  1199. }
  1200. }
  1201. @media screen and (min-width: 1025px) {
  1202. .columns-area {
  1203. padding: 0;
  1204. }
  1205. .column,
  1206. .drawer {
  1207. flex: 0 0 auto;
  1208. padding: 10px;
  1209. padding-left: 5px;
  1210. padding-right: 5px;
  1211. &:first-child {
  1212. padding-left: 10px;
  1213. }
  1214. &:last-child {
  1215. padding-right: 10px;
  1216. }
  1217. }
  1218. .columns-area > div {
  1219. .column,
  1220. .drawer {
  1221. padding-left: 5px;
  1222. padding-right: 5px;
  1223. }
  1224. }
  1225. }
  1226. .drawer__pager {
  1227. box-sizing: border-box;
  1228. padding: 0;
  1229. flex-grow: 1;
  1230. position: relative;
  1231. overflow: hidden;
  1232. display: flex;
  1233. }
  1234. .drawer__inner {
  1235. position: absolute;
  1236. top: 0;
  1237. left: 0;
  1238. background: lighten($ui-base-color, 13%);
  1239. box-sizing: border-box;
  1240. padding: 0;
  1241. display: flex;
  1242. flex-direction: column;
  1243. overflow: hidden;
  1244. overflow-y: auto;
  1245. width: 100%;
  1246. height: 100%;
  1247. &.darker {
  1248. background: $ui-base-color;
  1249. }
  1250. }
  1251. .pseudo-drawer {
  1252. background: lighten($ui-base-color, 13%);
  1253. font-size: 13px;
  1254. text-align: left;
  1255. }
  1256. .drawer__header {
  1257. flex: 0 0 auto;
  1258. font-size: 16px;
  1259. background: lighten($ui-base-color, 8%);
  1260. margin-bottom: 10px;
  1261. display: flex;
  1262. flex-direction: row;
  1263. a {
  1264. transition: background 100ms ease-in;
  1265. &:hover {
  1266. background: lighten($ui-base-color, 3%);
  1267. transition: background 200ms ease-out;
  1268. }
  1269. }
  1270. }
  1271. .tabs-bar {
  1272. display: flex;
  1273. background: lighten($ui-base-color, 8%);
  1274. flex: 0 0 auto;
  1275. overflow-y: auto;
  1276. }
  1277. .tabs-bar__link {
  1278. display: block;
  1279. flex: 1 1 auto;
  1280. padding: 15px 10px;
  1281. color: $primary-text-color;
  1282. text-decoration: none;
  1283. text-align: center;
  1284. font-size: 14px;
  1285. font-weight: 500;
  1286. border-bottom: 2px solid lighten($ui-base-color, 8%);
  1287. transition: all 200ms linear;
  1288. .fa {
  1289. font-weight: 400;
  1290. font-size: 16px;
  1291. }
  1292. &.active {
  1293. border-bottom: 2px solid $ui-highlight-color;
  1294. color: $ui-highlight-color;
  1295. }
  1296. &:hover,
  1297. &:focus,
  1298. &:active {
  1299. @media screen and (min-width: 1025px) {
  1300. background: lighten($ui-base-color, 14%);
  1301. transition: all 100ms linear;
  1302. }
  1303. }
  1304. span {
  1305. margin-left: 5px;
  1306. display: none;
  1307. }
  1308. }
  1309. @media screen and (min-width: 600px) {
  1310. .tabs-bar__link {
  1311. span {
  1312. display: inline;
  1313. }
  1314. }
  1315. }
  1316. @media screen and (min-width: 1025px) {
  1317. .tabs-bar {
  1318. display: none;
  1319. }
  1320. }
  1321. .scrollable {
  1322. overflow-y: scroll;
  1323. overflow-x: hidden;
  1324. flex: 1 1 auto;
  1325. -webkit-overflow-scrolling: touch;
  1326. @supports(display: grid) { // hack to fix Chrome <57
  1327. contain: strict;
  1328. }
  1329. &.optionally-scrollable {
  1330. overflow-y: auto;
  1331. }
  1332. }
  1333. .column-back-button {
  1334. background: lighten($ui-base-color, 4%);
  1335. color: $ui-highlight-color;
  1336. cursor: pointer;
  1337. flex: 0 0 auto;
  1338. font-size: 16px;
  1339. border: 0;
  1340. text-align: unset;
  1341. padding: 15px;
  1342. margin: 0;
  1343. z-index: 3;
  1344. &:hover {
  1345. text-decoration: underline;
  1346. }
  1347. }
  1348. .column-header__back-button {
  1349. background: lighten($ui-base-color, 4%);
  1350. border: 0;
  1351. font-family: inherit;
  1352. color: $ui-highlight-color;
  1353. cursor: pointer;
  1354. flex: 0 0 auto;
  1355. font-size: 16px;
  1356. padding: 0 5px 0 0;
  1357. z-index: 3;
  1358. &:hover {
  1359. text-decoration: underline;
  1360. }
  1361. &:last-child {
  1362. padding: 0 15px 0 0;
  1363. }
  1364. }
  1365. .column-back-button__icon {
  1366. display: inline-block;
  1367. margin-right: 5px;
  1368. }
  1369. .column-back-button--slim {
  1370. position: relative;
  1371. }
  1372. .column-back-button--slim-button {
  1373. cursor: pointer;
  1374. flex: 0 0 auto;
  1375. font-size: 16px;
  1376. padding: 15px;
  1377. position: absolute;
  1378. right: 0;
  1379. top: -48px;
  1380. }
  1381. .react-toggle {
  1382. display: inline-block;
  1383. position: relative;
  1384. cursor: pointer;
  1385. background-color: transparent;
  1386. border: 0;
  1387. padding: 0;
  1388. user-select: none;
  1389. -webkit-tap-highlight-color: rgba($base-overlay-background, 0);
  1390. -webkit-tap-highlight-color: transparent;
  1391. }
  1392. .react-toggle-screenreader-only {
  1393. border: 0;
  1394. clip: rect(0 0 0 0);
  1395. height: 1px;
  1396. margin: -1px;
  1397. overflow: hidden;
  1398. padding: 0;
  1399. position: absolute;
  1400. width: 1px;
  1401. }
  1402. .react-toggle--disabled {
  1403. cursor: not-allowed;
  1404. opacity: 0.5;
  1405. transition: opacity 0.25s;
  1406. }
  1407. .react-toggle-track {
  1408. width: 50px;
  1409. height: 24px;
  1410. padding: 0;
  1411. border-radius: 30px;
  1412. background-color: $ui-base-color;
  1413. transition: all 0.2s ease;
  1414. }
  1415. .react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track {
  1416. background-color: darken($ui-base-color, 10%);
  1417. }
  1418. .react-toggle--checked .react-toggle-track {
  1419. background-color: $ui-highlight-color;
  1420. }
  1421. .react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track {
  1422. background-color: lighten($ui-highlight-color, 10%);
  1423. }
  1424. .react-toggle-track-check {
  1425. position: absolute;
  1426. width: 14px;
  1427. height: 10px;
  1428. top: 0;
  1429. bottom: 0;
  1430. margin-top: auto;
  1431. margin-bottom: auto;
  1432. line-height: 0;
  1433. left: 8px;
  1434. opacity: 0;
  1435. transition: opacity 0.25s ease;
  1436. }
  1437. .react-toggle--checked .react-toggle-track-check {
  1438. opacity: 1;
  1439. transition: opacity 0.25s ease;
  1440. }
  1441. .react-toggle-track-x {
  1442. position: absolute;
  1443. width: 10px;
  1444. height: 10px;
  1445. top: 0;
  1446. bottom: 0;
  1447. margin-top: auto;
  1448. margin-bottom: auto;
  1449. line-height: 0;
  1450. right: 10px;
  1451. opacity: 1;
  1452. transition: opacity 0.25s ease;
  1453. }
  1454. .react-toggle--checked .react-toggle-track-x {
  1455. opacity: 0;
  1456. }
  1457. .react-toggle-thumb {
  1458. transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
  1459. position: absolute;
  1460. top: 1px;
  1461. left: 1px;
  1462. width: 22px;
  1463. height: 22px;
  1464. border: 1px solid $ui-base-color;
  1465. border-radius: 50%;
  1466. background-color: darken($simple-background-color, 2%);
  1467. box-sizing: border-box;
  1468. transition: all 0.25s ease;
  1469. }
  1470. .react-toggle--checked .react-toggle-thumb {
  1471. left: 27px;
  1472. border-color: $ui-highlight-color;
  1473. }
  1474. .column-link {
  1475. background: lighten($ui-base-color, 8%);
  1476. color: $primary-text-color;
  1477. display: block;
  1478. font-size: 16px;
  1479. padding: 15px;
  1480. text-decoration: none;
  1481. &:hover {
  1482. background: lighten($ui-base-color, 11%);
  1483. }
  1484. }
  1485. .column-link__icon {
  1486. display: inline-block;
  1487. margin-right: 5px;
  1488. }
  1489. .column-subheading {
  1490. background: $ui-base-color;
  1491. color: $ui-base-lighter-color;
  1492. padding: 8px 20px;
  1493. font-size: 12px;
  1494. font-weight: 500;
  1495. text-transform: uppercase;
  1496. cursor: default;
  1497. }
  1498. .autosuggest-textarea,
  1499. .spoiler-input {
  1500. position: relative;
  1501. }
  1502. .autosuggest-textarea__textarea,
  1503. .spoiler-input__input {
  1504. display: block;
  1505. box-sizing: border-box;
  1506. width: 100%;
  1507. margin: 0;
  1508. color: $ui-base-color;
  1509. background: $simple-background-color;
  1510. padding: 10px;
  1511. font-family: inherit;
  1512. font-size: 14px;
  1513. resize: vertical;
  1514. border: 0;
  1515. outline: 0;
  1516. &:focus {
  1517. outline: 0;
  1518. }
  1519. @media screen and (max-width: 600px) {
  1520. font-size: 16px;
  1521. }
  1522. }
  1523. .spoiler-input__input {
  1524. border-radius: 4px;
  1525. }
  1526. .autosuggest-textarea__textarea {
  1527. min-height: 100px;
  1528. border-radius: 4px 4px 0 0;
  1529. padding-bottom: 0;
  1530. padding-right: 10px + 22px;
  1531. resize: none;
  1532. @media screen and (max-width: 600px) {
  1533. height: 100px !important; // prevent auto-resize textarea
  1534. resize: vertical;
  1535. }
  1536. }
  1537. .autosuggest-textarea__suggestions {
  1538. display: none;
  1539. position: absolute;
  1540. top: 100%;
  1541. width: 100%;
  1542. z-index: 99;
  1543. box-shadow: 0 0 15px rgba($base-shadow-color, 0.4);
  1544. background: $ui-secondary-color;
  1545. color: $ui-base-color;
  1546. font-size: 14px;
  1547. &.autosuggest-textarea__suggestions--visible {
  1548. display: block;
  1549. }
  1550. }
  1551. .autosuggest-textarea__suggestions__item {
  1552. padding: 10px;
  1553. cursor: pointer;
  1554. &:hover {
  1555. background: darken($ui-secondary-color, 10%);
  1556. }
  1557. &.selected {
  1558. background: $ui-highlight-color;
  1559. color: $base-border-color;
  1560. }
  1561. }
  1562. .autosuggest-account {
  1563. overflow: hidden;
  1564. }
  1565. .autosuggest-account-icon {
  1566. float: left;
  1567. margin-right: 5px;
  1568. }
  1569. .autosuggest-status {
  1570. overflow: hidden;
  1571. white-space: nowrap;
  1572. text-overflow: ellipsis;
  1573. strong {
  1574. font-weight: 500;
  1575. }
  1576. }
  1577. .character-counter__wrapper {
  1578. line-height: 36px;
  1579. margin: 0 16px 0 8px;
  1580. padding-top: 10px;
  1581. }
  1582. .character-counter {
  1583. cursor: default;
  1584. font-size: 16px;
  1585. }
  1586. .character-counter--over {
  1587. color: $warning-red;
  1588. }
  1589. .getting-started__wrapper {
  1590. position: relative;
  1591. overflow-y: auto;
  1592. }
  1593. .getting-started__footer {
  1594. display: flex;
  1595. flex-direction: column;
  1596. }
  1597. .getting-started {
  1598. box-sizing: border-box;
  1599. padding-bottom: 235px;
  1600. background: url('../images/mastodon-getting-started.png') no-repeat 0 100%;
  1601. flex: 1 0 auto;
  1602. p {
  1603. color: $ui-secondary-color;
  1604. }
  1605. a {
  1606. color: $ui-base-lighter-color;
  1607. }
  1608. }
  1609. .setting-text {
  1610. color: $ui-primary-color;
  1611. background: transparent;
  1612. border: none;
  1613. border-bottom: 2px solid $ui-primary-color;
  1614. box-sizing: border-box;
  1615. display: block;
  1616. font-family: inherit;
  1617. margin-bottom: 10px;
  1618. padding: 7px 0;
  1619. width: 100%;
  1620. &:focus,
  1621. &:active {
  1622. color: $primary-text-color;
  1623. border-bottom-color: $ui-highlight-color;
  1624. }
  1625. @media screen and (max-width: 600px) {
  1626. font-size: 16px;
  1627. }
  1628. &.light {
  1629. color: $ui-base-color;
  1630. border-bottom: 2px solid lighten($ui-base-color, 27%);
  1631. &:focus,
  1632. &:active {
  1633. color: $ui-base-color;
  1634. border-bottom-color: $ui-highlight-color;
  1635. }
  1636. }
  1637. }
  1638. @import 'boost';
  1639. button.icon-button i.fa-retweet {
  1640. background-position: 0 0;
  1641. height: 19px;
  1642. transition: background-position 0.9s steps(10);
  1643. transition-duration: 0s;
  1644. vertical-align: middle;
  1645. width: 22px;
  1646. &::before {
  1647. display: none !important;
  1648. }
  1649. }
  1650. button.icon-button.active i.fa-retweet {
  1651. transition-duration: 0.9s;
  1652. background-position: 0 100%;
  1653. }
  1654. .status-card {
  1655. display: flex;
  1656. cursor: pointer;
  1657. font-size: 14px;
  1658. border: 1px solid lighten($ui-base-color, 8%);
  1659. border-radius: 4px;
  1660. color: $ui-base-lighter-color;
  1661. margin-top: 14px;
  1662. text-decoration: none;
  1663. overflow: hidden;
  1664. &:hover {
  1665. background: lighten($ui-base-color, 8%);
  1666. }
  1667. }
  1668. .status-card-video,
  1669. .status-card-rich,
  1670. .status-card-photo {
  1671. margin-top: 14px;
  1672. overflow: hidden;
  1673. iframe {
  1674. width: 100%;
  1675. height: auto;
  1676. }
  1677. }
  1678. .status-card-photo {
  1679. display: block;
  1680. text-decoration: none;
  1681. img {
  1682. display: block;
  1683. width: 100%;
  1684. height: auto;
  1685. margin: 0;
  1686. }
  1687. }
  1688. .status-card-video {
  1689. position: relative;
  1690. width: 100%;
  1691. height: auto;
  1692. padding-top: 56.25%;
  1693. iframe {
  1694. position: absolute;
  1695. top: 0;
  1696. left: 0;
  1697. bottom: 0;
  1698. right: 0;
  1699. width: 1px;
  1700. min-width: 100%;
  1701. height: 1px;
  1702. min-height: 100%;
  1703. margin: auto;
  1704. }
  1705. }
  1706. .status-card__title {
  1707. display: block;
  1708. font-weight: 500;
  1709. margin-bottom: 5px;
  1710. color: $ui-primary-color;
  1711. overflow: hidden;
  1712. text-overflow: ellipsis;
  1713. white-space: nowrap;
  1714. }
  1715. .status-card__content {
  1716. flex: 1 1 auto;
  1717. overflow: hidden;
  1718. padding: 14px 14px 14px 8px;
  1719. }
  1720. .status-card__description {
  1721. color: $ui-primary-color;
  1722. }
  1723. .status-card__host {
  1724. display: block;
  1725. margin-top: 5px;
  1726. font-size: 13px;
  1727. }
  1728. .status-card__image {
  1729. flex: 0 0 100px;
  1730. background: lighten($ui-base-color, 8%);
  1731. }
  1732. .status-card.horizontal {
  1733. display: block;
  1734. .status-card__image {
  1735. width: 100%;
  1736. }
  1737. .status-card__image-image {
  1738. border-radius: 4px 4px 0 0;
  1739. }
  1740. }
  1741. .status-card__image-image {
  1742. border-radius: 4px 0 0 4px;
  1743. display: block;
  1744. height: auto;
  1745. margin: 0;
  1746. width: 100%;
  1747. }
  1748. .load-more {
  1749. display: block;
  1750. color: $ui-base-lighter-color;
  1751. background-color: transparent;
  1752. border: 0;
  1753. font-size: inherit;
  1754. text-align: center;
  1755. line-height: inherit;
  1756. margin: 0;
  1757. padding: 15px;
  1758. width: 100%;
  1759. clear: both;
  1760. &:hover {
  1761. background: lighten($ui-base-color, 2%);
  1762. }
  1763. }
  1764. .missing-indicator {
  1765. text-align: center;
  1766. font-size: 16px;
  1767. font-weight: 500;
  1768. color: lighten($ui-base-color, 16%);
  1769. background: $ui-base-color;
  1770. cursor: default;
  1771. display: flex;
  1772. flex: 1 1 auto;
  1773. align-items: center;
  1774. justify-content: center;
  1775. & > div {
  1776. background: url('../images/mastodon-not-found.png') no-repeat center -50px;
  1777. padding-top: 210px;
  1778. width: 100%;
  1779. }
  1780. }
  1781. .column-header__wrapper {
  1782. position: relative;
  1783. flex: 0 0 auto;
  1784. &.active {
  1785. &::before {
  1786. display: block;
  1787. content: "";
  1788. position: absolute;
  1789. top: 35px;
  1790. left: 0;
  1791. right: 0;
  1792. margin: 0 auto;
  1793. width: 60%;
  1794. pointer-events: none;
  1795. height: 28px;
  1796. z-index: 1;
  1797. background: radial-gradient(ellipse, rgba($ui-highlight-color, 0.23) 0%, rgba($ui-highlight-color, 0) 60%);
  1798. }
  1799. }
  1800. }
  1801. .column-header {
  1802. padding: 15px;
  1803. font-size: 16px;
  1804. background: lighten($ui-base-color, 4%);
  1805. flex: 0 0 auto;
  1806. cursor: pointer;
  1807. position: relative;
  1808. z-index: 2;
  1809. outline: 0;
  1810. &.active {
  1811. box-shadow: 0 1px 0 rgba($ui-highlight-color, 0.3);
  1812. .column-header__icon {
  1813. color: $ui-highlight-color;
  1814. text-shadow: 0 0 10px rgba($ui-highlight-color, 0.4);
  1815. }
  1816. }
  1817. &:focus,
  1818. &:active {
  1819. outline: 0;
  1820. }
  1821. }
  1822. .column-header__buttons {
  1823. position: absolute;
  1824. right: 0;
  1825. top: 0;
  1826. height: 100%;
  1827. display: flex;
  1828. height: 48px;
  1829. }
  1830. .column-header__button {
  1831. background: lighten($ui-base-color, 4%);
  1832. border: 0;
  1833. color: $ui-primary-color;
  1834. cursor: pointer;
  1835. font-size: 16px;
  1836. padding: 0 15px;
  1837. &:hover {
  1838. color: lighten($ui-primary-color, 7%);
  1839. }
  1840. &.active {
  1841. color: $primary-text-color;
  1842. background: lighten($ui-base-color, 8%);
  1843. &:hover {
  1844. color: $primary-text-color;
  1845. background: lighten($ui-base-color, 8%);
  1846. }
  1847. }
  1848. }
  1849. .column-header__collapsible {
  1850. max-height: 70vh;
  1851. overflow: hidden;
  1852. overflow-y: auto;
  1853. color: $ui-primary-color;
  1854. transition: max-height 150ms ease-in-out, opacity 300ms linear;
  1855. opacity: 1;
  1856. &.collapsed {
  1857. max-height: 0;
  1858. opacity: 0.5;
  1859. }
  1860. &.animating {
  1861. overflow-y: hidden;
  1862. }
  1863. }
  1864. .column-header__collapsible-inner {
  1865. background: lighten($ui-base-color, 8%);
  1866. padding: 15px;
  1867. }
  1868. .column-header__setting-btn {
  1869. &:hover {
  1870. color: lighten($ui-primary-color, 4%);
  1871. text-decoration: underline;
  1872. }
  1873. }
  1874. .column-header__setting-arrows {
  1875. float: right;
  1876. .column-header__setting-btn {
  1877. padding: 0 10px;
  1878. &:last-child {
  1879. padding-right: 0;
  1880. }
  1881. }
  1882. }
  1883. .text-btn {
  1884. display: inline-block;
  1885. padding: 0;
  1886. font-family: inherit;
  1887. font-size: inherit;
  1888. color: inherit;
  1889. border: 0;
  1890. background: transparent;
  1891. cursor: pointer;
  1892. }
  1893. .column-header__icon {
  1894. display: inline-block;
  1895. margin-right: 5px;
  1896. }
  1897. .loading-indicator {
  1898. color: lighten($ui-base-color, 26%);
  1899. font-size: 12px;
  1900. font-weight: 400;
  1901. text-transform: uppercase;
  1902. overflow: visible;
  1903. position: absolute;
  1904. top: 50%;
  1905. left: 50%;
  1906. transform: translate(-50%, -50%);
  1907. span {
  1908. display: block;
  1909. float: left;
  1910. margin-left: 50%;
  1911. transform: translateX(-50%);
  1912. margin: 82px 0 0 50%;
  1913. white-space: nowrap;
  1914. animation: loader-label 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1915. }
  1916. }
  1917. .loading-indicator__figure {
  1918. position: absolute;
  1919. top: 50%;
  1920. left: 50%;
  1921. transform: translate(-50%, -50%);
  1922. width: 0;
  1923. height: 0;
  1924. box-sizing: border-box;
  1925. border: 0 solid lighten($ui-base-color, 26%);
  1926. border-radius: 50%;
  1927. animation: loader-figure 1.15s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
  1928. }
  1929. @keyframes loader-figure {
  1930. 0% {
  1931. width: 0;
  1932. height: 0;
  1933. background-color: lighten($ui-base-color, 26%);
  1934. }
  1935. 29% {
  1936. background-color: lighten($ui-base-color, 26%);
  1937. }
  1938. 30% {
  1939. width: 42px;
  1940. height: 42px;
  1941. background-color: transparent;
  1942. border-width: 21px;
  1943. opacity: 1;
  1944. }
  1945. 100% {
  1946. width: 42px;
  1947. height: 42px;
  1948. border-width: 0;
  1949. opacity: 0;
  1950. background-color: transparent;
  1951. }
  1952. }
  1953. @keyframes loader-label {
  1954. 0% { opacity: 0.25; }
  1955. 30% { opacity: 1; }
  1956. 100% { opacity: 0.25; }
  1957. }
  1958. .video-error-cover {
  1959. align-items: center;
  1960. background: $base-overlay-background;
  1961. color: $primary-text-color;
  1962. cursor: pointer;
  1963. display: flex;
  1964. flex-direction: column;
  1965. height: 100%;
  1966. justify-content: center;
  1967. margin-top: 8px;
  1968. position: relative;
  1969. text-align: center;
  1970. z-index: 100;
  1971. }
  1972. .media-spoiler {
  1973. background: $base-overlay-background;
  1974. color: $primary-text-color;
  1975. border: 0;
  1976. width: 100%;
  1977. height: 100%;
  1978. }
  1979. .media-spoiler__warning {
  1980. display: block;
  1981. font-size: 14px;
  1982. }
  1983. .media-spoiler__trigger {
  1984. display: block;
  1985. font-size: 11px;
  1986. font-weight: 500;
  1987. }
  1988. .spoiler-button {
  1989. display: none;
  1990. left: 4px;
  1991. position: absolute;
  1992. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  1993. top: 4px;
  1994. z-index: 100;
  1995. &.spoiler-button--visible {
  1996. display: block;
  1997. }
  1998. }
  1999. .modal-container--preloader {
  2000. background: lighten($ui-base-color, 8%);
  2001. }
  2002. .account--panel {
  2003. background: lighten($ui-base-color, 4%);
  2004. border-top: 1px solid lighten($ui-base-color, 8%);
  2005. border-bottom: 1px solid lighten($ui-base-color, 8%);
  2006. display: flex;
  2007. flex-direction: row;
  2008. padding: 10px 0;
  2009. }
  2010. .account--panel__button,
  2011. .detailed-status__button {
  2012. flex: 1 1 auto;
  2013. text-align: center;
  2014. }
  2015. .column-settings__outer {
  2016. background: lighten($ui-base-color, 8%);
  2017. padding: 15px;
  2018. }
  2019. .column-settings__section {
  2020. color: $ui-primary-color;
  2021. cursor: default;
  2022. display: block;
  2023. font-weight: 500;
  2024. margin-bottom: 10px;
  2025. }
  2026. .column-settings__row {
  2027. .text-btn {
  2028. margin-bottom: 15px;
  2029. }
  2030. }
  2031. .modal-container__nav {
  2032. align-items: center;
  2033. background: rgba($base-overlay-background, 0.5);
  2034. box-sizing: border-box;
  2035. border: 0;
  2036. color: $primary-text-color;
  2037. cursor: pointer;
  2038. display: flex;
  2039. font-size: 24px;
  2040. height: 100%;
  2041. padding: 30px 15px;
  2042. position: absolute;
  2043. top: 0;
  2044. }
  2045. .modal-container__nav--left {
  2046. left: -61px;
  2047. }
  2048. .modal-container__nav--right {
  2049. right: -61px;
  2050. }
  2051. .account--follows-info {
  2052. color: $primary-text-color;
  2053. position: absolute;
  2054. top: 10px;
  2055. right: 10px;
  2056. opacity: 0.7;
  2057. display: inline-block;
  2058. vertical-align: top;
  2059. background-color: rgba($base-overlay-background, 0.4);
  2060. text-transform: uppercase;
  2061. font-size: 11px;
  2062. font-weight: 500;
  2063. padding: 4px;
  2064. border-radius: 4px;
  2065. }
  2066. .account--action-button {
  2067. position: absolute;
  2068. top: 10px;
  2069. left: 20px;
  2070. }
  2071. .setting-toggle {
  2072. display: block;
  2073. line-height: 24px;
  2074. }
  2075. .setting-toggle__label,
  2076. .setting-meta__label {
  2077. color: $ui-primary-color;
  2078. display: inline-block;
  2079. margin-bottom: 14px;
  2080. margin-left: 8px;
  2081. vertical-align: middle;
  2082. }
  2083. .setting-meta__label {
  2084. color: $ui-primary-color;
  2085. float: right;
  2086. }
  2087. .empty-column-indicator,
  2088. .error-column {
  2089. color: lighten($ui-base-color, 20%);
  2090. background: $ui-base-color;
  2091. text-align: center;
  2092. padding: 20px;
  2093. font-size: 15px;
  2094. font-weight: 400;
  2095. cursor: default;
  2096. display: flex;
  2097. flex: 1 1 auto;
  2098. align-items: center;
  2099. justify-content: center;
  2100. @supports(display: grid) { // hack to fix Chrome <57
  2101. contain: strict;
  2102. }
  2103. a {
  2104. color: $ui-highlight-color;
  2105. text-decoration: none;
  2106. &:hover {
  2107. text-decoration: underline;
  2108. }
  2109. }
  2110. }
  2111. .error-column {
  2112. flex-direction: column;
  2113. }
  2114. @keyframes pulse {
  2115. 0% {
  2116. opacity: 1;
  2117. }
  2118. 100% {
  2119. opacity: 0.5;
  2120. }
  2121. }
  2122. .pulse-loading {
  2123. animation: pulse 1s ease-in-out infinite;
  2124. animation-direction: alternate;
  2125. }
  2126. .emoji-dialog {
  2127. width: 245px;
  2128. height: 270px;
  2129. background: $simple-background-color;
  2130. box-sizing: border-box;
  2131. border-radius: 4px;
  2132. overflow: hidden;
  2133. position: relative;
  2134. box-shadow: 0 0 8px rgba($base-shadow-color, 0.2);
  2135. .emojione {
  2136. margin: 0;
  2137. width: 100%;
  2138. height: auto;
  2139. }
  2140. .emoji-dialog-header {
  2141. padding: 0 10px;
  2142. ul {
  2143. padding: 0;
  2144. margin: 0;
  2145. list-style: none;
  2146. }
  2147. li {
  2148. display: inline-block;
  2149. box-sizing: border-box;
  2150. padding: 10px 5px;
  2151. cursor: pointer;
  2152. border-bottom: 2px solid transparent;
  2153. .emoji {
  2154. width: 18px;
  2155. height: 18px;
  2156. }
  2157. img,
  2158. svg {
  2159. width: 18px;
  2160. height: 18px;
  2161. filter: grayscale(100%);
  2162. }
  2163. &:hover {
  2164. img,
  2165. svg {
  2166. filter: grayscale(0);
  2167. }
  2168. }
  2169. &.active {
  2170. border-bottom-color: $ui-highlight-color;
  2171. img,
  2172. svg {
  2173. filter: grayscale(0);
  2174. }
  2175. }
  2176. }
  2177. }
  2178. .emoji-row {
  2179. box-sizing: border-box;
  2180. overflow-y: hidden;
  2181. padding-left: 10px;
  2182. .emoji {
  2183. display: inline-block;
  2184. padding: 2.5px;
  2185. border-radius: 4px;
  2186. }
  2187. }
  2188. .emoji-category-header {
  2189. box-sizing: border-box;
  2190. overflow-y: hidden;
  2191. padding: 10px 8px 10px 16px;
  2192. display: table;
  2193. > * {
  2194. display: table-cell;
  2195. vertical-align: middle;
  2196. }
  2197. }
  2198. .emoji-category-title {
  2199. font-size: 12px;
  2200. text-transform: uppercase;
  2201. font-weight: 500;
  2202. color: darken($ui-secondary-color, 18%);
  2203. cursor: default;
  2204. }
  2205. .emoji-category-heading-decoration {
  2206. text-align: right;
  2207. }
  2208. .modifiers {
  2209. list-style: none;
  2210. padding: 0;
  2211. margin: 0;
  2212. vertical-align: middle;
  2213. white-space: nowrap;
  2214. margin-top: 4px;
  2215. li {
  2216. display: inline-block;
  2217. padding: 0 2px;
  2218. &:last-of-type {
  2219. padding-right: 0;
  2220. }
  2221. }
  2222. .modifier {
  2223. display: inline-block;
  2224. border-radius: 10px;
  2225. width: 15px;
  2226. height: 15px;
  2227. position: relative;
  2228. cursor: pointer;
  2229. &.active::after {
  2230. content: "";
  2231. display: block;
  2232. position: absolute;
  2233. width: 7px;
  2234. height: 7px;
  2235. border-radius: 10px;
  2236. border: 2px solid $base-border-color;
  2237. top: 2px;
  2238. left: 2px;
  2239. }
  2240. }
  2241. }
  2242. .emoji-search-wrapper {
  2243. padding: 10px;
  2244. border-bottom: 1px solid lighten($ui-secondary-color, 4%);
  2245. }
  2246. .emoji-search {
  2247. font-size: 14px;
  2248. font-weight: 400;
  2249. padding: 7px 9px;
  2250. font-family: inherit;
  2251. display: block;
  2252. width: 100%;
  2253. background: rgba($ui-secondary-color, 0.3);
  2254. color: darken($ui-secondary-color, 18%);
  2255. border: 1px solid $ui-secondary-color;
  2256. border-radius: 4px;
  2257. }
  2258. .emoji-categories-wrapper {
  2259. position: absolute;
  2260. top: 42px;
  2261. bottom: 0;
  2262. left: 0;
  2263. right: 0;
  2264. }
  2265. .emoji-search-wrapper + .emoji-categories-wrapper {
  2266. top: 93px;
  2267. }
  2268. .emoji-row .emoji {
  2269. img,
  2270. svg {
  2271. transition: transform 60ms ease-in-out;
  2272. }
  2273. &:hover {
  2274. background: lighten($ui-secondary-color, 3%);
  2275. img,
  2276. svg {
  2277. transform: translateZ(0) scale(1.2);
  2278. }
  2279. }
  2280. }
  2281. .emoji {
  2282. width: 22px;
  2283. height: 22px;
  2284. cursor: pointer;
  2285. &:focus {
  2286. outline: 0;
  2287. }
  2288. }
  2289. }
  2290. .upload-area {
  2291. align-items: center;
  2292. background: rgba($base-overlay-background, 0.8);
  2293. display: flex;
  2294. height: 100%;
  2295. justify-content: center;
  2296. left: 0;
  2297. opacity: 0;
  2298. position: absolute;
  2299. top: 0;
  2300. visibility: hidden;
  2301. width: 100%;
  2302. z-index: 2000;
  2303. * {
  2304. pointer-events: none;
  2305. }
  2306. }
  2307. .upload-area__drop {
  2308. width: 320px;
  2309. height: 160px;
  2310. display: flex;
  2311. box-sizing: border-box;
  2312. position: relative;
  2313. padding: 8px;
  2314. }
  2315. .upload-area__background {
  2316. position: absolute;
  2317. top: 0;
  2318. right: 0;
  2319. bottom: 0;
  2320. left: 0;
  2321. z-index: -1;
  2322. border-radius: 4px;
  2323. background: $ui-base-color;
  2324. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2325. }
  2326. .upload-area__content {
  2327. flex: 1;
  2328. display: flex;
  2329. align-items: center;
  2330. justify-content: center;
  2331. color: $ui-secondary-color;
  2332. font-size: 18px;
  2333. font-weight: 500;
  2334. border: 2px dashed $ui-base-lighter-color;
  2335. border-radius: 4px;
  2336. }
  2337. .upload-progress {
  2338. padding: 10px;
  2339. color: $ui-base-lighter-color;
  2340. overflow: hidden;
  2341. display: flex;
  2342. .fa {
  2343. font-size: 34px;
  2344. margin-right: 10px;
  2345. }
  2346. span {
  2347. font-size: 12px;
  2348. text-transform: uppercase;
  2349. font-weight: 500;
  2350. display: block;
  2351. }
  2352. }
  2353. .upload-progess__message {
  2354. flex: 1 1 auto;
  2355. }
  2356. .upload-progress__backdrop {
  2357. width: 100%;
  2358. height: 6px;
  2359. border-radius: 6px;
  2360. background: $ui-base-lighter-color;
  2361. position: relative;
  2362. margin-top: 5px;
  2363. }
  2364. .upload-progress__tracker {
  2365. position: absolute;
  2366. left: 0;
  2367. top: 0;
  2368. height: 6px;
  2369. background: $ui-highlight-color;
  2370. border-radius: 6px;
  2371. }
  2372. .emoji-button {
  2373. display: block;
  2374. font-size: 24px;
  2375. line-height: 24px;
  2376. margin-left: 2px;
  2377. width: 24px;
  2378. outline: 0;
  2379. cursor: pointer;
  2380. &:active,
  2381. &:focus {
  2382. outline: 0 !important;
  2383. }
  2384. img {
  2385. filter: grayscale(100%);
  2386. opacity: 0.8;
  2387. display: block;
  2388. margin: 0;
  2389. width: 22px;
  2390. height: 22px;
  2391. margin-top: 2px;
  2392. }
  2393. &:hover,
  2394. &:active,
  2395. &:focus {
  2396. img {
  2397. opacity: 1;
  2398. filter: none;
  2399. }
  2400. }
  2401. }
  2402. .dropdown--active .emoji-button img {
  2403. opacity: 1;
  2404. filter: none;
  2405. }
  2406. .privacy-dropdown {
  2407. position: relative;
  2408. }
  2409. .privacy-dropdown__dropdown {
  2410. display: none;
  2411. position: absolute;
  2412. left: 0;
  2413. top: 27px;
  2414. width: 230px;
  2415. background: $simple-background-color;
  2416. border-radius: 0 4px 4px;
  2417. z-index: 2;
  2418. overflow: hidden;
  2419. }
  2420. .privacy-dropdown__option {
  2421. color: $ui-base-color;
  2422. padding: 10px;
  2423. cursor: pointer;
  2424. display: flex;
  2425. &:hover,
  2426. &.active {
  2427. background: $ui-highlight-color;
  2428. color: $primary-text-color;
  2429. .privacy-dropdown__option__content {
  2430. color: $primary-text-color;
  2431. strong {
  2432. color: $primary-text-color;
  2433. }
  2434. }
  2435. }
  2436. &.active:hover {
  2437. background: lighten($ui-highlight-color, 4%);
  2438. }
  2439. }
  2440. .privacy-dropdown__option__icon {
  2441. display: flex;
  2442. align-items: center;
  2443. justify-content: center;
  2444. margin-right: 10px;
  2445. }
  2446. .privacy-dropdown__option__content {
  2447. flex: 1 1 auto;
  2448. color: darken($ui-primary-color, 24%);
  2449. strong {
  2450. font-weight: 500;
  2451. display: block;
  2452. color: $ui-base-color;
  2453. }
  2454. }
  2455. .privacy-dropdown.active {
  2456. .privacy-dropdown__value {
  2457. background: $simple-background-color;
  2458. border-radius: 4px 4px 0 0;
  2459. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2460. }
  2461. .privacy-dropdown__dropdown {
  2462. display: block;
  2463. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2464. }
  2465. }
  2466. .search {
  2467. position: relative;
  2468. }
  2469. .search__input {
  2470. padding-right: 30px;
  2471. color: $ui-secondary-color;
  2472. outline: 0;
  2473. box-sizing: border-box;
  2474. display: block;
  2475. width: 100%;
  2476. border: none;
  2477. padding: 10px;
  2478. padding-right: 30px;
  2479. font-family: inherit;
  2480. background: $ui-base-color;
  2481. color: $ui-primary-color;
  2482. font-size: 14px;
  2483. margin: 0;
  2484. &::-moz-focus-inner {
  2485. border: 0;
  2486. }
  2487. &::-moz-focus-inner,
  2488. &:focus,
  2489. &:active {
  2490. outline: 0 !important;
  2491. }
  2492. &:focus {
  2493. background: lighten($ui-base-color, 4%);
  2494. }
  2495. @media screen and (max-width: 600px) {
  2496. font-size: 16px;
  2497. }
  2498. }
  2499. .search__icon {
  2500. .fa {
  2501. position: absolute;
  2502. top: 10px;
  2503. right: 10px;
  2504. z-index: 2;
  2505. display: inline-block;
  2506. opacity: 0;
  2507. transition: all 100ms linear;
  2508. font-size: 18px;
  2509. width: 18px;
  2510. height: 18px;
  2511. color: $ui-secondary-color;
  2512. cursor: default;
  2513. pointer-events: none;
  2514. &.active {
  2515. pointer-events: auto;
  2516. opacity: 0.3;
  2517. }
  2518. }
  2519. .fa-search {
  2520. transform: translateZ(0) rotate(90deg);
  2521. &.active {
  2522. pointer-events: none;
  2523. transform: translateZ(0) rotate(0deg);
  2524. }
  2525. }
  2526. .fa-times-circle {
  2527. top: 11px;
  2528. transform: translateZ(0) rotate(0deg);
  2529. cursor: pointer;
  2530. &.active {
  2531. transform: translateZ(0) rotate(90deg);
  2532. }
  2533. &:hover {
  2534. color: $primary-text-color;
  2535. }
  2536. }
  2537. }
  2538. .search-results__header {
  2539. color: $ui-base-lighter-color;
  2540. background: lighten($ui-base-color, 2%);
  2541. border-bottom: 1px solid darken($ui-base-color, 4%);
  2542. padding: 15px 10px;
  2543. font-size: 14px;
  2544. font-weight: 500;
  2545. }
  2546. .search-results__hashtag {
  2547. display: block;
  2548. padding: 10px;
  2549. color: $ui-secondary-color;
  2550. text-decoration: none;
  2551. &:hover,
  2552. &:active,
  2553. &:focus {
  2554. color: lighten($ui-secondary-color, 4%);
  2555. text-decoration: underline;
  2556. }
  2557. }
  2558. .modal-root__overlay {
  2559. position: absolute;
  2560. top: 0;
  2561. left: 0;
  2562. right: 0;
  2563. bottom: 0;
  2564. z-index: 9999;
  2565. opacity: 0;
  2566. background: rgba($base-overlay-background, 0.7);
  2567. transform: translateZ(0);
  2568. }
  2569. .modal-root__container {
  2570. position: absolute;
  2571. top: 0;
  2572. left: 0;
  2573. width: 100%;
  2574. height: 100%;
  2575. display: flex;
  2576. flex-direction: column;
  2577. align-items: center;
  2578. justify-content: center;
  2579. align-content: space-around;
  2580. z-index: 9999;
  2581. opacity: 0;
  2582. pointer-events: none;
  2583. user-select: none;
  2584. }
  2585. .modal-root__modal {
  2586. pointer-events: auto;
  2587. display: flex;
  2588. z-index: 9999;
  2589. }
  2590. .media-modal {
  2591. max-width: 80vw;
  2592. max-height: 80vh;
  2593. position: relative;
  2594. .extended-video-player,
  2595. img,
  2596. canvas,
  2597. video {
  2598. max-width: 80vw;
  2599. max-height: 80vh;
  2600. width: auto;
  2601. height: auto;
  2602. margin: auto;
  2603. }
  2604. .extended-video-player,
  2605. video {
  2606. display: flex;
  2607. width: 80vw;
  2608. height: 80vh;
  2609. }
  2610. img,
  2611. canvas {
  2612. display: block;
  2613. background: url('../images/void.png') repeat;
  2614. object-fit: contain;
  2615. }
  2616. .react-swipeable-view-container {
  2617. max-width: 80vw;
  2618. }
  2619. }
  2620. .media-modal__content {
  2621. background: $base-overlay-background;
  2622. }
  2623. .media-modal__close {
  2624. position: absolute;
  2625. right: 4px;
  2626. top: 4px;
  2627. z-index: 100;
  2628. }
  2629. .onboarding-modal,
  2630. .error-modal,
  2631. .embed-modal {
  2632. background: $ui-secondary-color;
  2633. color: $ui-base-color;
  2634. border-radius: 8px;
  2635. overflow: hidden;
  2636. display: flex;
  2637. flex-direction: column;
  2638. }
  2639. .onboarding-modal__pager {
  2640. height: 80vh;
  2641. width: 80vw;
  2642. max-width: 520px;
  2643. max-height: 420px;
  2644. .react-swipeable-view-container > div {
  2645. width: 100%;
  2646. height: 100%;
  2647. box-sizing: border-box;
  2648. padding: 25px;
  2649. display: none;
  2650. flex-direction: column;
  2651. align-items: center;
  2652. justify-content: center;
  2653. display: flex;
  2654. user-select: text;
  2655. }
  2656. }
  2657. .error-modal__body {
  2658. height: 80vh;
  2659. width: 80vw;
  2660. max-width: 520px;
  2661. max-height: 420px;
  2662. position: relative;
  2663. & > div {
  2664. position: absolute;
  2665. top: 0;
  2666. left: 0;
  2667. width: 100%;
  2668. height: 100%;
  2669. box-sizing: border-box;
  2670. padding: 25px;
  2671. display: none;
  2672. flex-direction: column;
  2673. align-items: center;
  2674. justify-content: center;
  2675. display: flex;
  2676. opacity: 0;
  2677. user-select: text;
  2678. }
  2679. }
  2680. .error-modal__body {
  2681. display: flex;
  2682. flex-direction: column;
  2683. justify-content: center;
  2684. align-items: center;
  2685. text-align: center;
  2686. }
  2687. @media screen and (max-width: 550px) {
  2688. .onboarding-modal {
  2689. width: 100%;
  2690. height: 100%;
  2691. border-radius: 0;
  2692. }
  2693. .onboarding-modal__pager {
  2694. width: 100%;
  2695. height: auto;
  2696. max-width: none;
  2697. max-height: none;
  2698. flex: 1 1 auto;
  2699. }
  2700. }
  2701. .onboarding-modal__paginator,
  2702. .error-modal__footer {
  2703. flex: 0 0 auto;
  2704. background: darken($ui-secondary-color, 8%);
  2705. display: flex;
  2706. padding: 25px;
  2707. & > div {
  2708. min-width: 33px;
  2709. }
  2710. .onboarding-modal__nav,
  2711. .error-modal__nav {
  2712. color: darken($ui-secondary-color, 34%);
  2713. background-color: transparent;
  2714. border: 0;
  2715. font-size: 14px;
  2716. font-weight: 500;
  2717. padding: 0;
  2718. line-height: inherit;
  2719. height: auto;
  2720. &:hover,
  2721. &:focus,
  2722. &:active {
  2723. color: darken($ui-secondary-color, 38%);
  2724. }
  2725. &.onboarding-modal__done,
  2726. &.onboarding-modal__next {
  2727. color: $ui-highlight-color;
  2728. }
  2729. }
  2730. }
  2731. .error-modal__footer {
  2732. justify-content: center;
  2733. }
  2734. .onboarding-modal__dots {
  2735. flex: 1 1 auto;
  2736. display: flex;
  2737. align-items: center;
  2738. justify-content: center;
  2739. }
  2740. .onboarding-modal__dot {
  2741. width: 14px;
  2742. height: 14px;
  2743. border-radius: 14px;
  2744. background: darken($ui-secondary-color, 16%);
  2745. margin: 0 3px;
  2746. cursor: pointer;
  2747. &:hover {
  2748. background: darken($ui-secondary-color, 18%);
  2749. }
  2750. &.active {
  2751. cursor: default;
  2752. background: darken($ui-secondary-color, 24%);
  2753. }
  2754. }
  2755. .onboarding-modal__page__wrapper {
  2756. pointer-events: none;
  2757. &.onboarding-modal__page__wrapper--active {
  2758. pointer-events: auto;
  2759. }
  2760. }
  2761. .onboarding-modal__page {
  2762. cursor: default;
  2763. line-height: 21px;
  2764. h1 {
  2765. font-size: 18px;
  2766. font-weight: 500;
  2767. color: $ui-base-color;
  2768. margin-bottom: 20px;
  2769. }
  2770. a {
  2771. color: $ui-highlight-color;
  2772. &:hover,
  2773. &:focus,
  2774. &:active {
  2775. color: lighten($ui-highlight-color, 4%);
  2776. }
  2777. }
  2778. p {
  2779. font-size: 16px;
  2780. color: lighten($ui-base-color, 8%);
  2781. margin-top: 10px;
  2782. margin-bottom: 10px;
  2783. &:last-child {
  2784. margin-bottom: 0;
  2785. }
  2786. strong {
  2787. font-weight: 500;
  2788. background: $ui-base-color;
  2789. color: $ui-secondary-color;
  2790. border-radius: 4px;
  2791. font-size: 14px;
  2792. padding: 3px 6px;
  2793. }
  2794. }
  2795. }
  2796. .onboarding-modal__page-one {
  2797. display: flex;
  2798. align-items: center;
  2799. }
  2800. .onboarding-modal__page-one__elephant-friend {
  2801. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2802. width: 155px;
  2803. height: 193px;
  2804. margin-right: 15px;
  2805. }
  2806. @media screen and (max-width: 400px) {
  2807. .onboarding-modal__page-one {
  2808. flex-direction: column;
  2809. align-items: normal;
  2810. }
  2811. .onboarding-modal__page-one__elephant-friend {
  2812. width: 100%;
  2813. height: 30vh;
  2814. max-height: 160px;
  2815. margin-bottom: 5vh;
  2816. }
  2817. }
  2818. .onboarding-modal__page-two,
  2819. .onboarding-modal__page-three,
  2820. .onboarding-modal__page-four,
  2821. .onboarding-modal__page-five {
  2822. p {
  2823. text-align: left;
  2824. }
  2825. .figure {
  2826. background: darken($ui-base-color, 8%);
  2827. color: $ui-secondary-color;
  2828. margin-bottom: 20px;
  2829. border-radius: 4px;
  2830. padding: 10px;
  2831. text-align: center;
  2832. font-size: 14px;
  2833. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2834. .onboarding-modal__image {
  2835. border-radius: 4px;
  2836. margin-bottom: 10px;
  2837. }
  2838. &.non-interactive {
  2839. pointer-events: none;
  2840. text-align: left;
  2841. }
  2842. }
  2843. }
  2844. .onboarding-modal__page-four__columns {
  2845. .row {
  2846. display: flex;
  2847. margin-bottom: 20px;
  2848. & > div {
  2849. flex: 1 1 0;
  2850. margin: 0 10px;
  2851. &:first-child {
  2852. margin-left: 0;
  2853. }
  2854. &:last-child {
  2855. margin-right: 0;
  2856. }
  2857. p {
  2858. text-align: center;
  2859. }
  2860. }
  2861. &:last-child {
  2862. margin-bottom: 0;
  2863. }
  2864. }
  2865. .column-header {
  2866. color: $primary-text-color;
  2867. }
  2868. }
  2869. @media screen and (max-width: 320px) and (max-height: 600px) {
  2870. .onboarding-modal__page p {
  2871. font-size: 14px;
  2872. line-height: 20px;
  2873. }
  2874. .onboarding-modal__page-two .figure,
  2875. .onboarding-modal__page-three .figure,
  2876. .onboarding-modal__page-four .figure,
  2877. .onboarding-modal__page-five .figure {
  2878. font-size: 12px;
  2879. margin-bottom: 10px;
  2880. }
  2881. .onboarding-modal__page-four__columns .row {
  2882. margin-bottom: 10px;
  2883. }
  2884. .onboarding-modal__page-four__columns .column-header {
  2885. padding: 5px;
  2886. font-size: 12px;
  2887. }
  2888. }
  2889. .onboarding-modal__image {
  2890. border-radius: 8px;
  2891. width: 70vw;
  2892. max-width: 450px;
  2893. max-height: auto;
  2894. display: block;
  2895. margin: auto;
  2896. margin-bottom: 20px;
  2897. }
  2898. .onboard-sliders {
  2899. display: inline-block;
  2900. max-width: 30px;
  2901. max-height: auto;
  2902. margin-left: 10px;
  2903. }
  2904. .boost-modal,
  2905. .confirmation-modal,
  2906. .report-modal,
  2907. .actions-modal {
  2908. background: lighten($ui-secondary-color, 8%);
  2909. color: $ui-base-color;
  2910. border-radius: 8px;
  2911. overflow: hidden;
  2912. max-width: 90vw;
  2913. width: 480px;
  2914. position: relative;
  2915. flex-direction: column;
  2916. .status__display-name {
  2917. display: block;
  2918. max-width: 100%;
  2919. padding-right: 25px;
  2920. }
  2921. .status__avatar {
  2922. height: 28px;
  2923. left: 10px;
  2924. position: absolute;
  2925. top: 10px;
  2926. width: 48px;
  2927. }
  2928. }
  2929. .actions-modal {
  2930. .status {
  2931. background: $white;
  2932. border-bottom-color: $ui-secondary-color;
  2933. padding-top: 10px;
  2934. padding-bottom: 10px;
  2935. }
  2936. }
  2937. .boost-modal__container {
  2938. overflow-x: scroll;
  2939. padding: 10px;
  2940. .status {
  2941. user-select: text;
  2942. border-bottom: 0;
  2943. }
  2944. }
  2945. .boost-modal__action-bar,
  2946. .confirmation-modal__action-bar,
  2947. .report-modal__action-bar {
  2948. display: flex;
  2949. justify-content: space-between;
  2950. background: $ui-secondary-color;
  2951. padding: 10px;
  2952. line-height: 36px;
  2953. & > div {
  2954. flex: 1 1 auto;
  2955. text-align: right;
  2956. color: lighten($ui-base-color, 33%);
  2957. padding-right: 10px;
  2958. }
  2959. .button {
  2960. flex: 0 0 auto;
  2961. }
  2962. }
  2963. .boost-modal__status-header {
  2964. font-size: 15px;
  2965. }
  2966. .boost-modal__status-time {
  2967. float: right;
  2968. font-size: 14px;
  2969. }
  2970. .confirmation-modal {
  2971. max-width: 85vw;
  2972. @media screen and (min-width: 480px) {
  2973. max-width: 380px;
  2974. }
  2975. }
  2976. .report-modal__statuses,
  2977. .report-modal__comment {
  2978. padding: 10px;
  2979. }
  2980. .report-modal__statuses {
  2981. min-height: 20vh;
  2982. max-height: 40vh;
  2983. overflow-y: auto;
  2984. overflow-x: hidden;
  2985. }
  2986. .report-modal__comment {
  2987. .setting-text {
  2988. margin-top: 10px;
  2989. }
  2990. }
  2991. .actions-modal {
  2992. .status {
  2993. overflow-y: auto;
  2994. max-height: 300px;
  2995. }
  2996. max-height: 80vh;
  2997. max-width: 80vw;
  2998. ul {
  2999. overflow-y: auto;
  3000. flex-shrink: 0;
  3001. li:empty {
  3002. margin: 0;
  3003. }
  3004. li:not(:empty) {
  3005. a {
  3006. color: $ui-base-color;
  3007. display: flex;
  3008. padding: 10px;
  3009. align-items: center;
  3010. text-decoration: none;
  3011. &.active {
  3012. &,
  3013. button {
  3014. background: $ui-highlight-color;
  3015. color: $primary-text-color;
  3016. }
  3017. }
  3018. button:first-child {
  3019. margin-right: 10px;
  3020. }
  3021. }
  3022. }
  3023. }
  3024. }
  3025. .confirmation-modal__action-bar {
  3026. .confirmation-modal__cancel-button {
  3027. background-color: transparent;
  3028. color: darken($ui-secondary-color, 34%);
  3029. font-size: 14px;
  3030. font-weight: 500;
  3031. &:hover,
  3032. &:focus,
  3033. &:active {
  3034. color: darken($ui-secondary-color, 38%);
  3035. }
  3036. }
  3037. }
  3038. .confirmation-modal__container,
  3039. .report-modal__target {
  3040. padding: 30px;
  3041. font-size: 16px;
  3042. text-align: center;
  3043. strong {
  3044. font-weight: 500;
  3045. }
  3046. }
  3047. .loading-bar {
  3048. background-color: $ui-highlight-color;
  3049. height: 3px;
  3050. position: absolute;
  3051. top: 0;
  3052. left: 0;
  3053. }
  3054. .media-gallery__gifv__label {
  3055. display: block;
  3056. position: absolute;
  3057. color: $primary-text-color;
  3058. background: rgba($base-overlay-background, 0.5);
  3059. bottom: 6px;
  3060. left: 6px;
  3061. padding: 2px 6px;
  3062. border-radius: 2px;
  3063. font-size: 11px;
  3064. font-weight: 600;
  3065. z-index: 1;
  3066. pointer-events: none;
  3067. opacity: 0.9;
  3068. transition: opacity 0.1s ease;
  3069. }
  3070. .media-gallery__gifv {
  3071. &.autoplay {
  3072. .media-gallery__gifv__label {
  3073. display: none;
  3074. }
  3075. }
  3076. &:hover {
  3077. .media-gallery__gifv__label {
  3078. opacity: 1;
  3079. }
  3080. }
  3081. }
  3082. .attachment-list {
  3083. display: flex;
  3084. font-size: 14px;
  3085. border: 1px solid lighten($ui-base-color, 8%);
  3086. border-radius: 4px;
  3087. margin-top: 14px;
  3088. overflow: hidden;
  3089. }
  3090. .attachment-list__icon {
  3091. flex: 0 0 auto;
  3092. color: $ui-base-lighter-color;
  3093. padding: 8px 18px;
  3094. cursor: default;
  3095. border-right: 1px solid lighten($ui-base-color, 8%);
  3096. display: flex;
  3097. flex-direction: column;
  3098. align-items: center;
  3099. justify-content: center;
  3100. font-size: 26px;
  3101. .fa {
  3102. display: block;
  3103. }
  3104. }
  3105. .attachment-list__list {
  3106. list-style: none;
  3107. padding: 4px 0;
  3108. padding-left: 8px;
  3109. display: flex;
  3110. flex-direction: column;
  3111. justify-content: center;
  3112. li {
  3113. display: block;
  3114. padding: 4px 0;
  3115. }
  3116. a {
  3117. text-decoration: none;
  3118. color: $ui-base-lighter-color;
  3119. font-weight: 500;
  3120. &:hover {
  3121. text-decoration: underline;
  3122. }
  3123. }
  3124. }
  3125. /* Media Gallery */
  3126. .media-gallery {
  3127. box-sizing: border-box;
  3128. margin-top: 8px;
  3129. overflow: hidden;
  3130. position: relative;
  3131. width: 100%;
  3132. }
  3133. .media-gallery__item {
  3134. border: none;
  3135. box-sizing: border-box;
  3136. display: block;
  3137. float: left;
  3138. position: relative;
  3139. }
  3140. .media-gallery__item-thumbnail {
  3141. cursor: zoom-in;
  3142. display: block;
  3143. text-decoration: none;
  3144. height: 100%;
  3145. &,
  3146. img {
  3147. width: 100%;
  3148. height: 100%;
  3149. object-fit: cover;
  3150. }
  3151. }
  3152. .media-gallery__gifv {
  3153. height: 100%;
  3154. overflow: hidden;
  3155. position: relative;
  3156. width: 100%;
  3157. }
  3158. .media-gallery__item-gifv-thumbnail {
  3159. cursor: zoom-in;
  3160. height: 100%;
  3161. object-fit: cover;
  3162. position: relative;
  3163. top: 50%;
  3164. transform: translateY(-50%);
  3165. width: 100%;
  3166. z-index: 1;
  3167. }
  3168. .media-gallery__item-thumbnail-label {
  3169. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3170. clip: rect(1px, 1px, 1px, 1px);
  3171. overflow: hidden;
  3172. position: absolute;
  3173. }
  3174. /* End Media Gallery */
  3175. /* Status Video Player */
  3176. .status__video-player {
  3177. background: $base-overlay-background;
  3178. box-sizing: border-box;
  3179. cursor: default; /* May not be needed */
  3180. margin-top: 8px;
  3181. overflow: hidden;
  3182. position: relative;
  3183. }
  3184. .status__video-player-video {
  3185. height: 100%;
  3186. object-fit: cover;
  3187. position: relative;
  3188. top: 50%;
  3189. transform: translateY(-50%);
  3190. width: 100%;
  3191. z-index: 1;
  3192. }
  3193. .status__video-player-expand,
  3194. .status__video-player-mute {
  3195. color: $primary-text-color;
  3196. opacity: 0.8;
  3197. position: absolute;
  3198. right: 4px;
  3199. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3200. }
  3201. .status__video-player-spoiler {
  3202. display: none;
  3203. color: $primary-text-color;
  3204. left: 4px;
  3205. position: absolute;
  3206. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3207. top: 4px;
  3208. z-index: 100;
  3209. &.status__video-player-spoiler--visible {
  3210. display: block;
  3211. }
  3212. }
  3213. .status__video-player-expand {
  3214. bottom: 4px;
  3215. z-index: 100;
  3216. }
  3217. .status__video-player-mute {
  3218. top: 4px;
  3219. z-index: 5;
  3220. }
  3221. .media-spoiler-video {
  3222. background-size: cover;
  3223. background-repeat: no-repeat;
  3224. background-position: center;
  3225. cursor: pointer;
  3226. margin-top: 8px;
  3227. position: relative;
  3228. border: 0;
  3229. display: block;
  3230. }
  3231. .media-spoiler-video-play-icon {
  3232. border-radius: 100px;
  3233. color: rgba($primary-text-color, 0.8);
  3234. font-size: 36px;
  3235. left: 50%;
  3236. padding: 5px;
  3237. position: absolute;
  3238. top: 50%;
  3239. transform: translate(-50%, -50%);
  3240. }
  3241. /* End Video Player */
  3242. .account-gallery__container {
  3243. margin: -2px;
  3244. padding: 4px;
  3245. }
  3246. .account-gallery__item {
  3247. float: left;
  3248. width: 96px;
  3249. height: 96px;
  3250. margin: 2px;
  3251. a {
  3252. display: block;
  3253. width: 100%;
  3254. height: 100%;
  3255. background-color: $base-overlay-background;
  3256. background-size: cover;
  3257. background-position: center;
  3258. position: relative;
  3259. }
  3260. }
  3261. .account-section-headline {
  3262. color: $ui-base-lighter-color;
  3263. background: lighten($ui-base-color, 2%);
  3264. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3265. padding: 15px 10px;
  3266. font-size: 14px;
  3267. font-weight: 500;
  3268. position: relative;
  3269. cursor: default;
  3270. &::before,
  3271. &::after {
  3272. display: block;
  3273. content: "";
  3274. position: absolute;
  3275. bottom: 0;
  3276. left: 18px;
  3277. width: 0;
  3278. height: 0;
  3279. border-style: solid;
  3280. border-width: 0 10px 10px;
  3281. border-color: transparent transparent lighten($ui-base-color, 4%);
  3282. }
  3283. &::after {
  3284. bottom: -1px;
  3285. border-color: transparent transparent $ui-base-color;
  3286. }
  3287. }
  3288. ::-webkit-scrollbar-thumb {
  3289. border-radius: 0;
  3290. }
  3291. noscript {
  3292. text-align: center;
  3293. img {
  3294. width: 200px;
  3295. opacity: 0.5;
  3296. animation: flicker 4s infinite;
  3297. }
  3298. div {
  3299. font-size: 14px;
  3300. margin: 30px auto;
  3301. color: $ui-secondary-color;
  3302. max-width: 400px;
  3303. a {
  3304. color: $ui-highlight-color;
  3305. text-decoration: underline;
  3306. &:hover {
  3307. text-decoration: none;
  3308. }
  3309. }
  3310. }
  3311. }
  3312. @keyframes flicker {
  3313. 0% { opacity: 1; }
  3314. 30% { opacity: 0.75; }
  3315. 100% { opacity: 1; }
  3316. }
  3317. @media screen and (max-width: 1024px) and (max-height: 400px) {
  3318. $duration: 400ms;
  3319. $delay: 100ms;
  3320. .tabs-bar,
  3321. .search {
  3322. will-change: margin-top;
  3323. transition: margin-top $duration $delay;
  3324. }
  3325. .navigation-bar {
  3326. will-change: padding-bottom;
  3327. transition: padding-bottom $duration $delay;
  3328. }
  3329. .navigation-bar {
  3330. & > a:first-child {
  3331. will-change: margin-top, margin-left, width;
  3332. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3333. }
  3334. & > .navigation-bar__profile-edit {
  3335. will-change: margin-top;
  3336. transition: margin-top $duration $delay;
  3337. }
  3338. & > .icon-button {
  3339. will-change: opacity;
  3340. transition: opacity $duration $delay;
  3341. }
  3342. }
  3343. .is-composing {
  3344. .tabs-bar,
  3345. .search {
  3346. margin-top: -50px;
  3347. }
  3348. .navigation-bar {
  3349. padding-bottom: 0;
  3350. & > a:first-child {
  3351. margin-top: -50px;
  3352. margin-left: -40px;
  3353. }
  3354. .navigation-bar__profile {
  3355. padding-top: 2px;
  3356. }
  3357. .navigation-bar__profile-edit {
  3358. position: absolute;
  3359. margin-top: -50px;
  3360. }
  3361. .icon-button {
  3362. pointer-events: auto;
  3363. opacity: 1;
  3364. }
  3365. }
  3366. }
  3367. }
  3368. .embed-modal {
  3369. max-width: 80vw;
  3370. max-height: 80vh;
  3371. h4 {
  3372. padding: 30px;
  3373. font-weight: 500;
  3374. font-size: 16px;
  3375. text-align: center;
  3376. }
  3377. .embed-modal__container {
  3378. padding: 10px;
  3379. .hint {
  3380. margin-bottom: 15px;
  3381. }
  3382. .embed-modal__html {
  3383. color: $ui-secondary-color;
  3384. outline: 0;
  3385. box-sizing: border-box;
  3386. display: block;
  3387. width: 100%;
  3388. border: none;
  3389. padding: 10px;
  3390. font-family: 'mastodon-font-monospace', monospace;
  3391. background: $ui-base-color;
  3392. color: $ui-primary-color;
  3393. font-size: 14px;
  3394. margin: 0;
  3395. margin-bottom: 15px;
  3396. &::-moz-focus-inner {
  3397. border: 0;
  3398. }
  3399. &::-moz-focus-inner,
  3400. &:focus,
  3401. &:active {
  3402. outline: 0 !important;
  3403. }
  3404. &:focus {
  3405. background: lighten($ui-base-color, 4%);
  3406. }
  3407. @media screen and (max-width: 600px) {
  3408. font-size: 16px;
  3409. }
  3410. }
  3411. .embed-modal__iframe {
  3412. width: 400px;
  3413. max-width: 100%;
  3414. overflow: hidden;
  3415. border: 0;
  3416. }
  3417. }
  3418. }