From 6641b7a660b317f9e2a51d8a2cb1e193beaa5daf Mon Sep 17 00:00:00 2001 From: FireIsGood Date: Sun, 23 Feb 2025 02:26:23 -0800 Subject: [PATCH] Fix ball color being static --- nutshell.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nutshell.js b/nutshell.js index dc5b2fe..c65d88d 100644 --- a/nutshell.js +++ b/nutshell.js @@ -652,11 +652,6 @@ Bubble: the box that expands below an expandable, containing a Nutshell Section ex.appendChild(ballUp); ex.appendChild(ballDown); - // BALLS ARE SAME AS FONT COLOR - let linkStyle = window.getComputedStyle(forThisElement ? forThisElement : ex); - ballUp.style.background = linkStyle.color; - ballDown.style.background = linkStyle.color; - // Save the punctuation! // Extremely inefficient: plop each character one-by-one into the span let punctuation = document.createElement('span'); @@ -1971,7 +1966,7 @@ Bubble: the box that expands below an expandable, containing a Nutshell Section /* They're balls */ width: 0.15em; height: 0.15em; - background: #000; + background: currentcolor; border-radius: 1em; /* Animate moving up & down */