Minor css improvements

This commit is contained in:
tobspr 2020-05-16 18:02:50 +02:00
parent 224bc6c7e5
commit ed9f50ba05
3 changed files with 15 additions and 3 deletions

View File

@ -11,6 +11,16 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@include InlineAnimation(0.12s ease-in-out) {
0% {
background-color: transparent;
opacity: 0.5;
}
100% {
background-color: $modalDialogBg;
}
}
&.visible { &.visible {
.dialogInner { .dialogInner {
opacity: 1; opacity: 1;

View File

@ -1,7 +1,6 @@
#ingame_HUD_GameMenu { #ingame_HUD_GameMenu {
position: absolute; position: absolute;
top: 0; top: 0;
left: calc(50% - #{D(50px)});
right: 0; right: 0;
display: flex; display: flex;
grid-auto-flow: column; grid-auto-flow: column;
@ -12,6 +11,7 @@
flex-grow: 1; flex-grow: 1;
@include S(padding, 5px, 4px); @include S(padding, 5px, 4px);
justify-content: flex-end; justify-content: flex-end;
@include S(margin-left, 20px);
> .button { > .button {
@include S(width, 30px); @include S(width, 30px);

View File

@ -37,7 +37,7 @@
.mainWrapper { .mainWrapper {
display: grid; display: grid;
grid-template-columns: 1fr auto 1fr; grid-template-columns: 1fr 1fr 1fr;
@include S(padding, 0, 10px); @include S(padding, 0, 10px);
align-items: center; align-items: center;
justify-items: center; justify-items: center;
@ -55,6 +55,7 @@
strong { strong {
font-weight: bold; font-weight: bold;
@include S(margin, 0, 4px);
} }
h3 { h3 {
@ -133,13 +134,14 @@
.mainContainer { .mainContainer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: center;
flex-direction: column; flex-direction: column;
background: #fafafa; background: #fafafa;
@include S(padding, 20px); @include S(padding, 20px);
@include S(border-radius, 4px); @include S(border-radius, 4px);
// border: #{D(2px)} solid rgba(0, 10, 20, 0.1); // border: #{D(2px)} solid rgba(0, 10, 20, 0.1);
height: 100%; height: 100%;
width: 100%;
box-sizing: border-box; box-sizing: border-box;
.playButton { .playButton {