polar-recorder
Version:
A SignalK plugin to record boat polars based on sailing performance
182 lines (159 loc) • 3.1 kB
CSS
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
overflow: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 8px;
text-align: center;
border: 1px solid #ccc;
}
th {
background-color: #f4f4f4;
}
#container {
width: 99vw;
height: 99vh;
margin: 0;
padding: 0;
}
#headerContainer {
position: absolute;
top: 10px;
left: 10px;
text-align: center;
font-size: 1.2em;
background: rgba(255, 255, 255, 0.8);
padding: 8px;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1;
}
#liveData {
position: absolute;
top: 10px;
right: 10px;
text-align: center;
font-size: 1.2em;
background: rgba(255, 255, 255, 0.8);
padding: 8px;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1;
}
#toggleTableContainer {
position: absolute;
bottom: 10px;
left: 10px;
text-align: center;
font-size: 1.2em;
background: rgba(255, 255, 255, 0.8);
padding: 8px;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
max-height: 90vh;
overflow-y: auto;
transition: all 0.3s ease;
}
#toggleTableContainer.expanded {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
max-height: none;
background-color: white;
padding: 20px;
overflow-y: auto;
z-index: 999;
border-radius: 0;
box-shadow: none;
}
#tableWrapper {
display: none;
margin-top: 15px;
overflow-x: auto;
}
#toggleTableContainer.expanded #tableWrapper {
display: block;
}
#polarTable {
width: 100%;
border-collapse: collapse;
}
#recordControls {
display: none;
margin-top: 10px;
text-align: center;
}
#tableContainer {
margin-top: 10px;
text-align: center;
}
#toggleTableBtn {
margin-top: 5px;
padding: 8px 12px;
font-size: 1em;
cursor: pointer;
}
#chartControls {
position: absolute;
bottom: 10px;
right: 10px;
text-align: center;
font-size: 1.2em;
background: rgba(255, 255, 255, 0.8);
padding: 8px;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
max-height: 90vh;
overflow-y: auto;
transition: all 0.3s ease;
}
#toggleFullChartBtn {
margin-top: 5px;
padding: 8px 12px;
font-size: 1em;
cursor: pointer;
}
#motoringOverlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(100, 100, 100, 0.7);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
color: white;
font-size: 2em;
}
#recordingOverlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(100, 100, 100, 0.7);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
color: white;
font-size: 2em;
}
#recordingOverlay>.red-dot {
position: fixed;
left: 24px;
top: 24px;
}