-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
340 lines (301 loc) · 8.49 KB
/
Copy pathstyle.css
File metadata and controls
340 lines (301 loc) · 8.49 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: 'Inter', sans-serif;
font-size: 14px; /* Base font size reduction */
}
/* Top Bar Styling - Thinner, Centered Title */
#top-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #228b22; /* Forest Green */
color: #fff;
padding: 5px 60px;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
z-index: 1000;
overflow-y: auto;
transition: height 0.3s ease, padding 0.3s ease;
box-sizing: border-box;
}
#top-bar.collapsed {
height: 38px; /* Thinner height for the title bar */
padding-top: 7px;
padding-bottom: 5px;
}
#top-bar-header {
display: flex;
justify-content: center; /* Center the title */
align-items: center;
position: relative;
/* FIX: Ensure header content is vertically centered in the collapsed bar */
height: 100%;
}
/* NEW: Base Layer Selector Styling */
#base-layer-selector {
position: absolute;
left: 60px; /* Position it on the left, respecting padding */
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 10px; /* Space between the two radio groups */
font-size: 0.9em;
}
.base-layer-group {
margin-bottom: 0;
}
/* Ensure labels in this group are not bold */
#base-layer-selector label {
font-weight: normal;
margin-bottom: 0;
}
/* END NEW Base Layer Selector Styling */
#top-bar h1 {
margin: 0;
color: #fff;
font-size: 1.3rem; /* Smaller font size */
text-align: center;
}
#collapse-button {
position: absolute;
/* FIX: Set right to 60px to align the button relative to the padding,
making the center of the title appear visually correct. */
right: 60px;
top: 50%;
/* FIX: Remove translateY to allow the icon's container to be centered */
transform: translateY(-50%);
background: none;
border: none;
color: #fff;
font-size: 1.2rem; /* Smaller icon */
cursor: pointer;
transition: transform 0.3s ease;
/* NEW: Removed fixed height to allow vertical centering by 'top: 50%' */
}
#top-bar.collapsed #collapse-button i {
/* Only apply the rotation on collapse, not the translate */
transform: rotate(180deg);
}
#control-content {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.3s ease, opacity 0.3s ease;
/* NEW: Use CSS Grid for horizontal arrangement in expanded view */
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two columns for dropdowns */
gap: 10px; /* Spacing between grid items */
}
#top-bar:not(.collapsed) #control-content {
/* MODIFIED: Increased max-height for better spacing (300px) */
max-height: 400px;
opacity: 1;
margin-top: 5px;
padding-bottom: 5px;
}
/* Ensure select elements span their full grid cell */
#control-content select {
width: 100%;
}
/* Force some elements (HR and radio groups) to span both columns */
#control-content hr,
#control-content .control-group:nth-child(6), /* HR */
#control-content .control-group:nth-child(7), /* Boundaries */
#control-content .control-group:nth-child(8), /* FRA Claims */
#control-content .control-group:nth-child(9), /* Crop Land */
#control-content .control-group:nth-child(10), /* Water Bodies */
#control-content .control-group:nth-child(11), /* Homesteads */
#control-content .control-group:nth-child(12), /* Forests */
#control-content #status-message {
grid-column: 1 / span 2;
}
.control-group {
margin-bottom: 5px; /* Reduced vertical spacing */
}
.radio-group {
display: flex;
align-items: center;
font-size: 0.9em;
}
.radio-group input[type="radio"] {
margin-right: 5px;
}
#date-selector-group {
margin-left: 15px;
display: flex;
align-items: center;
}
#date-selector-group label {
margin-right: 5px;
margin-bottom: 0;
font-weight: normal;
}
label {
display: block;
margin-bottom: 4px; /* Reduced vertical spacing */
font-weight: bold;
font-size: 0.9em;
}
/* Dropdown and Date input styling */
#state-dropdown, #district-dropdown, #claim-date, #village-dropdown, #tehsil-dropdown, #tribal-group-dropdown {
padding: 6px; /* Reduced padding */
border-radius: 4px;
border: 1px solid #c8e6c9;
box-sizing: border-box;
background-color: #f1f8f1;
color: #333;
transition: all 0.3s ease;
font-size: 0.9em;
}
#district-dropdown:disabled, #village-dropdown:disabled, #tehsil-dropdown:disabled, #tribal-group-dropdown:disabled {
background-color: #aaa;
color: #666;
cursor: not-allowed;
}
.status-message {
margin-top: 5px;
padding: 8px; /* Reduced padding */
background-color: rgba(0, 0, 0, 0.1);
border-radius: 4px;
min-height: 30px;
font-size: 0.8em; /* Smaller font */
color: #c8e6c9;
}
/* Map Styling */
#map {
width: 100%;
height: 100vh;
padding-top: 38px; /* Default height of collapsed top-bar */
box-sizing: border-box;
transition: padding-top 0.3s ease, margin-right 0.3s ease;
}
/* MODIFIED: Adjusted map padding to match new expanded height (300px) */
#top-bar:not(.collapsed) + #map {
padding-top: 400px;
}
/* --- Statistics Sidebar Styling --- */
#stats-sidebar {
position: fixed;
top: 38px; /* Starts below the collapsed title bar */
right: 0;
width: 260px; /* Thin sidebar width */
height: calc(100% - 38px);
background-color: rgba(34, 139, 34, 0.95); /* Semi-transparent Forest Green */
color: #fff;
padding: 15px;
box-shadow: -2px 0 8px rgba(0,0,0,0.3);
z-index: 999;
transition: transform 0.3s ease;
box-sizing: border-box;
overflow-y: auto;
}
#stats-sidebar.hidden {
transform: translateX(100%); /* Slide out */
}
/* NEW: Sidebar Toggle Button Styling */
#sidebar-toggle-button {
position: absolute;
top: 50%;
left: -20px; /* Position it outside the sidebar */
transform: translateY(-50%);
width: 20px;
height: 40px;
background-color: #228b22; /* Forest Green, matches top bar */
color: #fff;
border: none;
border-radius: 4px 0 0 4px; /* Rounded left side */
box-shadow: -2px 0 8px rgba(0,0,0,0.3);
cursor: pointer;
z-index: 1000;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
#stats-sidebar.hidden #sidebar-toggle-button i {
/* Arrow points right when closed */
transform: rotate(180deg);
transition: transform 0.3s ease;
}
#stats-sidebar:not(.hidden) #sidebar-toggle-button i {
/* Arrow points left when open */
transform: rotate(0deg);
transition: transform 0.3s ease;
}
#stats-sidebar h2 {
font-size: 1.1rem; /* Smaller font */
color: #fff;
margin-top: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
padding-bottom: 5px;
margin-bottom: 10px;
}
#statistics-panel {
font-size: 0.8em; /* Smaller font for stats */
line-height: 1.3; /* Less line spacing */
padding-bottom: 10px;
opacity: 1 !important; /* Override opacity set by top-bar control logic */
max-height: 1000px !important; /* Override max-height set by top-bar control logic */
}
#statistics-panel strong {
color: #FFD700;
display: block;
margin-top: 6px;
font-size: 1.05em;
}
#statistics-panel ul {
list-style: none;
padding: 0;
margin: 3px 0 8px 0;
}
#statistics-panel li {
background: rgba(255, 255, 255, 0.1);
padding: 3px 5px;
margin-bottom: 2px;
border-radius: 2px;
}
/* Adjust map when sidebar is open */
.stats-open #map {
margin-right: 260px;
width: calc(100% - 260px);
}
/* Responsive adjustment: Revert to single column for small screens */
@media (max-width: 768px) {
#control-content {
grid-template-columns: 1fr; /* Single column on mobile */
gap: 5px;
}
/* All elements span full width on mobile */
#control-content > * {
grid-column: 1 / span 1 !important;
}
/* MODIFIED: Increase height for stacking on small screens */
#top-bar:not(.collapsed) #control-content {
max-height: 500px;
}
#top-bar:not(.collapsed) + #map {
padding-top: 500px;
}
#stats-sidebar {
width: 100%;
height: 250px;
top: auto;
bottom: 0;
transform: translateY(100%);
box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}
#stats-sidebar.hidden {
transform: translateY(100%);
}
.stats-open #stats-sidebar:not(.hidden) {
transform: translateY(0);
}
.stats-open #map {
margin-right: 0;
width: 100%;
height: calc(100vh - 250px);
}
}