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.

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