dn42-info/html/map/style.css

140 lines
2.4 KiB
CSS
Raw Normal View History

2024-10-09 15:46:26 +02:00
html, body {
margin: 0;
width: 100%;
height: 100%;
}
2024-10-10 18:12:40 +02:00
#map {
background: black;
}
.code {
cursor: pointer;
font-family: monospace;
}
.selectedNode {
overflow: hidden;
position: absolute;
transition: transform .3s ease, height .3s ease;
text-align: left;
background: #222;
padding: 10px 20px;
margin: 10px;
width: calc(100% - 60px);
height: auto;
border-radius: 8px;
z-index: 9998;
}
2024-10-09 15:46:26 +02:00
#sidebar {
width: 320px;
height: 100%;
left: 0;
position: absolute;
z-index: 9999;
2024-10-09 15:56:21 +02:00
background: rgba(0,0,0, 0.7);
2024-10-09 15:46:26 +02:00
backdrop-filter: blur(32px);
color: white;
mask-image: linear-gradient(90deg, black 300px, transparent 320px);
2024-10-09 15:56:21 +02:00
#sidebarContent {
text-align: center;
height: 100%;
2024-10-09 15:46:26 +02:00
width: 300px;
2024-10-09 15:56:21 +02:00
overflow-x: scroll;
#nodes {
width: 100%;
2024-10-10 18:12:40 +02:00
transition: opacity .3s ease;
div {
text-align: left;
cursor: pointer;
background: #222;
padding: 10px 20px;
margin: 10px;
width: calc(100% - 60px);
height: auto;
border-radius: 8px;
}
2024-10-09 15:46:26 +02:00
}
}
}
#blurThing {
position: absolute;
left: 300px;
width: 20px;
height: 100%;
z-index: 9999;
background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
pointer-events: none;
}
#map {
width: 100%;
height: 100%;
}
.leaflet-left {
margin-left: 320px;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
background: none;
color: white;
}
.leaflet-popup-tip {
backdrop-filter: blur(5px);
}
.leaflet-popup {
backdrop-filter: blur(5px);
}
.leaflet-control {
background: none !important;
color: white;
a {
color: aqua;
}
}
.leaflet-control-zoom {
backdrop-filter: blur(5px);
}
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
background: none !important;
}
.leaflet-bar a {
border-bottom: none !important;
}
@media screen and (max-width: 600px) {
#sidebar {
width: 100%;
2024-10-10 18:12:40 +02:00
height: 320px;
2024-10-09 15:46:26 +02:00
2024-10-10 18:12:40 +02:00
mask-image: linear-gradient(180deg, black 300px, transparent 320px);
2024-10-09 15:46:26 +02:00
2024-10-09 15:56:21 +02:00
#sidebarContent {
width: 100%;
2024-10-10 18:12:40 +02:00
height: 300px;
2024-10-09 15:46:26 +02:00
}
}
.leaflet-left {
margin-left: none;
2024-10-10 18:12:40 +02:00
margin-top: 320px;
2024-10-09 15:46:26 +02:00
}
}