1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-06 09:34:05 +00:00

Fix css issue

This commit is contained in:
tobspr 2022-06-17 09:41:36 +02:00
parent d39ae528f0
commit 5ef7749a09
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,12 @@
}
}
&.withinDemo {
> .dialog {
@include S(padding-top, 60px);
}
}
.dialog {
// background: rgba(#222428, 0.5);
@include S(border-radius, $globalBorderRadius);

View File

@ -31,6 +31,10 @@ export class HUDUnlockNotification extends BaseHUDPart {
this.element = makeDiv(parent, "ingame_HUD_UnlockNotification", ["noBlur"]);
if (G_IS_STEAM_DEMO || !G_IS_STANDALONE) {
this.element.classList.add("withinDemo");
}
const dialog = makeDiv(this.element, null, ["dialog"]);
this.elemTitle = makeDiv(dialog, null, ["title"]);