-
Notifications
You must be signed in to change notification settings - Fork 9
/
CustomListBox.styles.js
99 lines (89 loc) 路 2.03 KB
/
CustomListBox.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
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
import { css } from "styled-components";
import tokens from "@paprika/tokens/lib/tokens";
import stylers from "@paprika/stylers";
export const arrowRightContainer = css`
display: flex;
height: ${stylers.spacer(4)};
justify-content: flex-end;
position: absolute;
right: -${tokens.space};
top: -7px;
width: ${stylers.spacer(4)};
`;
export const arrowRightButton = css`
align-items: center;
border-left: 1px solid ${tokens.border.color};
color: ${tokens.color.black};
display: inline-flex;
height: 100%;
justify-content: center;
width: 100%;
&:hover:after {
background: ${tokens.color.black};
border-radius: 50%;
content: "";
height: ${stylers.spacer(3)};
left: 50%;
margin-left: -${tokens.spaceLg};
margin-top: -${tokens.spaceLg};
opacity: 0.1;
pointer-events: none;
position: absolute;
top: 50%;
width: ${stylers.spacer(3)};
}
${({ isParentSelectable }) => {
return isParentSelectable
? ""
: css`
background: transparent;
border: 1px solid transparent;
border-radius: ${tokens.border.radius};
`;
}}
`;
export const labelContainer = css`
align-items: center;
cursor: default;
display: flex;
font-size: ${stylers.spacer(2)};
justify-content: flex-start;
position: relative;
`;
export const label = css`
flex-grow: 1;
`;
export const labelCheckbox = css`
display: inline-block;
min-width: 22px;
`;
export const checkbox = css`
position: relative;
top: -2px;
`;
export const backButton = css`
align-items: center;
cursor: pointer;
display: inline-flex;
${stylers.fontSize(-1)}
justify-content: flex-start;
padding: 0;
position: relative;
width: 100%;
&:after {
border-bottom: 1px solid ${tokens.border.color};
bottom: -7px;
content: "";
position: absolute;
width: 100%;
}
`;
export const loading = css`
align-items: center;
border: 0;
border-left: 1px solid ${tokens.border.color};
display: flex;
flex-basis: 50%;
justify-content: center;
min-height: 220px;
`;