From 22a4d19fd8365c55cf966a4a34f315ab967d548c Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 17 May 2017 18:21:13 +0200 Subject: [PATCH] Add help mixin that displays icon with tooltip --- website/_includes/_mixins.jade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 2f89b0ec4..aeee54f52 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -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)