-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathButton.jsx
39 lines (36 loc) · 1.02 KB
/
Button.jsx
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
import styled from "styled-components";
const Button = styled.a`
cursor: ${({ disabled }) => disabled ? `default` : `pointer`};
display: inline-block;
text-align: center;
white-space: nowrap;
font-size: 17px;
line-height: 1.17648;
font-weight: 400;
letter-spacing: -.022em;
font-family: "Inter","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
min-width: 28px;
padding-left: 16px;
padding-right: 16px;
padding-top: 8px;
padding-bottom: 8px;
border-radius: 18px;
background: var(${({ disabled }) => disabled ? `--glyph-gray-tertiary` : `--color-fill-blue`});
color: #fff;
border: 0;
outline: 0;
${({ compact }) => compact ? `
font-size: 12px;
line-height: 1.33337;
font-weight: 400;
letter-spacing: -.01em;
font-family: "Inter","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
min-width: 23px;
padding-left: 11px;
padding-right: 11px;
padding-top: 4px;
padding-bottom: 4px;
border-radius: 12px;
` : ``}
`;
export default Button;