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.

3668 lines
60 KiB

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