mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Allow size on procon icon
This commit is contained in:
parent
48eef94f92
commit
05761e1750
|
@ -42,10 +42,11 @@ mixin icon(name, size)
|
||||||
|
|
||||||
//- Pro/Con/Neutral icon
|
//- Pro/Con/Neutral icon
|
||||||
icon - [string] "pro", "con" or "neutral" (default: "neutral")
|
icon - [string] "pro", "con" or "neutral" (default: "neutral")
|
||||||
|
size - [integer] icon size (optional)
|
||||||
|
|
||||||
mixin procon(icon)
|
mixin procon(icon, size)
|
||||||
- colors = { pro: "green", con: "red", neutral: "yellow" }
|
- colors = { pro: "green", con: "red", neutral: "yellow" }
|
||||||
+icon(icon)(class="u-color-#{colors[icon] || 'subtle'}" aria-label=icon)&attributes(attributes)
|
+icon(icon, size)(class="u-color-#{colors[icon] || 'subtle'}" aria-label=icon)&attributes(attributes)
|
||||||
|
|
||||||
|
|
||||||
//- Headlines Helper Mixin
|
//- Headlines Helper Mixin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user