2023-03-10 15:47:03 +00:00

273 lines
4.3 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;
}
#unit-control-panel #loadout-container {
display:flex;
flex-wrap: wrap;
row-gap: 4px;
}
#unit-control-panel #loadout-label span {
display:block;
float:right;
}
#unit-control-panel #loadout-label span::before {
content: url( /images/icons/fuel.svg );
display:inline-block;
filter:invert(100%);
height:16px;
translate:-25% 5%;
width:16px;
}
#unit-control-panel #loadout-label span::after {
content: attr( data-fuel-level ) "%";
}
#unit-control-panel #loadout-container .loadout-item {
background-color: black;
}
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;
}
dl.data-grid dd.br-info[data-bearing][data-distance][data-distance-units]::after {
content: attr( data-bearing ) '\00B0 / ' attr( data-distance ) attr( data-distance-units );
}
.ol-button-box {
column-gap: 6px;
display:flex;
flex-direction: row;
flex-wrap: wrap;
margin:5px 0;
row-gap: 5px;
}
.ol-button-box button {
background-repeat: no-repeat;;
border:1px solid var( --accent-light-blue );
color: var( --accent-light-blue );
}
#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;
display:flex;
flex-direction: column;
height: fit-content;
position: absolute;
right: 10px;
row-gap: 10px;
width: 160px;
z-index: 1000;
}
#mouse-info-panel > * {
background-color: var( --background-grey );
border-radius: var( --border-radius-sm );
padding:6px;
}
#mouse-info-panel dl {
margin-bottom:4px;
row-gap: 8px;
}
#mouse-info-panel dt {
height:20px;
width:40%;
}
#mouse-info-panel dt::after {
align-items: center;
background-color: white;
border-radius: var( --border-radius-sm );
color: var( --background-steel );
display:flex;
font-size:15.6px;
font-weight: bolder;
height:16px;
justify-content: center;
line-height: 16px;
padding:4px;
text-transform: uppercase;
width:16px;
}
#mouse-info-panel dt#ref-measure-position::after {
background-image: url( "/images/icons/ruler.svg" );
background-position: 50% 50%;
background-repeat: no-repeat;
background-size:16px 16px;
content: " ";
}
#mouse-info-panel dt[data-label]::after {
content: attr( data-label );
}
#mouse-info-panel dt[data-coalition="blue"]::after {
background-color: var( --primary-blue );
}
#mouse-info-panel dt[data-coalition="red"]::after {
background-color: var( --primary-red );
}
#mouse-info-panel dt[data-tooltip]:hover::before {
background-color: var( --background-grey );
border-radius: 5px;
content: attr( data-tooltip );
display:flex;
flex-wrap: nowrap;
padding: 5px;
position: absolute;
translate: calc( -100% - 15px ) 0;
white-space: nowrap;
}
#mouse-info-panel dd {
width:60%;
}