mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-24 06:32:24 +00:00
doc-macros -- fix margin, remove redundant br from info-boxes
This commit is contained in:
parent
814ab24008
commit
7d90d0fcc0
@ -127,12 +127,11 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
\procedure .infoBox(text:"", title, icon:"$:/core/images/info-button", class, iconSize:"1.4rem")
|
||||
\function _f.tipClass() [[doc-icon-block]] [<class>!is[blank]then<class>] +[join[ ]]
|
||||
<$log/>
|
||||
<div class=<<_f.tipClass>>>
|
||||
<%if [<title>!is[blank]] %><div>''<<title>>''</div><% endif %>
|
||||
<div class="doc-block-icon"><$transclude $tiddler=<<icon>> size=<<iconSize>>/></div>
|
||||
<<text>>
|
||||
</div><br/>
|
||||
</div>
|
||||
\end
|
||||
|
||||
\procedure .note(_:"", title:"Note", icon:"$:/core/images/info-button", class:"doc-note", iconSize:"22pt")
|
||||
|
@ -164,7 +164,7 @@ tr.doc-table-subheading {
|
||||
|
||||
.doc-icon-block {
|
||||
border-left: 4px solid <<colour blockquote-bar>>;
|
||||
margin-left: 3em;
|
||||
margin: 15px 0 15px 3em;
|
||||
padding-left: 0.6em;
|
||||
position: relative;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user