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

View File

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