-
Notifications
You must be signed in to change notification settings - Fork 822
/
style.css
208 lines (178 loc) · 3.5 KB
/
style.css
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
/**
* @license
* Copyright 2019 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_advanced_markers_html] */
:root {
--building-color: #FF9800;
--house-color: #0288D1;
--shop-color: #7B1FA2;
--warehouse-color: #558B2F;
}
/*
* Optional: Makes the sample page fill the window.
*/
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
/*
* Always set the map height explicitly to define the size of the div element
* that contains the map.
*/
#map {
height: 100%;
width: 100%;
}
/*
* Property styles in unhighlighted state.
*/
.property {
align-items: center;
background-color: #FFFFFF;
border-radius: 50%;
color: #263238;
display: flex;
font-size: 14px;
gap: 15px;
height: 30px;
justify-content: center;
padding: 4px;
position: relative;
position: relative;
transition: all 0.3s ease-out;
width: 30px;
}
.property::after {
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 9px solid #FFFFFF;
content: "";
height: 0;
left: 50%;
position: absolute;
top: 95%;
transform: translate(-50%, 0);
transition: all 0.3s ease-out;
width: 0;
z-index: 1;
}
.property .icon {
align-items: center;
display: flex;
justify-content: center;
color: #FFFFFF;
}
.property .icon svg {
height: 20px;
width: auto;
}
.property .details {
display: none;
flex-direction: column;
flex: 1;
}
.property .address {
color: #9E9E9E;
font-size: 10px;
margin-bottom: 10px;
margin-top: 5px;
}
.property .features {
align-items: flex-end;
display: flex;
flex-direction: row;
gap: 10px;
}
.property .features > div {
align-items: center;
background: #F5F5F5;
border-radius: 5px;
border: 1px solid #ccc;
display: flex;
font-size: 10px;
gap: 5px;
padding: 5px;
}
/*
* Property styles in highlighted state.
*/
.property.highlight {
background-color: #FFFFFF;
border-radius: 8px;
box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
height: 80px;
padding: 8px 15px;
width: auto;
}
.property.highlight::after {
border-top: 9px solid #FFFFFF;
}
.property.highlight .details {
display: flex;
}
.property.highlight .icon svg {
width: 50px;
height: 50px;
}
.property .bed {
color: #FFA000;
}
.property .bath {
color: #03A9F4;
}
.property .size {
color: #388E3C;
}
/*
* House icon colors.
*/
.property.highlight:has(.fa-house) .icon {
color: var(--house-color);
}
.property:not(.highlight):has(.fa-house) {
background-color: var(--house-color);
}
.property:not(.highlight):has(.fa-house)::after {
border-top: 9px solid var(--house-color);
}
/*
* Building icon colors.
*/
.property.highlight:has(.fa-building) .icon {
color: var(--building-color);
}
.property:not(.highlight):has(.fa-building) {
background-color: var(--building-color);
}
.property:not(.highlight):has(.fa-building)::after {
border-top: 9px solid var(--building-color);
}
/*
* Warehouse icon colors.
*/
.property.highlight:has(.fa-warehouse) .icon {
color: var(--warehouse-color);
}
.property:not(.highlight):has(.fa-warehouse) {
background-color: var(--warehouse-color);
}
.property:not(.highlight):has(.fa-warehouse)::after {
border-top: 9px solid var(--warehouse-color);
}
/*
* Shop icon colors.
*/
.property.highlight:has(.fa-shop) .icon {
color: var(--shop-color);
}
.property:not(.highlight):has(.fa-shop) {
background-color: var(--shop-color);
}
.property:not(.highlight):has(.fa-shop)::after {
border-top: 9px solid var(--shop-color);
}
/* [END maps_advanced_markers_html] */