forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.tsx
More file actions
36 lines (33 loc) · 886 Bytes
/
elements.tsx
File metadata and controls
36 lines (33 loc) · 886 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
background-color: ${({ theme }) => theme.color.white};
width: 50px;
border-right: 1px solid ${({ theme }) => theme.color.gray};
`
export const Button = styled<
{
active: boolean
},
'button'
>('button')`
display: flex;
align-items: center;
cursor: pointer;
padding: ${({ theme }) => `${theme.padding.smaller} 0`};
color: ${({ theme, active }) =>
active ? theme.color.black : theme.color.fade(theme.color.black, 0.5)};
font-size: ${({ theme }) => theme.fontSize.large};
justify-content: center;
outline: none;
border: 0;
background-color: transparent;
width: 50px;
height: 50px;
:hover {
color: ${({ theme }) => theme.color.black};
}
`
export const Divider = styled.div`
border-bottom: 1px solid ${({ theme }) => theme.color.gray};
margin: 0 5px;
`