forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_elements.js
More file actions
62 lines (52 loc) · 1.07 KB
/
_elements.js
File metadata and controls
62 lines (52 loc) · 1.07 KB
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
import styled, { css } from 'styled-components';
const activeCSS = css`
color: white;
&:after {
width: 110%;
@media screen and (max-width: 500px) {
width: 100%;
}
}
`;
export const NavigationLink = styled.a`
transition: 0.3s ease all;
position: relative;
display: inline-block;
margin: 1.5rem 0;
font-size: 1.25rem;
text-decoration: none;
color: rgba(255, 255, 255, 0.5);
text-transform: uppercase;
cursor: pointer;
&:after {
content: '';
margin-top: 8px;
display: block;
background: ${props => props.theme.link};
height: 2px;
box-sizing: border-box;
width: 0%;
margin-left: -5%;
transition: all 200ms ease;
@media screen and (max-width: 500px) {
margin-left: 0%;
}
}
&:hover {
${activeCSS};
}
${props =>
props.active &&
css`
${activeCSS};
`};
`;
export const TabNavigation = styled.div`
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
margin-bottom: 3rem;
@media screen and (max-width: 600px) {
grid-template-columns: 1fr;
}
`;