1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

better gray buttons

This commit is contained in:
Fedor Katurov 2019-12-02 16:58:03 +07:00
parent 5646ec164a
commit bde79a8364
4 changed files with 9 additions and 11 deletions

View file

@ -9,14 +9,12 @@ type IButtonProps = DetailedHTMLProps<
HTMLButtonElement
> & {
size?: 'mini' | 'normal' | 'big' | 'giant' | 'micro' | 'small';
color?: 'primary' | 'secondary' | 'outline' | 'link';
color?: 'primary' | 'secondary' | 'outline' | 'link' | 'gray';
iconLeft?: IIcon;
iconRight?: IIcon;
seamless?: boolean;
transparent?: boolean;
title?: string;
red?: boolean;
grey?: boolean;
non_submitting?: boolean;
is_loading?: boolean;
stretchy?: boolean;
@ -34,8 +32,6 @@ const Button: FC<IButtonProps> = memo(
seamless = false,
transparent = false,
non_submitting = false,
red = false,
grey = false,
is_loading,
title,
stretchy,
@ -47,8 +43,6 @@ const Button: FC<IButtonProps> = memo(
seamless || non_submitting ? 'div' : 'button',
{
className: classnames(styles.button, className, styles[size], styles[color], {
red,
grey,
seamless,
transparent,
disabled,

View file

@ -161,6 +161,10 @@
}
}
&.gray {
background: lighten($content_bg, 8%);
}
&.link {
background: transparent;
color: white;