objectivemarkerhud.cs.scss
ObjectiveMarkerHud {
position: absolute;
width: 100%;
height: 100%;
font-family: Poppins;
pointer-events: none;
// Left/Top are set from code as screen fractions. The negative margins
// shift the panel back by half its own size so the pip lands ON the
// objective rather than down-right of it.
.marker {
position: absolute;
width: 160px;
margin-left: -80px;
margin-top: -28px;
flex-direction: column;
align-items: center;
transition: opacity 0.15s ease-out;
.pip {
width: 12px;
height: 12px;
background-color: white;
border-radius: 6px;
border: 2px solid rgba( black, 0.65 );
}
.text {
font-size: 15px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 0px 0px 10px rgba( black, 0.95 );
margin-top: 4px;
}
.distance {
font-size: 13px;
color: rgba( white, 0.7 );
text-shadow: 0px 0px 10px rgba( black, 0.95 );
&.hidden {
display: none;
}
}
// Pinned to the screen edge - dimmed so it doesn't read as "the
// objective is right here".
&.offscreen {
opacity: 0.55;
.pip {
width: 8px;
height: 8px;
border-radius: 4px;
}
}
}
}