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.

3596 lines
59 KiB

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