Files
LatencyTest/src/client/styles/index.css

114 lines
2.1 KiB
CSS

:root {
--primary-color: #3b82f6;
--primary-hover: #2563eb;
--error-color: #ef4444;
--text-color: #1f2937;
--text-secondary: #6b7280;
--background-color: #f9fafb;
--card-bg: #ffffff;
--input-bg: #ffffff;
--border-color: #e5e7eb;
--hover-bg: rgba(0, 0, 0, 0.05);
--shadow-color: rgba(0, 0, 0, 0.1);
--map-land: #e5e7eb;
--map-border: #d1d5db;
--marker-inactive: #9ca3af;
}
[data-theme='dark'] {
--text-color: #f9fafb;
--text-secondary: #9ca3af;
--background-color: #111827;
--card-bg: #1f2937;
--input-bg: #374151;
--border-color: #374151;
--hover-bg: rgba(255, 255, 255, 0.1);
--shadow-color: rgba(0, 0, 0, 0.3);
--map-land: #374151;
--map-border: #4b5563;
--marker-inactive: #6b7280;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.5;
transition: background-color 0.3s, color 0.3s;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.app-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-color);
background-color: var(--card-bg);
}
.app-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 1.5rem;
font-weight: 700;
}
.title-icon {
font-size: 1.75rem;
}
.app-main {
flex: 1;
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.app-description {
text-align: center;
color: var(--text-secondary);
margin-bottom: 1.5rem;
}
.app-footer {
text-align: center;
padding: 1rem;
border-top: 1px solid var(--border-color);
font-size: 0.85rem;
color: var(--text-secondary);
}
.app-footer .excellent { color: #22c55e; }
.app-footer .good { color: #eab308; }
.app-footer .poor { color: #ef4444; }
@media (max-width: 768px) {
.app-header {
padding: 1rem;
}
.app-title {
font-size: 1.25rem;
}
.app-main {
padding: 1rem;
}
}