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

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