chore: styles + partial ordering
This commit is contained in:
parent
8179e5159d
commit
e673492f30
8 changed files with 16 additions and 8 deletions
9
src/assets/styles/components/youtube-player.css
Normal file
9
src/assets/styles/components/youtube-player.css
Normal file
|
@ -0,0 +1,9 @@
|
|||
youtube-video {
|
||||
aspect-ratio: 16/9;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
|
||||
&:has(+ *) {
|
||||
margin-bottom: var(--spacing-base);
|
||||
}
|
||||
}
|
|
@ -38,3 +38,4 @@
|
|||
@import url("./components/paginator.css") layer(components);
|
||||
@import url("./components/progress-bar.css") layer(components);
|
||||
@import url("./components/theme-toggle.css") layer(components);
|
||||
@import url("./components/youtube-player.css") layer(components);
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
{%- assign escapedPageDescription = pageDescription | escape -%}
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="{{ globals.lang }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
@ -93,4 +93,4 @@
|
|||
</script>
|
||||
{{ content }}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -1,3 +1,2 @@
|
|||
<script type="module" src="/assets/scripts/components/youtube-video-element.js?v={% appVersion %}"></script>
|
||||
<style>youtube-video{aspect-ratio:16/9;width:100%;display:flex}</style>
|
||||
<youtube-video controls src="{{ url }}"></youtube-video>
|
|
@ -41,8 +41,8 @@ schema: blog
|
|||
/>
|
||||
{%- endif -%}
|
||||
{{ post.content | markdown }}
|
||||
{% render "partials/blocks/mastodon-post.liquid", post:post.mastodon_url %}
|
||||
{% render "partials/blocks/index.liquid", blocks:post.blocks %}
|
||||
{% render "partials/blocks/mastodon-post.liquid", post:post.mastodon_url %}
|
||||
{% render "partials/blocks/associated-media.liquid", artists:post.artists %}
|
||||
{% render "partials/blocks/associated-media.liquid", books:post.books %}
|
||||
{% render "partials/blocks/associated-media.liquid", genres:post.genres %}
|
||||
|
|
Reference in a new issue