Mon parcours
Blog
diff --git a/src/app/pages/posts.rs b/src/app/pages/posts.rs
index 4c977c4..6c843fb 100644
--- a/src/app/pages/posts.rs
+++ b/src/app/pages/posts.rs
@@ -132,7 +132,7 @@ pub fn PostList() -> impl IntoView {
let filter_view = move || {
tag().and_then(|tag| Some(view! {
- Tag sélectionné :
{tag}
+ Tag sélectionné :
{tag}
}))
};
diff --git a/style/nav.css b/style/nav.css
index 35bde8a..a56cb73 100644
--- a/style/nav.css
+++ b/style/nav.css
@@ -1,22 +1,29 @@
@layer components {
nav {
- @apply flex flex-wrap flex-row justify-between items-center py-5;
- @apply mx-auto max-w-3xl;
- @apply font-semibold;
+ @apply mx-auto max-w-3xl py-5;
+ @apply md:flex md:justify-between md:items-center; /* Transition css only for mobile */
+ @apply font-semibold relative;
- & > .nav-mobile {
- @apply md:hidden scale-125;
- }
+ & > .nav-main {
+ @apply max-md:flex max-md:justify-between max-md:items-center;
- & > .nav-home {
- @apply uppercase font-semibold text-lg;
+ & > .nav-mobile {
+ @apply md:hidden scale-125;
+ }
+
+ & > .nav-home {
+ @apply uppercase font-semibold text-lg;
+ }
}
& > .nav-links {
- @apply hidden flex-row gap-5 md:h-auto md:flex;
+ @apply max-md:transition-transform max-md:scale-y-0; /* Transition css only for mobile */
+ @apply w-full flex flex-col gap-3 md:w-auto md:flex-row;
+ @apply bg-surface dark:bg-dark_surface;
+ @apply max-md:my-5 max-md:p-5 max-md:border-2 max-md:absolute max-md:z-10;
&.open {
- @apply max-md:flex max-md:flex-col max-md:w-full max-md:my-5 max-md:py-5 max-md:border-y-2;
+ @apply max-md:scale-y-100; /* Transition css only for mobile */
}
}