aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/style
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/style')
-rw-r--r--server/src/routes/ui/style/layout.css4
-rw-r--r--server/src/routes/ui/style/mod.rs23
-rw-r--r--server/src/routes/ui/style/player.css4
3 files changed, 21 insertions, 10 deletions
diff --git a/server/src/routes/ui/style/layout.css b/server/src/routes/ui/style/layout.css
index 2e54b1b..078dd4e 100644
--- a/server/src/routes/ui/style/layout.css
+++ b/server/src/routes/ui/style/layout.css
@@ -7,8 +7,6 @@
color: rgb(218, 218, 218);
font-family: "Cantarell", sans-serif;
font-weight: 500;
- margin: 0px;
- padding: 0px;
}
body {
@@ -29,6 +27,8 @@ nav {
nav h1 {
margin: 0px;
font-size: 1.5em;
+ display: inline;
+ margin-right: 1em;
}
#main {
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();
diff --git a/server/src/routes/ui/style/player.css b/server/src/routes/ui/style/player.css
new file mode 100644
index 0000000..d4a14ab
--- /dev/null
+++ b/server/src/routes/ui/style/player.css
@@ -0,0 +1,4 @@
+
+video {
+ width: 100%;
+}