-
Notifications
You must be signed in to change notification settings - Fork 9
/
Filter.styles.js
72 lines (64 loc) 路 1.39 KB
/
Filter.styles.js
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
import styled from "styled-components";
import tokens from "@paprika/tokens";
export const FilterContainerStyled = styled.div`
position: relative;
`;
export const FilterInputStyled = styled.input`
background-color: white;
border-radius: 3px;
border: 1px solid #d7d7d7;
box-shadow: none;
box-sizing: border-box;
font-size: 14px;
height: 32px;
margin-bottom: 0;
margin: 8px;
outline: none;
padding-left: 28px;
width: calc(100% - 16px);
&:focus {
background-color: #ffffff;
border-color: #276cf5;
box-shadow: 0 0 0 2px #99cbfc;
}
${props => {
return props.isDisabled
? ` color: ${tokens.color.blackLighten60}; background: ${tokens.color.blackLighten60};`
: "";
}}
`;
export const FilterGroupFilterLabel = styled.label`
font-size: 13px;
font-weight: bold;
width: 100%;
display: block;
margin: 4px 0 4px 0;
&:focus {
background-color: #ffffff;
border-color: #276cf5;
box-shadow: 0 0 0 2px #99cbfc;
}
`;
export const FilterSearchIconStyled = styled.div`
border-radius: 100%;
border: solid 2px #bdbdbd;
box-sizing: border-box;
color: #000;
height: 12px;
left: 17px;
margin: 0;
padding: 0;
position: absolute;
top: 17px;
transform: rotate(-45deg);
width: 12px;
&:before {
content: "";
position: absolute;
top: 9px;
left: 3px;
height: 5px;
width: 2px;
background-color: #bdbdbd;
}
`;