-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
133 lines (114 loc) · 2.33 KB
/
styles.css
File metadata and controls
133 lines (114 loc) · 2.33 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
:root {
--scale-factor: 1; /* Default scale factor, adjust this to scale the image */
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
overflow-x: hidden;
}
.header, .footer {
text-align: center;
margin: 20px 0;
}
.header h1, .footer p {
margin: 0;
}
.header h1 {
font-size: 24px;
font-weight: bold;
}
.header p, .footer p {
font-size: 16px;
}
.iframe-wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
overflow-x: auto;
padding: 20px 0;
}
.iframe-container {
position: relative;
width: calc(1600px * var(--scale-factor)); /* Scale width */
height: calc(1000px * var(--scale-factor)); /* Scale height */
display: flex;
transform: scale(var(--scale-factor));
transform-origin: top left;
}
/* Default iframe positioning */
.iframe {
position: absolute;
border: none;
pointer-events: none; /* Disable pointer events for background areas */
}
.iframe-biodiversity {
width: 930px;
height: 930px;
top: 90px;
left: 0;
z-index: 1;
pointer-events: all; /* Enable pointer events for interactive elements */
}
.iframe-greenspace {
width: 700px;
height: 700px;
top: 20px;
left: 605px; /* Adjusted based on Biodiversity position */
z-index: 2;
pointer-events: all; /* Enable pointer events for interactive elements */
}
.iframe-yield {
width: 600px;
height: 600px;
top: 95px;
left: 1050px; /* Adjusted based on Greenspace position */
z-index: 3;
pointer-events: all; /* Enable pointer events for interactive elements */
}
/* Responsive adjustments */
@media (max-width: 1600px) {
:root {
--scale-factor: 0.8;
}
}
@media (max-width: 1400px) {
:root {
--scale-factor: 0.7;
}
}
@media (max-width: 1200px) {
:root {
--scale-factor: 0.6;
}
}
@media (max-width: 1000px) {
:root {
--scale-factor: 0.5;
}
}
@media (max-width: 800px) {
:root {
--scale-factor: 0.4;
}
}
@media (max-width: 600px) {
:root {
--scale-factor: 0.3;
}
}
@media (max-width: 400px) {
:root {
--scale-factor: 0.25;
}
}
@media (max-width: 300px) {
:root {
--scale-factor: 0.2;
}
}