mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-09 11:46:41 +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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue