diff --git a/frontend/public/global.css b/frontend/public/global.css index 07f5b02..9b40f63 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -387,6 +387,23 @@ body { user-select: none; } +/* badges */ + +.user-badge { + display: inline-flex; + justify-content: center; + align-items: center; + background-color: var(--purple-2); + padding-top: 1px; + padding-bottom: 1px; + padding-left: 0.375rem; + padding-right: 0.375rem; + border-radius: 9999px; + font-size: x-small; + margin-left: var(--space-sm); + cursor: pointer; +} + /*! the tweaks below are heavily based on modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ *, diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte index 2787b8c..36c7d03 100644 --- a/frontend/src/components/Message.svelte +++ b/frontend/src/components/Message.svelte @@ -53,11 +53,18 @@ } .author { + display: inline-flex; + align-items: center; + justify-content: center; flex-shrink: 0; font-weight: bold; margin-right: var(--space-xs); } + .author-more { + margin-right: 0; + } + .edit-message { flex-shrink: 0; float: right; @@ -106,10 +113,21 @@ .message.clumped { padding: 2px 2px 2px var(--space-normplus); } + + .via-badge { + margin-left: var(--space-xs); + margin-right: var(--space-md); + cursor: default; + }