From 5e387b513a42eb54cbe2d01037c2450762827079 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 7 Mar 2023 22:21:58 -0800 Subject: [PATCH] Minor style tweaks --- src-web/components/Button.tsx | 9 +++++---- src-web/components/Dialog.tsx | 2 +- src-web/components/Editor/Editor.css | 13 +++++++++---- src-web/components/Input.tsx | 19 +++++++++---------- src-web/components/ResponsePane.tsx | 7 +++++-- src-web/components/StatusColor.tsx | 23 +++++++++++++++++++++++ src-web/components/UrlBar.tsx | 2 +- src-web/lib/theme/window.ts | 10 +++++----- tailwind.config.cjs | 3 +++ 9 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 src-web/components/StatusColor.tsx diff --git a/src-web/components/Button.tsx b/src-web/components/Button.tsx index 0914f89b..01262cd9 100644 --- a/src-web/components/Button.tsx +++ b/src-web/components/Button.tsx @@ -11,10 +11,10 @@ import { Icon } from './Icon'; const colorStyles = { default: 'hover:bg-gray-700/10 text-gray-700 hover:text-gray-900', gray: 'text-gray-800 bg-gray-100 hover:bg-gray-500/20 hover:text-gray-900', - primary: 'bg-blue-400', - secondary: 'bg-violet-400', - warning: 'bg-orange-400', - danger: 'bg-red-400', + primary: 'bg-blue-400 text-white', + secondary: 'bg-violet-400 text-white', + warning: 'bg-orange-400 text-white', + danger: 'bg-red-400 text-white', }; export type ButtonProps = ButtonHTMLAttributes & { @@ -48,6 +48,7 @@ export const Button = forwardRef(function Button( 'outline-none', // TODO: Add focus styles 'border border-transparent focus-visible:border-blue-300', 'transition-all rounded-md flex items-center hover:text-white', + 'bg-opacity-90 hover:bg-opacity-100', // 'active:translate-y-[0.5px] active:scale-[0.99]', colorStyles[color || 'default'], justify === 'start' && 'justify-start', diff --git a/src-web/components/Dialog.tsx b/src-web/components/Dialog.tsx index df66eeb3..5865f3be 100644 --- a/src-web/components/Dialog.tsx +++ b/src-web/components/Dialog.tsx @@ -28,7 +28,7 @@ export function Dialog({ ('#radix-portal')}> - +