mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
43 lines
830 B
TypeScript
43 lines
830 B
TypeScript
import React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
interface CardProps {
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export function Card({ className, style, children }: CardProps) {
|
|
return (
|
|
<CardRoot className={className} style={style}>
|
|
{children}
|
|
</CardRoot>
|
|
);
|
|
}
|
|
|
|
const CardRoot = styled.div`
|
|
padding: 15px;
|
|
margin: 15px;
|
|
background: var(--color-card-background);
|
|
border: 1px solid var(--color-card-border);
|
|
`;
|
|
|
|
export const CardFooterActions = styled.div`
|
|
--x-color-border: #e0e7ea;
|
|
|
|
.bp4-dark & {
|
|
--x-color-border: rgba(255, 255, 255, 0.15);
|
|
}
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--x-color-border);
|
|
margin-top: 30px;
|
|
|
|
.bp4-button {
|
|
min-width: 70px;
|
|
|
|
+ .bp4-button {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
`;
|