diff --git a/view/static/main.css b/view/static/main.css index ade233b..0d7b617 100644 --- a/view/static/main.css +++ b/view/static/main.css @@ -478,22 +478,52 @@ details[open] summary::before { margin-bottom: 2rem; } -.article-detail-diffs th, -.article-detail-diffs td { +.article-detail-diffs-s .title { + margin-bottom: 1rem; +} + +.article-detail-diffs-s .diff { + padding: 0.75rem 1rem; +} + +.article-detail-diffs-s .diff-before { + margin-bottom: 0.5rem; +} + +.article-detail-diffs-s .diff:not(:last-of-type) { + border-bottom: 1px solid var(--border-color); +} + +.article-detail-diffs-l { + display: none; +} + +@media screen and (min-width: 800px) { + .article-detail-diffs-s { + display: none; + } + + .article-detail-diffs-l { + display: table; + } +} + +.article-detail-diffs-l th, +.article-detail-diffs-l td { padding: 0.5rem 0.75rem; } -.article-detail-diffs td:last-child { +.article-detail-diffs-l td:last-child { width: 100%; } -.article-detail-diffs th { +.article-detail-diffs-l th { font-size: var(--font-size-xs); color: var(--color-muted); font-weight: 500; } -.article-detail-diffs tr:not(:last-of-type) { +.article-detail-diffs-l tr:not(:last-of-type) { border-bottom: 1px solid var(--border-color); } diff --git a/view/templates/article_detail.html b/view/templates/article_detail.html index d6f91e5..1cc9cab 100644 --- a/view/templates/article_detail.html +++ b/view/templates/article_detail.html @@ -7,7 +7,23 @@ {{ article_url|truncate(50) }}
{{ diff.diff_time }} |
---|