homepage.js/view/ui/label.pug

11 lines
408 B
Plaintext
Raw Normal View History

2023-02-22 02:43:51 +01:00
mixin label(text, base_color)
include ../lib/pSBC.pug
-
var color = base_color || '#F9F9F9';
var dark_color = pSBC(-0.2, color);
span(
class='ui_custom_label'
style=";background-color:" + color +
";background:linear-gradient(to bottom, " + color + " 50%, " + dark_color + " 100%)" +
";border:1px solid " + pSBC(-0.2, dark_color)
)= text