diff --git a/view/static/main.css b/view/static/main.css index eec8b05..c7be301 100644 --- a/view/static/main.css +++ b/view/static/main.css @@ -347,6 +347,24 @@ details[open] summary::before { margin-bottom: 1rem; } +/* Typography utils */ + +.text-caption { + font-size: var(--font-size-s); + color: var(--color-muted); + font-weight: 500; +} + +.table-head { + font-size: var(--font-size-s); + font-weight: 500; + color: var(--color-muted); + vertical-align: top; + position: relative; + top: 0.3em; + padding-right: 0.75rem; +} + /* Index */ .filters { @@ -368,16 +386,16 @@ details[open] summary::before { max-width: 20rem; } -.changesets { +.home-diff-list { margin-bottom: 2rem; } -.changeset { +.changeset-card { padding: 1rem 1.5rem; margin-bottom: 1rem; } -.changeset-actions { +.changeset-card-actions { display: flex; column-gap: 1rem; row-gap: 0.5rem; @@ -385,15 +403,15 @@ details[open] summary::before { flex-wrap: wrap; } -.changeset-feed-name, -.changeset-time, -.changeset-action { +.changeset-card-feed-name, +.changeset-card-time, +.changeset-card-action { font-weight: 500; font-size: var(--font-size-s); flex-shrink: 0; } -.changeset-action { +.changeset-card-action { display: inline-flex; align-items: center; gap: 0.5em; @@ -403,16 +421,26 @@ details[open] summary::before { transition: color 200ms; } -.changeset-title { +.changeset-card-title { font-size: var(--font-size-l); } -.changeset table th { - font-size: var(--font-size-s); - font-weight: 500; - color: var(--color-muted); - padding-right: 1rem; - vertical-align: top; +.changeset-card-diff-s > :not(:last-child) { + margin-bottom: 0.5rem; +} + +.changeset-card-diff-m { + display: none; +} + +@media screen and (min-width: 800px) { + .changeset-card-diff-s { + display: none; + } + + .changeset-card-diff-m { + display: block; + } } /* Article detail */ diff --git a/view/templates/article_detail.html b/view/templates/article_detail.html index 8d2b133..d6f91e5 100644 --- a/view/templates/article_detail.html +++ b/view/templates/article_detail.html @@ -14,11 +14,11 @@ - + - +
BeforeBefore {{ diff.diff_html|safe }}
AfterAfter {{ diff.diff_html|safe }}
diff --git a/view/templates/index.html b/view/templates/index.html index ffc712c..abd1dbe 100644 --- a/view/templates/index.html +++ b/view/templates/index.html @@ -25,29 +25,41 @@ -
+
{% for diff in diffs %} -