I'm looking to create a unique design by filling half of the circled outline. Take a look at this image and accompanying code snippet:
<body>
<div id="ui">
<div class="status">
<div class="health">
<i class="fa fa-solid fa-heart"></i>
</div>
<div class="armor">
<i class="fa fa-solid fa-shield-halved"></i>
</div>
<div class="hunger">
<i class="fa fa-solid fa-drumstick-bite"></i>
</div>
<div class="thirst">
<i class="fa fa-solid fa-wine-bottle"></i>
</div>
</div>
</div>
</body>
.thirst, .armor, .health, .hunger {
display: flex;
justify-content: center;
align-items: center;
outline-style: solid;
outline-offset: -3.5px;
outline-width: 3.5px;
border-radius: 100%;
font-size: 14px;
margin-top: 10%;
color: rgb(0, 0, 0);
height: 40px; width: 40px;
box-shadow: 0px 0px 2px rgb(0, 0, 0);
text-shadow: 0px 0px 1px rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.5);
}
The current appearance of the circular outline is shown below:
Despite attempts to implement linear gradient, I encountered some challenges.