diff --git a/themes/tiddlywiki/tight/base.tid b/themes/tiddlywiki/tight/base.tid index 38c5e9933..7a8e43506 100644 --- a/themes/tiddlywiki/tight/base.tid +++ b/themes/tiddlywiki/tight/base.tid @@ -34,10 +34,14 @@ tags: [[$:/tags/Stylesheet]] padding: 12px; } - html body.tc-body div.tc-sidebar-scrollable { + html body.tc-body div.tc-sidebar-scrollable, html[dir="rtl"] body.tc-body div.tc-sidebar-scrollable { padding: 12px 0 12px 12px; } + html body.tc-body .tc-sidebar-left div.tc-sidebar-scrollable, html[dir="rtl"] body.tc-body .tc-sidebar-left div.tc-sidebar-scrollable { + padding: 12px 12px 12px 0; + } + <%if [{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]] %> html body.tc-body div.tc-sidebar-scrollable { @@ -110,6 +114,7 @@ tags: [[$:/tags/Stylesheet]] html body.tc-body .tc-sidebar-resizer { width: 12px; + right: auto; left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}}),clamp(calc({{$:/themes/tiddlywiki/tight/metrics/storywidth}}),max(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/tight/metrics/storywidth}}),calc({{$:/themes/tiddlywiki/tight/metrics/storyright}})),max(calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + ({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/tight/metrics/storywidth}} - {{$:/themes/tiddlywiki/tight/metrics/storyright}})),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}}))),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}})); } @@ -122,6 +127,7 @@ tags: [[$:/tags/Stylesheet]] html body.tc-body .tc-sidebar-resizer { left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}}),calc(100% - {{$:/themes/tiddlywiki/tight/metrics/sidebarwidth}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}})); + right: auto; } html body.tc-body .tc-sidebar-left .tc-sidebar-resizer { diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index f7f954d1c..2af741965 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -3615,6 +3615,36 @@ span.tc-translink > a:first-child { word-break: break-all; } +html[dir="rtl"] .tc-tiny-gap-left { + margin-right: .25em; + margin-left: auto; +} + +html[dir="rtl"] .tc-tiny-gap-right { + margin-left: .25em; + margin-right: auto; +} + +html[dir="rtl"] .tc-small-gap-left { + margin-right: .5em; + margin-left: auto; +} + +html[dir="rtl"] .tc-small-gap-right { + margin-left: .5em; + margin-right: auto; +} + +html[dir="rtl"] .tc-big-gap-left { + margin-right: 1em; + margin-left: auto; +} + +html[dir="rtl"] .tc-big-gap-right { + margin-left: 1em; + margin-right: auto; +} + /* Vertical gaps */ .tc-tiny-v-gap-bottom {