logo

pleroma-fe

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

select.vue (1012B)


  1. <template>
  2. <label
  3. class="Select input"
  4. :class="{ disabled, unstyled }"
  5. >
  6. <select
  7. :disabled="disabled"
  8. :value="modelValue"
  9. v-bind="attrs"
  10. @change="$emit('update:modelValue', $event.target.value)"
  11. >
  12. <slot />
  13. </select>
  14. {{ ' ' }}
  15. <FAIcon
  16. class="select-down-icon"
  17. icon="chevron-down"
  18. />
  19. </label>
  20. </template>
  21. <script src="./select.js"> </script>
  22. <style lang="scss">
  23. /* TODO fix order of styles */
  24. label.Select {
  25. padding: 0;
  26. select {
  27. appearance: none;
  28. background: transparent;
  29. border: none;
  30. color: var(--text);
  31. margin: 0;
  32. padding: 0 2em 0 0.2em;
  33. font-family: var(--font);
  34. font-size: 1em;
  35. width: 100%;
  36. z-index: 1;
  37. height: 2em;
  38. line-height: 16px;
  39. }
  40. .select-down-icon {
  41. position: absolute;
  42. top: 0;
  43. bottom: 0;
  44. right: 5px;
  45. height: 100%;
  46. width: 0.875em;
  47. font-family: var(--font);
  48. line-height: 2;
  49. z-index: 0;
  50. pointer-events: none;
  51. }
  52. }
  53. </style>