more style tweaks

This commit is contained in:
Jamie Pine
2022-10-23 18:20:36 -07:00
parent 838bae14b0
commit fcd57c12fc
6 changed files with 19 additions and 22 deletions

View File

@@ -99,11 +99,7 @@ const SearchBar = forwardRef<HTMLInputElement, DefaultProps>((props, forwardedRe
{...searchField}
/>
<div
className={clsx(
'space-x-1 absolute top-[1px] right-1 peer-focus:invisible pointer-events-none'
)}
>
<div className={clsx('space-x-1 absolute right-1 peer-focus:invisible pointer-events-none')}>
{platform === 'browser' ? (
<Shortcut chars="⌘F" aria-label={'Press Command-F to focus search bar'} />
) : os === 'macOS' ? (

View File

@@ -57,7 +57,7 @@ function elapsed(seconds: number) {
return new Date(seconds * 1000).toUTCString().match(/(\d\d:\d\d:\d\d)/)?.[0];
}
const HeaderContainer = tw.div`z-20 flex items-center w-full h-10 px-2 border-b border-app-line rounded-t-md bg-app-box`;
const HeaderContainer = tw.div`z-20 flex items-center w-full h-10 px-2 border-b border-app-line rounded-t-md bg-app-selected`;
export function JobsManager() {
const runningJobs = useLibraryQuery(['jobs.getRunning']);

View File

@@ -13,9 +13,8 @@ export const Shortcut: React.FC<ShortcutProps> = (props) => {
<kbd
className={clsx(
`px-1 border border-b-2`,
`rounded-lg text-xs font-bold`,
`text-gray-400 bg-gray-200 border-gray-300`,
`dark:text-gray-400 dark:bg-transparent dark:border-transparent`,
`rounded-md text-xs font-bold`,
`border-app-line dark:border-transparent`,
className
)}
{...rest}

View File

@@ -9,16 +9,6 @@ interface Props extends DropdownMenu.MenuContentProps {
disabled?: boolean;
}
const MENU_CLASSES = `
flex flex-col
min-w-[11rem] z-50 m-2 space-y-1
select-none cursor-default rounded-lg
text-left text-sm text-ink
bg-app-overlay/90 backdrop-blur
border border-app-line
shadow-2xl shadow-black/40
`;
export const OverlayPanel = ({
trigger,
children,
@@ -50,7 +40,19 @@ export const OverlayPanel = ({
show && (
<DropdownMenu.Portal forceMount>
<DropdownMenu.Content forceMount asChild>
<animated.div className={clsx(MENU_CLASSES, className)} style={styles}>
<animated.div
className={clsx(
'flex flex-col',
'min-w-[11rem] z-50 m-2 space-y-1',
'select-none cursor-default rounded-lg',
'text-left text-sm text-ink',
'bg-app-overlay/90 backdrop-blur',
// 'border border-app-overlay',
'shadow-2xl shadow-black/60 ',
className
)}
style={styles}
>
{children}
</animated.div>
</DropdownMenu.Content>

View File

@@ -53,7 +53,7 @@ export function SelectOption(props: PropsWithChildren<{ value: string }>) {
className={clsx(
'relative flex items-center pl-6 px-1 py-0.5 pr-4 text-xs',
'rounded font-sm cursor-pointer select-none text-ink',
'focus:outline-none radix-disabled:opacity-50 hover:bg-accent '
'focus:outline-none hover:text-white radix-disabled:opacity-50 hover:bg-accent '
)}
value={props.value}
>

View File

@@ -72,7 +72,7 @@
--color-app-overlay: var(--light-hue), 5%, 100%;
--color-app-input: var(--light-hue), 5%, 100%;
--color-app-focus: var(--light-hue), 5%, 98%;
--color-app-line: var(--light-hue), 5%, 89%;
--color-app-line: var(--light-hue), 5%, 90%;
--color-app-button: var(--light-hue), 5%, 100%;
--color-app-divider: var(--light-hue), 5%, 80%;
--color-app-selected: var(--light-hue), 5%, 93%;