mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Only add coloured border to code block if icon has colour
This commit is contained in:
parent
b85d88fac6
commit
189db308d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user