diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-09 11:25:33 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-09 11:25:33 -0400 |
| commit | 8ed7d5b734ba588fe0570e0e22f21a0fcda13422 (patch) | |
| tree | 54bf1cf6370eeae7e3217f26a49e6b021ae7d8a7 /frontend/components/styles/ItemStyles.js | |
| parent | ad3671675719eb11a81245bffbe0fb18880b479b (diff) | |
Moving styles to folder
Diffstat (limited to 'frontend/components/styles/ItemStyles.js')
| -rw-r--r-- | frontend/components/styles/ItemStyles.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/frontend/components/styles/ItemStyles.js b/frontend/components/styles/ItemStyles.js new file mode 100644 index 0000000..8ae0836 --- /dev/null +++ b/frontend/components/styles/ItemStyles.js @@ -0,0 +1,39 @@ +import styled from 'styled-components'; + +const Item = styled.div` + background: white; + border: 1px solid ${props => props.theme.offWhite}; + box-shadow: ${props => props.theme.bs}; + position: relative; + display: grid; + align-content: start; + grid-auto-rows: fit-content; + img { + width: 100%; + height: 400px; + object-fit: cover; + } + p { + font-size: 14px; + line-height: 2; + font-weight: 600; + padding: 0 3rem; + font-size: 1.5rem; + } + .buttonList { + display: grid; + border-top: 1px solid ${props => props.theme.lightgrey}; + grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); + grid-gap: 1px; + background: ${props => props.theme.lightgrey}; + align-self: end; + & > * { + background: white; + border: 0; + font-size: 1rem; + padding: 1rem; + } + } +`; + +export default Item; |
