From 189db308d9d8e2af5f5b9207f4856d9e4ca48e77 Mon Sep 17 00:00:00 2001 From: ines Date: Sun, 28 May 2017 16:36:21 +0200 Subject: [PATCH] Only add coloured border to code block if icon has colour --- website/_includes/_mixins.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index fc4d66841..05e64b0fa 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -113,7 +113,7 @@ mixin code(label, language, icon, height) if icon - var classes = {'accept': 'u-color-green', 'reject': 'u-color-red'} - .c-code-block__icon(class=classes[icon] || "") + .c-code-block__icon(class=classes[icon] || "" class=classes[icon] ? "c-code-block__icon--border" : "") +icon(icon, 18) code.c-code-block__content