From d27bd782ce0ff757ac64198d6af048c46b77e6f3 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Wed, 26 May 2021 20:30:08 -0700 Subject: [PATCH] Specify fallback fonts --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- src/main.rs | 14 +++++++------- static/style.css | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a95ffaa..abd56ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -492,9 +492,9 @@ checksum = "05842d0d43232b23ccb7060ecb0f0626922c21f30012e97b767b30afd4a5d4b9" [[package]] name = "hyper" -version = "0.14.7" +version = "0.14.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e5f105c494081baa3bf9e200b279e27ec1623895cd504c7dbef8d0b080fcf54" +checksum = "d3f71a7eea53a3f8257a7b4795373ff886397178cd634430ea94e12d7fe4fe34" dependencies = [ "bytes", "futures-channel", @@ -609,7 +609,7 @@ checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" [[package]] name = "libreddit" -version = "0.14.4" +version = "0.14.5" dependencies = [ "askama", "async-recursion", diff --git a/Cargo.toml b/Cargo.toml index 27f9eee..34d2472 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "libreddit" description = " Alternative private front-end to Reddit" license = "AGPL-3.0" repository = "https://github.com/spikecodes/libreddit" -version = "0.14.4" +version = "0.14.5" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2018" @@ -16,7 +16,7 @@ regex = "1.5.4" serde = { version = "1.0.126", features = ["derive"] } cookie = "0.15.0" futures-lite = "1.11.3" -hyper = { version = "0.14.7", features = ["full"] } +hyper = { version = "0.14.8", features = ["full"] } hyper-rustls = "0.22.1" route-recognizer = "0.3.0" serde_json = "1.0.64" diff --git a/src/main.rs b/src/main.rs index 1b41763..16be938 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,6 +90,13 @@ async fn main() { let matches = cli::new("Libreddit") .version(env!("CARGO_PKG_VERSION")) .about("Private front-end for Reddit written in Rust ") + .arg( + Arg::with_name("redirect-https") + .short("r") + .long("redirect-https") + .help("Redirect all HTTP requests to HTTPS (no longer functional)") + .takes_value(false), + ) .arg( Arg::with_name("address") .short("a") @@ -108,13 +115,6 @@ async fn main() { .default_value("8080") .takes_value(true), ) - .arg( - Arg::with_name("redirect-https") - .short("r") - .long("redirect-https") - .help("Redirect all HTTP requests to HTTPS (no longer functional)") - .takes_value(false), - ) .arg( Arg::with_name("hsts") .short("H") diff --git a/static/style.css b/static/style.css index d67e4f3..7092a5c 100644 --- a/static/style.css +++ b/static/style.css @@ -156,7 +156,7 @@ html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td, select, input { margin: 0; color: var(--text); - font-family: "Inter"; + font-family: "Inter", sans-serif; } body { @@ -1195,7 +1195,7 @@ input[type="submit"] { } .md code { - font-family: monospace; + font-family: monospace, sans-serif; font-size: 14px; }