diff --git a/core/language/en-GB/ThemeTweaks.multids b/core/language/en-GB/ThemeTweaks.multids index 651455cd8..f1e748307 100644 --- a/core/language/en-GB/ThemeTweaks.multids +++ b/core/language/en-GB/ThemeTweaks.multids @@ -28,6 +28,10 @@ Metrics/FontSize: Font size Metrics/LineHeight: Line height Metrics/BodyFontSize: Font size for tiddler body Metrics/BodyLineHeight: Line height for tiddler body +Metrics/PreviewSliderWidth: Preview slider width +Metrics/PreviewSliderWidth/Hint: the width of the slider between editor and editor preview +Metrics/SidebarPadding: Sidebar padding +Metrics/SidebarPadding/Hint: the padding of the sidebar between sidebar and story river - determines the position of the sidebar resizer Metrics/SidebarResizer/Hint: the values for `storyleft`, `storyright`, `storywidth`, `storyminwidth`, `sidebarwidth` and `sidebarminwidth` need to be ''absolute'' CSS units, ''percentages'' or ''em'' units in order for the sidebar resizer to work Metrics/StoryLeft: Story left position Metrics/StoryLeft/Hint: how far the left margin of the story river
(tiddler area) is from the left of the page @@ -43,11 +47,11 @@ Metrics/StoryRight: Story right Metrics/StoryRight/Hint: how far the left margin of the sidebar
is from the left of the page Metrics/StoryWidth: Story width Metrics/StoryWidth/Hint: the overall width of the story river -Metrics/TiddlerWidth: Tiddler width -Metrics/TiddlerWidth/Hint: within the story river Metrics/SidebarBreakpoint: Sidebar breakpoint Metrics/SidebarBreakpoint/Hint: the minimum page width at which the story
river and sidebar will appear side by side Metrics/SidebarMinWidth: Minimum Sidebar width Metrics/SidebarMinWidth/Hint: the minimum width of the sidebar Metrics/SidebarWidth: Sidebar width Metrics/SidebarWidth/Hint: the width of the sidebar in fluid-fixed layout +Metrics/TiddlerWidth: Tiddler width +Metrics/TiddlerWidth/Hint: within the story river diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index e0d6eee59..04c2f9d52 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -68,7 +68,7 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ sliderCondition=<> mode="inline" padding="0px" - sliderWidth="6px" + sliderWidth=<> /> diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index fa2e75ee2..e60c9fede 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -108,8 +108,9 @@ title: $:/core/procedures/sidebar-resizer \end \function get.tiddler-width.result() -[match[%]thencompare:number:ltthencompare:number:gteq[0]then] -:else[match[%]thencompare:number:gtthen] +[match[%]thencompare:number:ltthencompare:number:gteq[0]thenaddsuffix] +:else[match[%]thencompare:number:ltthencompare:number:lt[0]thenaddsuffix] +:else[match[%]thencompare:number:gtthenaddsuffix] :else[!match[%]thencompare:number:ltthenaddsuffix] :else[!match[%]thencompare:number:gteqthenaddsuffix] :else[compare:number:lt[0]then[0]addsuffix] @@ -117,50 +118,55 @@ title: $:/core/procedures/sidebar-resizer \end \function get.story-right.result() -[compare:number:ltthenaddsuffix] -:else[compare:number:gteqthenaddsuffix] +[compare:number:ltthenaddsuffix] +:else[compare:number:gteqthenaddsuffix] :else[addsuffix] \end -\function get.story-sidebar.padding() -[match[left]thensubtract] -:else[subtract] -\end - \procedure set-storywidth-storyright-actions() <$let storyRightStart={{{ [get[start-story-right]] }}} storyWidthStart={{{ [get[start-story-width]] }}} storyRightStart={{{ [convert.to.pixels.locally] }}} storyWidthStart={{{ [convert.to.pixels.locally] }}} - storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} - storyMinWidth={{{ [convert.to.pixels.locally] }}} - sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} + storyRiverWidth={{{ [add] }}} storyPaddingLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[] }}} storyPaddingLeft={{{ [convert.to.pixels.locally] }}} storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[] }}} storyPaddingRight={{{ [convert.to.pixels.locally] }}} - sidebarMinWidth={{{ [convert.to.pixels.locally] :map[] }}} - storyLeftValue={{{ [!is[blank]get[text]] :else[] }}} + storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} + storyMinWidth={{{ [convert.to.pixels.locallyaddadd] }}} + sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} + sidebarPaddingValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} + sidebarPadding={{{ [convert.to.pixels.locally] }}} + storyLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyLeft={{{ [convert.to.pixels.locally] }}} + sidebarMinWidth={{{ [convert.to.pixels.locallysubtractsubtract] }}} clampedDiff={{{ [addaddsubtractcompare:number:gt[0]] :else[[0]] }}} storyWidthStart={{{ [subtract] }}} storyRightStart={{{ [subtract] }}} storyWidth={{{ [add] }}} innerStoryWidth={{{ [subtractsubtract] }}} innerStoryWidthStart={{{ [subtractsubtract] }}} + storyMinWidth={{{ [add] }}} storyMinWidthAddLeft={{{ [add] }}} storyRiverLimit={{{ [subtract] }}} storyMaxWidth={{{ [subtract] }}} + innerStoryWidthMin={{{ [subtractsubtract] }}} + innerStoryWidthMax={{{ [subtractsubtract] }}} tiddlerWidthMetric={{{ [get[tiddler-width-metric]] }}} tiddlerWidthStart={{{ [get[start-tiddler-width]] }}} tiddlerWidthStartPixels={{{ [match[%]thenmultiplydivide[100]] :else[convert.to.pixels.locally] }}} tiddlerWidthClampedDiff={{{ [addaddaddaddsubtractcompare:number:gt[0]] :else[[0]] }}} - tiddlerWidth={{{ [addsubtract] }}} - tiddlerWidthDiff={{{ [subtract] }}} - tiddlerMinWidth={{{ [match[%]then] :else[subtract] }}} - tiddlerMaxWidth={{{ [match[%]then] :else[subtract] }}} - storyRiverWidth={{{ [subtract] }}}> + tiddlerWidth={{{ [compare:number:lteqthencompare:number:gteqthenaddsubtract] :else[[]] }}} + tiddlerWidthDiff={{{ [subtract] }}} + tiddlerMinWidth={{{ [subtract] }}} + tiddlerMaxWidth={{{ [subtract] }}} + storyWidthStoryRightStartDiff={{{ [subtract] }}} + storyRiverWidth={{{ [compare:number:eqthen] :else[compare:number:gt[0]thenadd] :else[compare:number:lt[0]thensubtract] :else[] }}} + storyRiverWidth={{{ [subtract] }}} + storyRightLimit={{{ [compare:number:eq[0]thensubtract] :else[compare:number:gt[0]then] :else[compare:number:lt[0]then] :else[] }}} + storyMinRight={{{ [add] }}}> <$let storyWidthMetric={{{ [get[story-width-metric]] }}} @@ -168,12 +174,18 @@ title: $:/core/procedures/sidebar-resizer storyMinWidthConverted={{{ [function[convert.to.result],,] }}} storyMaxWidthConverted={{{ [function[convert.to.result],,] }}} tiddlerWidthConverted={{{ [match[%]thenmultiply[100]divide] :else[function[convert.to.result],,] }}} - tiddlerMinWidthConverted={{{ [match[%]thenmultiply[100]divide] :else[function[convert.to.result],,] }}} - tiddlerMaxWidthConverted={{{ [match[%]thenmultiply[100]divide] :else[function[convert.to.result],,] }}} + tiddlerMinWidthConverted={{{ [match[%]thenmultiply[100]divide] :else[function[convert.to.result],,] }}} + tiddlerMaxWidthConverted={{{ [match[%]thenmultiply[100]divide] :else[function[convert.to.result],,] }}} storyWidthSetTiddler={{{ [!is[blank]] :else[] }}} tiddlerWidthSetTiddler={{{ [!is[blank]] :else[] }}}> - <$action-setfield $tiddler=<> text=<>/> + <%if [!is[blank]] %> + <$action-setfield $tiddler=<> text=<>/> + <%elseif [compare:number:gt] %> + <$action-setfield $tiddler=<> text={{{ [addsuffix] }}}/> + <%elseif [compare:number:lt] %> + <$action-setfield $tiddler=<> text={{{ [addsuffix] }}}/> + <% endif %> <$action-setfield $tiddler=<> text=<>/> @@ -181,7 +193,9 @@ title: $:/core/procedures/sidebar-resizer <$let storyRightMetric={{{ [get[story-right-metric]] }}} storyRiverWidthConverted={{{ [function[convert.to.result],,] }}} - storyRiverLimitConverted={{{ [function[convert.to.result],,] }}} + storyRightLimitConverted={{{ [function[convert.to.result],,] }}} + storyMinRightConverted={{{ [function[convert.to.result],,] }}} + storyMinWidthConverted={{{ [function[convert.to.result],,] }}} storyMinWidthAddLeftConverted={{{ [function[convert.to.result],,] }}} storyRightSetTiddler={{{ [!is[blank]] :else[] }}}> @@ -193,7 +207,7 @@ title: $:/core/procedures/sidebar-resizer \end \function get.sidebar-width.result() -[compare:number:gteqthenaddsuffix] +[compare:number:ltthenaddsuffix] :else[compare:number:ltthenaddsuffix] :else[addsuffix] \end @@ -206,21 +220,24 @@ title: $:/core/procedures/sidebar-resizer \procedure set-sidebarwidth-actions() <$let - storyPaddingLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[] }}} + startSidebarWidth={{{ [get[start-sidebar-width]] }}} + startSidebarWidth={{{ [convert.to.pixels.locally] }}} + sidebarWidth={{{ [subtract] }}} + storyPaddingLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyPaddingLeft={{{ [convert.to.pixels.locally] }}} - storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then[0px]] :else[] }}} + storyPaddingRightValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyPaddingRight={{{ [convert.to.pixels.locally] }}} sidebarMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} sidebarWidthMetric={{{ [get[sidebar-width-metric]] }}} sidebarMinWidth={{{ [convert.to.pixels.locally] }}} - storyLeftValue={{{ [!is[blank]get[text]] :else[] }}} + storyLeftValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyLeft={{{ [convert.to.pixels.locally] }}} storyMinWidthValue={{{ [!is[blank]is[tiddler]get[text]] :else[!is[blank]is[missing]then] :else[] }}} storyMinWidth={{{ [convert.to.pixels.locally] }}} - sidebarMaxWidth={{{ [subtractsubtractadd] }}} + sidebarMaxWidth={{{ [subtractsubtractsubtractsubtract] }}} clampedDiff={{{ [addaddsubtractcompare:number:gt[0]] :else[[0]] }}} - sliderWidth={{{ [convert.to.pixels.locally] }}} - sidebarWidth={{{ [subtractsubtract] }}}> + sidebarWidth={{{ [subtract] }}} + innerStoryWidth={{{ [subtractsubtractsubtractsubtract] }}}> <$let sidebarWidthConverted={{{ [function[convert.to.result],,] }}} @@ -278,13 +295,7 @@ title: $:/core/procedures/sidebar-resizer <$let startPosX={{{ [get[start-posx]] }}} widgetNodeWidth={{{ [get[widget-node-width]] }}} - dragDiff=<> - startStoryRight={{{ [get[start-story-right]] }}} - startStoryRight={{{ [convert.to.pixels.locally] }}} - storyRiverWidth={{{ [add] }}} - startSidebarWidth={{{ [get[start-sidebar-width]] }}} - startSidebarWidth={{{ [convert.to.pixels.locally] }}} - sidebarWidth={{{ [subtract] }}}> + dragDiff=<>> <%if [match[yes]] %> <> <> diff --git a/core/wiki/macros/sliders.tid b/core/wiki/macros/sliders.tid index c347685ac..0c2bb7b2c 100644 --- a/core/wiki/macros/sliders.tid +++ b/core/wiki/macros/sliders.tid @@ -6,13 +6,16 @@ code-body: yes \import $:/core/procedures/sidebar-resizer \function get.resizer.style.position() absolute \function get.template-right.width() [get[text]] :else[[50%]] -\function get.resizer.style.left() [[calc(100% - ]addsuffixaddsuffix[ - 3px)]] +\function get.resizer.style.left() [[calc(100% - ]addsuffixaddsuffix[ - ]addsuffixaddsuffix[)]] \function get.resizer.style.width() [] \function set.throttling() no \function get.template.left() \function get.preview.slider.class() [] \function get.left.minwidth() [] \function get.right.minwidth() [] +\function get.story-padding.right() 0px +\function get.story-padding.left() 0px +\function get.story.left() 0 \whitespace trim <$let diff --git a/themes/tiddlywiki/centralised/styles.tid b/themes/tiddlywiki/centralised/styles.tid index 2e90b2d6d..18924ae0f 100644 --- a/themes/tiddlywiki/centralised/styles.tid +++ b/themes/tiddlywiki/centralised/styles.tid @@ -35,6 +35,7 @@ tags: [[$:/tags/Stylesheet]] margin-left: 0; right: 50%; left: 0; + z-index: 1; margin-right: min(calc((100% - (2 * <>)) / 2 - <>),calc(<> / 2 - <>)); padding-right: 0px; padding-left: 42px; diff --git a/themes/tiddlywiki/vanilla/ThemeTweaks.tid b/themes/tiddlywiki/vanilla/ThemeTweaks.tid index e81d62626..36e1e0089 100644 --- a/themes/tiddlywiki/vanilla/ThemeTweaks.tid +++ b/themes/tiddlywiki/vanilla/ThemeTweaks.tid @@ -83,3 +83,5 @@ caption: {{$:/language/ThemeTweaks/ThemeTweaks}} |<$link to=<>><>
//<>// |^<$edit-text tiddler=<> default="" tag="input"/> | |<$link to=<>><>
//<>// |^<$edit-text tiddler=<> default="" tag="input"/> | |<$link to=<>><>
//<>// |^<$edit-text tiddler=<> default="" tag="input"/> | +|<$link to=<>><>
//<>// |^<$edit-text tiddler=<> default="" tag="input"/> | +|<$link to=<>><>
//<>// |^<$edit-text tiddler=<> default="" tag="input"/> | diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 4c00aa02a..92fe308b2 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1019,37 +1019,38 @@ button.tc-btn-invisible.tc-remove-tag-button { .tc-sidebar-scrollable { position: fixed; top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}}; - left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}}),<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); + left: clamp(calc(<> + <>),<>,calc(100% - <> + <> + <>)); bottom: 0; right: 0; overflow-y: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; - margin: 0 0 0 -<>; - padding: 71px 0 28px 42px; + margin: 0 0 0 -<>; + padding: 71px 0 28px <>; } .tc-sidebar-left .tc-sidebar-scrollable { left: 0; - right: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}}),<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); - margin: 0 -<> 0 0; + right: clamp(calc(<> + <>),<>,calc(100% - <> + <> + <>)); + margin: 0 -<> 0 0; + z-index: 1; } html[dir="rtl"] .tc-sidebar-scrollable { - padding-right: <>; + padding-right: <>; padding-left: 0; } html[dir="rtl"] .tc-sidebar-scrollable:not(.tc-sidebar-left .tc-sidebar-scrollable) { - padding-right: <>; + padding-right: <>; padding-left: 0; } .tc-story-river { left: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}); - right: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); + right: clamp(calc(<> - <>),calc(100% - <>),calc(100% - <>)); top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}}; - width: clamp({{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}},<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} + <>)); + width: clamp(<>,<>,calc(100% - <> + <>)); padding: 42px <> 42px <>; } @@ -1057,9 +1058,9 @@ button.tc-btn-invisible.tc-remove-tag-button { display: flex; align-items: flex-end; flex-direction: column; - left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - <>),calc(100% - <> - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); - width: clamp({{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}},<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} + <>)); - right: max(0px,calc({{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})); + left: clamp(calc(<> - <> - <>),calc(100% - <> - <>),calc(100% - <>)); + width: clamp(<>,<>,calc(100% - <> + <>)); + right: max(0px,<>); } html[dir="rtl"] .tc-sidebar-left .tc-story-river { @@ -1281,6 +1282,10 @@ button.tc-btn-invisible.tc-remove-tag-button { padding: 3px; /* make space for outline */ } +html[dir="rtl"] .tc-tiddler-frame .tc-tiddler-controls { + float: left; +} + .tc-tiddler-controls .tc-drop-down { font-size: 0.6em; } @@ -1438,6 +1443,8 @@ html body.tc-body.tc-single-tiddler-window { background-color: <>; z-index: 1; padding-top: 8px; + margin-left: -3px; + margin-right: -3px; } .tc-tiddler-frame .tc-tiddler-editor.tc-tiddler-preview .tc-editor-toolbar, @@ -1516,22 +1523,19 @@ html body.tc-body.tc-single-tiddler-window { <>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} + <>)); + margin-right: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - <>),calc(<> - <>),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); } .tc-sidebar-left .tc-story-river { margin-right: max(0px,{{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}); - margin-left: clamp({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}},<>,calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}} + <>)); + margin-left: clamp(calc({{$:/themes/tiddlywiki/vanilla/metrics/sidebarminwidth}} - <>),calc(<> - <>),calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}} - {{$:/themes/tiddlywiki/vanilla/metrics/storyminwidth}})); left: auto; width: auto; right: 0; - padding-right: <>; - padding-left: 0; } html[dir="rtl"] .tc-story-river:not(.tc-sidebar-left .tc-story-river) { @@ -1717,9 +1721,10 @@ html body.tc-body.tc-single-tiddler-window { .tc-tiddler-frame .tc-tiddler-editor.tc-tiddler-preview .tc-tiddler-preview-preview { grid-area: preview; overflow-wrap: anywhere; + min-height: 100px; word-break: normal; border: 1px solid <>; - margin: 4px 0 3px 3px; + margin: 4px 0 3px 0; padding: 3px 3px 3px 3px; } diff --git a/themes/tiddlywiki/vanilla/metrics.multids b/themes/tiddlywiki/vanilla/metrics.multids index 940db1528..ae1367fc2 100644 --- a/themes/tiddlywiki/vanilla/metrics.multids +++ b/themes/tiddlywiki/vanilla/metrics.multids @@ -4,8 +4,10 @@ bodyfontsize: 15px bodylineheight: 22px fontsize: 14px lineheight: 20px +previewsliderwidth: 6px sidebarbreakpoint: 960px sidebarminwidth: 350px +sidebarpadding: 42px sidebarwidth: 350px storyleft: 0px storypaddingleft: 42px diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index c8d6225fd..32262e5a4 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -108,12 +108,13 @@ code-body: yes <%if [match[yes]] %> .tc-sidebar-resizer.tc-main-sidebar-resizer { - left: clamp(calc(<> + <> - (2 * <> / 3)),clamp(calc(<> - (2 * <> / 3)),max(calc(<> + <> - (2 * <> / 3)),calc(<> - (2 * <> / 3))),max(calc(100% - <> - (2 * <> / 3) + (<> + <> - <>)),calc(100% - <> - (2 * <> / 3)))),calc(100% - <> + <> - (2 * <> / 3))); + left: clamp(calc(<> + <> - (2 * <> / 3)),clamp(calc(<> + <> - (2 * <> / 3)),max(calc(<> + <> - (2 * <> / 3)),calc(<> + <> - (2 * <> / 3))),max(calc(100% - <> - (2 * <> / 3) + (<> + <> - <>)),calc(100% - <> + <> - (2 * <> / 3)))),calc(100% - <> + <> + <> - (2 * <> / 3))); } .tc-sidebar-left .tc-sidebar-resizer.tc-main-sidebar-resizer { left: auto; - right: clamp(calc(<> + <> - (2 * <> / 3)),clamp(calc(<> - (2 * <> / 3)),max(calc(<> + <> - (2 * <> / 3)),calc(<> - (2 * <> / 3))),max(calc(100% - <> - (2 * <> / 3) + (<> + <> - <>)),calc(100% - <> - (2 * <> / 3)))),calc(100% - <> + <> - (2 * <> / 3))); + z-index: 1; + right: clamp(calc(<> + <> - (2 * <> / 3)),clamp(calc(<> + <> - (2 * <> / 3)),max(calc(<> + <> - (2 * <> / 3)),calc(<> + <> - (2 * <> / 3))),max(calc(100% - <> - (2 * <> / 3) + (<> + <> - <>)),calc(100% - <> + <> - (2 * <> / 3)))),calc(100% - <> + <> + <> - (2 * <> / 3))); } <% endif %> @@ -121,12 +122,13 @@ code-body: yes <%if [match[yes]] %> .tc-sidebar-resizer.tc-main-sidebar-resizer { - left: clamp(calc(<> + <> - <> + (<> / 3)),calc(100% - <> + (<> / 3)),calc(100% - <> + (<> / 3))); + left: clamp(calc(<> + <> - <> + (<> / 3)),calc(100% - <> + (<> / 3)),calc(100% - <> + (<> / 3))); } .tc-sidebar-left .tc-sidebar-resizer.tc-main-sidebar-resizer { left: auto; - right: clamp(calc(<> + <> - <> + (<> / 3)),calc(100% - <> + (<> / 3)),calc(100% - <> + (<> / 3))); + z-index: 1; + right: clamp(calc(<> + <> - <> + (<> / 3)),calc(100% - <> + (<> / 3)),calc(100% - <> + (<> / 3))); } <% endif %> @@ -134,12 +136,13 @@ code-body: yes <%if [match[yes]] %> .tc-sidebar-resizer.tc-main-sidebar-resizer { - left: min(calc(50% + (<> / 2) - (2 * <> / 3)),calc(100% - <> - (2 * <> / 3))); + left: min(calc(50% + (<> / 2) - (2 * <> / 3)),calc(100% - <> - (2 * <> / 3))); } .tc-sidebar-left .tc-sidebar-resizer.tc-main-sidebar-resizer { left: auto; - right: min(calc(50% + (<> / 2) - (2 * <> / 3)),calc(100% - <> - (2 * <> / 3))); + z-index: 1; + right: min(calc(50% + (<> / 2) - (2 * <> / 3)),calc(100% - <> - (2 * <> / 3))); } <% endif %> @@ -168,7 +171,7 @@ code-body: yes .tc-tiddler-frame iframe[class*="tc-edit-texteditor-identified-"].tc-edit-texteditor, .tc-tiddler-frame textarea[class*="tc-edit-texteditor-identified-"].tc-edit-texteditor, .tc-tiddler-frame contenteditable[class*="tc-edit-texteditor-identified-"].tc-edit-texteditor { - width: calc(100% - 3px); + width: calc(100% - <>); min-width: 0px; }