-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathCard.styled.js
More file actions
45 lines (39 loc) · 1.02 KB
/
Card.styled.js
File metadata and controls
45 lines (39 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import styled from "styled-components";
const StyledCard = styled.div`
width: ${props => props.style.width};
position: relative;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid rgba(0,0,0,.125);
border-radius: 0.25rem;
`
const StyledCardImg = styled.img`
flex-shrink: 0;
width: 100%;
vertical-align: middle;
border-style: none;
border-top-left-radius: calc(0.25rem - 1px);
border-top-right-radius: calc(0.25rem - 1px);
`
const StyledCardBody = styled.div`
flex: 1 1 auto;
min-height: 1px;
padding: 1.25rem;
`
const StyledCardTitle = styled.div`
margin-bottom: 0.75rem;
font-size: 1.25rem;
font-weight: 500;
line-height: 1.2;
`
const StyledCardText = styled.p`
margin-top: 0;
margin-bottom: 1rem;
`
export { StyledCard, StyledCardImg, StyledCardBody, StyledCardTitle, StyledCardText }