Fix youtube embed issues & improve layout

This commit is contained in:
august kline 2025-01-06 20:16:28 -05:00
parent a477b43f1c
commit d7e4f91740
2 changed files with 14 additions and 4 deletions

View File

@ -289,7 +289,7 @@ header {
background: var(--color-bg);
&>:first-child {
margin: unset;
margin-block-end: var(--default-padding);
}
h1 {
@ -367,6 +367,12 @@ header {
}
iframe {
max-inline-size: 100%;
appearance: unset;
border: var(--border);
}
footer {
border-block-start: var(--border);
margin-block-start: calc(var(--default-padding) * 6);
@ -420,8 +426,7 @@ footer {
main {
min-block-size: 100svb;
margin-block: var(--default-padding) 40svb;
margin-inline: auto;
margin: var(--default-padding) auto;
max-inline-size: min(60ch, 80%);
padding-block: var(--default-padding);
gap: var(--default-padding);
@ -488,7 +493,12 @@ main {
flex-direction: row;
justify-content: space-between;
&>:first-child {
margin-block-end: unset;
}
nav {
justify-content: flex-end;
box-sizing: border-box;
}

View File

@ -98,7 +98,7 @@ impl Block {
&height.to_string(),
"\" src=\"",
embed,
"\"></iframe>",
"\" allowfullscreen></iframe>",
]
.concat(),
Block::image { file, caption } => {