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.

3610 lines
60 KiB

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