mirror of
https://github.com/R0GGER/iperf3-map.git
synced 2026-11-11 01:20:06 +01:00
225 lines
3.8 KiB
CSS
225 lines
3.8 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
#map {
|
|
height: 100vh;
|
|
width: 100%;
|
|
}
|
|
|
|
#map-logo {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: rgba(255, 255, 255, 0.9);
|
|
padding: 10px 15px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
#map-logo img {
|
|
width: 40px;
|
|
height: auto;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.logo-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.logo-title {
|
|
font-weight: 900;
|
|
font-size: 16px;
|
|
color: #333;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.logo-subtitle {
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
color: #666;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.star-marker {
|
|
font-size: 30px;
|
|
color: #FFD700; /* Gold */
|
|
text-shadow: 0 0 3px #000;
|
|
text-align: center;
|
|
line-height: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-marker {
|
|
font-size: 30px;
|
|
color: #ff0000; /* Red for user */
|
|
text-shadow: 0 0 3px #fff;
|
|
text-align: center;
|
|
line-height: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Modal styles */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 2000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0,0,0,0.4);
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #fefefe;
|
|
margin: 10% auto;
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%;
|
|
max-width: 800px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.close {
|
|
color: #aaa;
|
|
float: right;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.close:hover,
|
|
.close:focus {
|
|
color: black;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.server-list-item {
|
|
padding: 10px;
|
|
border-bottom: 1px solid #eee;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.server-list-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.btn {
|
|
padding: 5px 10px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.btn:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
#test-output {
|
|
background-color: #1e1e1e;
|
|
color: #00ff00;
|
|
padding: 15px;
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
margin-top: 20px;
|
|
height: 300px;
|
|
overflow-y: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.loader {
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #3498db;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
animation: spin 2s linear infinite;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Bottom Controls */
|
|
.bottom-controls {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* Floating Action Button */
|
|
.btn-floating {
|
|
/* Removed fixed positioning as it's now handled by .bottom-controls */
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.btn-floating:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.btn-floating:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: 15px;
|
|
background-color: rgba(255, 255, 255, 0.9);
|
|
padding: 10px 15px;
|
|
border-radius: 25px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.footer-link {
|
|
text-decoration: none;
|
|
color: #333;
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
color: #007bff;
|
|
}
|