闭社主体 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.

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