homepage.js/view/ui/label.pug

14 lines
564 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);
2023-02-22 02:54:28 +01:00
var text_color = pSBC(-0.75, dark_color);
2023-02-22 02:43:51 +01:00
span(
class='ui_custom_label'
style=";background-color:" + color +
2023-02-22 02:54:28 +01:00
";background:linear-gradient(to bottom," + color + " 50%," + dark_color + " 100%)" +
";border:1px solid " + pSBC(-0.2, dark_color) +
";box-shadow:inset 0px 1px 0px 0px " + pSBC(0.75, color) +
";color:" + text_color
2023-02-22 02:43:51 +01:00
)= text