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.

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