2014-07-31 17:07:37 +00:00
|
|
|
title: $:/core/ui/Buttons/language
|
|
|
|
tags: $:/tags/PageControls
|
|
|
|
caption: {{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}
|
|
|
|
description: {{$:/language/Buttons/Language/Hint}}
|
|
|
|
|
2014-08-07 14:45:56 +00:00
|
|
|
\define flag-title()
|
|
|
|
$(languagePluginTitle)$/icon
|
|
|
|
\end
|
2014-11-21 17:07:03 +00:00
|
|
|
<span class="tc-popup-keep">
|
2014-09-10 09:25:50 +00:00
|
|
|
<$button popup=<<qualify "$:/state/popup/language">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
2014-08-28 16:47:43 +00:00
|
|
|
<span class="tc-image-button">
|
2014-08-07 14:45:56 +00:00
|
|
|
<$set name="languagePluginTitle" value={{$:/language}}>
|
|
|
|
<$image source=<<flag-title>>/>
|
|
|
|
</$set>
|
2014-08-02 10:58:55 +00:00
|
|
|
</span>
|
2014-07-31 17:07:37 +00:00
|
|
|
</$list>
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
2014-10-11 14:26:51 +00:00
|
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Language/Caption}}/></span>
|
2014-07-31 17:07:37 +00:00
|
|
|
</$list>
|
|
|
|
</$button>
|
2014-11-21 17:07:03 +00:00
|
|
|
</span>
|
2014-07-31 17:07:37 +00:00
|
|
|
<$reveal state=<<qualify "$:/state/popup/language">> type="popup" position="below" animate="yes">
|
Improve styling and reusability of palette, language, and theme switchers (#1954)
allows to override styles more easily via new class tc-chosen
----
updated all of storyview, theme, palette, language
» both in ControlPanel as well as PageControls
» removed "current ..." form switchers as it's redundant
» streamlined toolbar buttons in ControlPanel, especially less spacing
----
fixed dropdown hover colour override
if I wouldn't then it would go blank owed to default drop-down styles
----
polished styles
» chosen items now more emphasized while curspor not indicating a link
» removed underline when hovering, used highlighted border colours instead
----
use snippets languageswitcher for pagecontrols button, after all
----
wrap all switchers in tc-chooser
----
apply big font only to buttons, not reveals in pagecontrols
----
moved language switcher wrapper class to snippet
improved language switcher image alignment
----
make tiddler and ControlPanel view behave the same. add generic tc-check-list setting. add generic input type checklist, vertical alignment.
now using css rem to address drop-downs for pagecontrols
thanks @pmario
removed css artefacts in vanilla/base from before merging @pmario's PR
with comments being baked-in I don't think we want these in the code
css simplification for .tc-chosen and tc-chooser-item
2018-04-06 16:26:54 +00:00
|
|
|
<div class="tc-drop-down">
|
|
|
|
{{$:/snippets/languageswitcher}}
|
2014-07-31 17:07:37 +00:00
|
|
|
</div>
|
2014-11-23 20:04:13 +00:00
|
|
|
</$reveal>
|