-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle7.css
68 lines (59 loc) · 1.47 KB
/
style7.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
.tooltip {
position: absolute;
text-align: center;
width: auto;
height: auto;
padding: 6px;
font: 12px sans-serif;
background: lightsteelblue;
border: 0px;
border-radius: 8px;
pointer-events: none;
opacity: 0;
}
.chart-title {
text-anchor: middle;
font-size: 18px;
font-weight: bold;
}
/* Add some padding to the SVG to prevent titles from overlapping the pie chart */
svg {
padding-top: 50px;
}
.legend {
position: absolute;
top: 10px;
right: 10px;
}
.container {
display: flex;
align-items: flex-start;
z-index: 1;
}
.chart-container {
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 100vh; /* Use the full height of the viewport */
}
.legend-container {
flex-basis: 150px; /* Width of legend */
}
/* Style for the SVG's div container */
#areaChart, #productionChart, #yieldChart {
display: block; /* Blocks are easier to center than inline elements */
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background-image: url('Crop BG Image 1.svg'); /* Replace with the path to your background image */
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: blur(10px); /* Adjust the blur level as needed */
}