The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

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