feat: ✨ overhaul gallery component (styles, indicators, a11y)
This commit is contained in:
parent
bbf08a98cd
commit
8d95b82b89
3 changed files with 208 additions and 73 deletions
|
@ -17,13 +17,17 @@
|
|||
<style>
|
||||
.ref-image {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
grid-template-rows: [image-start] 1fr [image-end caption-start] auto [caption-end];
|
||||
place-content: center;
|
||||
row-gap: 1rem;
|
||||
|
||||
margin-block: 0;
|
||||
margin-inline: auto;
|
||||
|
||||
& :first-child {
|
||||
grid-area: image;
|
||||
}
|
||||
|
||||
& img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
@ -38,6 +42,7 @@
|
|||
}
|
||||
|
||||
& .caption {
|
||||
grid-area: caption;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue