mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
132 lines
3.8 KiB
SCSS
132 lines
3.8 KiB
SCSS
|
#ingame_HUD_ShapeViewer {
|
||
|
.dialogInner {
|
||
|
@include S(width, 160px);
|
||
|
}
|
||
|
.content {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
width: 100%;
|
||
|
align-items: center;
|
||
|
justify-items: center;
|
||
|
|
||
|
.seperator {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
.layer {
|
||
|
position: relative;
|
||
|
background: #eee;
|
||
|
|
||
|
@include DarkThemeOverride {
|
||
|
background: rgba(0, 10, 20, 0.2);
|
||
|
}
|
||
|
@include S(width, 150px);
|
||
|
@include S(height, 100px);
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
|
||
|
> canvas {
|
||
|
@include S(width, 50px);
|
||
|
@include S(height, 50px);
|
||
|
}
|
||
|
|
||
|
.quad {
|
||
|
position: absolute;
|
||
|
width: 50%;
|
||
|
height: 50%;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
$arrowDims: 23px;
|
||
|
$spacing: 9px;
|
||
|
@include S(padding, 6px);
|
||
|
|
||
|
.colorLabel {
|
||
|
text-transform: uppercase;
|
||
|
@include SuperSmallText;
|
||
|
@include S(font-size, 9px);
|
||
|
}
|
||
|
|
||
|
.emptyLabel {
|
||
|
text-transform: uppercase;
|
||
|
@include SuperSmallText;
|
||
|
@include S(font-size, 9px);
|
||
|
}
|
||
|
|
||
|
&::after {
|
||
|
content: " ";
|
||
|
background: rgba(0, 10, 20, 0.5);
|
||
|
@include S(width, $arrowDims);
|
||
|
@include S(height, 1px);
|
||
|
position: absolute;
|
||
|
transform: rotate(45deg);
|
||
|
transform-origin: 50% 50%;
|
||
|
}
|
||
|
@include DarkThemeOverride {
|
||
|
&::after {
|
||
|
background: rgba(255, 255, 255, 0.5);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.quad-0 {
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
align-items: flex-start;
|
||
|
justify-content: flex-end;
|
||
|
|
||
|
&::after {
|
||
|
@include S(left, $spacing);
|
||
|
@include S(bottom, $arrowDims / 2 + $spacing);
|
||
|
transform: rotate(-45deg);
|
||
|
}
|
||
|
}
|
||
|
&.quad-1 {
|
||
|
bottom: 0;
|
||
|
right: 0;
|
||
|
|
||
|
align-items: flex-end;
|
||
|
justify-content: flex-end;
|
||
|
|
||
|
&::after {
|
||
|
@include S(left, $spacing);
|
||
|
@include S(top, $arrowDims / 2 + $spacing);
|
||
|
transform: rotate(45deg);
|
||
|
}
|
||
|
}
|
||
|
&.quad-2 {
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
|
||
|
align-items: flex-end;
|
||
|
justify-content: flex-start;
|
||
|
|
||
|
&::after {
|
||
|
@include S(right, $spacing);
|
||
|
@include S(top, $arrowDims / 2 + $spacing);
|
||
|
transform: rotate(135deg);
|
||
|
}
|
||
|
}
|
||
|
&.quad-3 {
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
|
||
|
align-items: flex-start;
|
||
|
justify-content: flex-start;
|
||
|
|
||
|
&::after {
|
||
|
@include S(right, $spacing);
|
||
|
@include S(bottom, $arrowDims / 2 + $spacing);
|
||
|
transform: rotate(225deg);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|