Skip to content

Commit d40ff09

Browse files
authored
Add summary panel and tab navigation styles
Added styles for the summary panel and tab navigation.
1 parent 20e48c4 commit d40ff09

File tree

1 file changed

+131
-0
lines changed

1 file changed

+131
-0
lines changed

samples/ai-powered-summaries/style.css

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,135 @@ gmp-place-autocomplete {
114114
border-top: 1px solid #eee;
115115
font-style: italic;
116116
}
117+
118+
.flag-content-link {
119+
font-size: 0.75rem;
120+
color: #666;
121+
padding: 10px 15px;
122+
border-top: 1px solid #eee;
123+
}
124+
/* [END maps_ai_powered_summaries] */
125+
/**
126+
* @license
127+
* Copyright 2025 Google LLC. All Rights Reserved.
128+
* SPDX-License-Identifier: Apache-2.0
129+
*/
130+
/* [START maps_ai_powered_summaries] */
131+
/* Reuse existing map height */
132+
gmp-map {
133+
height: 100%;
134+
}
135+
136+
html,
137+
body {
138+
height: 100%;
139+
margin: 0;
140+
padding: 0;
141+
}
142+
143+
/* Existing Autocomplete Card Style */
144+
.place-autocomplete-card {
145+
background-color: #fff;
146+
border-radius: 5px;
147+
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
148+
margin: 10px;
149+
padding: 15px;
150+
font-family: Roboto, sans-serif;
151+
font-size: 1rem;
152+
}
153+
154+
gmp-place-autocomplete {
155+
width: 300px;
156+
}
157+
158+
/* New: Summary Panel Styles */
159+
.summary-card {
160+
background-color: #fff;
161+
border-radius: 5px;
162+
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
163+
margin: 10px;
164+
padding: 0; /* Padding handled by children */
165+
font-family: Roboto, sans-serif;
166+
width: 350px;
167+
max-height: 80vh; /* Prevent overflow on small screens */
168+
overflow-y: auto;
169+
display: flex;
170+
flex-direction: column;
171+
}
172+
173+
.hidden {
174+
display: none;
175+
}
176+
177+
#place-header {
178+
padding: 15px;
179+
background-color: #f8f9fa;
180+
border-bottom: 1px solid #ddd;
181+
}
182+
183+
#place-header h2 {
184+
margin: 0 0 5px 0;
185+
font-size: 1.2rem;
186+
}
187+
188+
#place-address {
189+
margin: 0;
190+
color: #555;
191+
font-size: 0.9rem;
192+
}
193+
194+
/* Tab Navigation */
195+
.tab-container {
196+
display: flex;
197+
border-bottom: 1px solid #ddd;
198+
background-color: #fff;
199+
}
200+
201+
.tab-button {
202+
flex: 1;
203+
background: none;
204+
border: none;
205+
padding: 10px;
206+
cursor: pointer;
207+
font-weight: 500;
208+
color: #555;
209+
border-bottom: 3px solid transparent;
210+
}
211+
212+
.tab-button:hover {
213+
background-color: #f1f1f1;
214+
}
215+
216+
.tab-button.active {
217+
font-weight: bold;
218+
border-bottom: 3px solid #000000;
219+
}
220+
221+
.tab-button.active:hover {
222+
background-color: #ffffff;
223+
cursor: default;
224+
}
225+
226+
/* Content Area */
227+
.content-area {
228+
padding: 15px;
229+
line-height: 1.5;
230+
font-size: 0.95rem;
231+
color: #333;
232+
}
233+
234+
.disclosure-footer {
235+
font-size: 0.75rem;
236+
color: #666;
237+
padding: 10px 15px;
238+
border-top: 1px solid #eee;
239+
font-style: italic;
240+
}
241+
242+
.flag-content-link {
243+
font-size: 0.75rem;
244+
color: #666;
245+
padding: 10px 15px;
246+
border-top: 1px solid #eee;
247+
}
117248
/* [END maps_ai_powered_summaries] */

0 commit comments

Comments
 (0)