yggdrasil-go/src/webui/static/style.css
2025-07-29 20:14:41 +00:00

136 lines
No EOL
2.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 40px;
color: white;
}
header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
header p {
font-size: 1.2rem;
opacity: 0.9;
}
main {
background: white;
border-radius: 12px;
padding: 30px;
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.status-card {
background: #f8f9fa;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
text-align: center;
}
.status-indicator {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin: 15px 0;
}
.status-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #6c757d;
}
.status-dot.active {
background: #28a745;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.info-card {
background: #ffffff;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 20px;
text-align: center;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.info-card h3 {
color: #495057;
margin-bottom: 10px;
}
.info-card p {
color: #6c757d;
margin-bottom: 10px;
}
.info-card small {
color: #adb5bd;
font-style: italic;
}
footer {
text-align: center;
color: white;
opacity: 0.8;
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
header h1 {
font-size: 2rem;
}
main {
padding: 20px;
}
.info-grid {
grid-template-columns: 1fr;
}
}