forked from DustinBrett/daedalOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyledButton.ts
More file actions
44 lines (37 loc) · 1018 Bytes
/
StyledButton.ts
File metadata and controls
44 lines (37 loc) · 1018 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
import styled from "styled-components";
const BASE_LINE_HEIGHT = 21;
const StyledButton = styled.button`
background-color: rgb(225, 225, 225);
border: 1px solid rgb(173, 173, 173);
color: #000;
display: grid;
font-family: ${({ theme }) => theme.formats.systemFont};
font-size: 12px;
height: 23px;
line-height: ${BASE_LINE_HEIGHT}px;
transition: background-color 0.25s ease;
width: 73px;
&:focus,
&.focus {
border: 2px solid rgb(0, 120, 215);
line-height: ${BASE_LINE_HEIGHT - 2}px;
}
&:hover {
background-color: rgb(229, 241, 251);
border: 1px solid rgb(0, 120, 215);
line-height: ${BASE_LINE_HEIGHT}px;
}
&:active {
background-color: rgb(204, 228, 247);
border: 1px solid rgb(0, 84, 153);
line-height: ${BASE_LINE_HEIGHT}px;
transition: none;
}
&:disabled {
background-color: rgb(204, 204, 204);
border: 1px solid rgb(191, 191, 191);
color: #808080;
line-height: ${BASE_LINE_HEIGHT}px;
}
`;
export default StyledButton;