The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

3794 行
63 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: $ui-secondary-color;
  1864. font-size: 16px;
  1865. font-weight: 500;
  1866. padding-top: 120px;
  1867. text-align: center;
  1868. }
  1869. .video-error-cover {
  1870. align-items: center;
  1871. background: $base-overlay-background;
  1872. color: $primary-text-color;
  1873. cursor: pointer;
  1874. display: flex;
  1875. flex-direction: column;
  1876. height: 100%;
  1877. justify-content: center;
  1878. margin-top: 8px;
  1879. position: relative;
  1880. text-align: center;
  1881. z-index: 100;
  1882. }
  1883. .media-spoiler {
  1884. align-items: center;
  1885. background: $base-overlay-background;
  1886. color: $primary-text-color;
  1887. cursor: pointer;
  1888. display: flex;
  1889. flex-direction: column;
  1890. height: 100%;
  1891. justify-content: center;
  1892. position: relative;
  1893. text-align: center;
  1894. z-index: 100;
  1895. }
  1896. .media-spoiler__warning {
  1897. display: block;
  1898. font-size: 14px;
  1899. }
  1900. .media-spoiler__trigger {
  1901. display: block;
  1902. font-size: 11px;
  1903. font-weight: 500;
  1904. }
  1905. .spoiler-button {
  1906. display: none;
  1907. left: 4px;
  1908. position: absolute;
  1909. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  1910. top: 4px;
  1911. z-index: 100;
  1912. &.spoiler-button--visible {
  1913. display: block;
  1914. }
  1915. }
  1916. .modal-container--preloader {
  1917. background: lighten($ui-base-color, 8%);
  1918. }
  1919. .account--panel {
  1920. background: lighten($ui-base-color, 4%);
  1921. border-top: 1px solid lighten($ui-base-color, 8%);
  1922. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1923. display: flex;
  1924. flex-direction: row;
  1925. padding: 10px 0;
  1926. }
  1927. .account--panel__button,
  1928. .detailed-status__button {
  1929. flex: 1 1 auto;
  1930. text-align: center;
  1931. }
  1932. .column-settings__outer {
  1933. background: lighten($ui-base-color, 8%);
  1934. padding: 15px;
  1935. }
  1936. .column-settings__section {
  1937. color: $ui-primary-color;
  1938. cursor: default;
  1939. display: block;
  1940. font-weight: 500;
  1941. margin-bottom: 10px;
  1942. }
  1943. .column-settings__row {
  1944. .text-btn {
  1945. margin-bottom: 15px;
  1946. }
  1947. }
  1948. .modal-container__nav {
  1949. align-items: center;
  1950. background: rgba($base-overlay-background, 0.5);
  1951. box-sizing: border-box;
  1952. color: $primary-text-color;
  1953. cursor: pointer;
  1954. display: flex;
  1955. font-size: 24px;
  1956. height: 100%;
  1957. padding: 30px 15px;
  1958. position: absolute;
  1959. top: 0;
  1960. }
  1961. .modal-container__nav--left {
  1962. left: -61px;
  1963. }
  1964. .modal-container__nav--right {
  1965. right: -61px;
  1966. }
  1967. .account--follows-info {
  1968. color: $primary-text-color;
  1969. position: absolute;
  1970. top: 10px;
  1971. right: 10px;
  1972. opacity: 0.7;
  1973. display: inline-block;
  1974. vertical-align: top;
  1975. background-color: rgba($base-overlay-background, 0.4);
  1976. text-transform: uppercase;
  1977. font-size: 11px;
  1978. font-weight: 500;
  1979. padding: 4px;
  1980. border-radius: 4px;
  1981. }
  1982. .account--action-button {
  1983. position: absolute;
  1984. top: 10px;
  1985. left: 20px;
  1986. }
  1987. .setting-toggle {
  1988. display: block;
  1989. line-height: 24px;
  1990. }
  1991. .setting-toggle__label,
  1992. .setting-meta__label {
  1993. color: $ui-primary-color;
  1994. display: inline-block;
  1995. margin-bottom: 14px;
  1996. margin-left: 8px;
  1997. vertical-align: middle;
  1998. }
  1999. .setting-meta__label {
  2000. color: $ui-primary-color;
  2001. float: right;
  2002. }
  2003. .empty-column-indicator,
  2004. .error-column {
  2005. color: lighten($ui-base-color, 20%);
  2006. background: $ui-base-color;
  2007. text-align: center;
  2008. padding: 20px;
  2009. font-size: 15px;
  2010. font-weight: 400;
  2011. cursor: default;
  2012. display: flex;
  2013. flex: 1 1 auto;
  2014. align-items: center;
  2015. justify-content: center;
  2016. @supports(display: grid) { // hack to fix Chrome <57
  2017. contain: strict;
  2018. }
  2019. a {
  2020. color: $ui-highlight-color;
  2021. text-decoration: none;
  2022. &:hover {
  2023. text-decoration: underline;
  2024. }
  2025. }
  2026. }
  2027. .error-column {
  2028. flex-direction: column;
  2029. }
  2030. @keyframes pulse {
  2031. 0% {
  2032. opacity: 1;
  2033. }
  2034. 100% {
  2035. opacity: 0.5;
  2036. }
  2037. }
  2038. .pulse-loading {
  2039. animation: pulse 1s ease-in-out infinite;
  2040. animation-direction: alternate;
  2041. }
  2042. .emoji-dialog {
  2043. width: 245px;
  2044. height: 270px;
  2045. background: $simple-background-color;
  2046. box-sizing: border-box;
  2047. border-radius: 4px;
  2048. overflow: hidden;
  2049. position: relative;
  2050. box-shadow: 0 0 8px rgba($base-shadow-color, 0.2);
  2051. .emojione {
  2052. margin: 0;
  2053. width: 100%;
  2054. height: auto;
  2055. }
  2056. .emoji-dialog-header {
  2057. padding: 0 10px;
  2058. ul {
  2059. padding: 0;
  2060. margin: 0;
  2061. list-style: none;
  2062. }
  2063. li {
  2064. display: inline-block;
  2065. box-sizing: border-box;
  2066. padding: 10px 5px;
  2067. cursor: pointer;
  2068. border-bottom: 2px solid transparent;
  2069. .emoji {
  2070. width: 18px;
  2071. height: 18px;
  2072. }
  2073. img,
  2074. svg {
  2075. width: 18px;
  2076. height: 18px;
  2077. filter: grayscale(100%);
  2078. }
  2079. &:hover {
  2080. img,
  2081. svg {
  2082. filter: grayscale(0);
  2083. }
  2084. }
  2085. &.active {
  2086. border-bottom-color: $ui-highlight-color;
  2087. img,
  2088. svg {
  2089. filter: grayscale(0);
  2090. }
  2091. }
  2092. }
  2093. }
  2094. .emoji-row {
  2095. box-sizing: border-box;
  2096. overflow-y: hidden;
  2097. padding-left: 10px;
  2098. .emoji {
  2099. display: inline-block;
  2100. padding: 2.5px;
  2101. border-radius: 4px;
  2102. }
  2103. }
  2104. .emoji-category-header {
  2105. box-sizing: border-box;
  2106. overflow-y: hidden;
  2107. padding: 10px 8px 10px 16px;
  2108. display: table;
  2109. > * {
  2110. display: table-cell;
  2111. vertical-align: middle;
  2112. }
  2113. }
  2114. .emoji-category-title {
  2115. font-size: 12px;
  2116. text-transform: uppercase;
  2117. font-weight: 500;
  2118. color: darken($ui-secondary-color, 18%);
  2119. cursor: default;
  2120. }
  2121. .emoji-category-heading-decoration {
  2122. text-align: right;
  2123. }
  2124. .modifiers {
  2125. list-style: none;
  2126. padding: 0;
  2127. margin: 0;
  2128. vertical-align: middle;
  2129. white-space: nowrap;
  2130. margin-top: 4px;
  2131. li {
  2132. display: inline-block;
  2133. padding: 0 2px;
  2134. &:last-of-type {
  2135. padding-right: 0;
  2136. }
  2137. }
  2138. .modifier {
  2139. display: inline-block;
  2140. border-radius: 10px;
  2141. width: 15px;
  2142. height: 15px;
  2143. position: relative;
  2144. cursor: pointer;
  2145. &.active::after {
  2146. content: "";
  2147. display: block;
  2148. position: absolute;
  2149. width: 7px;
  2150. height: 7px;
  2151. border-radius: 10px;
  2152. border: 2px solid $base-border-color;
  2153. top: 2px;
  2154. left: 2px;
  2155. }
  2156. }
  2157. }
  2158. .emoji-search-wrapper {
  2159. padding: 10px;
  2160. border-bottom: 1px solid lighten($ui-secondary-color, 4%);
  2161. }
  2162. .emoji-search {
  2163. font-size: 14px;
  2164. font-weight: 400;
  2165. padding: 7px 9px;
  2166. font-family: inherit;
  2167. display: block;
  2168. width: 100%;
  2169. background: rgba($ui-secondary-color, 0.3);
  2170. color: darken($ui-secondary-color, 18%);
  2171. border: 1px solid $ui-secondary-color;
  2172. border-radius: 4px;
  2173. }
  2174. .emoji-categories-wrapper {
  2175. position: absolute;
  2176. top: 42px;
  2177. bottom: 0;
  2178. left: 0;
  2179. right: 0;
  2180. }
  2181. .emoji-search-wrapper + .emoji-categories-wrapper {
  2182. top: 93px;
  2183. }
  2184. .emoji-row .emoji {
  2185. img,
  2186. svg {
  2187. transition: transform 60ms ease-in-out;
  2188. }
  2189. &:hover {
  2190. background: lighten($ui-secondary-color, 3%);
  2191. img,
  2192. svg {
  2193. transform: translateZ(0) scale(1.2);
  2194. }
  2195. }
  2196. }
  2197. .emoji {
  2198. width: 22px;
  2199. height: 22px;
  2200. cursor: pointer;
  2201. &:focus {
  2202. outline: 0;
  2203. }
  2204. }
  2205. }
  2206. .upload-area {
  2207. align-items: center;
  2208. background: rgba($base-overlay-background, 0.8);
  2209. display: flex;
  2210. height: 100%;
  2211. justify-content: center;
  2212. left: 0;
  2213. opacity: 0;
  2214. position: absolute;
  2215. top: 0;
  2216. visibility: hidden;
  2217. width: 100%;
  2218. z-index: 2000;
  2219. * {
  2220. pointer-events: none;
  2221. }
  2222. }
  2223. .upload-area__drop {
  2224. width: 320px;
  2225. height: 160px;
  2226. display: flex;
  2227. box-sizing: border-box;
  2228. position: relative;
  2229. padding: 8px;
  2230. }
  2231. .upload-area__background {
  2232. position: absolute;
  2233. top: 0;
  2234. right: 0;
  2235. bottom: 0;
  2236. left: 0;
  2237. z-index: -1;
  2238. border-radius: 4px;
  2239. background: $ui-base-color;
  2240. box-shadow: 0 0 5px rgba($base-shadow-color, 0.2);
  2241. }
  2242. .upload-area__content {
  2243. flex: 1;
  2244. display: flex;
  2245. align-items: center;
  2246. justify-content: center;
  2247. color: $ui-secondary-color;
  2248. font-size: 18px;
  2249. font-weight: 500;
  2250. border: 2px dashed lighten($ui-base-color, 26%);
  2251. border-radius: 4px;
  2252. }
  2253. .upload-progress {
  2254. padding: 10px;
  2255. color: lighten($ui-base-color, 26%);
  2256. overflow: hidden;
  2257. display: flex;
  2258. .fa {
  2259. font-size: 34px;
  2260. margin-right: 10px;
  2261. }
  2262. span {
  2263. font-size: 12px;
  2264. text-transform: uppercase;
  2265. font-weight: 500;
  2266. display: block;
  2267. }
  2268. }
  2269. .upload-progess__message {
  2270. flex: 1 1 auto;
  2271. }
  2272. .upload-progress__backdrop {
  2273. width: 100%;
  2274. height: 6px;
  2275. border-radius: 6px;
  2276. background: lighten($ui-base-color, 26%);
  2277. position: relative;
  2278. margin-top: 5px;
  2279. }
  2280. .upload-progress__tracker {
  2281. position: absolute;
  2282. left: 0;
  2283. top: 0;
  2284. height: 6px;
  2285. background: $ui-highlight-color;
  2286. border-radius: 6px;
  2287. }
  2288. .emoji-button {
  2289. display: block;
  2290. font-size: 24px;
  2291. line-height: 24px;
  2292. margin-left: 2px;
  2293. width: 24px;
  2294. outline: 0;
  2295. cursor: pointer;
  2296. &:active,
  2297. &:focus {
  2298. outline: 0 !important;
  2299. }
  2300. img {
  2301. filter: grayscale(100%);
  2302. opacity: 0.8;
  2303. display: block;
  2304. margin: 0;
  2305. width: 22px;
  2306. height: 22px;
  2307. margin-top: 2px;
  2308. }
  2309. &:hover,
  2310. &:active,
  2311. &:focus {
  2312. img {
  2313. opacity: 1;
  2314. filter: none;
  2315. }
  2316. }
  2317. }
  2318. .dropdown--active .emoji-button img {
  2319. opacity: 1;
  2320. filter: none;
  2321. }
  2322. .privacy-dropdown {
  2323. position: relative;
  2324. }
  2325. .privacy-dropdown__dropdown {
  2326. display: none;
  2327. position: absolute;
  2328. left: 0;
  2329. top: 27px;
  2330. width: 230px;
  2331. background: $simple-background-color;
  2332. border-radius: 0 4px 4px;
  2333. z-index: 2;
  2334. overflow: hidden;
  2335. }
  2336. .privacy-dropdown__option {
  2337. color: $ui-base-color;
  2338. padding: 10px;
  2339. cursor: pointer;
  2340. display: flex;
  2341. &:hover,
  2342. &.active {
  2343. background: $ui-highlight-color;
  2344. color: $primary-text-color;
  2345. .privacy-dropdown__option__content {
  2346. color: $primary-text-color;
  2347. strong {
  2348. color: $primary-text-color;
  2349. }
  2350. }
  2351. }
  2352. &.active:hover {
  2353. background: lighten($ui-highlight-color, 4%);
  2354. }
  2355. }
  2356. .privacy-dropdown__option__icon {
  2357. display: flex;
  2358. align-items: center;
  2359. justify-content: center;
  2360. margin-right: 10px;
  2361. }
  2362. .privacy-dropdown__option__content {
  2363. flex: 1 1 auto;
  2364. color: darken($ui-primary-color, 24%);
  2365. strong {
  2366. font-weight: 500;
  2367. display: block;
  2368. color: $ui-base-color;
  2369. }
  2370. }
  2371. .privacy-dropdown.active {
  2372. .privacy-dropdown__value {
  2373. background: $simple-background-color;
  2374. border-radius: 4px 4px 0 0;
  2375. box-shadow: 0 -4px 4px rgba($base-shadow-color, 0.1);
  2376. }
  2377. .privacy-dropdown__dropdown {
  2378. display: block;
  2379. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2380. }
  2381. }
  2382. .search {
  2383. position: relative;
  2384. }
  2385. .search__input {
  2386. padding-right: 30px;
  2387. color: $ui-secondary-color;
  2388. outline: 0;
  2389. box-sizing: border-box;
  2390. display: block;
  2391. width: 100%;
  2392. border: none;
  2393. padding: 10px;
  2394. padding-right: 30px;
  2395. font-family: inherit;
  2396. background: $ui-base-color;
  2397. color: $ui-primary-color;
  2398. font-size: 14px;
  2399. margin: 0;
  2400. &::-moz-focus-inner {
  2401. border: 0;
  2402. }
  2403. &::-moz-focus-inner,
  2404. &:focus,
  2405. &:active {
  2406. outline: 0 !important;
  2407. }
  2408. &:focus {
  2409. background: lighten($ui-base-color, 4%);
  2410. }
  2411. @media screen and (max-width: 600px) {
  2412. font-size: 16px;
  2413. }
  2414. }
  2415. .search__icon {
  2416. .fa {
  2417. position: absolute;
  2418. top: 10px;
  2419. right: 10px;
  2420. z-index: 2;
  2421. display: inline-block;
  2422. opacity: 0;
  2423. transition: all 100ms linear;
  2424. font-size: 18px;
  2425. width: 18px;
  2426. height: 18px;
  2427. color: $ui-secondary-color;
  2428. cursor: default;
  2429. pointer-events: none;
  2430. &.active {
  2431. pointer-events: auto;
  2432. opacity: 0.3;
  2433. }
  2434. }
  2435. .fa-search {
  2436. transform: translateZ(0) rotate(90deg);
  2437. &.active {
  2438. pointer-events: none;
  2439. transform: translateZ(0) rotate(0deg);
  2440. }
  2441. }
  2442. .fa-times-circle {
  2443. top: 11px;
  2444. transform: translateZ(0) rotate(0deg);
  2445. cursor: pointer;
  2446. &.active {
  2447. transform: translateZ(0) rotate(90deg);
  2448. }
  2449. &:hover {
  2450. color: $primary-text-color;
  2451. }
  2452. }
  2453. }
  2454. .search-results__header {
  2455. color: lighten($ui-base-color, 26%);
  2456. background: lighten($ui-base-color, 2%);
  2457. border-bottom: 1px solid darken($ui-base-color, 4%);
  2458. padding: 15px 10px;
  2459. font-size: 14px;
  2460. font-weight: 500;
  2461. }
  2462. .search-results__hashtag {
  2463. display: block;
  2464. padding: 10px;
  2465. color: $ui-secondary-color;
  2466. text-decoration: none;
  2467. &:hover,
  2468. &:active,
  2469. &:focus {
  2470. color: lighten($ui-secondary-color, 4%);
  2471. text-decoration: underline;
  2472. }
  2473. }
  2474. .modal-root__overlay {
  2475. position: absolute;
  2476. top: 0;
  2477. left: 0;
  2478. right: 0;
  2479. bottom: 0;
  2480. z-index: 9999;
  2481. opacity: 0;
  2482. background: rgba($base-overlay-background, 0.7);
  2483. transform: translateZ(0);
  2484. }
  2485. .modal-root__container {
  2486. position: absolute;
  2487. top: 0;
  2488. left: 0;
  2489. width: 100%;
  2490. height: 100%;
  2491. display: flex;
  2492. flex-direction: column;
  2493. align-items: center;
  2494. justify-content: center;
  2495. align-content: space-around;
  2496. z-index: 9999;
  2497. opacity: 0;
  2498. pointer-events: none;
  2499. user-select: none;
  2500. }
  2501. .modal-root__modal {
  2502. pointer-events: auto;
  2503. display: flex;
  2504. z-index: 9999;
  2505. }
  2506. .media-modal {
  2507. max-width: 80vw;
  2508. max-height: 80vh;
  2509. position: relative;
  2510. .extended-video-player,
  2511. img,
  2512. canvas,
  2513. video {
  2514. max-width: 80vw;
  2515. max-height: 80vh;
  2516. width: auto;
  2517. height: auto;
  2518. margin: auto;
  2519. }
  2520. .extended-video-player,
  2521. video {
  2522. display: flex;
  2523. width: 80vw;
  2524. height: 80vh;
  2525. }
  2526. img,
  2527. canvas {
  2528. display: block;
  2529. background: url('../images/void.png') repeat;
  2530. object-fit: contain;
  2531. }
  2532. .react-swipeable-view-container {
  2533. max-width: 80vw;
  2534. }
  2535. }
  2536. .media-modal__close {
  2537. position: absolute;
  2538. right: 4px;
  2539. top: 4px;
  2540. z-index: 100;
  2541. }
  2542. .onboarding-modal,
  2543. .error-modal {
  2544. background: $ui-secondary-color;
  2545. color: $ui-base-color;
  2546. border-radius: 8px;
  2547. overflow: hidden;
  2548. display: flex;
  2549. flex-direction: column;
  2550. }
  2551. .onboarding-modal__pager {
  2552. height: 80vh;
  2553. width: 80vw;
  2554. max-width: 520px;
  2555. max-height: 420px;
  2556. .react-swipeable-view-container > div {
  2557. width: 100%;
  2558. height: 100%;
  2559. box-sizing: border-box;
  2560. padding: 25px;
  2561. display: none;
  2562. flex-direction: column;
  2563. align-items: center;
  2564. justify-content: center;
  2565. display: flex;
  2566. user-select: text;
  2567. }
  2568. }
  2569. .error-modal__body {
  2570. height: 80vh;
  2571. width: 80vw;
  2572. max-width: 520px;
  2573. max-height: 420px;
  2574. position: relative;
  2575. & > div {
  2576. position: absolute;
  2577. top: 0;
  2578. left: 0;
  2579. width: 100%;
  2580. height: 100%;
  2581. box-sizing: border-box;
  2582. padding: 25px;
  2583. display: none;
  2584. flex-direction: column;
  2585. align-items: center;
  2586. justify-content: center;
  2587. display: flex;
  2588. opacity: 0;
  2589. user-select: text;
  2590. }
  2591. }
  2592. .error-modal__body {
  2593. display: flex;
  2594. flex-direction: column;
  2595. justify-content: center;
  2596. align-items: center;
  2597. text-align: center;
  2598. }
  2599. @media screen and (max-width: 550px) {
  2600. .onboarding-modal {
  2601. width: 100%;
  2602. height: 100%;
  2603. border-radius: 0;
  2604. }
  2605. .onboarding-modal__pager {
  2606. width: 100%;
  2607. height: auto;
  2608. max-width: none;
  2609. max-height: none;
  2610. flex: 1 1 auto;
  2611. }
  2612. }
  2613. .onboarding-modal__paginator,
  2614. .error-modal__footer {
  2615. flex: 0 0 auto;
  2616. background: darken($ui-secondary-color, 8%);
  2617. display: flex;
  2618. padding: 25px;
  2619. & > div {
  2620. min-width: 33px;
  2621. }
  2622. .onboarding-modal__nav,
  2623. .error-modal__nav {
  2624. color: darken($ui-secondary-color, 34%);
  2625. background-color: transparent;
  2626. border: 0;
  2627. font-size: 14px;
  2628. font-weight: 500;
  2629. padding: 0;
  2630. line-height: inherit;
  2631. height: auto;
  2632. &:hover,
  2633. &:focus,
  2634. &:active {
  2635. color: darken($ui-secondary-color, 38%);
  2636. }
  2637. &.onboarding-modal__done,
  2638. &.onboarding-modal__next {
  2639. color: $ui-highlight-color;
  2640. }
  2641. }
  2642. }
  2643. .error-modal__footer {
  2644. justify-content: center;
  2645. }
  2646. .onboarding-modal__dots {
  2647. flex: 1 1 auto;
  2648. display: flex;
  2649. align-items: center;
  2650. justify-content: center;
  2651. }
  2652. .onboarding-modal__dot {
  2653. width: 14px;
  2654. height: 14px;
  2655. border-radius: 14px;
  2656. background: darken($ui-secondary-color, 16%);
  2657. margin: 0 3px;
  2658. cursor: pointer;
  2659. &:hover {
  2660. background: darken($ui-secondary-color, 18%);
  2661. }
  2662. &.active {
  2663. cursor: default;
  2664. background: darken($ui-secondary-color, 24%);
  2665. }
  2666. }
  2667. .onboarding-modal__page__wrapper {
  2668. pointer-events: none;
  2669. &.onboarding-modal__page__wrapper--active {
  2670. pointer-events: auto;
  2671. }
  2672. }
  2673. .onboarding-modal__page {
  2674. cursor: default;
  2675. line-height: 21px;
  2676. h1 {
  2677. font-size: 18px;
  2678. font-weight: 500;
  2679. color: $ui-base-color;
  2680. margin-bottom: 20px;
  2681. }
  2682. a {
  2683. color: $ui-highlight-color;
  2684. &:hover,
  2685. &:focus,
  2686. &:active {
  2687. color: lighten($ui-highlight-color, 4%);
  2688. }
  2689. }
  2690. p {
  2691. font-size: 16px;
  2692. color: lighten($ui-base-color, 8%);
  2693. margin-top: 10px;
  2694. margin-bottom: 10px;
  2695. &:last-child {
  2696. margin-bottom: 0;
  2697. }
  2698. strong {
  2699. font-weight: 500;
  2700. background: $ui-base-color;
  2701. color: $ui-secondary-color;
  2702. border-radius: 4px;
  2703. font-size: 14px;
  2704. padding: 3px 6px;
  2705. }
  2706. }
  2707. }
  2708. .onboarding-modal__page-one {
  2709. display: flex;
  2710. align-items: center;
  2711. }
  2712. .onboarding-modal__page-one__elephant-friend {
  2713. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2714. width: 155px;
  2715. height: 193px;
  2716. margin-right: 15px;
  2717. }
  2718. @media screen and (max-width: 400px) {
  2719. .onboarding-modal__page-one {
  2720. flex-direction: column;
  2721. align-items: normal;
  2722. }
  2723. .onboarding-modal__page-one__elephant-friend {
  2724. width: 100%;
  2725. height: 30vh;
  2726. max-height: 160px;
  2727. margin-bottom: 5vh;
  2728. }
  2729. }
  2730. .onboarding-modal__page-two,
  2731. .onboarding-modal__page-three,
  2732. .onboarding-modal__page-four,
  2733. .onboarding-modal__page-five {
  2734. p {
  2735. text-align: left;
  2736. }
  2737. .figure {
  2738. background: darken($ui-base-color, 8%);
  2739. color: $ui-secondary-color;
  2740. margin-bottom: 20px;
  2741. border-radius: 4px;
  2742. padding: 10px;
  2743. text-align: center;
  2744. font-size: 14px;
  2745. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2746. .onboarding-modal__image {
  2747. border-radius: 4px;
  2748. margin-bottom: 10px;
  2749. }
  2750. &.non-interactive {
  2751. pointer-events: none;
  2752. text-align: left;
  2753. }
  2754. }
  2755. }
  2756. .onboarding-modal__page-four__columns {
  2757. .row {
  2758. display: flex;
  2759. margin-bottom: 20px;
  2760. & > div {
  2761. flex: 1 1 0;
  2762. margin: 0 10px;
  2763. &:first-child {
  2764. margin-left: 0;
  2765. }
  2766. &:last-child {
  2767. margin-right: 0;
  2768. }
  2769. p {
  2770. text-align: center;
  2771. }
  2772. }
  2773. &:last-child {
  2774. margin-bottom: 0;
  2775. }
  2776. }
  2777. .column-header {
  2778. color: $primary-text-color;
  2779. }
  2780. }
  2781. @media screen and (max-width: 320px) and (max-height: 600px) {
  2782. .onboarding-modal__page p {
  2783. font-size: 14px;
  2784. line-height: 20px;
  2785. }
  2786. .onboarding-modal__page-two .figure,
  2787. .onboarding-modal__page-three .figure,
  2788. .onboarding-modal__page-four .figure,
  2789. .onboarding-modal__page-five .figure {
  2790. font-size: 12px;
  2791. margin-bottom: 10px;
  2792. }
  2793. .onboarding-modal__page-four__columns .row {
  2794. margin-bottom: 10px;
  2795. }
  2796. .onboarding-modal__page-four__columns .column-header {
  2797. padding: 5px;
  2798. font-size: 12px;
  2799. }
  2800. }
  2801. .onboarding-modal__image {
  2802. border-radius: 8px;
  2803. width: 70vw;
  2804. max-width: 450px;
  2805. max-height: auto;
  2806. display: block;
  2807. margin: auto;
  2808. margin-bottom: 20px;
  2809. }
  2810. .onboard-sliders {
  2811. display: inline-block;
  2812. max-width: 30px;
  2813. max-height: auto;
  2814. margin-left: 10px;
  2815. }
  2816. .boost-modal,
  2817. .confirmation-modal,
  2818. .report-modal {
  2819. background: lighten($ui-secondary-color, 8%);
  2820. color: $ui-base-color;
  2821. border-radius: 8px;
  2822. overflow: hidden;
  2823. max-width: 90vw;
  2824. width: 480px;
  2825. position: relative;
  2826. flex-direction: column;
  2827. .status__display-name {
  2828. display: block;
  2829. max-width: 100%;
  2830. padding-right: 25px;
  2831. }
  2832. .status__avatar {
  2833. height: 28px;
  2834. left: 10px;
  2835. position: absolute;
  2836. top: 10px;
  2837. width: 48px;
  2838. }
  2839. }
  2840. .boost-modal__container {
  2841. overflow-x: scroll;
  2842. padding: 10px;
  2843. .status {
  2844. user-select: text;
  2845. border-bottom: 0;
  2846. }
  2847. }
  2848. .boost-modal__action-bar,
  2849. .confirmation-modal__action-bar,
  2850. .report-modal__action-bar {
  2851. display: flex;
  2852. justify-content: space-between;
  2853. background: $ui-secondary-color;
  2854. padding: 10px;
  2855. line-height: 36px;
  2856. & > div {
  2857. flex: 1 1 auto;
  2858. text-align: right;
  2859. color: lighten($ui-base-color, 33%);
  2860. padding-right: 10px;
  2861. }
  2862. .button {
  2863. flex: 0 0 auto;
  2864. }
  2865. }
  2866. .boost-modal__status-header {
  2867. font-size: 15px;
  2868. }
  2869. .boost-modal__status-time {
  2870. float: right;
  2871. font-size: 14px;
  2872. }
  2873. .confirmation-modal {
  2874. max-width: 280px;
  2875. @media screen and (min-width: 480px) {
  2876. max-width: 380px;
  2877. }
  2878. }
  2879. .report-modal__statuses,
  2880. .report-modal__comment {
  2881. padding: 10px;
  2882. }
  2883. .report-modal__statuses {
  2884. min-height: 20vh;
  2885. max-height: 40vh;
  2886. overflow-y: auto;
  2887. overflow-x: hidden;
  2888. }
  2889. .report-modal__comment {
  2890. .setting-text {
  2891. margin-top: 10px;
  2892. }
  2893. }
  2894. .confirmation-modal__action-bar {
  2895. .confirmation-modal__cancel-button {
  2896. background-color: transparent;
  2897. color: darken($ui-secondary-color, 34%);
  2898. font-size: 14px;
  2899. font-weight: 500;
  2900. &:hover,
  2901. &:focus,
  2902. &:active {
  2903. color: darken($ui-secondary-color, 38%);
  2904. }
  2905. }
  2906. }
  2907. .confirmation-modal__container,
  2908. .report-modal__target {
  2909. padding: 30px;
  2910. font-size: 16px;
  2911. text-align: center;
  2912. strong {
  2913. font-weight: 500;
  2914. }
  2915. }
  2916. .loading-bar {
  2917. background-color: $ui-highlight-color;
  2918. height: 3px;
  2919. position: absolute;
  2920. top: 0;
  2921. left: 0;
  2922. }
  2923. .media-gallery__gifv__label {
  2924. display: block;
  2925. position: absolute;
  2926. color: $primary-text-color;
  2927. background: rgba($base-overlay-background, 0.5);
  2928. bottom: 6px;
  2929. left: 6px;
  2930. padding: 2px 6px;
  2931. border-radius: 2px;
  2932. font-size: 11px;
  2933. font-weight: 600;
  2934. z-index: 1;
  2935. pointer-events: none;
  2936. opacity: 0.9;
  2937. transition: opacity 0.1s ease;
  2938. }
  2939. .media-gallery__gifv {
  2940. &.autoplay {
  2941. .media-gallery__gifv__label {
  2942. display: none;
  2943. }
  2944. }
  2945. &:hover {
  2946. .media-gallery__gifv__label {
  2947. opacity: 1;
  2948. }
  2949. }
  2950. }
  2951. .attachment-list {
  2952. display: flex;
  2953. font-size: 14px;
  2954. border: 1px solid lighten($ui-base-color, 8%);
  2955. border-radius: 4px;
  2956. margin-top: 14px;
  2957. overflow: hidden;
  2958. }
  2959. .attachment-list__icon {
  2960. flex: 0 0 auto;
  2961. color: lighten($ui-base-color, 26%);
  2962. padding: 8px 18px;
  2963. cursor: default;
  2964. border-right: 1px solid lighten($ui-base-color, 8%);
  2965. display: flex;
  2966. flex-direction: column;
  2967. align-items: center;
  2968. justify-content: center;
  2969. font-size: 26px;
  2970. .fa {
  2971. display: block;
  2972. }
  2973. }
  2974. .attachment-list__list {
  2975. list-style: none;
  2976. padding: 4px 0;
  2977. padding-left: 8px;
  2978. display: flex;
  2979. flex-direction: column;
  2980. justify-content: center;
  2981. li {
  2982. display: block;
  2983. padding: 4px 0;
  2984. }
  2985. a {
  2986. text-decoration: none;
  2987. color: lighten($ui-base-color, 26%);
  2988. font-weight: 500;
  2989. &:hover {
  2990. text-decoration: underline;
  2991. }
  2992. }
  2993. }
  2994. /* Media Gallery */
  2995. .media-gallery {
  2996. box-sizing: border-box;
  2997. margin-top: 8px;
  2998. overflow: hidden;
  2999. position: relative;
  3000. width: 100%;
  3001. }
  3002. .media-gallery__item {
  3003. border: none;
  3004. box-sizing: border-box;
  3005. display: block;
  3006. float: left;
  3007. position: relative;
  3008. }
  3009. .media-gallery__item-thumbnail {
  3010. cursor: zoom-in;
  3011. display: block;
  3012. text-decoration: none;
  3013. height: 100%;
  3014. &,
  3015. img {
  3016. width: 100%;
  3017. height: 100%;
  3018. object-fit: cover;
  3019. }
  3020. }
  3021. .media-gallery__gifv {
  3022. height: 100%;
  3023. overflow: hidden;
  3024. position: relative;
  3025. width: 100%;
  3026. }
  3027. .media-gallery__item-gifv-thumbnail {
  3028. cursor: zoom-in;
  3029. height: 100%;
  3030. object-fit: cover;
  3031. position: relative;
  3032. top: 50%;
  3033. transform: translateY(-50%);
  3034. width: 100%;
  3035. z-index: 1;
  3036. }
  3037. .media-gallery__item-thumbnail-label {
  3038. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3039. clip: rect(1px, 1px, 1px, 1px);
  3040. overflow: hidden;
  3041. position: absolute;
  3042. }
  3043. /* End Media Gallery */
  3044. /* Status Video Player */
  3045. .status__video-player {
  3046. background: $base-overlay-background;
  3047. box-sizing: border-box;
  3048. cursor: default; /* May not be needed */
  3049. margin-top: 8px;
  3050. overflow: hidden;
  3051. position: relative;
  3052. }
  3053. .status__video-player-video {
  3054. height: 100%;
  3055. object-fit: cover;
  3056. position: relative;
  3057. top: 50%;
  3058. transform: translateY(-50%);
  3059. width: 100%;
  3060. z-index: 1;
  3061. }
  3062. .status__video-player-expand,
  3063. .status__video-player-mute {
  3064. color: $primary-text-color;
  3065. opacity: 0.8;
  3066. position: absolute;
  3067. right: 4px;
  3068. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3069. }
  3070. .status__video-player-spoiler {
  3071. display: none;
  3072. color: $primary-text-color;
  3073. left: 4px;
  3074. position: absolute;
  3075. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3076. top: 4px;
  3077. z-index: 100;
  3078. &.status__video-player-spoiler--visible {
  3079. display: block;
  3080. }
  3081. }
  3082. .status__video-player-expand {
  3083. bottom: 4px;
  3084. z-index: 100;
  3085. }
  3086. .status__video-player-mute {
  3087. top: 4px;
  3088. z-index: 5;
  3089. }
  3090. .media-spoiler-video {
  3091. background-size: cover;
  3092. background-repeat: no-repeat;
  3093. background-position: center;
  3094. cursor: pointer;
  3095. margin-top: 8px;
  3096. position: relative;
  3097. }
  3098. .media-spoiler-video-play-icon {
  3099. border-radius: 100px;
  3100. color: rgba($primary-text-color, 0.8);
  3101. font-size: 36px;
  3102. left: 50%;
  3103. padding: 5px;
  3104. position: absolute;
  3105. top: 50%;
  3106. transform: translate(-50%, -50%);
  3107. }
  3108. /* End Video Player */
  3109. .account-gallery__container {
  3110. margin: -2px;
  3111. padding: 4px;
  3112. }
  3113. .account-gallery__item {
  3114. float: left;
  3115. width: 96px;
  3116. height: 96px;
  3117. margin: 2px;
  3118. a {
  3119. display: block;
  3120. width: 100%;
  3121. height: 100%;
  3122. background-color: $base-overlay-background;
  3123. background-size: cover;
  3124. background-position: center;
  3125. position: relative;
  3126. }
  3127. }
  3128. .account-section-headline {
  3129. color: lighten($ui-base-color, 26%);
  3130. background: lighten($ui-base-color, 2%);
  3131. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3132. padding: 15px 10px;
  3133. font-size: 14px;
  3134. font-weight: 500;
  3135. position: relative;
  3136. cursor: default;
  3137. &::before,
  3138. &::after {
  3139. display: block;
  3140. content: "";
  3141. position: absolute;
  3142. bottom: 0;
  3143. left: 18px;
  3144. width: 0;
  3145. height: 0;
  3146. border-style: solid;
  3147. border-width: 0 10px 10px;
  3148. border-color: transparent transparent lighten($ui-base-color, 4%);
  3149. }
  3150. &::after {
  3151. bottom: -1px;
  3152. border-color: transparent transparent $ui-base-color;
  3153. }
  3154. }
  3155. ::-webkit-scrollbar-thumb {
  3156. border-radius: 0;
  3157. }
  3158. noscript {
  3159. text-align: center;
  3160. div {
  3161. font-size: 20px;
  3162. margin: 20px 0;
  3163. }
  3164. }
  3165. @media screen and (max-width: 1024px) and (max-height: 400px) {
  3166. $duration: 400ms;
  3167. $delay: 100ms;
  3168. .tabs-bar,
  3169. .search {
  3170. will-change: margin-top;
  3171. transition: margin-top $duration $delay;
  3172. }
  3173. .navigation-bar {
  3174. will-change: padding-bottom;
  3175. transition: padding-bottom $duration $delay;
  3176. }
  3177. .navigation-bar {
  3178. & > a:first-child {
  3179. will-change: margin-top, margin-left, width;
  3180. transition: margin-top $duration $delay, margin-left $duration ($duration + $delay);
  3181. }
  3182. & > .navigation-bar__profile-edit {
  3183. will-change: margin-top;
  3184. transition: margin-top $duration $delay;
  3185. }
  3186. & > .icon-button {
  3187. will-change: opacity;
  3188. transition: opacity $duration $delay;
  3189. }
  3190. }
  3191. .is-composing {
  3192. .tabs-bar,
  3193. .search {
  3194. margin-top: -50px;
  3195. }
  3196. .navigation-bar {
  3197. padding-bottom: 0;
  3198. & > a:first-child {
  3199. margin-top: -50px;
  3200. margin-left: -40px;
  3201. }
  3202. .navigation-bar__profile {
  3203. padding-top: 2px;
  3204. }
  3205. .navigation-bar__profile-edit {
  3206. position: absolute;
  3207. margin-top: -50px;
  3208. }
  3209. .icon-button {
  3210. pointer-events: auto;
  3211. opacity: 1;
  3212. }
  3213. }
  3214. }
  3215. }