1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Move improvement banner to the edit template

Thanks to @xcazin for the most excellent suggestion.
This commit is contained in:
Jermolene 2014-08-20 22:07:39 +01:00
parent 085e60c0f7
commit bbd0f7841b
2 changed files with 13 additions and 7 deletions

View File

@ -1,12 +1,18 @@
title: $:/editions/tw5.com/ViewTemplate/Sources
tags: not-$:/tags/ViewTemplate
title: $:/editions/tw5.com/EditTemplate/Sources
tags: $:/tags/EditTemplate
list-after: $:/core/ui/EditTemplate/title
\define makeGitHubLink()
https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/tiddlers/$(githubLink)$
https://github.com/Jermolene/TiddlyWiki5/edit/master/editions/tw5.com/tiddlers/$(githubLink)$
\end
\define innerMakeGitHubLink(linkText)
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(draftOfTiddler)$}}>
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank">$linkText$</a>
</$set>
\end
\define outerMakeGitHubLink(linkText)
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(currentTiddler)$}}>
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank">$linkText$</a>
<$set name="draftOfTiddler" value={{$(currentTiddler)$!!draft.of}}>
<<innerMakeGitHubLink "$linkText$">>
</$set>
\end
<div class="tw-improvement-banner">

View File

@ -46,13 +46,14 @@ tags: $:/tags/stylesheet
font-size: 0.7em;
background: #fcc;
padding-left: 5px;
margin-top: 6px;
margin-bottom: 12px;
<<box-shadow "2px 2px 2px rgba(0,0,0,0.4)">>
}
@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
.tw-improvement-banner {
margin-top: 15px;
}
}
@ -61,7 +62,6 @@ tags: $:/tags/stylesheet
.tw-improvement-banner {
margin-right: -23px;
margin-bottom: -20px;
margin-left: -53px;
}