lipstick: Improved style of debug output
This commit is contained in:
parent
2fe05832a4
commit
dfcccdfabf
1 changed files with 0 additions and 7 deletions
|
@ -1,12 +1,6 @@
|
||||||
import { version, name } from "../package.json";
|
import { version, name } from "../package.json";
|
||||||
|
|
||||||
const color = {
|
const color = {
|
||||||
info: "#FFF",
|
|
||||||
warning: "#FFF",
|
|
||||||
error: "#FFF",
|
|
||||||
success: "#FFF"
|
|
||||||
};
|
|
||||||
const background = {
|
|
||||||
info: "#29ABE0",
|
info: "#29ABE0",
|
||||||
warning: "#F47C3C",
|
warning: "#F47C3C",
|
||||||
error: "#d9534f",
|
error: "#d9534f",
|
||||||
|
@ -16,7 +10,6 @@ const background = {
|
||||||
/* Returns an object to style debug output */
|
/* Returns an object to style debug output */
|
||||||
function debugStyle(type, text) {
|
function debugStyle(type, text) {
|
||||||
let style = `color: ${color[type]};`;
|
let style = `color: ${color[type]};`;
|
||||||
style += `background: ${background[type]};`;
|
|
||||||
style += "font-weight: 600;";
|
style += "font-weight: 600;";
|
||||||
style += "padding: 0 5px;";
|
style += "padding: 0 5px;";
|
||||||
style += "border-radius: 3px;";
|
style += "border-radius: 3px;";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue