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.

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