Skip to content

Commit 7a2ffcf

Browse files
committed
refactor: move info button into top right
1 parent 704cda4 commit 7a2ffcf

2 files changed

Lines changed: 45 additions & 13 deletions

File tree

css/styles.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,42 @@ body {
128128
opacity: 1;
129129
}
130130

131+
/* Info Button - Upper Right Corner */
132+
.info-button-top {
133+
position: absolute;
134+
top: var(--space-lg);
135+
right: var(--space-lg);
136+
z-index: 1001;
137+
width: 44px;
138+
height: 44px;
139+
border-radius: 50%;
140+
background: linear-gradient(135deg, #666, #888);
141+
border: 1px solid var(--glass-border);
142+
color: white;
143+
font-size: 20px;
144+
font-weight: bold;
145+
cursor: pointer;
146+
display: flex;
147+
align-items: center;
148+
justify-content: center;
149+
transition: all 0.2s ease;
150+
box-shadow: var(--glass-shadow);
151+
backdrop-filter: blur(16px);
152+
-webkit-backdrop-filter: blur(16px);
153+
}
154+
155+
.info-button-top:hover {
156+
background: linear-gradient(135deg, #777, #999);
157+
transform: scale(1.05);
158+
border-color: var(--accent-blue);
159+
}
160+
161+
.info-button-top span {
162+
color: white;
163+
font-weight: bold;
164+
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
165+
}
166+
131167
/* ============================================
132168
MAIN MENU - Left sidebar panel
133169
============================================ */

index.html

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,18 @@ <h2>Shelter Analysis</h2>
190190
</div>
191191
</div>
192192

193-
<!-- Map & Data Controls -->
194-
<div class="control-section">
195-
<div class="control-group">
196-
<button
197-
class="bottom-button info-button"
198-
id="aboutButton"
199-
title="About & Analysis Methods"
200-
style="width: 100%"
201-
>
202-
<span>i</span>
203-
</button>
204-
</div>
205-
</div>
206193
</div>
207194
</div>
208195

196+
<!-- Info Button (upper right corner) -->
197+
<button
198+
class="info-button-top"
199+
id="aboutButton"
200+
title="About & Analysis Methods"
201+
>
202+
<span>i</span>
203+
</button>
204+
209205
<!-- Combined Legend and Scale Bar (positioned on right side) -->
210206
<div class="map-legend-panel" id="mapLegendPanel">
211207
<!-- Data Layers Legend Section -->

0 commit comments

Comments
 (0)