From 7994ba8b3809cd69550e120fdb7183f40fa23c5b Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 19 Feb 2023 22:18:32 +0100 Subject: [PATCH] get rid of all hard coded colors --- website/src/repl/Footer.jsx | 11 ++++------- website/src/repl/Header.jsx | 14 +++++++------- website/tailwind.config.cjs | 2 -- 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/website/src/repl/Footer.jsx b/website/src/repl/Footer.jsx index f7a4fb13..56bca99d 100644 --- a/website/src/repl/Footer.jsx +++ b/website/src/repl/Footer.jsx @@ -57,8 +57,8 @@ export function Footer({ context }) {
setActiveFooter(name)} className={cx( - 'h-8 px-2 text-foreground cursor-pointer hover:text-tertiary flex items-center space-x-1 border-b', - activeFooter === name ? 'border-foreground hover:border-tertiary' : 'border-transparent', + 'h-8 px-2 text-foreground cursor-pointer hover:opacity-50 flex items-center space-x-1 border-b', + activeFooter === name ? 'border-foreground' : 'border-transparent', )} > {label || name} @@ -179,10 +179,7 @@ function ConsoleTab({ log }) { {log.map((l, i) => { const message = linkify(l.message); return ( -
+
{l.count ? ` (${l.count})` : ''}
@@ -197,7 +194,7 @@ function SamplesTab() {
{loadedSamples.length} banks loaded: {loadedSamples.map(([name, samples]) => ( - {}}> + {}}> {' '} {name}( {Array.isArray(samples) ? samples.length : typeof samples === 'object' ? Object.values(samples).length : 1}){' '} diff --git a/website/src/repl/Header.jsx b/website/src/repl/Header.jsx index c58efe11..b23eebd9 100644 --- a/website/src/repl/Header.jsx +++ b/website/src/repl/Header.jsx @@ -69,7 +69,7 @@ export function Header({ context }) { )} {isEmbedded && ( -