1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-08 02:24:07 +00:00
tobspr_shapez.io/src/css/ingame_hud/buildings_toolbar.scss

82 lines
2.2 KiB
SCSS
Raw Normal View History

2020-05-09 14:45:23 +00:00
#ingame_HUD_buildings_toolbar {
position: fixed;
@include S(bottom, 0px);
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
2020-05-13 10:57:18 +00:00
background-color: rgb(255, 255, 255);
background: transparent;
2020-05-09 14:45:23 +00:00
border-bottom-width: 0;
transition: transform 0.12s ease-in-out;
background: rgba(mix(#ddd, $colorBlueBright, 90%), 0.75);
@include DarkThemeOverride {
background: #222428;
}
2020-05-13 10:57:18 +00:00
2020-05-09 14:45:23 +00:00
&:not(.visible) {
transform: translateX(-50%) translateY(#{D(100px)});
}
.buildings {
display: grid;
grid-auto-flow: column;
@include S(margin-bottom, 2px);
2020-05-09 14:45:23 +00:00
.building {
color: $accentColorDark;
display: flex;
flex-direction: column;
position: relative;
align-items: center;
justify-content: center;
@include S(padding, 5px);
2020-05-13 10:57:18 +00:00
@include S(padding-bottom, 1px);
@include S(width, 35px);
@include S(height, 40px);
background: center center / 70% no-repeat;
2020-05-09 14:45:23 +00:00
&:not(.unlocked) {
2020-06-01 17:58:36 +00:00
@include S(width, 20px);
opacity: 0.15;
background-image: none !important;
2020-05-09 14:45:23 +00:00
&::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;
}
}
2020-05-17 11:24:47 +00:00
@include S(border-radius, $globalBorderRadius);
&.selected {
2020-05-27 12:30:59 +00:00
background-color: rgba($colorBlueBright, 0.6) !important;
transform: scale(1.05);
.keybinding {
color: #111;
}
}
2020-05-09 14:45:23 +00:00
pointer-events: all;
2020-05-13 10:57:18 +00:00
transition: all 0.05s ease-in-out;
transition-property: background-color, transform;
2020-05-09 14:45:23 +00:00
&.unlocked:hover {
background-color: rgba($accentColorDark, 0.1);
2020-05-09 14:45:23 +00:00
cursor: pointer;
}
}
}
}