forked from woowacourse-teams/2024-code-zap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDropdown.style.ts
45 lines (36 loc) · 856 Bytes
/
Dropdown.style.ts
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
import styled from '@emotion/styled';
export const DropdownContainer = styled.div`
font-size: '0.875rem';
`;
export const Wrapper = styled.div`
width: 10rem;
background-color: white;
border: 1px solid #788496;
border-radius: 8px;
`;
export const SelectedButton = styled.button`
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 0.75rem;
border-radius: 8px;
`;
export const OptionList = styled.ul`
position: absolute;
z-index: 1;
width: 10rem;
margin: 2px 0 0 0;
background-color: white;
border: 1px solid #788496;
border-radius: 8px;
`;
export const Option = styled.li`
width: 100%;
padding: 0.75rem;
border-radius: 7px;
&:hover {
color: ${({ theme }) => theme.color.light.white};
background-color: ${({ theme }) => theme.color.light.primary_500};
}
`;