1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-26 14:18:21 +00:00

[tw.com] Improve the saver cards (#6799)

* [tw.com] Improve the saver cards

* [tw.com] Improve the saver cards _ take 2

* Update tw5.com-styles.tid
This commit is contained in:
twMat 2022-07-19 20:05:23 +02:00 committed by GitHub
parent 93717560dc
commit c49d5a3b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 11 deletions

View File

@ -1,17 +1,21 @@
created: 20200507002521489
modified: 20200515012732244
tags:
modified: 20220719134613555
title: $:/_tw5.com-card-template
type: text/vnd.tiddlywiki
\define tw-card-template(bordercolor:"")
\whitespace trim
<div class="tc-card" style="border-top: 5px solid $bordercolor$;">
<$link>
<div class="tc-card-title"><$transclude field="caption"><$view field="title"/></$transclude></div>
<div class="tc-card-author"> <$list filter="[is[current]has[community-author]]">by {{!!community-author}}</$list></div>
<p><$view field="description"/></p>
</$link>
<$link>
<$let tv-wikilinks=no>
<div class="tc-card-title"><$transclude field="caption"><$view field="title"/></$transclude></div>
<div class="tc-card-author">
<$list filter="[is[current]has[community-author]]">by&nbsp;{{!!community-author}}</$list>
</div>
<p><$view field="description"/></p>
</$let>
</$link>
</div>
\end
<$macrocall $name="tw-card-template" bordercolor={{!!color}}/>
<$macrocall $name="tw-card-template" bordercolor={{!!color}}/>

View File

@ -1,5 +1,5 @@
created: 20200507002727378
modified: 20200515024640489
modified: 20220719132112414
tags: $:/tags/Stylesheet
title: $:/_tw5.com-styles
type: text/vnd.tiddlywiki
@ -151,7 +151,8 @@ type: text/vnd.tiddlywiki
}
.tc-card-author {
text-align: right;
text-align: center;
font-style: italic;
}
.tc-card p {
@ -197,4 +198,4 @@ div.content {
.tc-btn-download:active {
background: #1475ff;
}
}