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.

3914 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. .advanced-options-dropdown__dropdown {
  2489. display: block;
  2490. box-shadow: 2px 4px 6px rgba($base-shadow-color, 0.1);
  2491. }
  2492. }
  2493. .search {
  2494. position: relative;
  2495. margin-bottom: 10px;
  2496. }
  2497. .search__input {
  2498. padding-right: 30px;
  2499. color: $ui-secondary-color;
  2500. outline: 0;
  2501. box-sizing: border-box;
  2502. display: block;
  2503. width: 100%;
  2504. border: none;
  2505. padding: 10px;
  2506. padding-right: 30px;
  2507. font-family: inherit;
  2508. background: $ui-base-color;
  2509. color: $ui-primary-color;
  2510. font-size: 14px;
  2511. margin: 0;
  2512. &::-moz-focus-inner {
  2513. border: 0;
  2514. }
  2515. &::-moz-focus-inner,
  2516. &:focus,
  2517. &:active {
  2518. outline: 0 !important;
  2519. }
  2520. &:focus {
  2521. background: lighten($ui-base-color, 4%);
  2522. }
  2523. @include limited-single-column('screen and (max-width: 600px)') {
  2524. font-size: 16px;
  2525. }
  2526. }
  2527. .search__icon {
  2528. .fa {
  2529. position: absolute;
  2530. top: 10px;
  2531. right: 10px;
  2532. z-index: 2;
  2533. display: inline-block;
  2534. opacity: 0;
  2535. transition: all 100ms linear;
  2536. font-size: 18px;
  2537. width: 18px;
  2538. height: 18px;
  2539. color: $ui-secondary-color;
  2540. cursor: default;
  2541. pointer-events: none;
  2542. &.active {
  2543. pointer-events: auto;
  2544. opacity: 0.3;
  2545. }
  2546. }
  2547. .fa-search {
  2548. transform: translateZ(0) rotate(90deg);
  2549. &.active {
  2550. pointer-events: none;
  2551. transform: translateZ(0) rotate(0deg);
  2552. }
  2553. }
  2554. .fa-times-circle {
  2555. top: 11px;
  2556. transform: translateZ(0) rotate(0deg);
  2557. cursor: pointer;
  2558. &.active {
  2559. transform: translateZ(0) rotate(90deg);
  2560. }
  2561. &:hover {
  2562. color: $primary-text-color;
  2563. }
  2564. }
  2565. }
  2566. .search-results__header {
  2567. color: lighten($ui-base-color, 26%);
  2568. background: lighten($ui-base-color, 2%);
  2569. border-bottom: 1px solid darken($ui-base-color, 4%);
  2570. padding: 15px 10px;
  2571. font-size: 14px;
  2572. font-weight: 500;
  2573. }
  2574. .search-results__section {
  2575. background: $ui-base-color;
  2576. }
  2577. .search-results__hashtag {
  2578. display: block;
  2579. padding: 10px;
  2580. color: $ui-secondary-color;
  2581. text-decoration: none;
  2582. &:hover,
  2583. &:active,
  2584. &:focus {
  2585. color: lighten($ui-secondary-color, 4%);
  2586. text-decoration: underline;
  2587. }
  2588. }
  2589. .modal-root__overlay {
  2590. position: absolute;
  2591. top: 0;
  2592. left: 0;
  2593. right: 0;
  2594. bottom: 0;
  2595. z-index: 9999;
  2596. opacity: 0;
  2597. background: rgba($base-overlay-background, 0.7);
  2598. transform: translateZ(0);
  2599. }
  2600. .modal-root__container {
  2601. position: absolute;
  2602. top: 0;
  2603. left: 0;
  2604. width: 100%;
  2605. height: 100%;
  2606. display: flex;
  2607. flex-direction: column;
  2608. align-items: center;
  2609. justify-content: center;
  2610. align-content: space-around;
  2611. z-index: 9999;
  2612. opacity: 0;
  2613. pointer-events: none;
  2614. user-select: none;
  2615. }
  2616. .modal-root__modal {
  2617. pointer-events: auto;
  2618. display: flex;
  2619. z-index: 9999;
  2620. }
  2621. .media-modal {
  2622. max-width: 80vw;
  2623. max-height: 80vh;
  2624. position: relative;
  2625. img,
  2626. canvas,
  2627. video {
  2628. max-width: 80vw;
  2629. max-height: 80vh;
  2630. width: auto;
  2631. height: auto;
  2632. }
  2633. img,
  2634. canvas {
  2635. display: block;
  2636. background: url('../images/void.png') repeat;
  2637. }
  2638. }
  2639. .media-modal__close {
  2640. position: absolute;
  2641. right: 4px;
  2642. top: 4px;
  2643. z-index: 100;
  2644. }
  2645. .onboarding-modal {
  2646. background: $ui-secondary-color;
  2647. color: $ui-base-color;
  2648. border-radius: 8px;
  2649. overflow: hidden;
  2650. display: flex;
  2651. flex-direction: column;
  2652. }
  2653. .onboarding-modal__pager {
  2654. height: 80vh;
  2655. width: 80vw;
  2656. max-width: 520px;
  2657. max-height: 420px;
  2658. position: relative;
  2659. & > div {
  2660. position: absolute;
  2661. top: 0;
  2662. left: 0;
  2663. width: 100%;
  2664. height: 100%;
  2665. box-sizing: border-box;
  2666. padding: 25px;
  2667. display: none;
  2668. flex-direction: column;
  2669. align-items: center;
  2670. justify-content: center;
  2671. display: flex;
  2672. opacity: 0;
  2673. user-select: text;
  2674. }
  2675. }
  2676. @media screen and (max-width: 550px) {
  2677. .onboarding-modal {
  2678. width: 100%;
  2679. height: 100%;
  2680. border-radius: 0;
  2681. }
  2682. .onboarding-modal__pager {
  2683. width: 100%;
  2684. height: auto;
  2685. max-width: none;
  2686. max-height: none;
  2687. flex: 1 1 auto;
  2688. }
  2689. }
  2690. .onboarding-modal__paginator {
  2691. flex: 0 0 auto;
  2692. background: darken($ui-secondary-color, 8%);
  2693. display: flex;
  2694. padding: 25px;
  2695. & > div {
  2696. min-width: 33px;
  2697. }
  2698. .onboarding-modal__nav {
  2699. color: darken($ui-secondary-color, 34%);
  2700. background-color: transparent;
  2701. border: 0;
  2702. font-size: 14px;
  2703. font-weight: 500;
  2704. padding: 0;
  2705. line-height: inherit;
  2706. height: auto;
  2707. &:hover,
  2708. &:focus,
  2709. &:active {
  2710. color: darken($ui-secondary-color, 38%);
  2711. }
  2712. &.onboarding-modal__done,
  2713. &.onboarding-modal__next {
  2714. color: $ui-highlight-color;
  2715. }
  2716. }
  2717. }
  2718. .onboarding-modal__dots {
  2719. flex: 1 1 auto;
  2720. display: flex;
  2721. align-items: center;
  2722. justify-content: center;
  2723. }
  2724. .onboarding-modal__dot {
  2725. width: 14px;
  2726. height: 14px;
  2727. border-radius: 14px;
  2728. background: darken($ui-secondary-color, 16%);
  2729. margin: 0 3px;
  2730. cursor: pointer;
  2731. &:hover {
  2732. background: darken($ui-secondary-color, 18%);
  2733. }
  2734. &.active {
  2735. cursor: default;
  2736. background: darken($ui-secondary-color, 24%);
  2737. }
  2738. }
  2739. .onboarding-modal__page__wrapper {
  2740. pointer-events: none;
  2741. &.onboarding-modal__page__wrapper--active {
  2742. pointer-events: auto;
  2743. }
  2744. }
  2745. .onboarding-modal__page {
  2746. cursor: default;
  2747. line-height: 21px;
  2748. h1 {
  2749. font-size: 18px;
  2750. font-weight: 500;
  2751. color: $ui-base-color;
  2752. margin-bottom: 20px;
  2753. }
  2754. a {
  2755. color: $ui-highlight-color;
  2756. &:hover,
  2757. &:focus,
  2758. &:active {
  2759. color: lighten($ui-highlight-color, 4%);
  2760. }
  2761. }
  2762. p {
  2763. font-size: 16px;
  2764. color: lighten($ui-base-color, 8%);
  2765. margin-top: 10px;
  2766. margin-bottom: 10px;
  2767. &:last-child {
  2768. margin-bottom: 0;
  2769. }
  2770. strong {
  2771. font-weight: 500;
  2772. background: $ui-base-color;
  2773. color: $ui-secondary-color;
  2774. border-radius: 4px;
  2775. font-size: 14px;
  2776. padding: 3px 6px;
  2777. }
  2778. }
  2779. }
  2780. .onboarding-modal__page-one {
  2781. display: flex;
  2782. align-items: center;
  2783. }
  2784. .onboarding-modal__page-one__elephant-friend {
  2785. background: url('../images/elephant-friend-1.png') no-repeat center center / contain;
  2786. width: 155px;
  2787. height: 193px;
  2788. margin-right: 15px;
  2789. }
  2790. @media screen and (max-width: 400px) {
  2791. .onboarding-modal__page-one {
  2792. flex-direction: column;
  2793. align-items: normal;
  2794. }
  2795. .onboarding-modal__page-one__elephant-friend {
  2796. width: 100%;
  2797. height: 30vh;
  2798. max-height: 160px;
  2799. margin-bottom: 5vh;
  2800. }
  2801. }
  2802. .onboarding-modal__page-two,
  2803. .onboarding-modal__page-three,
  2804. .onboarding-modal__page-four,
  2805. .onboarding-modal__page-five {
  2806. p {
  2807. text-align: left;
  2808. }
  2809. .figure {
  2810. background: darken($ui-base-color, 8%);
  2811. color: $ui-secondary-color;
  2812. margin-bottom: 20px;
  2813. border-radius: 4px;
  2814. padding: 10px;
  2815. text-align: center;
  2816. font-size: 14px;
  2817. box-shadow: 1px 2px 6px rgba($base-shadow-color, 0.3);
  2818. .onboarding-modal__image {
  2819. border-radius: 4px;
  2820. margin-bottom: 10px;
  2821. }
  2822. &.non-interactive {
  2823. pointer-events: none;
  2824. text-align: left;
  2825. }
  2826. }
  2827. }
  2828. .onboarding-modal__page-four__columns {
  2829. .row {
  2830. display: flex;
  2831. margin-bottom: 20px;
  2832. & > div {
  2833. flex: 1 1 0;
  2834. margin: 0 10px;
  2835. &:first-child {
  2836. margin-left: 0;
  2837. }
  2838. &:last-child {
  2839. margin-right: 0;
  2840. }
  2841. p {
  2842. text-align: center;
  2843. }
  2844. }
  2845. &:last-child {
  2846. margin-bottom: 0;
  2847. }
  2848. }
  2849. .column-header {
  2850. color: $primary-text-color;
  2851. }
  2852. }
  2853. @media screen and (max-width: 320px) and (max-height: 600px) {
  2854. .onboarding-modal__page p {
  2855. font-size: 14px;
  2856. line-height: 20px;
  2857. }
  2858. .onboarding-modal__page-two .figure,
  2859. .onboarding-modal__page-three .figure,
  2860. .onboarding-modal__page-four .figure,
  2861. .onboarding-modal__page-five .figure {
  2862. font-size: 12px;
  2863. margin-bottom: 10px;
  2864. }
  2865. .onboarding-modal__page-four__columns .row {
  2866. margin-bottom: 10px;
  2867. }
  2868. .onboarding-modal__page-four__columns .column-header {
  2869. padding: 5px;
  2870. font-size: 12px;
  2871. }
  2872. }
  2873. .onboarding-modal__image {
  2874. border-radius: 8px;
  2875. width: 70vw;
  2876. max-width: 450px;
  2877. max-height: auto;
  2878. display: block;
  2879. margin: auto;
  2880. margin-bottom: 20px;
  2881. }
  2882. .settings-modal {
  2883. position: relative;
  2884. display: flex;
  2885. flex-direction: row;
  2886. background: $ui-secondary-color;
  2887. color: $ui-base-color;
  2888. border-radius: 8px;
  2889. height: 80vh;
  2890. width: 80vw;
  2891. max-width: 740px;
  2892. max-height: 450px;
  2893. overflow: hidden;
  2894. label {
  2895. display: block;
  2896. }
  2897. h1 {
  2898. font-size: 18px;
  2899. font-weight: 500;
  2900. line-height: 24px;
  2901. margin-bottom: 20px;
  2902. }
  2903. h2 {
  2904. font-size: 15px;
  2905. font-weight: 500;
  2906. line-height: 20px;
  2907. margin-top: 20px;
  2908. margin-bottom: 10px;
  2909. }
  2910. }
  2911. .settings-modal__navigation {
  2912. background: $primary-text-color;
  2913. color: $ui-base-color;
  2914. width: 200px;
  2915. font-size: 15px;
  2916. line-height: 20px;
  2917. overflow-y: auto;
  2918. .settings-modal__navigation-item, .settings-modal__navigation-close {
  2919. display: block;
  2920. padding: 15px 20px;
  2921. cursor: pointer;
  2922. outline: none;
  2923. text-decoration: none;
  2924. }
  2925. .settings-modal__navigation-item {
  2926. background: $primary-text-color;
  2927. color: inherit;
  2928. border-bottom: 1px $ui-primary-color solid;
  2929. transition: background .3s;
  2930. &:hover {
  2931. background: $ui-secondary-color;
  2932. }
  2933. &.active {
  2934. background: $ui-highlight-color;
  2935. color: $primary-text-color;
  2936. }
  2937. }
  2938. .settings-modal__navigation-close {
  2939. background: $error-value-color;
  2940. color: $primary-text-color;
  2941. }
  2942. }
  2943. .settings-modal__content {
  2944. display: block;
  2945. flex: auto;
  2946. padding: 15px 20px 15px 20px;
  2947. width: 360px;
  2948. overflow-y: auto;
  2949. select {
  2950. margin-bottom: 5px;
  2951. }
  2952. }
  2953. .onboard-sliders {
  2954. display: inline-block;
  2955. max-width: 30px;
  2956. max-height: auto;
  2957. margin-left: 10px;
  2958. }
  2959. .boost-modal,
  2960. .confirmation-modal,
  2961. .report-modal {
  2962. background: lighten($ui-secondary-color, 8%);
  2963. color: $ui-base-color;
  2964. border-radius: 8px;
  2965. overflow: hidden;
  2966. max-width: 90vw;
  2967. width: 480px;
  2968. position: relative;
  2969. flex-direction: column;
  2970. .status__display-name {
  2971. display: block;
  2972. max-width: 100%;
  2973. padding-right: 25px;
  2974. }
  2975. .status__avatar {
  2976. height: 28px;
  2977. left: 10px;
  2978. position: absolute;
  2979. top: 10px;
  2980. width: 48px;
  2981. }
  2982. }
  2983. .boost-modal__container {
  2984. overflow-x: scroll;
  2985. padding: 10px;
  2986. .status {
  2987. user-select: text;
  2988. border-bottom: 0;
  2989. }
  2990. }
  2991. .boost-modal__action-bar,
  2992. .confirmation-modal__action-bar,
  2993. .report-modal__action-bar {
  2994. display: flex;
  2995. justify-content: space-between;
  2996. background: $ui-secondary-color;
  2997. padding: 10px;
  2998. line-height: 36px;
  2999. & > div {
  3000. flex: 1 1 auto;
  3001. text-align: right;
  3002. color: lighten($ui-base-color, 33%);
  3003. padding-right: 10px;
  3004. }
  3005. .button {
  3006. flex: 0 0 auto;
  3007. }
  3008. }
  3009. .boost-modal__status-header {
  3010. font-size: 15px;
  3011. }
  3012. .boost-modal__status-time {
  3013. float: right;
  3014. font-size: 14px;
  3015. }
  3016. .confirmation-modal {
  3017. max-width: 280px;
  3018. @media screen and (min-width: 480px) {
  3019. max-width: 380px;
  3020. }
  3021. }
  3022. .report-modal__statuses,
  3023. .report-modal__comment {
  3024. padding: 10px;
  3025. }
  3026. .report-modal__statuses {
  3027. min-height: 20vh;
  3028. overflow-y: auto;
  3029. overflow-x: hidden;
  3030. }
  3031. .report-modal__comment {
  3032. .setting-text {
  3033. margin-top: 10px;
  3034. }
  3035. }
  3036. .confirmation-modal__action-bar {
  3037. .confirmation-modal__cancel-button {
  3038. background-color: transparent;
  3039. color: darken($ui-secondary-color, 34%);
  3040. font-size: 14px;
  3041. font-weight: 500;
  3042. &:hover,
  3043. &:focus,
  3044. &:active {
  3045. color: darken($ui-secondary-color, 38%);
  3046. }
  3047. }
  3048. }
  3049. .confirmation-modal__container,
  3050. .report-modal__target {
  3051. padding: 30px;
  3052. font-size: 16px;
  3053. text-align: center;
  3054. strong {
  3055. font-weight: 500;
  3056. }
  3057. }
  3058. .loading-bar {
  3059. background-color: $ui-highlight-color;
  3060. height: 3px;
  3061. position: absolute;
  3062. top: 0;
  3063. left: 0;
  3064. }
  3065. .media-gallery__gifv__label {
  3066. display: block;
  3067. position: absolute;
  3068. color: $primary-text-color;
  3069. background: rgba($base-overlay-background, 0.5);
  3070. bottom: 6px;
  3071. left: 6px;
  3072. padding: 2px 6px;
  3073. border-radius: 2px;
  3074. font-size: 11px;
  3075. font-weight: 600;
  3076. z-index: 1;
  3077. pointer-events: none;
  3078. opacity: 0.9;
  3079. transition: opacity 0.1s ease;
  3080. }
  3081. .media-gallery__gifv {
  3082. &.autoplay {
  3083. .media-gallery__gifv__label {
  3084. display: none;
  3085. }
  3086. }
  3087. &:hover {
  3088. .media-gallery__gifv__label {
  3089. opacity: 1;
  3090. }
  3091. }
  3092. }
  3093. .attachment-list {
  3094. display: flex;
  3095. font-size: 14px;
  3096. border: 1px solid lighten($ui-base-color, 8%);
  3097. border-radius: 4px;
  3098. margin-top: 14px;
  3099. overflow: hidden;
  3100. }
  3101. .attachment-list__icon {
  3102. flex: 0 0 auto;
  3103. color: lighten($ui-base-color, 26%);
  3104. padding: 8px 18px;
  3105. cursor: default;
  3106. border-right: 1px solid lighten($ui-base-color, 8%);
  3107. display: flex;
  3108. flex-direction: column;
  3109. align-items: center;
  3110. justify-content: center;
  3111. font-size: 26px;
  3112. .fa {
  3113. display: block;
  3114. }
  3115. }
  3116. .attachment-list__list {
  3117. list-style: none;
  3118. padding: 4px 0;
  3119. padding-left: 8px;
  3120. display: flex;
  3121. flex-direction: column;
  3122. justify-content: center;
  3123. li {
  3124. display: block;
  3125. padding: 4px 0;
  3126. }
  3127. a {
  3128. text-decoration: none;
  3129. color: lighten($ui-base-color, 26%);
  3130. font-weight: 500;
  3131. &:hover {
  3132. text-decoration: underline;
  3133. }
  3134. }
  3135. }
  3136. /* Media Gallery */
  3137. .media-gallery {
  3138. box-sizing: border-box;
  3139. margin-top: 15px;
  3140. margin-left: -68px;
  3141. overflow: hidden;
  3142. position: relative;
  3143. width: calc(100% + 80px);
  3144. background: $base-shadow-color;
  3145. .detailed-status & {
  3146. margin-left:-10px;
  3147. width: calc(100% + 22px);
  3148. }
  3149. }
  3150. .media-gallery__item {
  3151. border: none;
  3152. box-sizing: border-box;
  3153. display: block;
  3154. float: left;
  3155. position: relative;
  3156. }
  3157. .media-gallery__item-thumbnail {
  3158. cursor: zoom-in;
  3159. display: flex;
  3160. align-items: center;
  3161. text-decoration: none;
  3162. width: 100%;
  3163. height: 100%;
  3164. img {
  3165. width: 100%;
  3166. &:not(.letterbox) {
  3167. height: 100%;
  3168. object-fit: cover;
  3169. }
  3170. }
  3171. }
  3172. .media-gallery__gifv {
  3173. height: 100%;
  3174. overflow: hidden;
  3175. position: relative;
  3176. width: 100%;
  3177. }
  3178. .media-gallery__item-gifv-thumbnail {
  3179. cursor: zoom-in;
  3180. height: 100%;
  3181. position: relative;
  3182. z-index: 1;
  3183. &:not(.letterbox) {
  3184. height: 100%;
  3185. object-fit: cover;
  3186. }
  3187. }
  3188. .media-gallery__item-thumbnail-label {
  3189. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  3190. clip: rect(1px, 1px, 1px, 1px);
  3191. overflow: hidden;
  3192. position: absolute;
  3193. }
  3194. /* End Media Gallery */
  3195. /* Status Video Player */
  3196. .status__video-player {
  3197. display: flex;
  3198. align-items: center;
  3199. background: $base-shadow-color;
  3200. box-sizing: border-box;
  3201. cursor: default; /* May not be needed */
  3202. margin-top: 15px;
  3203. margin-left:-68px;
  3204. width: calc(100% + 80px);
  3205. overflow: hidden;
  3206. position: relative;
  3207. }
  3208. .status__video-player-video {
  3209. position: relative;
  3210. width: 100%;
  3211. z-index: 1;
  3212. &:not(.letterbox) {
  3213. height: 100%;
  3214. object-fit: cover;
  3215. }
  3216. }
  3217. .status__video-player-expand,
  3218. .status__video-player-mute {
  3219. color: $primary-text-color;
  3220. opacity: 0.8;
  3221. position: absolute;
  3222. right: 4px;
  3223. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3224. }
  3225. .status__video-player-spoiler {
  3226. display: none;
  3227. color: $primary-text-color;
  3228. left: 4px;
  3229. position: absolute;
  3230. text-shadow: 0 1px 1px $base-shadow-color, 1px 0 1px $base-shadow-color;
  3231. top: 4px;
  3232. z-index: 100;
  3233. &.status__video-player-spoiler--visible {
  3234. display: block;
  3235. }
  3236. }
  3237. .status__video-player-expand {
  3238. bottom: 4px;
  3239. z-index: 100;
  3240. }
  3241. .status__video-player-mute {
  3242. top: 4px;
  3243. z-index: 5;
  3244. }
  3245. .media-spoiler-video {
  3246. background-size: cover;
  3247. background-repeat: no-repeat;
  3248. background-position: center;
  3249. cursor: pointer;
  3250. margin-top: 15px;
  3251. margin-left: -68px;
  3252. width: calc(100% + 80px);
  3253. position: relative;
  3254. }
  3255. .media-spoiler-video-play-icon {
  3256. border-radius: 100px;
  3257. color: rgba($primary-text-color, 0.8);
  3258. font-size: 36px;
  3259. left: 50%;
  3260. padding: 5px;
  3261. position: absolute;
  3262. top: 50%;
  3263. transform: translate(-50%, -50%);
  3264. }
  3265. /* End Video Player */
  3266. .account-gallery__container {
  3267. margin: -2px;
  3268. padding: 4px;
  3269. }
  3270. .account-gallery__item {
  3271. float: left;
  3272. width: 96px;
  3273. height: 96px;
  3274. margin: 2px;
  3275. a {
  3276. display: block;
  3277. width: 100%;
  3278. height: 100%;
  3279. background-color: $base-overlay-background;
  3280. background-size: cover;
  3281. background-position: center;
  3282. position: relative;
  3283. }
  3284. }
  3285. .account-section-headline {
  3286. color: lighten($ui-base-color, 26%);
  3287. background: lighten($ui-base-color, 2%);
  3288. border-bottom: 1px solid lighten($ui-base-color, 4%);
  3289. padding: 15px 10px;
  3290. font-size: 14px;
  3291. font-weight: 500;
  3292. position: relative;
  3293. cursor: default;
  3294. &::before,
  3295. &::after {
  3296. display: block;
  3297. content: "";
  3298. position: absolute;
  3299. bottom: 0;
  3300. left: 18px;
  3301. width: 0;
  3302. height: 0;
  3303. border-style: solid;
  3304. border-width: 0 10px 10px;
  3305. border-color: transparent transparent lighten($ui-base-color, 4%);
  3306. }
  3307. &::after {
  3308. bottom: -1px;
  3309. border-color: transparent transparent $ui-base-color;
  3310. }
  3311. }
  3312. noscript {
  3313. text-align: center;
  3314. div {
  3315. font-size: 20px;
  3316. margin: 20px 0;
  3317. }
  3318. }