-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
117 lines (109 loc) · 1.54 KB
/
main.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
body {
font-size: 20px;
font-family: 'Prompt', sans-serif;
}
.heading {
text-align: center;
width: 360px;
margin: 20px auto;
}
.heading1 {
font-size: 2em;
margin-bottom: -0.3em;
}
.heading2 {
font-size: 1.3em;
}
.details {
text-align: center;
width: 360px;
margin: 20px auto;
}
#details2 {
font-size: 1.3em;
line-height: 1.3em;
}
#details3{
font-size: 0.8em;
}
#legend div {
display: inline-block;
margin: 0 0.3em;
line-height: 1em;
vertical-align: middle;
}
#details2, #details3, #legend {
display: none;
}
.wrapper {
width: 360px;
height: 270px;
margin: 0 auto;
border: 10px solid lightgray;
}
.result {
display: none;
}
#chart, #axis, #axis-names {
position: absolute;
}
#chart {
cursor: pointer;
}
#axis-names {
width: 360px;
height: 270px;
}
.axis-name {
position: absolute;
color: white;
background-color: black;
text-align: center;
width: max-content;
}
.axis-name.x {
top: 120px;
}
.axis-name.y {
left: 180px;
}
.axis-name.x.left {
left: 0.75em;
transform: translateX(-50%) rotate(-90deg);
}
.axis-name.x.right {
right: 0.75em;
transform: translateX(50%) rotate(90deg);
}
.axis-name.y.top {
top: 0;
transform: translateX(-50%);
}
.axis-name.y.bottom {
bottom: 0;
transform: translateX(-50%);
}
@media screen and (min-width: 1000px) {
.heading {
width: 800px;
}
.details {
width: 800px;
}
.wrapper {
width: 800px;
height: 600px;
margin: 0 auto;
border: 10px solid lightgray;
}
#axis-names {
width: 800px;
height: 600px;
}
.axis-name.x {
top: 285px;
}
.axis-name.y {
left: 400px;
}
}