logo

pleroma-fe

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

navigation_pins.vue (1336B)


  1. <template>
  2. <span class="NavigationPins">
  3. <router-link
  4. v-for="item in pinnedList"
  5. :key="item.name"
  6. class="button-unstyled pinned-item"
  7. active-class="toggled"
  8. :to="getRouteTo(item)"
  9. :title="item.labelRaw || $t(item.label)"
  10. >
  11. <FAIcon
  12. v-if="item.icon"
  13. fixed-width
  14. :icon="item.icon"
  15. />
  16. <span
  17. v-if="item.iconLetter"
  18. class="iconLetter fa-scale-110 fa-old-padding"
  19. >{{ item.iconLetter }}</span>
  20. <div
  21. v-if="item.badgeGetter && getters[item.badgeGetter]"
  22. class="badge -dot"
  23. :class="[`-${item.badgeStyle}`]"
  24. />
  25. </router-link>
  26. </span>
  27. </template>
  28. <script src="./navigation_pins.js"></script>
  29. <style lang="scss">
  30. .NavigationPins {
  31. display: flex;
  32. flex-wrap: wrap;
  33. overflow: hidden;
  34. height: 100%;
  35. &.alert-dot-notification {
  36. background-color: var(--badgeNotification);
  37. }
  38. &.alert-dot-neutral {
  39. background-color: var(--badgeNeutral);
  40. }
  41. .pinned-item {
  42. position: relative;
  43. flex: 1 0 3em;
  44. min-width: 2em;
  45. text-align: center;
  46. overflow: visible;
  47. box-sizing: border-box;
  48. height: 100%;
  49. & .svg-inline--fa,
  50. & .iconLetter {
  51. margin: 0;
  52. }
  53. &.toggled {
  54. margin-bottom: -4px;
  55. border-bottom: 4px solid;
  56. }
  57. }
  58. }
  59. </style>