mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
Removed in 2022 because of perf considerations. This restores it and updates the implementation and styling. The perf should not be an issue anymore: 1. it's now rendered only in the crawler view (and not for regular logged-in users or anons) 2. it previously used Rails' partial rendering which re-read file on each request. `register_html_builder` is more efficient (and this particular block skips rendering completely when not applicable)
37 lines
607 B
SCSS
Vendored
37 lines
607 B
SCSS
Vendored
body.crawler,
|
|
body > noscript {
|
|
.crawler-post {
|
|
border-top: 3px solid var(--primary-low);
|
|
}
|
|
|
|
.post-voting-comments {
|
|
padding-top: var(--space-4);
|
|
|
|
&__comment {
|
|
border-top: 1px solid var(--primary-low);
|
|
padding: var(--space-1) 0;
|
|
}
|
|
|
|
&__comment-cooked p,
|
|
&__comment-creator {
|
|
display: inline;
|
|
}
|
|
|
|
&__separator {
|
|
display: inline;
|
|
margin: 0 var(--space-1);
|
|
}
|
|
|
|
&__comment-time {
|
|
margin-left: var(--space-1);
|
|
}
|
|
}
|
|
|
|
.post-voting-answer-count {
|
|
padding-top: var(--space-5);
|
|
|
|
&__value {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|