Image gallery size fixes
This commit is contained in:
committed by
Mike Dalessio
parent
fc18ba8e07
commit
24446afba7
@@ -3,8 +3,8 @@
|
||||
block-size: auto;
|
||||
display: block;
|
||||
inline-size: fit-content;
|
||||
position: relative;
|
||||
max-inline-size: 100%;
|
||||
position: relative;
|
||||
|
||||
progress {
|
||||
inline-size: 100%;
|
||||
@@ -35,8 +35,7 @@
|
||||
|
||||
@supports (field-sizing: content) {
|
||||
field-sizing: content;
|
||||
inline-size: auto;
|
||||
min-inline-size: 20ch;
|
||||
inline-size: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,4 +188,18 @@
|
||||
.attachment {
|
||||
margin-inline: 0;
|
||||
}
|
||||
|
||||
.attachment-gallery {
|
||||
.attachment {
|
||||
display: inline-block;
|
||||
inline-size: calc(33.333% - 0.8ch);
|
||||
}
|
||||
|
||||
&.attachment-gallery--2,
|
||||
&.attachment-gallery--4 {
|
||||
.attachment {
|
||||
inline-size: calc(50% - 0.8ch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user