mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
77 lines
1.2 KiB
CSS
77 lines
1.2 KiB
CSS
#map-container {
|
|
width: 100%;
|
|
height: 500px;
|
|
margin-bottom: 24px;
|
|
position: relative;
|
|
}
|
|
|
|
@media (max-width: 550px) {
|
|
#map-container {
|
|
height: 300px;
|
|
}
|
|
}
|
|
|
|
#mapbg-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
z-index: 1;
|
|
background-image: url('/berlin.webp');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
transition: opacity 3s;
|
|
}
|
|
|
|
.mapbg-attrib {
|
|
font:
|
|
12px / 20px Helvetica Neue,
|
|
Arial,
|
|
Helvetica,
|
|
sans-serif;
|
|
background-color: hsla(0, 0%, 100%, 0.5);
|
|
padding: 0 5px;
|
|
bottom: 0;
|
|
right: 0;
|
|
position: absolute;
|
|
|
|
a {
|
|
color: rgba(0, 0, 0, 0.75);
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.button-container {
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.btn {
|
|
border: 0;
|
|
border-radius: 0.25rem;
|
|
background: #2f5f8b;
|
|
color: white;
|
|
font-size: 1rem;
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
padding: 0.25rem 0.5rem;
|
|
margin-right: 0.5rem;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
|
|
&.selected {
|
|
background: #4892d9;
|
|
}
|
|
|
|
&:hover {
|
|
background: #4892d9;
|
|
}
|
|
}
|