Skip to content

Commit

Permalink
Render box-shadow border on top of Cards content
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 13, 2021
1 parent cc64458 commit dfc4b41
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions packages/components/src/card/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ import { css } from '@emotion/react';
import { COLORS, CONFIG } from '../utils';

export const Card = css`
box-shadow: inset 0 0 0 1px ${ CONFIG.surfaceBorderColor };
outline: none;
&::before {
content: '';
box-shadow: inset 0 0 0 1px ${ CONFIG.surfaceBorderColor };
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}
`;

export const Header = css`
Expand Down Expand Up @@ -77,7 +89,9 @@ export const borderColor = css`
`;

export const boxShadowless = css`
box-shadow: none;
&::before {
content: none;
}
`;

export const borderless = css`
Expand Down

0 comments on commit dfc4b41

Please sign in to comment.