diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-18 16:16:03 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-18 16:16:03 +0100 |
commit | 46ef75431e1d34c63a690726a8ef584d175ddd30 (patch) | |
tree | df36a2bfb9fe3e19ce9f76665b4770063a089423 /server/src/frontend/style | |
parent | 5aa557e864bd2cf940e7164b7568e7e545817306 (diff) | |
download | jellything-46ef75431e1d34c63a690726a8ef584d175ddd30.tar jellything-46ef75431e1d34c63a690726a8ef584d175ddd30.tar.bz2 jellything-46ef75431e1d34c63a690726a8ef584d175ddd30.tar.zst |
restructure pages slightly
Diffstat (limited to 'server/src/frontend/style')
-rw-r--r-- | server/src/frontend/style/cantarell.woff2 | bin | 93888 -> 0 bytes | |||
-rw-r--r-- | server/src/frontend/style/layout.css | 45 | ||||
-rw-r--r-- | server/src/frontend/style/mod.rs | 25 |
3 files changed, 0 insertions, 70 deletions
diff --git a/server/src/frontend/style/cantarell.woff2 b/server/src/frontend/style/cantarell.woff2 Binary files differdeleted file mode 100644 index 76fd894..0000000 --- a/server/src/frontend/style/cantarell.woff2 +++ /dev/null diff --git a/server/src/frontend/style/layout.css b/server/src/frontend/style/layout.css deleted file mode 100644 index 0612a7e..0000000 --- a/server/src/frontend/style/layout.css +++ /dev/null @@ -1,45 +0,0 @@ -@font-face { - font-family: 'Cantarell'; - src: url(/assets/cantarell.woff2) format('woff2'); -} - -* { - color: white; - font-family: "Cantarell", sans-serif; - font-weight: 300; - margin: 0px; - padding: 0px; -} - -body { - background-color: #1a1a1a; - width: 100vw; -} - -nav { - position: absolute; - top: 0px; - left: 0px; - padding: 1em; - width: calc(100vw - 2em); - height: 2em; - background-color: #41414144; -} - -nav h1 { - margin: 0px; - font-size: 1.5em; -} - -#main { - margin-top: 5em; - padding: 1em; - padding-left: 3em; - padding-right: 3em; -} - -.error { - padding: 1em; - color: rgb(255, 117, 117); - font-family: monospace; -}
\ No newline at end of file diff --git a/server/src/frontend/style/mod.rs b/server/src/frontend/style/mod.rs deleted file mode 100644 index ca54aa7..0000000 --- a/server/src/frontend/style/mod.rs +++ /dev/null @@ -1,25 +0,0 @@ -use std::{ - fs::{read_to_string, File}, - io::Read, -}; - -pub fn css_bundle() -> String { - if cfg!(debug_assertions) { - read_to_string("server/src/frontend/style/layout.css").unwrap() - } else { - include_str!("layout.css").to_string() - } -} - -pub fn font_bundle() -> Vec<u8> { - if cfg!(debug_assertions) { - let mut woff = Vec::new(); - File::open("server/src/frontend/style/cantarell.woff2") - .unwrap() - .read_to_end(&mut woff) - .unwrap(); - woff - } else { - include_bytes!("cantarell.woff2").to_vec() - } -} |