1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Palette chooser styling tweaks

This commit is contained in:
Jeremy Ruston 2024-10-25 11:03:21 +01:00
parent fc369415e4
commit 151f61adc0
3 changed files with 24 additions and 3 deletions

View File

@ -40,6 +40,10 @@ title: $:/snippets/currpalettepreview
<div class="tc-palette-preview-thumbnail-sidebar-subtitle">
a non-linear personal web notebook
</div>
<div class="tc-palette-preview-thumbnail-sidebar-search" style.backgroundColor=<<colour background>>>
<div class="tc-palette-preview-thumbnail-sidebar-search-box">
</div>
</div>
</div>
</div>
\end palette-preview-thumbnail

View File

@ -8,10 +8,12 @@ title: $:/snippets/paletteswitcher
<div class=<<cls>>>
<$link to={{!!title}}>
{{||$:/snippets/currpalettepreview}}
''<$view field="name" format="text"/>''
<div class="tc-chooser-item-description">
''<$view field="name" format="text"/>''
<div class="tc-chooser-item-subtitle">
<$view field="description" format="text"/>
</div>
</div>
</$link>
</div>
</$set>

View File

@ -2830,8 +2830,8 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
.tc-chooser.tc-chooser-cards .tc-chooser-item {
width: 15em;
margin: 0.25em;
padding: 3px;
margin: 0.5em;
padding: 6px;
border: 1px solid <<colour muted-foreground>>;
border-radius: 3px;
}
@ -2855,6 +2855,7 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
text-decoration: none;
background-color: transparent;
font-weight: normal;
color: <<colour foreground>>;
}
.tc-chooser-item:hover .tc-tiddlylink:hover {
@ -2874,6 +2875,10 @@ a.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk .tc-plugin-info-sta
}
.tc-chooser-item .tc-chooser-item-description {
padding: 3px;
}
.tc-chooser-item .tc-chooser-item-subtitle {
font-size: 0.8em;
line-height: 1.2;
}
@ -2967,6 +2972,16 @@ input.tc-palette-manager-colour-input {
font-size: 3px;
}
.tc-palette-preview-thumbnail-sidebar-search {
margin:3px 0;
line-height: 0;
width: 70%;
}
.tc-palette-preview-thumbnail-sidebar-search-box {
height: 4px;
}
/*
** Table of contents
*/