From 9064fbbf1ecef918c10f9293447a8fd3fd2015c6 Mon Sep 17 00:00:00 2001 From: ines Date: Thu, 1 Jun 2017 18:57:02 +0200 Subject: [PATCH] Fix empty arguments in mixins --- website/_includes/_mixins.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index ce8bfad4e..9de43b092 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -107,13 +107,13 @@ mixin button(url, trusted, ...style) height - [integer] optional height to clip code block to mixin code(label, language, icon, height) - pre.c-code-block.o-block(class="lang-#{(language || DEFAULT_SYNTAX)}" class=icon ? "c-code-block--has-icon" : "" style=height ? "height: #{height}px" : "")&attributes(attributes) + pre.c-code-block.o-block(class="lang-#{(language || DEFAULT_SYNTAX)}" class=icon ? "c-code-block--has-icon" : null style=height ? "height: #{height}px" : null)&attributes(attributes) if label h4.u-text-label.u-text-label--dark=label if icon - var classes = {'accept': 'u-color-green', 'reject': 'u-color-red'} - .c-code-block__icon(class=classes[icon] || "" class=classes[icon] ? "c-code-block__icon--border" : "") + .c-code-block__icon(class=classes[icon] || null class=classes[icon] ? "c-code-block__icon--border" : null) +icon(icon, 18) code.c-code-block__content