diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-12-28 11:11:03 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-12-28 11:11:03 +0000 |
| commit | 85d8e2596405824617960f190c4c46a89f263d89 (patch) | |
| tree | 4c8554bedbd305f1d1134546f8a1acb4c2d54b12 | |
| parent | f78c69e27e33f72d3722f7c540bb8c504636f224 (diff) | |
Responsive layout
| -rw-r--r-- | hcard.css | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -1,11 +1,21 @@ -.h-card { - display: flex; - gap: 1rem; - align-items: center; +.u-photo { + margin-inline: auto; + margin-block-end: 3rem; +} + +@media (min-width: 48rem) { + .h-card { + display: flex; + gap: 1rem; + align-items: center; + } + + .u-photo { + margin: 0; + } } .u-photo { width: 256px; - height: 256px; } |
