style: use border-bottom and disable border on last-child

This commit is contained in:
httpjamesm 2023-02-04 13:18:40 -05:00
parent 3dea27b09f
commit c87ce26da8
No known key found for this signature in database
2 changed files with 11 additions and 9 deletions

View File

@ -50,22 +50,25 @@ pre {
font-size: 0.8rem; font-size: 0.8rem;
} }
.post-divider, .post-divider {
.answer-divider {
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.answer-divider {
border: 0;
height: 1px;
background-color: var(--divider-color);
}
img { img {
max-width: 100%; max-width: 100%;
} }
.answer {
padding-top: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--muted-text-color);
}
.answer:last-child {
border-bottom: 0;
}
.answer-meta { .answer-meta {
border-radius: 5px; border-radius: 5px;
padding: 1rem; padding: 1rem;

View File

@ -85,7 +85,6 @@
{{ if $answer.Comments }} {{ template "comments.html" $answer }} {{ if $answer.Comments }} {{ template "comments.html" $answer }}
{{end}} {{end}}
</div> </div>
<hr class="answer-divider" />
{{ end }} {{ end }}
</div> </div>
</body> </body>