From 859e797553b92c308a20c524dc726ca82b29c413 Mon Sep 17 00:00:00 2001 From: momo_pc Date: Mon, 5 May 2025 20:59:21 +0900 Subject: [PATCH] fix video posting and size change --- _includes/responsive-file.html | 9 +++++++-- _includes/youtube.html | 9 +++++++-- _styles/responsive-files.scss | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/_includes/responsive-file.html b/_includes/responsive-file.html index c69326da..ed1a5f97 100644 --- a/_includes/responsive-file.html +++ b/_includes/responsive-file.html @@ -1,4 +1,5 @@ -
+
+
{% if include.type == "video" %}
{% endif %} -
\ No newline at end of file + + {% if include.caption %} +
{{ include.caption }}
+ {% endif %} + \ No newline at end of file diff --git a/_includes/youtube.html b/_includes/youtube.html index dcc4f1f8..defb5e49 100644 --- a/_includes/youtube.html +++ b/_includes/youtube.html @@ -1,9 +1,14 @@ -
+
+
-
\ No newline at end of file +
+ {% if include.caption %} +
{{ include.caption }}
+ {% endif %} + \ No newline at end of file diff --git a/_styles/responsive-files.scss b/_styles/responsive-files.scss index c06d30fe..c75a2294 100644 --- a/_styles/responsive-files.scss +++ b/_styles/responsive-files.scss @@ -1,5 +1,27 @@ --- --- +.responsive-file-figure { + width: 100%; + margin: 2rem 0; + display: block; +} + +// caption style +.responsive-file-caption { + margin-top: 0.75rem; + text-align: center; + font-size: 0.9rem; + color: #555; + line-height: 1.4; + padding: 0 1rem; +} + +// dark mode +@media (prefers-color-scheme: dark) { + .responsive-file-caption { + color: #aaa; + } +} .responsive-file-container { position: relative;