-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
116 lines (103 loc) · 2.51 KB
/
style.css
File metadata and controls
116 lines (103 loc) · 2.51 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
105
106
107
108
109
110
111
112
113
114
115
116
body {
font-family: sans-serif;
line-height: 1.6;
margin: 20px;
background-color: #f4f4f4;
color: #333;
}
h1, h2 {
color: #0056b3;
text-align: center;
margin-bottom: 10px;
}
p {
text-align: center;
max-width: 900px;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
font-size: 0.95em;
color: #555;
}
.controls {
background-color: #fff;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
gap: 15px; /* Increased gap */
align-items: center;
justify-content: center; /* Center controls */
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.controls label {
font-weight: bold;
margin-right: -5px; /* Adjust spacing */
}
.controls input[type="number"] {
width: 60px; /* Slightly smaller */
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
}
.controls button {
padding: 8px 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.2s;
}
.controls button:hover {
background-color: #0056b3;
}
/* New styles for plot layout */
.plots-wrapper {
display: flex;
flex-wrap: wrap; /* Allow wrapping on smaller screens */
justify-content: center;
gap: 20px;
margin-bottom: 20px;
max-width: 1200px; /* Max width for the plots */
margin-left: auto;
margin-right: auto;
}
.plot-container {
flex: 1; /* Allow containers to grow */
min-width: 350px; /* Minimum width before wrapping */
max-width: 550px; /* Optional max width */
background-color: #fff;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
/* Set a fixed height to prevent resize jumping */
height: 450px; /* Adjust as needed */
display: flex; /* Use flexbox for centering canvas */
flex-direction: column; /* Stack title and canvas */
align-items: center; /* Center horizontally */
}
.plot-container h2 {
margin-bottom: 15px;
font-size: 1.1em;
}
/* Make canvas fill the container height (minus title/padding) */
.plot-container canvas {
max-width: 100%;
max-height: calc(100% - 40px); /* Approximate height available */
}
#output {
margin-top: 10px;
padding: 10px;
background-color: #e9ecef;
border-radius: 3px;
font-size: 0.9em;
max-width: 900px;
margin-left: auto;
margin-right: auto;
text-align: center;
}