aprs.me/assets/css/app.css

116 lines
2.5 KiB
CSS

@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* This file is for your main application CSS */
#map {
height: calc(100vh - 60px); /* Adjust based on header height */
width: 100%;
}
/* Full page map for APRS home page */
#aprs-map {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100vh;
width: 100%;
}
/* Hide header on home page */
body.home-page header {
display: none;
}
/* Adjust main content area for full page map */
body.home-page main {
padding: 0;
max-width: none;
height: 100vh;
}
body.home-page main > div {
max-width: none;
height: 100%;
}
/* Marker cluster styles */
.marker-cluster-small {
background-color: rgba(16, 185, 129, 0.8);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.marker-cluster-small div {
background-color: rgba(16, 185, 129, 0.9);
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.marker-cluster-medium {
background-color: rgba(59, 130, 246, 0.8);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.marker-cluster-medium div {
background-color: rgba(59, 130, 246, 0.9);
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.marker-cluster-large {
background-color: rgba(239, 68, 68, 0.8);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.marker-cluster-large div {
background-color: rgba(239, 68, 68, 0.9);
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
/* Custom cluster icon styles */
.marker-cluster {
background-clip: padding-box;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.8);
}
.marker-cluster div {
width: 30px;
height: 30px;
margin-left: 5px;
margin-top: 5px;
text-align: center;
border-radius: 50%;
font:
13px "Helvetica Neue",
Arial,
Helvetica,
sans-serif;
color: white;
font-weight: bold;
line-height: 30px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.marker-cluster span {
line-height: 30px;
}
/* Cluster animations */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
transition:
transform 0.3s ease-out,
opacity 0.3s ease-out;
}
/* Hover effect for clusters */
.marker-cluster:hover {
transform: scale(1.1);
z-index: 1000 !important;
}
/* APRS marker styles */
.aprs-marker {
transition: transform 0.2s ease-out;
}
.aprs-marker:hover {
transform: scale(1.2);
z-index: 1000 !important;
}