diff --git a/assets/main.css b/assets/main.css index 579d8b4..98cf58b 100644 --- a/assets/main.css +++ b/assets/main.css @@ -338,6 +338,81 @@ --border-color: color-mix(in srgb, var(--base-color), var(--color-slate-800) 50%); } +.bgc { + display: flex; + align-items: center; + flex-wrap: nowrap; +} + +.bgc::before { + content: ""; + display: inline-block; + width: .75rem; + aspect-ratio: 1; + margin-right: 0.5em; + border-radius: .25rem; + background-color: red; + border: 1px solid transparent; +} + +.bgc-red::before { + @apply bg-red-500; +} +.bgc-orange::before { + @apply bg-orange-500; +} +.bgc-amber::before { + @apply bg-amber-500; +} +.bgc-yellow::before { + @apply bg-yellow-500; +} +.bgc-lime::before { + @apply bg-lime-500; +} +.bgc-green::before { + @apply bg-green-500; +} +.bgc-emerald::before { + @apply bg-emerald-600; +} +.bgc-teal::before { + @apply bg-teal-600; +} +.bgc-cyan::before { + @apply bg-cyan-600; +} +.bgc-sky::before { + @apply bg-sky-600; +} +.bgc-blue::before { + @apply bg-blue-600; +} +.bgc-indigo::before { + @apply bg-indigo-600; +} +.bgc-violet::before { + @apply bg-violet-600; +} +.bgc-purple::before { + @apply bg-purple-600; +} +.bgc-fuchsia::before { + @apply bg-fuchsia-600; +} +.bgc-pink::before { + @apply bg-pink-600; +} +.bgc-rose::before { + @apply bg-rose-600; +} +.bgc-black::before { + @apply bg-black dark:border-[1px] dark:border-slate-300; +} +.bgc-white::before { + @apply bg-white border-[1px] border-slate-700; +} + .fade-enter-active, .fade-leave-active { transition: all .5s ease; diff --git a/components/calendar/category/List.vue b/components/calendar/category/List.vue index fa230f7..e4a527e 100644 --- a/components/calendar/category/List.vue +++ b/components/calendar/category/List.vue @@ -9,7 +9,7 @@ defineProps<{ diff --git a/components/calendar/category/Item.vue b/components/calendar/category/ListItem.vue similarity index 50% rename from components/calendar/category/Item.vue rename to components/calendar/category/ListItem.vue index ebcfea3..83efb48 100644 --- a/components/calendar/category/Item.vue +++ b/components/calendar/category/ListItem.vue @@ -7,7 +7,9 @@ defineProps<{ diff --git a/components/calendar/category/Table.vue b/components/calendar/category/Table.vue new file mode 100644 index 0000000..7169384 --- /dev/null +++ b/components/calendar/category/Table.vue @@ -0,0 +1,42 @@ + + + diff --git a/components/calendar/category/TableRow.vue b/components/calendar/category/TableRow.vue new file mode 100644 index 0000000..85c33d0 --- /dev/null +++ b/components/calendar/category/TableRow.vue @@ -0,0 +1,137 @@ + + + diff --git a/components/calendar/dialog/Categories.vue b/components/calendar/dialog/Categories.vue index 96753ba..5cf96d1 100644 --- a/components/calendar/dialog/Categories.vue +++ b/components/calendar/dialog/Categories.vue @@ -13,10 +13,9 @@ function handleClosing() {