闭社主体 forked from https://github.com/tootsuite/mastodon
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.

3647 lines
60 KiB

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