style: use border-bottom and disable border on last-child
This commit is contained in:
parent
3dea27b09f
commit
c87ce26da8
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user