diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-29 17:49:56 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-29 17:49:56 +0200 |
| commit | 28c7fac9f0b740473575200051bc2983ec5c9be9 (patch) | |
| tree | b079ae51ff67d8ece4b9012d49ab71c884dba500 /src/components/list/list.vue | |
| parent | 3f6b9fbf9cc59d5ae20f9bda7c8fdf9f55d5675e (diff) | |
implement list item styles
Diffstat (limited to 'src/components/list/list.vue')
| -rw-r--r-- | src/components/list/list.vue | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/components/list/list.vue b/src/components/list/list.vue index a3562c5d..b8fcaf9d 100644 --- a/src/components/list/list.vue +++ b/src/components/list/list.vue @@ -7,6 +7,7 @@ v-for="item in items" :key="getKey(item)" class="list-item" + :class="getClass(item)" role="listitem" > <slot @@ -33,24 +34,11 @@ export default { getKey: { type: Function, default: item => item.id + }, + getClass: { + type: Function, + default: item => '' } } } </script> - -<style lang="scss"> -@import "../../variables"; - -.list { - &-item:not(:last-child) { - border-bottom: 1px solid; - border-bottom-color: $fallback--border; - border-bottom-color: var(--border, $fallback--border); - } - - &-empty-content { - text-align: center; - padding: 10px; - } -} -</style> |
