added infra log styles

This commit is contained in:
dcore94 2023-06-26 11:22:48 +02:00
parent c96c98c38b
commit d4998222bb
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,11 @@ class LogTerminal extends HTMLElement {
color: #ff3300;
text-shadow: 1px 1px 1px rgba(200, 0, 0, .6), 0 0 .5em rgba(200, 0, 0, .6)
}
.terminal > .line.error {
color: rgba(255,255,255,0.6);
text-shadow: 1px 1px 1px rgba(200, 200, 200, .6), 0 0 .5em rgba(200, 0, 0, .6)
}
</style>
<template id="TERMINAL_TEMPLATE">
<div name="terminal" class="container">
@ -106,6 +111,7 @@ class LogTerminal extends HTMLElement {
in: (e,d)=>d.lines,
apply: (e,d,i)=>{
if(d.source === "stderr") e.classList.add("error");
if(d.source === "infrastructure") e.classList.add("infrastructure");
e.innerHTML = `<span>${d.line}</span>`
}
}