mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-03 01:10:45 +00:00
Merge branch 'master' into demo-alternate-store
This commit is contained in:
commit
62337101c3
@ -3,14 +3,26 @@ tags: $:/tags/Macro
|
||||
|
||||
\define translink(title,mode:"block")
|
||||
\whitespace trim
|
||||
<div style="border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;">
|
||||
<$list filter="[<__mode__>match[block]]">
|
||||
<div class="tc-translink">
|
||||
<div>
|
||||
<$link to="""$title$""">
|
||||
<$text text="""$title$"""/>
|
||||
<h1><$text text="""$title$"""/></h1>
|
||||
</$link>
|
||||
<div style="border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;">
|
||||
<$transclude tiddler="""$title$""" mode="$mode$">
|
||||
"<$text text="""$title$"""/>" is missing
|
||||
<$transclude tiddler="""$title$""" mode="block">
|
||||
<$set name="currentTiddler" value="""$title$"""><$transclude tiddler="$:/language/MissingTiddler/Hint"/></$set>
|
||||
</$transclude>
|
||||
</div>
|
||||
</div>
|
||||
</$list>
|
||||
<$list filter="[<__mode__>match[inline]]">
|
||||
<span class="tc-translink">
|
||||
<$link to="""$title$""">
|
||||
<$text text="""$title$"""/>
|
||||
</$link>
|
||||
 (<$transclude tiddler="""$title$""" mode="inline">
|
||||
<$set name="currentTiddler" value="""$title$"""><$transclude tiddler="$:/language/MissingTiddler/Hint"/></$set>
|
||||
</$transclude>)
|
||||
</span>
|
||||
</$list>
|
||||
\end
|
||||
|
@ -3118,6 +3118,30 @@ select {
|
||||
background: <<colour select-tag-background>>;
|
||||
}
|
||||
|
||||
/*
|
||||
** Translink macro
|
||||
*/
|
||||
|
||||
.tc-translink {
|
||||
background-color: <<colour pre-background>>;
|
||||
border: 1px solid <<colour pre-border>>;
|
||||
padding: 0 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
div.tc-translink > div {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
div.tc-translink > div > a:first-child > h1 {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.tc-translink > a:first-child {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/*
|
||||
** Classes for displaying globals
|
||||
*/
|
||||
@ -3234,4 +3258,4 @@ select {
|
||||
|
||||
.tc-tiny-v-gap-bottom {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user