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:
parent
0941253b1c
commit
6547f3bed0
10 changed files with 82 additions and 43 deletions
|
@ -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}
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
.card {
|
||||
background-color: #111111;
|
||||
border-radius: $panel_radius;
|
||||
padding: $gap;
|
||||
|
||||
@include outer_shadow();
|
||||
|
||||
&:global(.seamless) {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ const Grid: FC<IProps> = ({
|
|||
style = {},
|
||||
columns = 'auto',
|
||||
rows = 'auto',
|
||||
gap = 20,
|
||||
gap = 10,
|
||||
...props
|
||||
}) => (
|
||||
<div
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
.panel {
|
||||
padding: $gap;
|
||||
|
||||
@include outer_shadow();
|
||||
|
||||
&:global(.seamless) { padding: 0; }
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
.wrap {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue