-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexplore.css
More file actions
104 lines (101 loc) · 1.85 KB
/
Copy pathexplore.css
File metadata and controls
104 lines (101 loc) · 1.85 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
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
.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;
position: absolute;
transition: left 80ms ease, top 80ms ease;
}
/* alignment picker */
.align-grid {
display: grid;
grid-template-columns: repeat(3, 28px);
grid-template-rows: repeat(3, 28px);
gap: 2px;
margin-top: 4px;
}
.align-grid button {
font-size: 10px;
cursor: pointer;
border: 1px solid #999;
background: #f0f0f0;
border-radius: 3px;
}
.align-grid button.active {
background: #333;
color: #fff;
border-color: #333;
}
/* floating panel */
#align-box {
position: fixed;
top: 12px;
right: 12px;
z-index: 999;
background: #fff;
border: 2px solid #333;
border-radius: 6px;
padding: 8px 10px;
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
cursor: grab;
user-select: none;
}
#align-box:active {
cursor: grabbing;
}