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
40 lines (38 loc) · 1.13 KB
/
elements.tsx
File metadata and controls
40 lines (38 loc) · 1.13 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
import styled from '../../styled-components'
export const Wrapper = styled.div`
display: flex;
justify-content: space-around;
max-width: 800px;
padding: ${({ theme }) => theme.padding.large};
flex-wrap: wrap;
margin-top: 50px;
`
export const Video = styled.a`
position: relative;
display: flex;
align-items: center;
text-decoration: none;
justify-content: center;
text-align: center;
box-sizing: border-box;
padding: ${({ theme }) => theme.padding.small};
color: ${({ theme }) => theme.color.white};
font-size: ${({ theme }) => theme.fontSize.large};
cursor: pointer;
width: 200px;
height: 125px;
background-color: ${({ theme }) =>
theme.color.lighten(theme.color.dark, 0.2)};
transition: box-shadow 0.1s ease-out;
box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.75);
:hover {
box-shadow: 0px 0px 20px -7px rgba(0, 0, 0, 0.75);
}
span {
position: absolute;
bottom: ${({ theme }) => theme.padding.smaller};
right: ${({ theme }) => theme.padding.smaller};
font-size: ${({ theme }) => theme.fontSize.smallest};
color: ${({ theme }) => theme.color.fade(theme.color.white, 0.5)};
}
`