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
27 lines (25 loc) · 713 Bytes
/
elements.tsx
File metadata and controls
27 lines (25 loc) · 713 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
position: fixed;
z-index: 2;
background-color: ${({ theme }) =>
theme.color.lighten(theme.color.dark, -0.25)};
height: 50px;
top: -50px;
transition: top 0.5s ease-out;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
`
export const Link = styled<{ selected?: boolean }, 'a'>('a')`
text-decoration: none;
color: ${({ selected, theme }) =>
selected ? theme.color.white : theme.color.fade(theme.color.white, 0.5)};
margin: ${({ theme }) => theme.padding.small};
cursor: pointer;
text-transform: uppercase;
:hover {
color: ${({ theme }) => theme.color.white};
}
`