Only add coloured border to code block if icon has colour

This commit is contained in:
ines 2017-05-28 16:36:21 +02:00
parent b85d88fac6
commit 189db308d9

View File

@ -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