Simplify css
This commit is contained in:
parent
7632941962
commit
c71684b7d9
2 changed files with 16 additions and 20 deletions
src/routes
|
@ -2,7 +2,7 @@
|
|||
import { page } from '$app/stores';
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
|
||||
const button = 'border-t-2 bg-black/55 hover:bg-black/70 hover:border-primary w-28';
|
||||
const button = 'border-t-2 bg-black/55 hover:bg-black/70 hover:border-secondary w-28';
|
||||
</script>
|
||||
|
||||
<ul
|
||||
|
@ -12,9 +12,8 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/"
|
||||
class="{button} + {$page.url.pathname === '/'
|
||||
? 'border-primary text-primary'
|
||||
: 'text-accent'}"
|
||||
class="{button} + {!($page.url.pathname === '/')
|
||||
|| 'border-secondary text-secondary'}"
|
||||
>
|
||||
Home
|
||||
</Button>
|
||||
|
@ -23,9 +22,8 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/servers"
|
||||
class="{button} + {$page.url.pathname.startsWith('/servers')
|
||||
? 'border-primary text-primary'
|
||||
: 'text-accent'}"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/servers')
|
||||
|| 'border-secondary text-secondary'}"
|
||||
>
|
||||
Servers
|
||||
</Button>
|
||||
|
@ -34,9 +32,8 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/services"
|
||||
class="{button} + {$page.url.pathname.startsWith('/services')
|
||||
? 'border-primary text-primary'
|
||||
: 'text-accent'}"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/services')
|
||||
|| 'border-secondary text-secondary'}"
|
||||
>
|
||||
Services
|
||||
</Button>
|
||||
|
@ -45,9 +42,8 @@
|
|||
<Button
|
||||
variant="ghost"
|
||||
href="/about"
|
||||
class="{button} + {$page.url.pathname.startsWith('/about')
|
||||
? 'border-primary text-primary'
|
||||
: 'text-accent'}"
|
||||
class="{button} + {!$page.url.pathname.startsWith('/about')
|
||||
|| 'border-secondary text-secondary'}"
|
||||
>
|
||||
About
|
||||
</Button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue