-
Notifications
You must be signed in to change notification settings - Fork 0
/
explore.css
66 lines (65 loc) · 1.17 KB
/
explore.css
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
.expl_i,
body {
display: flex;
flex-direction: column;
align-items: center;
}
.expl_gr {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-wrap: wrap;
justify-content: center;
}
.expl_gr > * {
margin: 1em;
}
.expl_bg {
--bi: linear-gradient(
45deg,
black 25%,
transparent 25%,
transparent 75%,
black 75%,
black
);
--bs: 384px;
width: var(--bs);
height: var(--bs);
border: solid;
display: flex;
align-items: center;
justify-content: center;
background-color: #eee;
background-image:
var(--bi),
var(--bi);
background-size: 256px 256px;
background-position: 0 0, 128px 128px;
transition: all 64ms ease-in-out;
transform: none;
transform-style: preserve-3d;
overflow: hidden;
}
.expl_bg:hover {
transform: perspective(50mm) rotateY(10deg);
overflow: visible;
}
.expl_i > * {
margin-bottom: 3px;
}
.ip {
border: solid 1px;
border-radius: 5px;
padding: 1px 5px;
width: 100%;
user-select: all;
}
img {
--s: 1;
--cs: calc(var(--s) * 128px);
width: var(--cs);
height: var(--cs);
image-rendering: crisp-edges;
transform: translate(calc(var(--x) * 128px), calc(var(--y) * 128px));
}