fix: styles on home page (#193)

This commit is contained in:
Tonya
2024-09-05 18:29:33 +00:00
committed by GitHub
parent c3628e36f7
commit 67c50068d9
2 changed files with 20 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<template>
<BaseCard>
<BaseCard class="overflow-clip">
<table class="table w-full">
<thead>
<tr>
@@ -189,4 +189,20 @@
}
</script>
<style scoped></style>
<style scoped>
:where(.table *:first-child) :where(*:first-child) :where(th, td):first-child {
border-top-left-radius: 0px;
}
:where(.table *:first-child) :where(*:first-child) :where(th, td):last-child {
border-top-right-radius: 0px;
}
:where(.table *:last-child) :where(*:last-child) :where(th, td):first-child {
border-bottom-left-radius: 0px;
}
:where(.table *:last-child) :where(*:last-child) :where(th, td):last-child {
border-bottom-right-radius: 0px;
}
</style>

View File

@@ -1,7 +1,7 @@
<template>
<div class="stats bg-neutral shadow rounded-md">
<div class="stat text-neutral-content text-center space-y-1 p-3">
<div class="stat-title">{{ title }}</div>
<div class="stat-title text-neutral-content">{{ title }}</div>
<div class="stat-value text-2xl">
<Currency v-if="type === 'currency'" :amount="value" />
<template v-if="type === 'number'">{{ value }}</template>
@@ -27,8 +27,4 @@
});
</script>
<style>
[data-theme="homebox"] .stat-title {
color: hsl(0 0% 90/0.6);
}
</style>
<style></style>