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

Update main menu styles

This commit is contained in:
tobspr
2020-05-11 13:11:07 +02:00
parent 172a0398e2
commit f52d2b85c0
12 changed files with 68 additions and 36 deletions

View File

@@ -3,10 +3,9 @@
@include S(top, 50px);
left: 50%;
transform: translateX(-50%);
@include S(width, 300px);
background: #f77;
background: rgba(#f77, 0.8);
@include S(border-radius, 4px);
@include S(padding, 10px);
@include S(padding, 9px);
@include PlainText;
color: #fff;

View File

@@ -3,7 +3,8 @@
justify-content: center;
flex-direction: column;
background: uiResource("menu_bg.noinline.jpg") center center / cover no-repeat !important;
background: $colorGreenBright uiResource("main_menu/bg_pattern.png") top left / #{D(10px)} !important;
// background: $colorGreenBright !important;
.logo {
display: flex;
@@ -21,46 +22,49 @@
flex-grow: 1;
align-items: flex-start;
justify-content: center;
.playButton {
@include SuperHeading;
@include S(width, 150px);
@include S(padding, 15px, 20px);
@include S(width, 130px);
@include S(padding, 15px, 20px, 10px);
letter-spacing: 0.3em !important;
color: #fff;
background-color: $accentColorDark;
background-color: #55585a;
text-shadow: #{D(1px)} #{D(2px)} 0 rgba(0, 0, 0, 0.1);
}
}
.footer {
display: flex;
justify-content: flex-end;
justify-content: center;
@include S(padding, 15px);
> a {
display: flex;
flex-direction: column;
flex-direction: row;
align-items: center;
justify-content: center;
background: #eee;
background: lighten(#44484a, 55);
@include S(padding, 5px);
@include S(border-radius, 4px);
@include S(margin-left, 10px);
@include SuperSmallText();
border: #{D(1px)} solid #aaa;
border-bottom: #{D(3px)} solid #aaa;
border: #{D(1px)} solid #44484a;
border-bottom: #{D(3px)} solid #44484a;
box-shadow: #{D(1px)} #{D(2px)} #{D(3px)} 0 rgba(0, 10, 20, 0.1);
font-weight: bold;
text-transform: uppercase;
color: #999da3;
color: #616266;
transition: background-color 0.12s ease-in-out;
pointer-events: all;
@include S(width, 50px);
@include S(width, 120px);
@include S(height, 50px);
cursor: pointer;
&:hover {
background-color: #fafafa;
background-color: lighten(#44484a, 65);
}
.thirdpartyLogo {

View File

@@ -18,7 +18,6 @@ $plainTextLineHeight: 17px;
$supersmallTextFontSize: 10px;
$supersmallTextLineHeight: 13px;
$buttonFontSize: 14px;
$buttonLineHeight: 18px;

View File

@@ -19,7 +19,7 @@ export class HUDMassSelector extends BaseHUDPart {
[],
`
Press <code class="keybinding">DEL</code> to remove selected buildings
and <code class="keybinding">ESCAPE</code> to cancel.
and <code class="keybinding">ESC</code> to cancel.
`
);
}

View File

@@ -21,11 +21,13 @@ export class MainMenuState extends GameState {
<div class="footer">
<a href="https://github.com/tobspr/shapez.io" target="_blank">
This game is open source!
<span class="thirdpartyLogo githubLogo"></span>
</a>
<a href="https://discord.gg/HN7EVzV" target="_blank">
<span class="thirdpartyLogo discordLogo"></span>
Official discord server
<span class="thirdpartyLogo discordLogo"></span>
</a>
</div>