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.
tobspr_shapez.io/src/css/ingame_hud/building_placer.scss

120 lines
2.7 KiB

#ingame_HUD_PlacementHints {
4 years ago
position: fixed;
@include S(top, 60px);
@include S(right, 10px);
4 years ago
4 years ago
display: grid;
4 years ago
@include S(padding, 6px);
4 years ago
@include S(border-radius, 2px);
@include S(width, 240px);
@include S(grid-column-gap, 5px);
background: rgba(#333438, 0.8);
grid-template-columns: 1fr auto;
grid-template-rows: auto 1fr;
4 years ago
.buildingLabel {
@include PlainText;
4 years ago
@include S(margin-bottom, 2px);
4 years ago
color: #fff;
text-transform: uppercase;
4 years ago
grid-column: 1 / 3;
grid-row: 1 / 2;
4 years ago
}
.description {
4 years ago
color: #bbb;
4 years ago
@include SuperSmallText;
4 years ago
grid-column: 1 / 2;
grid-row: 2 / 3;
display: grid;
grid-template-rows: 1fr auto;
strong {
color: #fff;
}
}
.hotkey {
color: lighten($colorGreenBright, 10);
font-weight: bold;
}
.buildingImage {
grid-column: 2 / 3;
grid-row: 1 / 3;
@include S(width, 100px);
@include S(height, 100px);
background: top left / 100% 100% no-repeat;
@include S(border-radius, 2px);
4 years ago
}
@include StyleBelowWidth(700px) {
display: none !important;
}
}
#ingame_HUD_PlacerVariants {
position: absolute;
@include S(left, 10px);
@include S(bottom, 80px);
display: grid;
grid-auto-flow: row;
@include S(grid-gap, 5px);
.explanation {
@include PlainText;
.keybinding {
position: relative;
}
}
.variant {
@include S(border-radius, 4px);
background: rgba(0, 10, 20, 0.1);
display: grid;
position: relative;
grid-template-columns: auto 1fr;
align-items: center;
@include S(padding, 5px);
@include S(grid-gap, 10px);
&.active {
background-color: rgba(74, 163, 223, 0.6);
}
$iconSize: 25px;
.iconWrap {
grid-column: 1 / 2;
grid-row: 1 / 2;
position: relative;
@include S(width, $iconSize);
@include S(height, $iconSize);
background: center center / contain no-repeat;
&[data-tile-w="2"] {
@include S(width, 2 * $iconSize);
}
&[data-tile-w="3"] {
@include S(width, 3 * $iconSize);
}
&[data-tile-w="4"] {
@include S(width, 4 * $iconSize);
}
&[data-tile-h="2"] {
@include S(height, 2 * $iconSize);
}
}
.label {
grid-column: 2 / 3;
grid-row: 1 / 2;
@include PlainText;
color: #fff;
}
}
}