-
Notifications
You must be signed in to change notification settings - Fork 822
/
style.ts
109 lines (96 loc) · 2.4 KB
/
style.ts
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import styled from 'styled-components'
import { AssetIconProps, AssetIconFactory, WalletButton } from '../../shared/style'
interface StyleProps {
disabled: boolean
}
export const StyledWrapper = styled(WalletButton) <Partial<StyleProps>>`
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
width: 100%;
margin: 8px 0px;
cursor: ${(p) => p.disabled ? 'default' : 'pointer'};
outline: none;
background: none;
border: none;
`
export const NameAndIcon = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
`
export const AssetName = styled.span`
font-family: Poppins;
font-size: 13px;
line-height: 20px;
letter-spacing: 0.01em;
color: ${(p) => p.theme.color.text01};
`
export const BalanceColumn = styled.div`
display: flex;
align-items: flex-end;
justify-content: center;
flex-direction: column;
`
export const FiatBalanceText = styled.span`
font-family: Poppins;
font-size: 13px;
line-height: 20px;
letter-spacing: 0.01em;
color: ${(p) => p.theme.color.text01};
`
export const AssetBalanceText = styled.span`
font-family: Poppins;
font-size: 12px;
line-height: 18px;
letter-spacing: 0.01em;
color: ${(p) => p.theme.color.text03};
`
// Construct styled-component using JS object instead of string, for editor
// support with custom AssetIconFactory.
//
// Ref: https://styled-components.com/docs/advanced#style-objects
const assetIconProps = {
width: '40px',
height: 'auto'
}
export const AssetIcon = AssetIconFactory<AssetIconProps>(assetIconProps)
export const IconsWrapper = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
position: relative;
margin-right: 6px;
`
export const NetworkIconWrapper = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
position: absolute;
bottom: 0px;
right: 4px;
background-color: ${(p) => p.theme.color.background02};
border-radius: 100%;
padding: 2px;
`
export const NameColumn = styled.div`
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
`
export const Spacer = styled.div`
display: flex;
height: 4px;
`
export const NetworkDescriptionText = styled.span`
font-family: Poppins;
font-size: 13px;
line-height: 20px;
letter-spacing: 0.01em;
color: ${(p) => p.theme.color.text03};
`