Skip to content

Commit

Permalink
more style or whatever
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Sep 6, 2024
1 parent 5e746e1 commit 7b89575
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions backend/src/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
13 changes: 7 additions & 6 deletions backend/src/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
}
}
}
}
Expand Down
15 changes: 9 additions & 6 deletions shared_data/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -196,4 +196,7 @@ a {
color: var(--title-text);
text-decoration: underline;
}
.tag-group {
justify-content: space-between;
}
";

0 comments on commit 7b89575

Please sign in to comment.