From 87031de9a358e508d262f7f76fd08225ac084fcc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:13:23 +0000 Subject: [PATCH 1/2] Initial plan From 48ea0217af6f168ebc3cfef5b60721405052cf46 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:22:06 +0000 Subject: [PATCH 2/2] Add mobile optimization for code block line numbers Co-authored-by: abap34 <53076594+abap34@users.noreply.github.com> --- assets/modern-light.css | 5 +++++ assets/template.html | 3 +++ posts/--help.md | 14 ++++++++++++++ posts/--help/.gitkeep | 0 4 files changed, 22 insertions(+) create mode 100644 posts/--help.md create mode 100644 posts/--help/.gitkeep diff --git a/assets/modern-light.css b/assets/modern-light.css index c06e4063..1492c2c1 100644 --- a/assets/modern-light.css +++ b/assets/modern-light.css @@ -1369,4 +1369,9 @@ body.dark-mode .similarity-source { .article-navigation { order: 5; } + + /* コードブロックの行数部分の横幅を狭くしてモバイルでの可読性を向上 */ + .cb-gutter { + padding: 0rem .25rem .5rem .25rem !important; + } } \ No newline at end of file diff --git a/assets/template.html b/assets/template.html index 2cad60ef..2bbc81d5 100644 --- a/assets/template.html +++ b/assets/template.html @@ -255,6 +255,9 @@ .cb.dark .cb-toolbar{background:#2b2b2b;border-bottom-color:#333;color:#ddd} .cb.dark .cb-copy{background:#3a3a3a;color:#eee} .cb.dark .cb-gutter{border-right-color:#333} +@media (max-width: 768px) { +.cb-gutter{padding:0rem .25rem .5rem .25rem} +} `; document.head.appendChild(style); } diff --git a/posts/--help.md b/posts/--help.md new file mode 100644 index 00000000..585c5cd3 --- /dev/null +++ b/posts/--help.md @@ -0,0 +1,14 @@ +--- +title: +author: abap34 +date: 2025/09/29 +tag: +twitter_id: abap34 +github_id: abap34 +mail: abap0002@gmail.com +ogp_url: +description: +url: https://abap34.com/posts/--help.html +site_name: abap34's blog +twitter_site: @abap34 +--- diff --git a/posts/--help/.gitkeep b/posts/--help/.gitkeep new file mode 100644 index 00000000..e69de29b