silphius/app/react/components/dom/hotbar.module.css

36 lines
671 B
CSS
Raw Normal View History

2024-06-10 22:42:30 -05:00
.hotbar {
2024-06-13 21:54:32 -05:00
align-self: center;
2024-06-13 15:46:56 -05:00
--border: calc(var(--unit) * 3px);
background-color: rgba(0, 0, 0, 0.2);
border: var(--border) solid #444444;
2024-06-10 22:42:30 -05:00
box-sizing: border-box;
display: inline-block;
line-height: 0;
position: absolute;
2024-06-13 15:46:56 -05:00
top: calc(var(--unit) * 25px);
2024-06-10 22:42:30 -05:00
}
.slotWrapper {
2024-06-13 15:46:56 -05:00
border: var(--border) solid #999999;
2024-06-10 22:42:30 -05:00
box-sizing: border-box;
display: inline-block;
line-height: 0;
2024-06-13 21:54:32 -05:00
padding: 0;
&.active + .slotWrapper {
border-left: none;
}
&:not(:last-child) {
border-right: none;
}
2024-06-10 22:42:30 -05:00
&.active {
2024-06-13 21:54:32 -05:00
border-right: var(--border) solid #999999;
2024-06-10 22:42:30 -05:00
border-color: yellow;
}
&:hover {
2024-06-13 15:46:56 -05:00
background-color: rgba(0, 0, 0, 0.2);
2024-06-10 22:42:30 -05:00
}
}