-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
129 lines (112 loc) · 2.31 KB
/
index.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
120
121
122
123
124
125
126
127
128
129
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');
:root {
font-family: 'Quicksand', sans-serif;
--fillColor: #2233cc22;
--highlightedColor: #007d8688;
--selectedColor: #33ff0088;
--strokeColor: #11223388;
--controlColor: #ff330088;
--controlColorLine: #ff330066;
--backgroundColor: darkturquoise;
--gridColor: #0000001d;
--highlightPointColor: #26865181;
--textColor: #22334455;
--fontSizeHorizontal: calc(2 * (0.5vh + 0.5vw));
--fontSizeVertical: calc(2.5 * (0.5vh + 0.5vw));
--fontSizeFixed: 17px;
--fontSize: var(--fontSizeFixed);
}
svg path {
stroke: var(--strokeColor);
}
svg #highlightCircle {
fill: var(--highlightedColor);
}
svg #selectionCircle {
fill: var(--selectedColor);
}
svg #controlCircle,
svg #controlCircle2 {
fill: var(--controlColor);
}
svg #controlPath1,
svg #controlPath2 {
stroke: var(--controlColorLine);
stroke-width: 2;
}
body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-weight: normal;
color: var(--textColor);
}
body,
html,
div,
span {
font-size: var(--fontSize);
line-height: 1;
}
svg,
#datadiv,
#backgroundImage {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
white-space: pre-wrap;
}
#datadiv span {
color: var(--highlightPointColor);
font-weight: bold;
}
div,
svg,
span,
body,
html {
-moz-user-select: none;
-webkit-user-select: none;
}
#transformedPattern rect {
stroke: var(--gridColor);
fill: none;
}
#backgroundImage {
opacity: 0.3;
background-color: var(--backgroundColor);
}
#alertUser {
box-sizing: border-box;
visibility: hidden;
opacity: 0;
--alertWidth: 50vmin;
width: var(--alertWidth);
margin-left: calc(-0.5 * var(--alertWidth));
background-color: #333;
color: #fff;
text-align: center;
border-radius: calc(var(--alertWidth) / 100);
padding: calc(var(--fontSize) * 0.5) calc(var(--fontSize) * 2);
position: fixed;
z-index: 1;
left: 50%;
bottom: calc(var(--fontSize));
font-weight: normal;
transition: opacity 0.5s;
}
@media screen and (min-aspect-ratio: 10/9) and (min-height: calc(1rem * 40)) {
:root {
--fontSize: var(--fontSizeHorizontal);
}
}
@media screen and (max-aspect-ratio: 10/9) and (min-height: calc(1rem * 40)) {
:root {
--fontSize: var(--fontSizeVertical);
}
}