ArticleMore.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
  4. interface Props {
  5. disabled?: boolean
  6. }
  7. defineProps<Props>()
  8. </script>
  9. <template>
  10. <div class="flex items-center gap-3 px-5 text-center">
  11. <div class="line-more grow"></div>
  12. <CommonButton class="shrink-0" :disabled="disabled">
  13. {{ $t('See more') }}
  14. </CommonButton>
  15. <div class="line-more grow"></div>
  16. </div>
  17. </template>
  18. <style scoped>
  19. .line-more {
  20. height: 6px;
  21. background-origin: content-box;
  22. background-image: url('data:image/svg+xml;utf8,<svg width="20" height="6" viewBox="0 0 20 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4.99995C6 4.99995 4 1 10 1C16 1 14 4.99927 20 4.99927" stroke="rgb(160, 163, 166)"/></svg>');
  23. background-repeat: repeat-x;
  24. background-position-x: right;
  25. width: 20px;
  26. }
  27. [data-theme='dark'] .line-more {
  28. background-image: url('data:image/svg+xml;utf8,<svg width="20" height="6" viewBox="0 0 20 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 4.99995C6 4.99995 4 1 10 1C16 1 14 4.99927 20 4.99927" stroke="rgb(153, 153, 153)"/></svg>');
  29. }
  30. .line-more:first-child {
  31. background-position-x: left;
  32. }
  33. .line-more:last-child {
  34. background-position-x: right;
  35. }
  36. </style>