The code powering m.abunchtell.com https://m.abunchtell.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

3699 行
61 KiB

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