diff --git a/Cargo.lock b/Cargo.lock index 5fbfbb4..b11bf19 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -706,18 +706,18 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "const_format" -version = "0.2.32" +version = "0.2.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3a214c7af3d04997541b18d432afaff4c455e79e2029079647e72fc2bd27673" +checksum = "50c655d81ff1114fb0dcdea9225ea9f0cc712a6f8d189378e82bdf62a473a64b" dependencies = [ "const_format_proc_macros", ] [[package]] name = "const_format_proc_macros" -version = "0.2.32" +version = "0.2.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f6ff08fd20f4f299298a28e2dfa8a8ba1036e6cd2460ac1de7b425d76f2500" +checksum = "eff1a44b93f47b1bac19a27932f5c591e43d1ba357ee4f61526c8a25603f0eb1" dependencies = [ "proc-macro2", "quote", @@ -757,9 +757,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51e852e6dc9a5bed1fae92dd2375037bf2b768725bf3be87811edee3249d09ad" +checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" dependencies = [ "libc", ] @@ -3679,9 +3679,9 @@ dependencies = [ [[package]] name = "sqlformat" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f895e3734318cc55f1fe66258926c9b910c124d47520339efecbb6c59cec7c1f" +checksum = "7bba3a93db0cc4f7bdece8bb09e77e2e785c20bfebf79eb8340ed80708048790" dependencies = [ "nom", "unicode_categories", diff --git a/backend/src/home.rs b/backend/src/home.rs index a9a69bf..80a4a6e 100644 --- a/backend/src/home.rs +++ b/backend/src/home.rs @@ -87,12 +87,6 @@ impl RenderOnce for Posts { flex-wrap: wrap; row-gap: 10px; } - .tag-group { - display: flex; - justify-content: space-between; - column-gap: 8px; - overflow: auto; - } .post-time { align-self: flex-end; } diff --git a/backend/src/post.rs b/backend/src/post.rs index 9be0bd1..53c78d8 100644 --- a/backend/src/post.rs +++ b/backend/src/post.rs @@ -72,8 +72,8 @@ impl RenderOnce for PostView { #tag-title { color: var(--secondary-text); } - #tag-title ~ br { - margin-bottom: 10px; + .tag-group { + margin-top: 6px; } "); meta(name = "viewport", content = "width=device-width, initial-scale=1"); @@ -106,10 +106,11 @@ impl RenderOnce for PostView { @ if !self.post.tags.0.is_empty() { br; br; div(id = "tags") { - span(id = "tag-title") : "Tags"; - br; - @ for tag in self.post.tags.0 { - span(class = "tag") : tag; + span(id = "tag-title") : "tags"; + span(class = "tag-group") { + @ for tag in self.post.tags.0 { + span(class = "tag") : tag; + } } } } diff --git a/shared_data/src/lib.rs b/shared_data/src/lib.rs index 2426808..51a2f49 100644 --- a/shared_data/src/lib.rs +++ b/shared_data/src/lib.rs @@ -87,11 +87,6 @@ pub static BASE_STYLE: &str = r#" src: local("Maple Mono"), url("/font/maple-mono"); font-display: swap; } -@font-face { - font-family: "serif fallback"; - src: local("serif"); - size-adjust: 10%; -} * { --body-background: #31242b; --main-text: #fbebe2; @@ -101,8 +96,8 @@ pub static BASE_STYLE: &str = r#" --border-color: #a16d8f; --title-text: #d1bbe4; --code-background: #2a1e24; - font-family: Isenheim, "serif fallback"; color: var(--main-text); + font-family: Isenheim; } body { background-color: var(--body-background); @@ -150,6 +145,11 @@ blockquote { padding-left: 20px; margin-left: 0px; } +.tag-group { + display: flex; + column-gap: 8px; + overflow: auto; +} "#; pub static POST_LIST_STYLE: &str = r" @@ -196,4 +196,7 @@ a { color: var(--title-text); text-decoration: underline; } +.tag-group { + justify-content: space-between; +} ";