Files
openfreemap/website/src/styles/map.css
2024-09-11 23:50:15 +02:00

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;
}
}