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

Add icon to "New in version" docs macro

This commit is contained in:
Jermolene 2016-11-21 12:50:16 +00:00
parent 903cdc09cc
commit 0f85ca3478
2 changed files with 16 additions and 3 deletions

View File

@ -163,9 +163,22 @@ tr.doc-table-subheading {
}
.doc-from-version {
display: inline-block;
display: inline-block;
border: 2px solid <<colour alert-border>>;
border-radius: 0.5em;
border-radius: 1em;
background: <<colour alert-background>>;
padding: 0 0.4em;
font-size: 0.7em;
text-transform: uppercase;
font-weight: bold;
line-height: 1.5;
vertical-align: text-bottom;
}
.doc-from-version svg {
width: 1em;
height: 1em;
vertical-align: text-bottom;
}

View File

@ -4,5 +4,5 @@ title: $:/editions/tw5.com/version-macros
tags: $:/tags/Macro
\define .from-version(version)
<span class="doc-from-version">New in $version$</span>
<span class="doc-from-version">{{$:/core/images/warning}} New in $version$</span>
\end