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.
 
 
 
 

3955 line
65 KiB

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