diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index 5beccb3e5..801f9e12b 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -1,18 +1,18 @@ title: $:/core/ui/EditTemplate/body/default -\function get.edit-preview-state() +\function edit-preview-state() [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] +[get[text]] :else[[no]] \end -\function get.tc-edit-texteditor.class() tc-edit-texteditor tc-edit-texteditor-body [match[yes]thenaddprefix[tc-edit-texteditor-identified-]] +[join[ ]] +\function get.tc-edit-texteditor.class() tc-edit-texteditor tc-edit-texteditor-body [match[yes]thenaddprefix[tc-edit-texteditor-identified-]] +[join[ ]] \function get.tc-tiddler-preview-preview.class() tc-tiddler-preview-preview [addprefix[tc-tiddler-preview-preview-identified-]] +[join[ ]] -\function get.slider.condition() [match[yes]] :else[[no]] +\function get.slider.condition() [match[yes]] :else[[no]] \function resizer.state.tiddler() [[$:/state/resizing/editor-preview-]addsuffix] -\function resizer.class() [[tc-editor-preview-slider-identified-]addsuffix] +\function resizer.class() [[tc-editor-preview-slider-]addsuffix] \define config-visibility-title() $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ @@ -24,7 +24,7 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ \procedure tp-tiddler-editor-preview()
match[yes]then[tc-tiddler-preview]else[tc-tiddler-preview-hidden]] [match[yes]then[tc-tiddler-preview-identified-]addsuffix] [[tc-tiddler-editor]] +[join[ ]] }}}> + class={{{ [match[yes]then[tc-tiddler-preview]else[tc-tiddler-preview-hidden]] [match[yes]then[tc-tiddler-preview-identified-]addsuffix] [[tc-tiddler-editor]] +[join[ ]] }}}> <$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/> diff --git a/core/wiki/macros/sidebar-resizer.tid b/core/wiki/macros/sidebar-resizer.tid index 4f812c87b..8958d5aea 100644 --- a/core/wiki/macros/sidebar-resizer.tid +++ b/core/wiki/macros/sidebar-resizer.tid @@ -358,7 +358,7 @@ title: $:/core/procedures/sidebar-resizer \function get.resizer.class() tc-sidebar-resizer [is[tiddler]then[tc-resizer-active]] [] [is[blank]thenaddsuffixsha256[]addprefix[tc-sidebar-resizer-identified-]] +[join[ ]] -\function get.active.class(class) [] [] [] [is[tiddler]then[tc-resizer-active]] +[join[ ]] +\function get.active.class(class) [] [] [is[tiddler]then[tc-resizer-active]] +[join[ ]] \function get.sidebar-resizer.pointerdown.actions() [match[$:/state/sidebar/resizing]then] diff --git a/themes/tiddlywiki/vanilla/sidebar-resizer.tid b/themes/tiddlywiki/vanilla/sidebar-resizer.tid index 8caa6f97c..19edfa0a8 100644 --- a/themes/tiddlywiki/vanilla/sidebar-resizer.tid +++ b/themes/tiddlywiki/vanilla/sidebar-resizer.tid @@ -176,7 +176,7 @@ code-body: yes min-width: 0px; } -div[class*="tc-sidebar-resizer-identified-"]:not(.tc-main-sidebar-resizer) { +div[class*="tc-editor-preview-slider-"] { position: absolute; left: calc(50% - <>); width: <>; @@ -184,11 +184,11 @@ div[class*="tc-sidebar-resizer-identified-"]:not(.tc-main-sidebar-resizer) { @media (pointer: coarse) { - div[class*="tc-sidebar-resizer-identified-"]:not(.tc-main-sidebar-resizer) { + div[class*="tc-editor-preview-slider-"] { background-color: <>; } - div[class*="tc-sidebar-resizer-identified-"]:not(.tc-main-sidebar-resizer):hover { + div[class*="tc-editor-preview-slider-"]:hover { opacity: <>; } @@ -204,13 +204,13 @@ div[class*="tc-sidebar-resizer-identified-"]:not(.tc-main-sidebar-resizer) { grid-template-columns: calc(100% - <>) <>; } - div.tc-sidebar-resizer.tc-editor-preview-slider-identified-<> { + div.tc-sidebar-resizer.tc-editor-preview-slider-<> { left: calc(100% - <> - <>); } <%if [[$:/state/resizing/editor-preview-]addsuffixis[tiddler]] %> - div.tc-sidebar-resizer.tc-sidebar-resizer-identified-<> { + div.tc-sidebar-resizer.tc-editor-preview-slider-<> { opacity: min(calc(3 * <>),1); }