diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 22:46:34 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 22:46:34 +0100 |
| commit | ec77d2f77b96488b1bc170ced2abab12b3c19416 (patch) | |
| tree | d27fa6b4bcee9a8f204510ddb855e135562031f3 /src/public/css/style.css | |
| parent | d63e3c91a97d77b202e280ab0fa007dfbe1baa46 (diff) | |
| download | camagru-ec77d2f77b96488b1bc170ced2abab12b3c19416.tar.gz camagru-ec77d2f77b96488b1bc170ced2abab12b3c19416.zip | |
Add user's own posts grid and post deletion to editor page
Diffstat (limited to 'src/public/css/style.css')
| -rw-r--r-- | src/public/css/style.css | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/public/css/style.css b/src/public/css/style.css index e152519..2119a40 100644 --- a/src/public/css/style.css +++ b/src/public/css/style.css @@ -407,6 +407,51 @@ footer { margin-top: 0.5rem; } +.my-posts-title { + margin-top: 2rem; + margin-bottom: 1rem; + font-size: 1.2rem; +} + +.my-posts-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); + gap: 1rem; +} + +.my-post { + background: #fff; + border: 1px solid #dbdbdb; + border-radius: 8px; + overflow: hidden; +} + +.my-post img { + width: 100%; + aspect-ratio: 1; + object-fit: cover; + display: block; +} + +.delete-form { + padding: 0.5rem; +} + +.btn-delete { + width: 100%; + padding: 0.4rem; + background: #fff; + color: #b71c1c; + border: 1px solid #b71c1c; + border-radius: 4px; + font-size: 0.85rem; + cursor: pointer; +} + +.btn-delete:hover { + background: #fdecea; +} + @media (max-width: 600px) { header nav { flex-direction: column; |
