You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
4.4 KiB
148 lines
4.4 KiB
.ingame_buildingsToolbar {
|
|
position: absolute;
|
|
@include S(bottom, 5px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
|
|
display: grid;
|
|
grid-template-rows: auto auto;
|
|
justify-items: center;
|
|
|
|
background: transparent;
|
|
transition: transform 120ms ease-in-out;
|
|
will-change: transform;
|
|
|
|
&:not(.visible) {
|
|
transform: translateX(-50%) translateY(#{D(100px)});
|
|
}
|
|
|
|
.buildings {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
justify-items: center;
|
|
align-self: center;
|
|
grid-row: 2 / 3;
|
|
|
|
background-color: rgba(240, 241, 243, 0.5);
|
|
@include S(border-radius, $globalBorderRadius);
|
|
|
|
@include DarkThemeOverride {
|
|
background-color: rgba(darken($darkModeGameBackground, 15), 0.95);
|
|
}
|
|
|
|
&.secondary {
|
|
grid-row: 1 / 2;
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
|
|
.building {
|
|
@include S(width, 30px);
|
|
@include S(height, 30px);
|
|
background-size: 45%;
|
|
|
|
&:not(.unlocked) {
|
|
&::before {
|
|
background-size: #{D(13px)};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.building {
|
|
display: flex;
|
|
@include S(width, 40px);
|
|
position: relative;
|
|
@include S(height, 40px);
|
|
.icon {
|
|
color: $accentColorDark;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
position: relative;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
@include S(border-radius, $globalBorderRadius);
|
|
|
|
background: center center / 70% no-repeat;
|
|
}
|
|
|
|
&:not(.unlocked) {
|
|
@include S(width, 25px);
|
|
.icon {
|
|
opacity: 0.15;
|
|
}
|
|
&.editor {
|
|
.icon {
|
|
pointer-events: all;
|
|
cursor: pointer;
|
|
&:hover {
|
|
background-color: rgba(22, 30, 68, 0.1);
|
|
}
|
|
}
|
|
}
|
|
&:not(.editor) {
|
|
.icon {
|
|
background-image: uiResource("locked_building.png") !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.unlocked {
|
|
.icon {
|
|
pointer-events: all;
|
|
transition: all 50ms ease-in-out;
|
|
transition-property: background-color, transform;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: rgba(30, 40, 90, 0.1);
|
|
}
|
|
|
|
&.pressed {
|
|
transform: scale(0.9) !important;
|
|
}
|
|
}
|
|
&.selected {
|
|
// transform: scale(1.05);
|
|
background-color: rgba(lighten($colorBlueBright, 9), 0.4);
|
|
@include S(border-radius, 2px);
|
|
|
|
.keybinding {
|
|
color: #111;
|
|
}
|
|
}
|
|
|
|
.puzzle-lock {
|
|
& {
|
|
/* @load-async */
|
|
background: uiResource("locked_building.png") center center / 90% no-repeat;
|
|
}
|
|
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
|
|
position: absolute;
|
|
@include S(top, -15px);
|
|
left: 50%;
|
|
transform: translateX(-50%) !important;
|
|
transition: all 0.12s ease-in-out;
|
|
transition-property: opacity, transform;
|
|
|
|
cursor: pointer;
|
|
pointer-events: all;
|
|
|
|
@include S(width, 12px);
|
|
@include S(height, 12px);
|
|
|
|
&:hover {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|