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.
 
 
 
 

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