mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-01 13:59:55 +00:00
a350a76a00
* Initial Commit * Set currentTiddler and ..currentTiddler for filter evaulation * Precompile the filters for performance * Add explicit test for empty result when no filter passes * Use the cascade filter run prefix to choose the view template body template * Use the cascade mechanism to choose between the edit and view templates * Simplify cascade filter Thanks @saqimtiaz * Add control panel UI for inspecting the template cascades * Refactor import listing and plugin listing as alternate body templates As suggested by @pmario * Refer to $:/core/ui/{View|Edit}Template via their associated config tiddlers * Fix typo in previous commit * Add demo of custom story tiddler template * Tweak control panel wording * Standardise "Story Tiddler Template" nomenclature * Add a cascade for the editor template body * Add a cascade for the view template title * Avoid unwanted whitespace * Add a cascade for dynamically choosing tiddler icons
31 lines
689 B
Plaintext
31 lines
689 B
Plaintext
title: $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Styles
|
|
tags: $:/tags/Stylesheet
|
|
|
|
.tc-custom-tiddler-template {
|
|
border: 3px solid <<colour muted-foreground>>;
|
|
border-radius: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.tc-custom-tiddler-template-inner {
|
|
background: <<colour muted-foreground>>;
|
|
padding: 1em;
|
|
}
|
|
|
|
.tc-custom-tiddler-template-list {
|
|
position: relative;
|
|
height: 33vh;
|
|
}
|
|
|
|
.tc-custom-tiddler-template-list .tc-custom-tiddler-template-list-item {
|
|
position: absolute;
|
|
width: 100%;
|
|
transform-origin: 50% 0;
|
|
top: 50px;
|
|
left: 0;
|
|
<<box-shadow "0px 0px 15px rgba(0, 0, 0, 0.3)">>
|
|
}
|
|
|
|
.tc-custom-tiddler-template-list .tc-custom-tiddler-template-list-item .tc-tiddler-frame {
|
|
margin: 0;
|
|
} |