The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

5050 line
85 KiB

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