runic-client/css/game.css

46 lines
736 B
CSS
Raw Permalink Normal View History

2023-03-03 12:22:49 -08:00
body {
margin: 0;
height: 100vh;
2023-03-03 12:22:49 -08:00
overflow: hidden;
position: relative;
2023-03-03 12:22:49 -08:00
}
body:hover {
cursor: default;
}
canvas.main_canvas {
position: absolute;
}
.hud_item {
background-color: #555555aa;
margin: 8px;
padding: 8px 12px;
border-radius: 4px;
color: white;
font-family: roboto, sans-serif;
width: fit-content;
position: absolute;
display: inline-block;
}
.hud_item.bottom {
bottom: 0px;
}
.hud_item.right {
right: 0px;
2023-03-03 12:22:49 -08:00
}
div.bar {
width: 400px;
background-color: grey;
border-radius: 3px;
}
div.bar div {
width: 100%;
height: 6px;
border-radius: 3px;
transition-duration: 0.2s;
}
div.red_bar div {
background-color: red;
}
div.green_bar div {
background-color: lime;
}