-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
112 lines (93 loc) · 1.44 KB
/
style.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
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
105
106
107
108
109
110
111
112
html, body {
margin: 0;
padding: 0;
}
div {
display: block;
text-align: center;
}
input {
display: inline-block;
text-align: center;
margin: 8px 32px 8px 32px;
font-size: 0.8em;
}
input[type=text] {
width: 50%;
font-size: 1.5em;
}
input[type=number] {
width: 5em;
margin-left: 0;
}
input[type=checkbox] {
width: 2em;
margin-left: 0;
}
span {
margin: 0 0 0 32px;
}
#dropzone {
width: 100vw;
height: 100vh;
background-color: transparent;
border: none;
margin: 0;
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
#cont {
display: grid;
--vert-margin: 4px;
--oriz-margin: 10px;
--gaps: calc(var(--cols) - 1);
--total-gap: calc(var(--oriz-margin) * var(--gaps));
grid-template-columns: repeat( var(--cols), calc(calc(100% - var(--total-gap)) / var(--cols)));
column-gap: var(--oriz-margin);
row-gap: var(--vert-margin);
}
.img-container {
display: flex;
position: relative;
}
.squares {
aspect-ratio: 1 / 1;
}
.img-container>img {
margin: auto;
max-width: 100%;
position: relative;
transform: none;
}
.img-container.squares>img {
transform: rotate(var(--rot));
}
p {
font-size: 0.6em;
}
.rotate {
position: absolute;
top: 2px;
right: 2px;
opacity: 0;
}
#cont>div:hover .img-container.squares .rotate {
opacity: 1;
}
.rotate img {
width: 1em;
aspect-ratio: 1;
}
@media print {
body {
page-break-inside: auto;
}
#cont>div {
page-break-inside: avoid;
}
.commands, .rotate, .invisible {
display: none;
}
}