Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Use effect only shadow for MessageCard component
Browse files Browse the repository at this point in the history
  • Loading branch information
Charca committed Dec 18, 2020
1 parent 609888a commit 329d62f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MessageCard/MessageCard.css.js
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components'
import { makeFontFamily, setFontSize } from '../../styles/utilities/font'
import { getColor } from '../../styles/utilities/color'
import { FONT_FAMILY } from '../../styles/configs/constants'
import { d600 } from '../../styles/mixins/depth.css'
import { d600Effect } from '../../styles/mixins/depth.css'
import Card from '../Card'
import Button from '../Button'
import Heading from '../Heading'
Expand All @@ -26,7 +26,7 @@ export const MessageCardUI = styled(Card)`
border-bottom-left-radius: 4px;
}
&.is-with-box-shadow {
${d600}
${d600Effect}
}
&.is-mobile {
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/styles/mixins/depth.css.js
Expand Up @@ -55,6 +55,10 @@ export const d600 = `
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1),
0 4px 6px rgba(0, 0, 0, 0.15);
`
export const d600Effect = `
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1),
0 4px 6px rgba(0, 0, 0, 0.15);
`
export const d700 = `
${common}
box-shadow: 0 2px 3px rgba(64, 82, 97, 0.2),
Expand Down

0 comments on commit 329d62f

Please sign in to comment.