2014-02-20 10:00:38 +00:00
|
|
|
title: $:/snippets/currpalettepreview
|
|
|
|
|
2020-07-15 11:23:13 +00:00
|
|
|
\define resolve-colour(macrocall)
|
|
|
|
\import $:/core/macros/utils
|
|
|
|
\whitespace trim
|
|
|
|
<$wikify name="name" text="""$macrocall$""">
|
|
|
|
<<name>>
|
|
|
|
</$wikify>
|
|
|
|
\end
|
2014-02-20 10:00:38 +00:00
|
|
|
\define swatchStyle()
|
|
|
|
background-color: $(swatchColour)$;
|
|
|
|
\end
|
2020-07-15 11:23:13 +00:00
|
|
|
\define swatch-inner()
|
|
|
|
<$set name="swatchColour" value={{##$(colourResolved)$}}>
|
|
|
|
<$list filter="[<swatchColour>!prefix[<<colour ]!suffix[>>]]" variable="ignore">
|
|
|
|
<div class="tc-swatch" style=<<swatchStyle>> title=<<swatchTitle>>/>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[<swatchColour>prefix[<<colour ]suffix[>>]]" variable="ignore">
|
|
|
|
<$wikify name="colourResolved" text="""<$macrocall $name="resolve-colour" macrocall=<<swatchColour>>/>""">
|
|
|
|
<<swatch-inner>>
|
|
|
|
</$wikify>
|
|
|
|
</$list>
|
|
|
|
</$set>
|
|
|
|
\end
|
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
|
|
|
\define swatch()
|
2020-07-15 11:23:13 +00:00
|
|
|
<$set name="swatchColour" value={{##$(colour)$}}>
|
|
|
|
<$set name="swatchTitle" value=<<colour>>>
|
|
|
|
<$list filter="[<swatchColour>!prefix[<<colour ]!suffix[>>]]" variable="ignore">
|
|
|
|
<div class="tc-swatch" style=<<swatchStyle>> title=<<swatchTitle>>/>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[<swatchColour>prefix[<<colour ]suffix[>>]]" variable="ignore">
|
|
|
|
<$wikify name="colourResolved" text="""<$macrocall $name="resolve-colour" macrocall=<<swatchColour>>/>""">
|
|
|
|
<<swatch-inner>>
|
|
|
|
</$wikify>
|
|
|
|
</$list>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
2014-02-20 10:00:38 +00:00
|
|
|
\end
|
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-swatches-horiz"><$list filter="
|
|
|
|
foreground
|
|
|
|
background
|
|
|
|
muted-foreground
|
|
|
|
primary
|
|
|
|
page-background
|
|
|
|
tab-background
|
|
|
|
tiddler-info-background
|
2020-07-15 11:23:13 +00:00
|
|
|
" variable="colour"><<swatch>></$list></div>
|