mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 09:04:35 +00:00
css: migrate SCSS to plain CSS, drop dart-sass dependency
The SCSS usage was light — variables (already mirrored as CSS custom properties), nesting, and 8 simple mixins. Modern CSS supports nesting natively so the preprocessor added no value. All mixins inlined at call sites, $var references replaced with var(--var), and --shadow/--shadow_dark added to the body custom properties. Removes the ~50 MB dart-sass build dep from the Nix flake and eliminates the sass compile step from postInstall.
This commit is contained in:
1 parent
219078da24
commit
deeb32881f
28 files changed
+1219
-1222
No files matched your search
@@ -46,7 +46,6 @@
|
||||
./Cargo.toml
|
||||
./Cargo.lock
|
||||
./src
|
||||
./sass
|
||||
./public
|
||||
./config
|
||||
];
|
||||
@@ -56,7 +55,6 @@
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgs.pkg-config
|
||||
pkgs.dart-sass
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
@@ -65,9 +63,6 @@
|
||||
mkdir -p $out/share/teapot
|
||||
cp -r public $out/share/teapot/
|
||||
cp -r config $out/share/teapot/
|
||||
# Compile SCSS
|
||||
sass sass/index.scss:$out/share/teapot/public/css/style.css \
|
||||
--load-path=sass/include --style=compressed --no-source-map
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
|
||||
Reference in new issue
Block a user