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
30 lines (28 loc) · 705 Bytes
/
elements.tsx
File metadata and controls
30 lines (28 loc) · 705 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
background-color: ${({ theme }) => theme.color.dark};
width: 50px;
`
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.white : theme.color.fade(theme.color.white, 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.white};
}
`