patx/gitman
Match discussion comments to the shared card layout
Commit fa1604b · patx · Nov 3 at 8:46PM
Comments
No comments yet.
Diff
diff --git a/static/styles.css b/static/styles.css
index 6fc599a..2663217 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -81,6 +81,7 @@ form > :where(p, pre, .alert, .notice) { margin: 0; }
.panel > :where(form:not(:first-child)),
.auth-card > :where(form:not(:first-child)) { margin-top: 1.25rem; }
.panel > .comment-form { margin-top: 2rem; }
+.comment-list + p { margin-top: 1.5rem; }
.auth-card > form + p { margin-top: 1.5rem; }
label { display: grid; gap: .5rem; align-content: start; }
@@ -324,7 +325,8 @@ th { color: var(--ink); font-weight: 700; }
list-style: none;
}
.repo-list { gap: 1rem; }
-.commit-list, .comment-list { gap: 1.25rem; }
+.commit-list { gap: 1.25rem; }
+.comment-list { gap: 1rem; }
.commit-list li > div > :last-child { margin-bottom: 0; }
.commit-list li strong, .commit-list li small { display: block; }
.commit-list li p { margin-top: .5rem; }
@@ -340,10 +342,11 @@ th { color: var(--ink); font-weight: 700; }
.activity-title, .activity-detail { margin-bottom: .25rem; }
.activity-detail { color: var(--text); }
-.comment { padding-bottom: 1.25rem; border-bottom: 1px solid var(--surface-border); min-width: 0; }
-.comment:last-child { border-bottom: 0; padding-bottom: 0; }
+.comment { min-width: 0; }
+.comment-meta strong { color: var(--ink); }
.comment-meta {
display: flex;
+ justify-content: space-between;
flex-wrap: wrap;
gap: .25rem .5rem;
align-items: baseline;
@@ -572,7 +575,7 @@ th { color: var(--ink); font-weight: 700; }
text-align: center;
}
.notification-feed form { display: block; }
-.feed-card {
+.feed-card, .comment {
display: block;
width: 100%;
padding: 1.25rem;
diff --git a/templates/base.tpl b/templates/base.tpl
index e8f51eb..de427db 100644
--- a/templates/base.tpl
+++ b/templates/base.tpl
@@ -11,7 +11,7 @@
<link rel="icon" type="image/svg+xml" href="/static/git.svg">
<link rel="stylesheet" href="/static/vendor/highlight.js/github.min.css">
<link rel="stylesheet" href="/static/vendor/highlight.js/github-dark.min.css" media="(prefers-color-scheme: dark)">
- <link rel="stylesheet" href="/static/styles.css?v=14">
+ <link rel="stylesheet" href="/static/styles.css?v=15">
</head>
<body>
<header class="site-header">