aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/style/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/style/mod.rs')
-rw-r--r--server/src/routes/ui/style/mod.rs23
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();