mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-22 00:35:12 +02:00
Series page finalized
This commit is contained in:
@@ -12,31 +12,18 @@
|
||||
export let target: string | undefined = '_self';
|
||||
|
||||
let buttonStyle: string;
|
||||
// $: buttonStyle = classNames(
|
||||
// 'border-2 border-white transition-all uppercase tracking-widest text-xs whitespace-nowrap',
|
||||
// {
|
||||
// 'bg-white text-zinc-900 font-extrabold': type === 'primary',
|
||||
// 'hover:bg-amber-400 hover:border-amber-400': type === 'primary' && !disabled,
|
||||
// 'font-semibold': type === 'secondary',
|
||||
// 'hover:bg-white hover:text-black': type === 'secondary' && !disabled,
|
||||
// 'px-8 py-3.5': size === 'lg',
|
||||
// 'px-6 py-2.5': size === 'md',
|
||||
// 'px-5 py-2': size === 'sm',
|
||||
// 'opacity-70': disabled,
|
||||
// 'cursor-pointer': !disabled
|
||||
// }
|
||||
// );
|
||||
$: buttonStyle = classNames(
|
||||
'flex items-center gap-1 py-3 px-6 rounded-xl font-medium select-none cursor-pointer selectable transition-all backdrop-blur-lg',
|
||||
'flex items-center gap-1 rounded-xl font-medium select-none cursor-pointer selectable transition-all flex-shrink-0',
|
||||
{
|
||||
'bg-white text-zinc-900 font-extrabold': type === 'primary',
|
||||
'bg-white text-zinc-900 font-extrabold backdrop-blur-lg': type === 'primary',
|
||||
'hover:bg-amber-400 hover:border-amber-400': type === 'primary' && !disabled,
|
||||
'text-zinc-200 bg-stone-800 bg-opacity-30': type === 'secondary',
|
||||
'text-zinc-200 bg-zinc-500 bg-opacity-30 backdrop-blur-lg': type === 'secondary',
|
||||
'focus-visible:bg-zinc-200 focus-visible:text-zinc-800 hover:bg-zinc-200 hover:text-zinc-800':
|
||||
type === 'secondary' && !disabled,
|
||||
(type === 'secondary' || type === 'tertiary') && !disabled,
|
||||
'rounded-full': type === 'tertiary',
|
||||
'py-3 px-6': size === 'lg',
|
||||
// 'py-3 px-6': size === 'md',
|
||||
'px-5 py-2': size === 'sm',
|
||||
'py-2 px-6': size === 'md',
|
||||
'py-1 px-3': size === 'sm',
|
||||
'opacity-50': disabled,
|
||||
'cursor-pointer': !disabled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user