The code powering m.abunchtell.com https://m.abunchtell.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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