From fd947858e91a7c42260a2d86271c08d03eb9a46f Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Sat, 5 Jul 2025 01:23:13 +0200 Subject: [PATCH] tailwindcss: 3 -> 4 --- crates/plcom/css/main.css | 9 ++++++--- crates/plcom/src/pages/root/hero.rs | 2 +- crates/plcom/src/pages/wallpapers.rs | 2 +- crates/plcom/tailwind.config.js | 16 ---------------- crates/plcom/tailwind.nix | 2 +- flake.nix | 2 +- 6 files changed, 10 insertions(+), 23 deletions(-) delete mode 100644 crates/plcom/tailwind.config.js diff --git a/crates/plcom/css/main.css b/crates/plcom/css/main.css index 2dcc3d7..933dc0b 100644 --- a/crates/plcom/css/main.css +++ b/crates/plcom/css/main.css @@ -1,6 +1,9 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import "tailwindcss"; + +@theme { + --almostscreen: 90vh; + --halfscreen: 60vh; +} /* Fixed background when scrolling in tailwind * Disabled on iOS devices diff --git a/crates/plcom/src/pages/root/hero.rs b/crates/plcom/src/pages/root/hero.rs index 2c8e665..a9da6c6 100644 --- a/crates/plcom/src/pages/root/hero.rs +++ b/crates/plcom/src/pages/root/hero.rs @@ -68,7 +68,7 @@ pub fn hero(wallpaper: Option<&'static Wallpaper>) -> impl IntoAny {
impl IntoAny { -
+