You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3949 lines
66 KiB

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