fix: image border-radius
This commit is contained in:
parent
5af5ed46a1
commit
636a0f04ea
3 changed files with 10 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
.media-image {
|
||||
--aspect-ratio: 0.8;
|
||||
|
||||
border: 1px solid var(--color-shadow);
|
||||
border-radius: var(--spacing-0\.5);
|
||||
overflow: hidden;
|
||||
|
||||
source,
|
||||
img {
|
||||
aspect-ratio: var(--aspect-ratio);
|
||||
border: 1px solid var(--color-shadow);
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
|
|
@ -140,6 +140,8 @@ picture {
|
|||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-inline: 0;
|
||||
border-radius: var(--spacing-0\.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
figure figcaption {
|
||||
|
@ -152,7 +154,6 @@ figure figcaption {
|
|||
|
||||
picture source,
|
||||
picture img {
|
||||
border-radius: var(--spacing-0\.5);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
.image-shrink {
|
||||
max-width: 50%;
|
||||
border-radius: var(--spacing-0\.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.image-tiny {
|
||||
max-width: 25%;
|
||||
border-radius: var(--spacing-0\.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue