Skip to content

Commit

Permalink
Add a border to items
Browse files Browse the repository at this point in the history
  • Loading branch information
thevahidal committed Dec 28, 2023
1 parent d22f16e commit 470aa21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
* {
text-align: center;
}

.avatar {
border-radius: 50%;
width: 100px;
Expand All @@ -13,3 +9,7 @@
.section {
margin-bottom: var(--block-spacing-vertical);
}

button > hgroup {
margin-bottom: 0;
}
8 changes: 4 additions & 4 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
),
(
h("div", klass="item")(
h("a", href=item.get("url"), target="_blank")(
h("button", klass="outline", href=item.get("url"), target="_blank")(
h("hgroup")(
h("h4")(item.get("title")),
h("p")(item.get("description"))
h("h5")(item.get("description"))
if item.get("description")
else None,
"",
Expand All @@ -40,8 +40,8 @@
h("link", rel="stylesheet", href="css/style.css"),
h("style", rel="stylesheet")(
f"""
:root {{
--primary: {data.get("primary_color", "#546e7a")};
[data-theme="dark"], [data-theme="light"] {{
--primary: {data.get("primary_color", "#546e7a")} !important;
}}
* {{
text-align: {data.get("text_align", "center")};
Expand Down

0 comments on commit 470aa21

Please sign in to comment.