OpenStreetMap-Service/public/css/style.css

158 lines
2.5 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
font-size: 2rem;
color: #2563eb;
}
.header p {
color: #666;
margin-top: 5px;
}
.controls {
display: flex;
gap: 20px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.control-group {
background: white;
padding: 15px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
flex: 1;
min-width: 280px;
}
.control-group h3 {
margin-bottom: 12px;
color: #333;
font-size: 1rem;
}
.control-group input {
width: 100%;
padding: 8px 12px;
margin-bottom: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.control-group input:focus {
outline: none;
border-color: #2563eb;
}
.control-group button {
width: 100%;
padding: 10px;
background-color: #2563eb;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
.control-group button:hover {
background-color: #1d4ed8;
}
#map {
height: 500px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.api-info {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.api-info h3 {
margin-bottom: 15px;
color: #333;
}
.api-endpoint {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
.api-endpoint:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.api-endpoint code {
display: block;
background: #f5f5f5;
padding: 10px;
border-radius: 4px;
font-size: 13px;
word-break: break-all;
margin-bottom: 5px;
}
.api-endpoint p {
color: #666;
font-size: 14px;
}
@media (max-width: 768px) {
.controls {
flex-direction: column;
}
#map {
height: 400px;
}
}
.leaflet-alert-control {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
@keyframes alertSlideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}