forked from cadey/xesite
avif and CSS
This commit is contained in:
parent
a5fba33197
commit
aee2904e74
|
@ -25,5 +25,6 @@ img {
|
|||
|
||||
.conversation-picture {
|
||||
flex: 1;
|
||||
max-width: calc((70rem - 2rem)/6);
|
||||
min-width: 9rem;
|
||||
max-width: calc(((70rem - 2rem)/6));
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
@(mood: &str, character: &str, message: Html<String>)
|
||||
<div class="conversation">
|
||||
<div class="conversation-picture"
|
||||
<div class="conversation-picture">
|
||||
<picture>
|
||||
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).avif" type="image/avif">
|
||||
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).webp" type="image/webp">
|
||||
<img src="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).png" alt="@character is @mood">
|
||||
</picture>
|
||||
|
|
Loading…
Reference in New Issue