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.
 
 
 
 

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