forked from AkkomaGang/akkoma-fe
Make the list list page look good
This commit is contained in:
parent
d2c82a04d9
commit
3d18dd7e47
2 changed files with 30 additions and 5 deletions
|
@ -1,9 +1,33 @@
|
|||
<template>
|
||||
<div>
|
||||
<router-link :to="listLink(list.id)">
|
||||
{{ list.title }}
|
||||
</router-link>
|
||||
</div>
|
||||
<router-link
|
||||
:to="listLink(list.id)"
|
||||
class="list-card"
|
||||
>
|
||||
{{ list.title }}
|
||||
</router-link>
|
||||
</template>
|
||||
|
||||
<script src="./list_card.js"></script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../../_variables.scss';
|
||||
|
||||
.list-card {
|
||||
margin: 0;
|
||||
padding: 1em;
|
||||
display: flex;
|
||||
flex: 1 0;
|
||||
color: $fallback--link;
|
||||
color: var(--link, $fallback--link);
|
||||
|
||||
&:hover {
|
||||
background-color: $fallback--lightBg;
|
||||
background-color: var(--selectedMenu, $fallback--lightBg);
|
||||
color: $fallback--link;
|
||||
color: var(--selectedMenuText, $fallback--link);
|
||||
--faint: var(--selectedMenuFaintText, $fallback--faint);
|
||||
--faintLink: var(--selectedMenuFaintLink, $fallback--faint);
|
||||
--lightText: var(--selectedMenuLightText, $fallback--lightText);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
v-for="list in lists.slice().reverse()"
|
||||
:key="list"
|
||||
:list="list"
|
||||
class="list-item"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue