diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-18 20:19:10 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-18 20:19:10 +0100 |
commit | aaf7b47547e7dd43efb4da2f2790745521cd6eea (patch) | |
tree | dd7b930a2cb41bbca2af46632c29da5432ae8aeb /server/src/routes/ui/style/mod.rs | |
parent | e24a026c58c07a2800662b9f5f4fd3f61d53c1d1 (diff) | |
download | jellything-aaf7b47547e7dd43efb4da2f2790745521cd6eea.tar jellything-aaf7b47547e7dd43efb4da2f2790745521cd6eea.tar.bz2 jellything-aaf7b47547e7dd43efb4da2f2790745521cd6eea.tar.zst |
style
Diffstat (limited to 'server/src/routes/ui/style/mod.rs')
-rw-r--r-- | server/src/routes/ui/style/mod.rs | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/server/src/routes/ui/style/mod.rs b/server/src/routes/ui/style/mod.rs index f3d751b..07e92dd 100644 --- a/server/src/routes/ui/style/mod.rs +++ b/server/src/routes/ui/style/mod.rs @@ -8,18 +8,25 @@ use std::{ fn css_bundle() -> String { if cfg!(debug_assertions) { - read_to_string( - PathBuf::from_str(file!()) - .unwrap() - .parent() + ["layout.css", "player.css"] + .into_iter() + .map(|n| { + read_to_string( + PathBuf::from_str(file!()) + .unwrap() + .parent() + .unwrap() + .join(n), + ) .unwrap() - .join("layout.css"), - ) - .unwrap() + }) + .collect::<Vec<_>>() + .join("\n") } else { - include_str!("layout.css").to_string() + concat!(include_str!("layout.css"), include_str!("player.css")).to_string() } } + fn font_bundle() -> Vec<u8> { if cfg!(debug_assertions) { let mut woff = Vec::new(); |