mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add ability to import savegames, add game menu, multiple smaller improvements
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
flex-direction: column;
|
||||
|
||||
background: rgb(140, 165, 194) center center / cover !important;
|
||||
// background: $colorGreenBright !important;
|
||||
|
||||
.fullscreenBackgroundVideo {
|
||||
z-index: -1;
|
||||
@@ -36,14 +35,88 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mainWrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
@include S(padding, 0, 10px);
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
@include S(grid-column-gap, 10px);
|
||||
|
||||
.standaloneBanner {
|
||||
background: rgb(255, 225, 238);
|
||||
@include S(border-radius, 4px);
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
@include S(padding, 15px);
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@include Heading;
|
||||
font-weight: bold;
|
||||
@include S(margin-bottom, 15px);
|
||||
text-transform: uppercase;
|
||||
color: $colorRedBright;
|
||||
}
|
||||
|
||||
p {
|
||||
@include Text;
|
||||
}
|
||||
|
||||
ul {
|
||||
@include S(margin-top, 15px);
|
||||
@include S(padding-left, 20px);
|
||||
li {
|
||||
@include Text;
|
||||
}
|
||||
}
|
||||
|
||||
.steamLink {
|
||||
width: 100%;
|
||||
@include S(height, 50px);
|
||||
|
||||
background: uiResource("get_on_steam.png") center center / contain no-repeat;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
text-indent: -999em;
|
||||
cursor: pointer;
|
||||
@include S(margin-top, 20px);
|
||||
pointer-events: all;
|
||||
transition: all 0.12s ease-in;
|
||||
transition-property: opacity, transform;
|
||||
transform: skewX(-0.5deg);
|
||||
&:hover {
|
||||
transform: skewX(-1deg) scale(1.02);
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
@include S(padding-top, 20px);
|
||||
img {
|
||||
@include S(width, 350px);
|
||||
}
|
||||
|
||||
.demoBadge {
|
||||
@include S(margin, 10px, 0);
|
||||
@include S(width, 100px);
|
||||
@include S(height, 30px);
|
||||
background: uiResource("demo_badge.png") center center / contain no-repeat;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.betaWarning {
|
||||
@@ -53,12 +126,11 @@
|
||||
@include S(padding, 10px);
|
||||
@include S(border-radius, 4px);
|
||||
color: #fff;
|
||||
@include S(margin-bottom, 10px);
|
||||
@include S(margin-top, 10px);
|
||||
border: #{D(2px)} solid rgba(0, 10, 20, 0.1);
|
||||
}
|
||||
|
||||
.mainContainer {
|
||||
@include S(margin-top, 10px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
@@ -67,6 +139,8 @@
|
||||
@include S(padding, 20px);
|
||||
@include S(border-radius, 4px);
|
||||
// border: #{D(2px)} solid rgba(0, 10, 20, 0.1);
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
.playButton {
|
||||
@include SuperHeading;
|
||||
@@ -82,8 +156,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.importButton {
|
||||
@include S(margin-top, 15px);
|
||||
}
|
||||
|
||||
.savegames {
|
||||
@include S(max-height, 92px);
|
||||
@include S(max-height, 105px);
|
||||
overflow-y: auto;
|
||||
@include S(width, 250px);
|
||||
pointer-events: all;
|
||||
@@ -101,6 +179,7 @@
|
||||
grid-template-columns: 1fr auto auto;
|
||||
grid-template-rows: auto auto;
|
||||
@include S(grid-column-gap, 5px);
|
||||
@include S(grid-row-gap, 3px);
|
||||
|
||||
.internalId {
|
||||
grid-column: 1 / 2;
|
||||
@@ -116,7 +195,8 @@
|
||||
}
|
||||
|
||||
button.resumeGame,
|
||||
button.downloadGame {
|
||||
button.downloadGame,
|
||||
button.deleteGame {
|
||||
grid-column: 3 / 4;
|
||||
grid-row: 1 / 3;
|
||||
@include S(width, 30px);
|
||||
@@ -128,8 +208,22 @@
|
||||
|
||||
button.downloadGame {
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 1 / 2;
|
||||
background-image: uiResource("icons/download.png");
|
||||
@include S(width, 15px);
|
||||
@include IncreasedClickArea(0px);
|
||||
@include S(height, 15px);
|
||||
align-self: end;
|
||||
background-size: 60%;
|
||||
}
|
||||
|
||||
button.deleteGame {
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 2 / 3;
|
||||
background-color: $colorRedBright;
|
||||
@include IncreasedClickArea(0px);
|
||||
background-image: uiResource("icons/delete.png");
|
||||
@include S(width, 15px);
|
||||
@include S(height, 15px);
|
||||
align-self: end;
|
||||
background-size: 60%;
|
||||
|
||||
Reference in New Issue
Block a user