-
-
Notifications
You must be signed in to change notification settings - Fork 769
/
Copy pathbox-elements.tsx
62 lines (51 loc) · 1.26 KB
/
box-elements.tsx
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 from "styled-components";
import { Link } from "@/components/misc";
import { THEME_COLORS } from "@/style";
export const Box = styled.li`
position: relative;
display: flex;
box-sizing: border-box;
margin-bottom: 0;
border: 1px solid ${THEME_COLORS.boxBorder};
border-radius: var(--box-border-radius);
width: 100%;
backdrop-filter: blur(2px);
background-color: #1511353d;
@media only screen and (min-width: 860px) {
width: calc((100% / 3) - (32px / 3));
}
@media only screen and (min-width: 992px) {
width: calc((100% / 3) - (48px / 3));
}
`;
export const BoxLink = styled(Link)`
display: flex;
flex: 1 1 auto;
flex-direction: column;
> .gatsby-image-wrapper {
flex: 0 0 auto;
border-radius: var(--box-border-radius) var(--box-border-radius) 0 0;
}
`;
export const Boxes = styled.ul`
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
margin: 0;
gap: 16px;
list-style-type: none;
& > ${Box}:nth-child(2) {
animation-delay: 0.15s;
}
& > ${Box}:nth-child(3) {
animation-delay: 0.3s;
}
@media only screen and (min-width: 860px) {
flex-direction: row;
flex-wrap: wrap;
}
@media only screen and (min-width: 992px) {
gap: 24px;
}
`;