闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3640 lines
60 KiB

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