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.

3916 lines
65 KiB

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