feat(list): add header shadow
This commit is contained in:
parent
8090737996
commit
d494aacd80
1 changed files with 20 additions and 14 deletions
|
@ -5,6 +5,7 @@ const props = defineProps<{
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div class="slant-shadow">
|
||||||
<div class="slant mb-12 bg-light-card-bg dark:bg-dark-card-bg">
|
<div class="slant mb-12 bg-light-card-bg dark:bg-dark-card-bg">
|
||||||
<ThemeController class="h-12" />
|
<ThemeController class="h-12" />
|
||||||
|
|
||||||
|
@ -22,6 +23,7 @@ const props = defineProps<{
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@ -34,4 +36,8 @@ const props = defineProps<{
|
||||||
padding-bottom: 8rem /* 128px (pb-32) */;
|
padding-bottom: 8rem /* 128px (pb-32) */;
|
||||||
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 128px));
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 128px));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.slant-shadow {
|
||||||
|
filter: drop-shadow(0px 0px 20px #ccc);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue