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.
 
 
 
 

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