The code powering m.abunchtell.com https://m.abunchtell.com
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

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