forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.ts
More file actions
50 lines (41 loc) · 991 Bytes
/
elements.ts
File metadata and controls
50 lines (41 loc) · 991 Bytes
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
46
47
48
49
50
import styled, { css } from 'styled-components';
import ContributorsBadgeBase from '../ContributorsBadge';
export const CenteredText = styled.div`
display: inline-flex;
justify-content: center;
align-items: center;
flex-direction: row;
`;
export const AuthorName = styled.span<{ useBigName?: boolean }>`
display: inline-flex;
align-items: center;
margin: 0 0.75em;
${props =>
props.useBigName &&
css`
margin: 0 0.75em;
font-size: 1rem;
`};
`;
export const Names = styled.div`
display: inline-flex;
flex-direction: column;
`;
export const Username = styled.div<{ hasTwoNames?: boolean }>`
${props =>
props.hasTwoNames &&
css`
opacity: 0.7;
font-size: 0.75em;
`};
`;
export const Image = styled.img`
width: 1.75em;
height: 1.75em;
border-radius: 2px;
border: 2px solid rgba(255, 255, 255, 0.5);
`;
export const ContributorsBadge = styled(ContributorsBadgeBase)`
margin: 0 0.5rem;
font-size: 1.25em;
`;