From b15fa336d7c8e865a9cba84a97c32325e14bef93 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 19 Apr 2020 11:20:12 -0400 Subject: [PATCH] Revert "Separate the most recent log entry from the rest; darken older text slightly" This reverts commit ea16c5c3ead58c2655bcc7db2a9d86e66db351f9. --- satiate.css | 11 +---------- satiate.js | 7 ++----- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/satiate.css b/satiate.css index 0a84367..d51be8c 100644 --- a/satiate.css +++ b/satiate.css @@ -195,15 +195,6 @@ a:hover { overflow: auto; } -#log > div:not(last-child) { - color: #ddd; -} - -#log > div:last-child { - margin-top: 16pt; - color: #fff; -} - .sidebar { background: rgba(255, 255, 255, 0.1); padding: 25px; @@ -298,7 +289,7 @@ a:hover { background-color: #888; color: #eee; margin: 5px; - font-size: 16pt; + font-size: 24px; } diff --git a/satiate.js b/satiate.js index 3fa2d27..1036c08 100644 --- a/satiate.js +++ b/satiate.js @@ -49,18 +49,15 @@ const tags = { }; function print(lines) { - const bigDiv = document.createElement("div"); - ([newline].concat(lines)).forEach(line => { + (lines.concat([newline])).forEach(line => { const log = document.querySelector("#log"); const div = document.createElement("div"); div.textContent = line; - bigDiv.appendChild(div); + log.appendChild(div); }); - log.appendChild(bigDiv); - log.scrollTop = log.scrollHeight; }