-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathstyled.js
114 lines (92 loc) · 2.32 KB
/
styled.js
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import styled from 'styled-components';
import media from 'styled-media-query';
import { NavLink } from 'react-router-dom';
export const Header = styled.header`
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 80px 0 80px;
margin-top: 40px;
font-weight: normal;
${media.between('medium', 'large')`
padding: 0px 60px 0 60px;
`}
${media.lessThan('medium')`
display: flex;
align-items: flex-start;
flex-direction: column;
justify-content: center;
padding: 0;
position: relative;
`}
`;
export const MenuMobile = styled.div`
display: none;
transition: 0.25s;
${media.lessThan('medium')`
display: block;
position: absolute;
font-size: 25px;
color: var(--white);
top: 2;
right: 0;
margin-right: 20px;
cursor: pointer;
z-index: 9999;
`}
`;
export const Menu = styled.div`
ul {
display: flex;
align-items: center;
list-style-type: none;
font-size: 20px;
color: var(--white);
font-weight: 400;
li ~ li {
margin-left: 20px;
}
li:hover {
opacity: 0.8;
}
${media.lessThan('medium')`
background-color: var(--primary);
flex-direction: column;
width: 100%;
position: absolute;
justify-content: space-around;
height: 300px;
align-items: center;
margin-top: 0.5em;
top: -100%;
transform: ${({ open }) =>
open ? 'translateY(-100%)' : 'translateY(0)'};
transition: transform 0.5s ease;
z-index: 1000;
li ~ li {
margin-left: 0;
}
`}
}
`;
export const StyledLink = styled(NavLink)`
text-decoration: none;
color: var(--white);
cursor: pointer;
&.is-active {
color: var(--yellow);
}
`;
export const ButtonLink = styled.a`
background-color: var(--quaternary);
width: 100px;
padding: 5px 30px;
border-radius: 25px;
text-align: center;
text-decoration: none;
color: var(--white);
&.is-active {
background-color: var(--yellow);
color: var(--tertiary);
}
`;