From 3f2bd0bec3fc77e1acbb1506706ea9369db1ff4f Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Wed, 21 Jan 2026 18:54:21 +0900 Subject: [PATCH 6/6] Replace physical CSS properties with logical ones in wiki_syntax_detailed.css for better RTL support --- app/assets/stylesheets/wiki_syntax_detailed.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/wiki_syntax_detailed.css b/app/assets/stylesheets/wiki_syntax_detailed.css index b925e1951..602b94128 100644 --- a/app/assets/stylesheets/wiki_syntax_detailed.css +++ b/app/assets/stylesheets/wiki_syntax_detailed.css @@ -39,12 +39,13 @@ body { font-family: var(--fonts-main); font-size: 0.875rem; color: var(--oc-gray-9); line-height: 1.6;} pre, code { font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; } pre { - margin: 1em 1em 1em 1.6em; + margin-block: 1em; + margin-inline: 1.6em 1em; padding: 8px; background-color: var(--oc-gray-0); border: 1px solid var(--oc-gray-4); border-radius: 3px; - width: auto; + inline-size: auto; overflow-x: auto; overflow-y: hidden; line-height: normal; @@ -53,8 +54,8 @@ a, a:link, a:visited{ color: var(--oc-blue-9); text-decoration: none; } a:hover, a:active{ color: var(--oc-red-9); text-decoration: underline;} a.new { color: var(--oc-red-9); } -table.sample { border-collapse: collapse; border-spacing: 0; margin: 4px; margin-left: 30px;} -table.sample th, table.sample td { border: solid 1px var(--oc-gray-5); padding: 4px; height: 1em; } +table.sample { border-collapse: collapse; border-spacing: 0; margin: 4px; margin-inline-start: 30px;} +table.sample th, table.sample td { border: solid 1px var(--oc-gray-5); padding: 4px; block-size: 1em; } table.list td { background-color: var(--oc-gray-0); vertical-align: middle; padding: 0.3em;} .syntaxhl .c1 { color: #888888 } -- 2.50.1