shapez/src/css/states/main_menu.scss

192 lines
5.4 KiB
SCSS
Raw Normal View History

2020-05-09 16:45:23 +02:00
#state_MainMenuState {
display: flex;
2020-05-11 13:22:05 +02:00
align-items: center;
2020-05-09 16:45:23 +02:00
justify-content: center;
flex-direction: column;
2020-05-12 09:56:11 +02:00
background: rgb(140, 165, 194) center center / cover !important;
2020-05-11 13:11:07 +02:00
// background: $colorGreenBright !important;
2020-05-09 16:45:23 +02:00
2020-05-12 09:56:11 +02:00
.fullscreenBackgroundVideo {
z-index: -1;
position: fixed;
right: 50%;
bottom: 50%;
min-width: 100%;
min-height: 100%;
opacity: 0;
display: none;
transform: translate(50%, 50%);
filter: blur(10px);
$opacity: 0.2;
&.loaded {
display: block;
opacity: $opacity;
@include InlineAnimation(0.1s ease-in-out) {
0% {
opacity: 0;
}
100% {
opacity: $opacity;
}
}
}
}
2020-05-09 16:45:23 +02:00
.logo {
display: flex;
flex-grow: 1;
align-items: center;
justify-content: center;
2020-05-09 16:45:23 +02:00
img {
@include S(width, 350px);
}
}
2020-05-12 09:56:11 +02:00
.betaWarning {
@include S(width, 400px);
@include PlainText;
background: $colorRedBright;
@include S(padding, 10px);
@include S(border-radius, 4px);
color: #fff;
@include S(margin-bottom, 10px);
border: #{D(2px)} solid rgba(0, 10, 20, 0.1);
}
2020-05-09 16:45:23 +02:00
.mainContainer {
2020-05-14 21:54:11 +02:00
@include S(margin-top, 10px);
2020-05-09 16:45:23 +02:00
display: flex;
2020-05-11 13:22:05 +02:00
align-items: center;
justify-content: flex-start;
flex-direction: column;
background: #fafafa;
@include S(padding, 20px);
@include S(border-radius, 4px);
// border: #{D(2px)} solid rgba(0, 10, 20, 0.1);
2020-05-09 16:45:23 +02:00
.playButton {
@include SuperHeading;
2020-05-11 13:11:07 +02:00
@include S(width, 130px);
2020-05-11 14:21:59 +02:00
@include S(padding, 15px, 20px);
2020-05-11 13:11:07 +02:00
letter-spacing: 0.3em !important;
2020-05-09 16:45:23 +02:00
color: #fff;
2020-05-12 09:56:11 +02:00
background-color: $colorGreenBright;
2020-05-11 13:11:07 +02:00
text-shadow: #{D(1px)} #{D(2px)} 0 rgba(0, 0, 0, 0.1);
2020-05-12 09:56:11 +02:00
transition: transform 0.12s ease-in-out;
&:hover {
transform: scale(1.02);
}
2020-05-09 16:45:23 +02:00
}
2020-05-14 21:54:11 +02:00
.savegames {
@include S(max-height, 92px);
overflow-y: auto;
2020-05-16 10:05:19 +02:00
@include S(width, 250px);
2020-05-14 21:54:11 +02:00
pointer-events: all;
@include S(padding-right, 5px);
display: grid;
grid-auto-flow: row;
@include S(grid-gap, 5px);
@include S(margin-top, 10px);
2020-05-16 10:05:19 +02:00
2020-05-14 21:54:11 +02:00
.savegame {
background: #eee;
@include BorderRadius(4px);
@include S(padding, 5px);
display: grid;
2020-05-16 10:05:19 +02:00
grid-template-columns: 1fr auto auto;
2020-05-14 21:54:11 +02:00
grid-template-rows: auto auto;
2020-05-16 10:05:19 +02:00
@include S(grid-column-gap, 5px);
2020-05-14 21:54:11 +02:00
.internalId {
grid-column: 1 / 2;
grid-row: 2 / 3;
@include SuperSmallText;
opacity: 0.5;
}
.updateTime {
grid-column: 1 / 2;
grid-row: 1 / 2;
@include PlainText;
}
2020-05-16 10:05:19 +02:00
button.resumeGame,
button.downloadGame {
grid-column: 3 / 4;
2020-05-14 21:54:11 +02:00
grid-row: 1 / 3;
@include S(width, 30px);
@include S(height, 30px);
padding: 0;
align-self: center;
background: #44484a uiResource("icons/play.png") center center / 40% no-repeat;
}
2020-05-16 10:05:19 +02:00
button.downloadGame {
grid-column: 2 / 3;
background-image: uiResource("icons/download.png");
@include S(width, 15px);
@include S(height, 15px);
align-self: end;
background-size: 60%;
}
2020-05-14 21:54:11 +02:00
}
}
2020-05-09 16:45:23 +02:00
}
.footer {
display: flex;
2020-05-11 13:22:05 +02:00
flex-grow: 1;
2020-05-11 13:11:07 +02:00
justify-content: center;
2020-05-11 13:22:05 +02:00
align-items: flex-end;
@include S(padding, 15px);
> a {
display: flex;
2020-05-11 13:11:07 +02:00
flex-direction: row;
align-items: center;
justify-content: center;
2020-05-11 13:22:05 +02:00
background: #fafafa;
@include S(padding, 5px);
2020-05-11 14:21:59 +02:00
@include S(padding-left, 10px);
@include S(border-radius, 4px);
@include S(margin-left, 10px);
@include SuperSmallText();
font-weight: bold;
text-transform: uppercase;
2020-05-11 13:11:07 +02:00
color: #616266;
2020-05-11 13:22:05 +02:00
transition: all 0.12s ease-in-out;
transition-property: background-color, transform;
pointer-events: all;
2020-05-11 13:11:07 +02:00
@include S(width, 120px);
@include S(height, 50px);
cursor: pointer;
&:hover {
2020-05-11 13:22:05 +02:00
background-color: #fff;
transform: scale(1.01);
}
.thirdpartyLogo {
display: inline-block;
2020-05-11 14:21:59 +02:00
width: 80%;
height: 80%;
background: center center / 80% no-repeat;
&.githubLogo {
background-image: uiResource("main_menu/github.png");
}
&.discordLogo {
background-image: uiResource("main_menu/discord.png");
2020-05-11 14:21:59 +02:00
background-size: 95%;
}
}
}
}
2020-05-09 16:45:23 +02:00
}