-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
119 lines (98 loc) · 1.62 KB
/
styles.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
113
114
115
116
117
118
119
:root {
--features-table-width: 350px;
}
body {
font-family: sans-serif;
}
main {
display: flex;
flex-direction: column;
gap: 1rem;
}
#controls {
display: flex;
gap: 2rem;
}
label {
display: flex;
gap: 1rem;
}
#output {
display: flex;
overflow: hidden;
}
#output > div {
width: 0;
transition: width 0.2s ease;
overflow-y: auto;
height: 100%;
}
#output.show-table > div {
width: var(--features-table-width);
}
#image {
display: grid;
grid-template-columns: auto;
grid-template-rows: auto;
max-width: 100%;
position: relative;
width: var(--image-full-width);
transition: width 0.2s ease;
}
#output.show-table #image {
width: calc(var(--image-full-width) - var(--features-table-width));
}
img {
width: inherit;
}
#output,
svg {
height: calc(var(--image-full-width) * var(--image-aspect-ratio));
}
svg {
position: absolute;
transition: height 0.2s ease;
width: inherit;
}
#output.show-table,
#output.show-table svg {
height: calc(
(var(--image-full-width) - var(--features-table-width)) *
var(--image-aspect-ratio)
);
}
svg path {
fill: transparent;
stroke: #44f8;
}
svg path.marked {
opacity: 0.6;
stroke: lime;
}
svg path.active,
svg path:hover {
opacity: 1;
stroke: hotpink;
}
table {
border-collapse: collapse;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
table th,
table td {
min-width: 5rem;
padding: 0.5rem;
text-align: left;
}
table th {
background-color: #444;
color: #fff;
font-weight: bold;
text-transform: uppercase;
}
table tr:nth-child(even) td {
background-color: #f2f2f2;
}
table tr:hover td {
background-color: #ffedcc;
}