Skip to content

Commit

Permalink
removes the need for tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Jan 4, 2025
1 parent 94b6843 commit 8234bea
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 42 deletions.
4 changes: 2 additions & 2 deletions assets/components/HostMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</ul>
</template>
<template #right>
<ul class="containers menu p-0 [&_li.menu-title]:px-0">
<ul class="containers menu w-full p-0 [&_li.menu-title]:px-0">
<li v-for="{ label, containers, icon } in menuItems" :key="label">
<details :open="!collapsedGroups.has(label)" @toggle="updateCollapsedGroups($event, label)">
<summary class="text-base-content/80 font-light">
Expand All @@ -77,7 +77,7 @@
<Popup>
<router-link
:to="{ name: '/container/[id]', params: { id: item.id } }"
active-class="active-primary"
active-class="menu-active"
@click.alt.stop.prevent="pinnedStore.pinContainer(item)"
:title="item.name"
class="group auto-cols-[auto_max-content_max-content]"
Expand Down
5 changes: 1 addition & 4 deletions assets/components/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
ref="container"
:style="style"
>
<div
class="input input-primary flex h-auto items-center shadow-lg!"
:class="!isValidQuery ? 'input-warning' : ''"
>
<div class="input input-primary flex items-center shadow-lg" :class="!isValidQuery ? 'input-warning' : ''">
<mdi:magnify />
<input
class="input input-ghost w-72 flex-1"
Expand Down
14 changes: 4 additions & 10 deletions assets/components/SwarmMenu.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ul class="menu p-0 text-[0.95rem]">
<ul class="menu w-full p-0 text-[0.95rem]">
<li v-for="{ name, services } in stacks" :key="name">
<details open>
<summary class="text-base-content/80 font-light">
Expand All @@ -17,10 +17,7 @@
</summary>
<ul>
<li v-for="service in services" :key="service.name">
<router-link
:to="{ name: '/service/[name]', params: { name: service.name } }"
active-class="active-primary"
>
<router-link :to="{ name: '/service/[name]', params: { name: service.name } }" active-class="menu-active">
<ph:stack-simple />
<div class="truncate">
{{ service.name }}
Expand All @@ -39,10 +36,7 @@
</summary>
<ul>
<li v-for="service in serivcesWithoutStacks" :key="service.name">
<router-link
:to="{ name: '/service/[name]', params: { name: service.name } }"
active-class="active-primary"
>
<router-link :to="{ name: '/service/[name]', params: { name: service.name } }" active-class="menu-active">
<ph:stack-simple />
<div class="truncate">
{{ service.name }}
Expand All @@ -61,7 +55,7 @@
</summary>
<ul>
<li v-for="group in customGroups" :key="group.name">
<router-link :to="{ name: '/group/[name]', params: { name: group.name } }" active-class="active-primary">
<router-link :to="{ name: '/group/[name]', params: { name: group.name } }" active-class="menu-active">
<ph:stack-simple />
<div class="truncate">
{{ group.name }}
Expand Down
2 changes: 1 addition & 1 deletion assets/components/common/IndeterminateBar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="animate-background bg-gradient-radial h-1 w-1/2 to-transparent to-75%" :class="colorClass"></div>
<div class="animate-background h-1 w-1/2 bg-radial to-transparent to-75%" :class="colorClass"></div>
</template>
<script setup lang="ts">
const { color = "primary" } = defineProps<{ color: "primary" | "error" | "secondary" }>();
Expand Down
18 changes: 10 additions & 8 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "splitpanes/dist/splitpanes.css" layer(base);
@plugin "daisyui";
@plugin "@tailwindcss/typography";
@config '../tailwind.config.ts';

@theme {
--color-green: oklch(69% 0.119722 188.479048);
Expand Down Expand Up @@ -48,7 +47,7 @@
--border: 1px;

/* effects */
--depth: 1;
--depth: 0;
--noise: 1;
}

Expand Down Expand Up @@ -78,8 +77,6 @@
}

@utility btn {
@apply font-normal normal-case;

&:not(.btn-primary):not(.btn-secondary) {
@apply hover:bg-base-100;
}
Expand All @@ -91,10 +88,15 @@
}
}

@utility active-primary {
--n: var(--p);
--nc: var(--pc);
/* @apply menu-active; */
@utility menu-active {
&,
&:active {
--color-neutral: var(--color-primary);
}
}

@utility animate-bounce-fast {
animation: bounce 0.5s 2 both;
}

@utility link-primary {
Expand Down
17 changes: 0 additions & 17 deletions tailwind.config.ts

This file was deleted.

0 comments on commit 8234bea

Please sign in to comment.