From 3e3f20e68b2bcf4931074665a92d1404245f2911 Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 16 Mar 2017 21:53:15 +0100 Subject: [PATCH] Add infobox mixin --- website/_includes/_mixins.jade | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 8a42024c1..ba5a9297e 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -67,6 +67,17 @@ mixin aside-code(label, language) block +//- Infobox + label - [string] infobox title (optional or false for no title) + +mixin infobox(label) + aside.o-box.o-block.u-text-small + if label + h3.u-text-label.u-color-theme=label + + block + + //- Link button url - [string] link href trusted - [boolean] if not set / false, rel="noopener nofollow" is added