1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Do not allow saving in the demo version

This commit is contained in:
tobspr
2020-05-19 15:03:13 +02:00
parent 8abe84b120
commit 9c4fe248db
18 changed files with 177 additions and 62 deletions

View File

@@ -1,5 +1,5 @@
#state_AboutState {
.content {
> .container .content {
@include PlainText;
}
}

View File

@@ -21,4 +21,11 @@
right: 0;
bottom: 0;
}
#ingame_HUD_ModalDialogs {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}

View File

@@ -53,12 +53,22 @@
}
.mainWrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
@include S(padding, 0, 10px);
align-items: center;
justify-items: center;
@include S(grid-column-gap, 10px);
&.noDemo {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
&.demo {
@include S(grid-column-gap, 10px);
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.standaloneBanner {
background: rgb(255, 225, 238);

View File

@@ -41,12 +41,28 @@
}
&.disabled {
opacity: 0.3;
// opacity: 0.3;
pointer-events: none;
* {
pointer-events: none !important;
cursor: default !important;
}
position: relative;
.standaloneOnlyHint {
@include PlainText;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: all;
display: flex;
align-items: center;
justify-content: center;
background: rgba(#fff, 0.5);
text-transform: uppercase;
color: $colorRedBright;
}
}
.value.enum {