docs: improve sidebar active style (#1888)
This commit is contained in:
@@ -24,12 +24,12 @@ export default function NavigationBar(
|
||||
const isHome = props.active == "/";
|
||||
return (
|
||||
<nav class={"flex " + props.class ?? ""}>
|
||||
<ul class="flex justify-center items-center gap-4 mx-4 my-6 flex-wrap">
|
||||
<ul class="flex justify-center items-center gap-2 sm:gap-4 mx-4 my-2 sm:my-6 flex-wrap">
|
||||
{items.map((item) => (
|
||||
<li>
|
||||
<a
|
||||
href={item.href}
|
||||
class={`p-2 ${
|
||||
class={`p-1 sm:p-2 ${
|
||||
isHome ? "text-green-900" : "text-gray-600"
|
||||
} hover:underline [data-current]:font-bold [data-ancestor]:font-bold`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user