Skip to content

Commit f232c57

Browse files
committed
banner styling fixes
1 parent 7abca6f commit f232c57

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

src/Tabs.svelte

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,35 +129,35 @@
129129
/* border-style: solid;
130130
border-width: 1px;
131131
border-color: #666; */
132-
/* background-color: rgb(247, 247, 247, 0.2); */
133-
background-color: transparent;
132+
background-color: rgba(255, 255, 255, 0.9);
133+
/* background-color: transparent; */
134134
color: #333;
135135
font-weight: 400;
136136
font-size: 1.6em;
137-
line-height: 1.5em;
137+
line-height: 1.2em;
138138
font-weight: 600;
139139
text-align: center;
140140
padding: 5px 24px;
141141
142142
pointer-events: none;
143143
144-
/* position: relative; */
144+
position: relative;
145145
}
146146
147147
.banner-text {
148148
padding: 1px 5px;
149149
margin: 0;
150-
/* background: transparent; */
151-
background-color: rgb(247, 247, 247, 0.2);
150+
background: transparent;
151+
/* background-color: rgba(255,255,255, 0.9); */
152152
pointer-events: auto;
153153
154-
position: relative;
154+
/* position: relative; */
155155
}
156156
157157
.hide-banner-button {
158158
position: absolute;
159-
top: -6px;
160-
left: -20px;
159+
top: 3px;
160+
left: 3px;
161161
width: 20px;
162162
height: 20px;
163163
color: #333;
@@ -201,20 +201,17 @@
201201

202202
{#if shouldDisplayBanner}
203203
<div class="banner-container">
204-
<div class="banner">
205-
206-
<span class="banner-text">
207-
<button
208-
title="Hide map title"
209-
aria-label="toggle banner"
210-
class="hide-banner-button"
211-
on:click={_ => {
212-
shouldDisplayBanner = false;
213-
}}>
214-
&#10005;
215-
</button>
216-
{currentSensorTooltip}
217-
</span>
218-
</div>
204+
<h2 class="banner">
205+
<button
206+
title="Hide map title"
207+
aria-label="toggle banner"
208+
class="hide-banner-button"
209+
on:click={_ => {
210+
shouldDisplayBanner = false;
211+
}}>
212+
&#10005;
213+
</button>
214+
<span class="banner-text">{currentSensorTooltip}</span>
215+
</h2>
219216
</div>
220217
{/if}

0 commit comments

Comments
 (0)