atproto pastebin service: https://plonk.li

stylin for links

Changed files
+55 -7
src
mixins
public
views
+1 -1
src/mixins/post.pug
··· 1 mixin post(paste, handle, did) 2 div.post 3 p 4 - a(href=`/p/${paste.shortUrl}`) 5 | #{paste.title} 6 p.post-info 7 | by
··· 1 mixin post(paste, handle, did) 2 div.post 3 p 4 + a(href=`/p/${paste.shortUrl}`).post-link 5 | #{paste.title} 6 p.post-info 7 | by
+50 -1
src/public/styles.css
··· 58 } 59 60 pre { 61 - background-color: var(--bg-color-muted); 62 padding: 1rem; 63 overflow-x: auto; 64 } ··· 66 .comment-body { 67 background-color: var(--bg-color); 68 padding: 0; 69 } 70 71 input, textarea, select, button { ··· 137 align-self: flex-end; 138 } 139 140 .timeline, .comments { 141 display: flex; 142 flex-direction: column; 143 gap: 1rem; 144 } 145 146 .login-input-title { ··· 182 .code-line-content { 183 color: var(--text-color); 184 }
··· 58 } 59 60 pre { 61 padding: 1rem; 62 overflow-x: auto; 63 } ··· 65 .comment-body { 66 background-color: var(--bg-color); 67 padding: 0; 68 + margin-top: 0.1rem; 69 + } 70 + 71 + .comment-info { 72 + margin-bottom: 0; 73 } 74 75 input, textarea, select, button { ··· 141 align-self: flex-end; 142 } 143 144 + .post-link { 145 + color: var(--text-color); 146 + text-decoration: none; 147 + } 148 + .post-link:hover { 149 + text-decoration: underline; 150 + } 151 + .post-link:visited { 152 + color: var(--text-color-muted); 153 + } 154 + 155 + .post-info { 156 + margin-top: 0; 157 + } 158 + 159 + .post-info, .comment-info { 160 + color: var(--text-color-muted); 161 + } 162 + .post-info a, .comment-info a { 163 + color: var(--text-color-muted); 164 + text-decoration: none; 165 + } 166 + .post-info a:visited, .comment-info a:visited { 167 + color: var(--text-color-muted); 168 + } 169 + .post-info a:hover, .comment-info a:hover { 170 + text-decoration: underline; 171 + } 172 + 173 .timeline, .comments { 174 display: flex; 175 flex-direction: column; 176 gap: 1rem; 177 + padding-bottom: 1rem; 178 } 179 180 .login-input-title { ··· 216 .code-line-content { 217 color: var(--text-color); 218 } 219 + 220 + .header, .footer { 221 + color: var(--text-color); 222 + } 223 + 224 + .header a, .header a:visited, 225 + .footer a, .footer a:visited { 226 + color: var(--link-color); 227 + text-decoration: none; 228 + } 229 + 230 + .header a:hover, 231 + .footer a:hover { 232 + text-decoration: underline; 233 + }
+4 -5
src/views/paste.pug
··· 10 main#content 11 +header(ownDid, didHandleMap) 12 h1 #{paste.title} 13 - p 14 | @#{didHandleMap[paste.authorDid]} · 15 | #{timeDifference(now, Date.parse(paste.createdAt))} ago · 16 | #{paste.lang} · 17 | #{paste.code.split('\n').length} loc · 18 a(href=`/r/${paste.shortUrl}`) raw 19 - |  ·  20 | #{comments.length} #{pluralize(comments.length, 'comment')} 21 pre 22 code ··· 34 div.comments 35 each comment in comments 36 div.comment(id=`${encodeURIComponent(comment.uri)}`) 37 - p 38 a(href=`/u/${comment.authorDid}`) 39 | @#{didHandleMap[comment.authorDid]} 40 |  · 41 | #{timeDifference(now, Date.parse(paste.createdAt))} ago 42 - p 43 - pre.comment-body #{comment.body} 44 45 if ownDid 46 form(action=`/${encodeURIComponent(paste.uri)}/comment` method="post").post-form
··· 10 main#content 11 +header(ownDid, didHandleMap) 12 h1 #{paste.title} 13 + p.post-info 14 | @#{didHandleMap[paste.authorDid]} · 15 | #{timeDifference(now, Date.parse(paste.createdAt))} ago · 16 | #{paste.lang} · 17 | #{paste.code.split('\n').length} loc · 18 a(href=`/r/${paste.shortUrl}`) raw 19 + |  · 20 | #{comments.length} #{pluralize(comments.length, 'comment')} 21 pre 22 code ··· 34 div.comments 35 each comment in comments 36 div.comment(id=`${encodeURIComponent(comment.uri)}`) 37 + p.comment-info 38 a(href=`/u/${comment.authorDid}`) 39 | @#{didHandleMap[comment.authorDid]} 40 |  · 41 | #{timeDifference(now, Date.parse(paste.createdAt))} ago 42 + pre.comment-body #{comment.body} 43 44 if ownDid 45 form(action=`/${encodeURIComponent(paste.uri)}/comment` method="post").post-form