logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

mobile_post_status_button.vue (1143B)


  1. <template>
  2. <button
  3. v-if="isLoggedIn"
  4. class="MobilePostButton button-default new-status-button"
  5. :class="{ 'hidden': isHidden, 'always-show': isPersistent }"
  6. :title="$t('post_status.new_status')"
  7. @click="openPostForm"
  8. >
  9. <FAIcon icon="pen" />
  10. </button>
  11. </template>
  12. <script src="./mobile_post_status_button.js"></script>
  13. <style lang="scss">
  14. .MobilePostButton {
  15. &.button-default {
  16. width: 5em;
  17. height: 5em;
  18. border-radius: 100%;
  19. position: fixed;
  20. bottom: 1.5em;
  21. right: 1.5em;
  22. // TODO: this needs its own color, it has to stand out enough and link color
  23. // is not very optimal for this particular use.
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. box-shadow: 0 2px 2px rgb(0 0 0 / 30%), 0 4px 6px rgb(0 0 0 / 30%);
  28. z-index: 10;
  29. transition: 0.35s transform;
  30. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  31. }
  32. &.hidden {
  33. transform: translateY(150%);
  34. }
  35. svg {
  36. font-size: 1.5em;
  37. color: var(--text);
  38. }
  39. }
  40. @media all and (min-width: 801px) {
  41. .new-status-button:not(.always-show) {
  42. display: none;
  43. }
  44. }
  45. </style>