194 lines
2.6 KiB
CSS

/* Page style */
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: 'Open Sans', sans-serif;
}
body {
display:grid;
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
width: 100%;
}
#map-container {
height: 100%;
min-width: 820px;
width: 100%;
}
#primary-toolbar {
position: absolute;
left: 10px;
top: 10px;
z-index: 1000;
}
.content #primary-toolbar {
position: static;
}
#unit-control-panel {
height: fit-content;
left: 10px;
position: absolute;
top: 80px;
width: 250px;
z-index: 1000;
}
#unit-control-panel h4 {
margin-bottom:8px;
margin-top:20px;
}
body.feature-forceShowUnitControlPanel #unit-control-panel {
display:block !important;
}
.content #unit-control-panel {
position: static;
}
dl.data-grid {
align-items: center;
display:flex;
flex-direction: row;
flex-wrap: wrap;
margin:0;
row-gap: 4px;
}
dl.data-grid dt {
width:60%;
}
dl.data-grid dd {
width:40%;
}
dl.data-grid dt.icon {
text-indent: 10px;
}
dl.data-grid dt.icon::before {
content: url( /images/icons/speed.svg );
display:inline-block;
filter:invert(100%);
width: 20px;
translate:-20px 2px;
}
dl.data-grid dt.icon-speed::before {
content: url( /images/icons/speed.svg );
}
dl.data-grid dt.icon-altitude::before {
content: url( /images/icons/altitude.svg );
}
dl.data-grid dd {
display: flex;
justify-content: flex-end;
margin-left: auto;
}
.ol-button-box {
column-gap: 6px;
display:flex;
flex-direction: row;
flex-wrap: wrap;
margin:5px 0;
row-gap: 5px;
}
.ol-button-box button {
border:1px solid var( --accent-light-blue );
color: var( --accent-light-blue );
}
.ol-button-box button:first-of-type, .ol-button-box button.selected {
border-color: white;
background-color: white;
color: var( --background-steel );
}
.ol-button-box button:after {
content: "[]";
}
#connection-status-panel {
bottom: 20px;
font-size:12px;
position: absolute;
right: 10px;
width: 160px;
z-index: 1000;
}
#connection-status-panel dt::before {
content: "No connection";
}
#connection-status-panel dd::after {
border-radius: 50%;
background: red;
content: " ";
height:12px;
width:12px;
}
#connection-status-panel[data-is-connected] dt::before {
content: "Connected";
}
#connection-status-panel[data-is-connected] dd::after {
background:var( --accent-green );
}
#mouse-info-panel {
bottom: 60px;
height: fit-content;
position: absolute;
right: 10px;
width: 160px;
z-index: 1000;
}
.content #mouse-info-panel {
margin-bottom: 100px;
position: static;
}
#log-panel {
height: 200px;
left: 10px;
position: absolute;
top: 60px;
width: 400px;
z-index: 1000;
}