1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Tweak some system buttons to look better in the new menu bar

The reveal widget leaves behind an unnecessary span, which breaks the CSS used to target the button.
This commit is contained in:
Jeremy Ruston 2020-02-28 14:34:06 +00:00
parent ad2d4503e5
commit b179a60111
2 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
title: $:/core/ui/TopBar/menu title: $:/core/ui/TopBar/menu
tags: $:/tags/TopRightBar tags: $:/tags/TopRightBar
<$reveal state="$:/state/sidebar" type="nomatch" text="no"> <$list filter="[[$:/state/sidebar]get[text]!match[no]]" variable="ignore">
<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button> <$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button>
</$reveal> </$list>
<$reveal state="$:/state/sidebar" type="match" text="no"> <$list filter="[[$:/state/sidebar]get[text]match[no]]" variable="ignore">
<$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button> <$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button>
</$reveal> </$list>

View File

@ -6,7 +6,7 @@ description: {{$:/language/Buttons/Help/Hint}}
\whitespace trim \whitespace trim
\define help-inner() \define help-inner()
\whitespace trim \whitespace trim
<$reveal type="match" state="$:/config/ShowHelp" text="yes"> <$list filter="[[$:/config/ShowHelp]get[text]match[yes]]" variable="ignore">
<$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected"""> <$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected""">
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}} {{$:/core/images/help}}
@ -15,8 +15,8 @@ description: {{$:/language/Buttons/Help/Hint}}
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span> <span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list> </$list>
</$button> </$button>
</$reveal> </$list>
<$reveal type="nomatch" state="$:/config/ShowHelp" text="yes"> <$list filter="[[$:/config/ShowHelp]get[text]!match[yes]]" variable="ignore">
<$button set="$:/config/ShowHelp" setTo="yes" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class=<<tv-config-toolbar-class>>> <$button set="$:/config/ShowHelp" setTo="yes" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> <$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}} {{$:/core/images/help}}
@ -25,6 +25,6 @@ description: {{$:/language/Buttons/Help/Hint}}
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span> <span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list> </$list>
</$button> </$button>
</$reveal> </$list>
\end \end
<<help-inner>> <<help-inner>>