2020-06-28 17:34:10 +00:00
|
|
|
.ingame_buildingsToolbar {
|
2020-05-09 14:45:23 +00:00
|
|
|
position: fixed;
|
|
|
|
@include S(bottom, 0px);
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
2020-07-17 02:43:37 +00:00
|
|
|
// NOTE: This flex rule may not be necessary. Need to find out intent.
|
2020-05-09 14:45:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-05-13 10:57:18 +00:00
|
|
|
background: transparent;
|
2020-05-09 14:45:23 +00:00
|
|
|
border-bottom-width: 0;
|
2020-07-17 02:43:37 +00:00
|
|
|
transition: transform 120ms ease-in-out;
|
|
|
|
will-change: transform;
|
2020-05-09 14:45:23 +00:00
|
|
|
|
2020-07-18 12:41:34 +00:00
|
|
|
background-color: rgba(mix(#ddd, $colorBlueBright, 90%), 0.5);
|
|
|
|
backdrop-filter: blur(D(3px));
|
2020-06-01 11:18:44 +00:00
|
|
|
|
|
|
|
@include DarkThemeOverride {
|
2020-07-17 02:43:37 +00:00
|
|
|
background-color: #222428;
|
2020-06-01 11:18:44 +00:00
|
|
|
}
|
2020-05-13 10:57:18 +00:00
|
|
|
|
2020-05-09 14:45:23 +00:00
|
|
|
&:not(.visible) {
|
|
|
|
transform: translateX(-50%) translateY(#{D(100px)});
|
|
|
|
}
|
|
|
|
|
2020-07-21 08:14:06 +00:00
|
|
|
@include S(border-top-left-radius, $globalBorderRadius);
|
|
|
|
@include S(border-top-right-radius, $globalBorderRadius);
|
|
|
|
|
2020-05-09 14:45:23 +00:00
|
|
|
.buildings {
|
|
|
|
display: grid;
|
|
|
|
grid-auto-flow: column;
|
|
|
|
|
|
|
|
.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);
|
2020-05-16 20:45:40 +00:00
|
|
|
@include S(width, 35px);
|
|
|
|
@include S(height, 40px);
|
|
|
|
|
2020-07-27 15:14:29 +00:00
|
|
|
background: center center / 65% 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;
|
2020-05-16 20:45:40 +00:00
|
|
|
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);
|
2020-05-16 20:45:40 +00:00
|
|
|
|
2020-07-17 02:43:37 +00:00
|
|
|
&.unlocked {
|
|
|
|
pointer-events: all;
|
|
|
|
transition: all 50ms ease-in-out;
|
|
|
|
transition-property: background-color, transform;
|
|
|
|
cursor: pointer;
|
|
|
|
will-change: transform;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: $accentColorDark;
|
|
|
|
opacity: 0;
|
|
|
|
will-change: opacity;
|
2020-05-10 15:45:48 +00:00
|
|
|
}
|
2020-05-09 14:45:23 +00:00
|
|
|
|
2020-07-17 02:43:37 +00:00
|
|
|
&:hover {
|
|
|
|
&::before {
|
|
|
|
opacity: 0.1;
|
|
|
|
}
|
|
|
|
}
|
2020-05-16 20:45:40 +00:00
|
|
|
|
2020-07-17 02:43:37 +00:00
|
|
|
&.selected {
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $colorBlueBright;
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.keybinding {
|
|
|
|
color: #111;
|
|
|
|
}
|
|
|
|
}
|
2020-05-09 14:45:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|