Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/classless-tiny.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ td:first-child, th:first-child { text-align: left; }
tr:hover{ background-color: #f4f5f6; }

/* figures */
img, svg { max-width: 100%; vertical-align: text-top; }
img, svg { max-width: 100%; height: auto; vertical-align: text-top; }
p>img:not(:only-child) { float: right; margin: 0 0 .5em .5em; }
figure > img { display: block; margin: .5em auto; }
figcaption, caption { color: #888; margin-bottom: 1rem; }
Expand Down
4 changes: 2 additions & 2 deletions docs/classless.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ tr:hover{ background-color: var(--clight); }
table img { display: block; }

/* figures */
img, svg { max-width: 100%; vertical-align: text-top; object-fit: cover; }
img, svg { max-width: 100%; height: auto; vertical-align: text-top; object-fit: cover; }
p>img:not(:only-child) { float: right; margin: 0 0 .5em .5em; }
figure > img { display: inline-block; width: auto; }
figure > img:only-of-type, figure > svg:only-of-type { max-width: 100%; display: block; margin: 0 auto .4em; }
Expand Down Expand Up @@ -258,7 +258,7 @@ summary>* { display: inline; }
overflow: hidden;
}
.card, details[open] { outline: 1px solid var(--cmed); }
.card>img:first-child { margin: -3px -.6rem; max-width: calc(100% + 1.2rem); }
.card>img:first-child { display: block; margin: 0 -.6rem; max-width: calc(100% + 1.2rem); }
summary:hover, details[open] summary, .card>p:first-child {
box-shadow: inset 0 0 0 2em var(--clight), 0 -.8rem 0 .8rem var(--clight);
}
Expand Down