mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
80 lines
2.2 KiB
SCSS
80 lines
2.2 KiB
SCSS
#ingame_HUD_buildings_toolbar {
|
|
position: fixed;
|
|
@include S(bottom, 0px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
|
|
$toolbarBg: rgba($accentColorBright, 0.9);
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: rgb(255, 255, 255);
|
|
background: transparent;
|
|
border-bottom-width: 0;
|
|
transition: transform 0.12s ease-in-out;
|
|
|
|
background: uiResource("toolbar_bg.lossless.png") center center / 100% 100% no-repeat;
|
|
@include S(padding, 20px, 100px, 0);
|
|
|
|
&:not(.visible) {
|
|
transform: translateX(-50%) translateY(#{D(100px)});
|
|
}
|
|
|
|
.buildings {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
@include S(margin-bottom, 2px);
|
|
|
|
.building {
|
|
color: $accentColorDark;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
align-items: center;
|
|
justify-content: center;
|
|
@include S(padding, 5px);
|
|
@include S(padding-bottom, 1px);
|
|
@include S(width, 35px);
|
|
@include S(height, 40px);
|
|
|
|
background: center center / 70% no-repeat;
|
|
|
|
&:not(.unlocked) {
|
|
@include S(width, 30px);
|
|
opacity: 0.8;
|
|
background-image: none !important;
|
|
|
|
&::before {
|
|
content: " ";
|
|
background: uiResource("locked_building.png") center center / #{D(20px)} #{D(20px)}
|
|
no-repeat;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 4;
|
|
}
|
|
}
|
|
|
|
@include S(border-radius, 4px);
|
|
|
|
&.selected {
|
|
background-color: rgba(74, 163, 223, 0.3) !important;
|
|
transform: scale(1.05);
|
|
.keybinding {
|
|
color: #111;
|
|
}
|
|
}
|
|
|
|
pointer-events: all;
|
|
transition: all 0.05s ease-in-out;
|
|
transition-property: background-color, transform;
|
|
|
|
&.unlocked:hover {
|
|
background-color: rgba($accentColorDark, 0.1);
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
}
|