1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

rotated colors

This commit is contained in:
muerwre 2019-07-29 19:13:16 +07:00
parent 0941253b1c
commit 6547f3bed0
10 changed files with 82 additions and 43 deletions

View file

@ -2,15 +2,18 @@ import React, { FC } from 'react';
import classNames = require("classnames");
import * as styles from './styles.scss';
type IProps = React.HTMLAttributes<HTMLDivElement> & {}
type IProps = React.HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
}
const Card: FC<IProps> = ({
className,
children,
seamless,
...props
}) => (
<div
className={classNames(styles.card, className)}
className={classNames(styles.card, className, { seamless })}
{...props}
>
{children}

View file

@ -1,6 +1,11 @@
.card {
background-color: #111111;
border-radius: $panel_radius;
padding: $gap;
@include outer_shadow();
&:global(.seamless) {
padding: 0;
}
}

View file

@ -22,7 +22,7 @@ const Grid: FC<IProps> = ({
style = {},
columns = 'auto',
rows = 'auto',
gap = 20,
gap = 10,
...props
}) => (
<div

View file

@ -3,15 +3,16 @@ import * as styles from './styles.scss';
import classNames = require("classnames");
type IProps = HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
}
const Panel: FC<IProps> = ({
className,
children,
seamless,
...props
}) => (
<div className={classNames(styles.panel, className)} {...props}>
<div className={classNames(styles.panel, className, { seamless })} {...props}>
{children}
</div>
);

View file

@ -1,3 +1,7 @@
.panel {
padding: $gap;
@include outer_shadow();
&:global(.seamless) { padding: 0; }
}

View file

@ -1,5 +1,4 @@
.wrap {
flex: 1;
display: flex;
align-items: flex-start;
justify-content: flex-start;