Add help mixin that displays icon with tooltip

This commit is contained in:
ines 2017-05-17 18:21:13 +02:00
parent 8a5f1cd35a
commit 22a4d19fd8
1 changed files with 8 additions and 0 deletions

View File

@ -47,6 +47,14 @@ mixin api(path)
| #[+icon("book", 18).o-icon--inline.u-color-subtle]
//- Help icon with tooltip
tooltip - [string] Tooltip text
mixin help(tooltip)
span(data-tooltip=tooltip)&attributes(attributes)
+icon("help", 16).i-icon--inline
//- Aside for text
label - [string] aside title (optional)