-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathaction-menu.styles.ts
More file actions
88 lines (68 loc) · 1.53 KB
/
action-menu.styles.ts
File metadata and controls
88 lines (68 loc) · 1.53 KB
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
import {
borderRadius,
colors,
shadows,
spacings,
} from '@ff-client/styles/variables';
import styled from 'styled-components';
export const ActionMenuWrapper = styled.div`
position: relative;
`;
export const ActionMenuButton = styled.button`
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
width: var(--ui-control-height);
height: var(--ui-control-height);
padding: 0;
border: 1px solid ${colors.gray250};
border-radius: ${borderRadius.md};
background: ${colors.white};
color: ${colors.gray700};
svg {
width: 18px;
height: 18px;
stroke: ${colors.gray500};
}
&:hover,
&.open {
background: rgba(96, 125, 159, 0.3);
}
`;
export const ActionMenuDropdown = styled.div`
position: absolute;
right: 0;
top: 100%;
z-index: 100;
min-width: 120px;
background: ${colors.white};
box-shadow: ${shadows.boxSubtle};
border: 1px solid ${colors.gray200};
border-radius: ${borderRadius.md};
`;
export const ActionMenuItem = styled.button<{ $destructive?: boolean }>`
cursor: pointer;
display: flex;
align-items: center;
gap: ${spacings.sm};
width: 100%;
padding: ${spacings.sm} ${spacings.md};
background: transparent;
color: ${({ $destructive }) =>
$destructive ? colors.red600 : colors.gray700};
border: 0;
border-top: 1px solid ${colors.gray200};
font-size: 12px;
text-align: left;
&:first-child {
border-top: 0;
}
&:hover {
background: ${colors.gray050};
}
svg {
width: 16px;
height: 16px;
}
`;