mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added rem in css files
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(6, 1fr);
|
grid-template-columns: repeat(6, 1fr);
|
||||||
grid-template-rows: repeat(5, 1fr);
|
grid-template-rows: repeat(5, 1fr);
|
||||||
gap: 10px;
|
gap: 0.625rem; /* 10px в рем */
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"crashgame crashgame crashgame crashgame crashgame crashgame"
|
"crashgame crashgame crashgame crashgame crashgame crashgame"
|
||||||
@@ -11,9 +11,8 @@
|
|||||||
"crashplayers crashplayers crashplayers crashplayers crashplayers crashplayers"
|
"crashplayers crashplayers crashplayers crashplayers crashplayers crashplayers"
|
||||||
"crashplayers crashplayers crashplayers crashplayers crashplayers crashplayers";
|
"crashplayers crashplayers crashplayers crashplayers crashplayers crashplayers";
|
||||||
background: #17181C;
|
background: #17181C;
|
||||||
box-shadow: 0 4px #00000040;
|
box-shadow: 0 0.25rem #00000040;
|
||||||
border-radius: 20px;
|
border-radius: 1.25rem;
|
||||||
}
|
|
||||||
|
|
||||||
.grid-crash .chat {
|
.grid-crash .chat {
|
||||||
height: 96.8%;
|
height: 96.8%;
|
||||||
@@ -21,11 +20,11 @@
|
|||||||
|
|
||||||
.crash-game {
|
.crash-game {
|
||||||
background: #22252F;
|
background: #22252F;
|
||||||
border-radius: 20px;
|
border-radius: 1.25rem;
|
||||||
box-shadow: 4px 4px 4px 0px #00000040;
|
box-shadow: 0.25rem 0.25rem 0.25rem 0px #00000040;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: 475px;
|
height: 29.6875rem;
|
||||||
margin: 41px auto 0 auto;
|
margin: 2.5625rem auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.crash-game__content {
|
.crash-game__content {
|
||||||
@@ -211,7 +210,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
grid: username;
|
grid: 'username';
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-name-crash h2 {
|
.user-name-crash h2 {
|
||||||
@@ -374,7 +373,7 @@
|
|||||||
.line-crash {
|
.line-crash {
|
||||||
height: 366px;
|
height: 366px;
|
||||||
}
|
}
|
||||||
}
|
}}
|
||||||
|
|
||||||
/*.crash-game__graph {*/
|
/*.crash-game__graph {*/
|
||||||
/* width: 800px;*/
|
/* width: 800px;*/
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ button {
|
|||||||
|
|
||||||
.content-grid {
|
.content-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: .35fr repeat(5, 1fr) 1fr;
|
grid-template-columns: 0.35fr repeat(5, 1fr) 1fr;
|
||||||
grid-template-rows: auto 0fr repeat(4, 1fr);
|
grid-template-rows: auto 0fr repeat(4, 1fr);
|
||||||
grid-auto-columns: 1fr;
|
grid-auto-columns: 1fr;
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
@@ -54,12 +54,12 @@ button {
|
|||||||
"menu gamemode gamemode gamemode gamemode gamemode chat"
|
"menu gamemode gamemode gamemode gamemode gamemode chat"
|
||||||
"menu gamemode gamemode gamemode gamemode gamemode chat";
|
"menu gamemode gamemode gamemode gamemode gamemode chat";
|
||||||
height: 100%;
|
height: 100%;
|
||||||
grid-gap: 10px;
|
grid-gap: 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content__grid-profile {
|
.content__grid-profile {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: .35fr repeat(5, 1fr) 1fr;
|
grid-template-columns: 0.35fr repeat(5, 1fr) 1fr;
|
||||||
grid-template-rows: auto 0fr repeat(4, 1fr);
|
grid-template-rows: auto 0fr repeat(4, 1fr);
|
||||||
grid-auto-columns: 1fr;
|
grid-auto-columns: 1fr;
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
@@ -71,14 +71,14 @@ button {
|
|||||||
"menu profile profile profile profile profile chat"
|
"menu profile profile profile profile profile chat"
|
||||||
"menu profile profile profile profile profile chat"
|
"menu profile profile profile profile profile chat"
|
||||||
"menu profile profile profile profile profile chat";
|
"menu profile profile profile profile profile chat";
|
||||||
grid-gap: 10px;
|
grid-gap: 0.625rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-grid--saper {
|
.content-grid--saper {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-auto-columns: 1fr;
|
grid-auto-columns: 1fr;
|
||||||
grid-template-columns: .35fr repeat(5, 1fr) 1fr;
|
grid-template-columns: 0.35fr repeat(5, 1fr) 1fr;
|
||||||
grid-template-rows: auto 0fr repeat(4, 1fr);
|
grid-template-rows: auto 0fr repeat(4, 1fr);
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"menu header header header header header header"
|
"menu header header header header header header"
|
||||||
@@ -88,15 +88,15 @@ button {
|
|||||||
"menu saper saper saper saper saper chat"
|
"menu saper saper saper saper saper chat"
|
||||||
"menu saper saper saper saper saper chat"
|
"menu saper saper saper saper saper chat"
|
||||||
"menu saper saper saper saper saper chat";
|
"menu saper saper saper saper saper chat";
|
||||||
grid-gap: 10px;
|
grid-gap: 0.625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-crash {
|
.grid-crash {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: .35fr repeat(5, 1fr) 1fr;
|
grid-template-columns: 0.35fr repeat(5, 1fr) 1fr;
|
||||||
grid-template-rows: auto 0fr repeat(4, 1fr);
|
grid-template-rows: auto 0fr repeat(4, 1fr);
|
||||||
grid-auto-columns: 1fr;
|
grid-auto-columns: 1fr;
|
||||||
gap: 10px;
|
gap: 0.625rem;
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"menu header header header header header header"
|
"menu header header header header header header"
|
||||||
@@ -114,9 +114,9 @@ button {
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
grid-area: header;
|
grid-area: header;
|
||||||
border-radius: 20px;
|
border-radius: 1.25rem;
|
||||||
background: #17181C;
|
background: #17181C;
|
||||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px 0.25rem 0.25rem 0px rgba(0, 0, 0, 0.25);
|
||||||
align-self: start;
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,8 +127,8 @@ button {
|
|||||||
.menu {
|
.menu {
|
||||||
grid-area: menu;
|
grid-area: menu;
|
||||||
background: #17181C;
|
background: #17181C;
|
||||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px 0.25rem 0.25rem 0px rgba(0, 0, 0, 0.25);
|
||||||
border-radius: 20px;
|
border-radius: 1.25rem;
|
||||||
align-self: start;
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,9 +139,9 @@ button {
|
|||||||
.chat {
|
.chat {
|
||||||
grid-area: chat;
|
grid-area: chat;
|
||||||
background: #16171B;
|
background: #16171B;
|
||||||
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
|
filter: drop-shadow(0px 0.25rem 0.25rem rgba(0, 0, 0, 0.25));
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
/* border-radius: 20px; */
|
/* border-radius: 1.25rem; */
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
@@ -176,10 +176,10 @@ button {
|
|||||||
display: flex;
|
display: flex;
|
||||||
grid-area: profile;
|
grid-area: profile;
|
||||||
height: 95%;
|
height: 95%;
|
||||||
border-radius: 50px;
|
border-radius: 3.125rem;
|
||||||
background: #17181C;
|
background: #17181C;
|
||||||
box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.25);
|
box-shadow: 0.25rem 0.25rem 0.25rem 0px rgba(0, 0, 0, 0.25);
|
||||||
margin: 10px 39px 18px 13px;
|
margin: 0.625rem 2.438rem 1.125rem 1.125rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* /Profile */
|
/* /Profile */
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export default {
|
|||||||
getUserPrize() {
|
getUserPrize() {
|
||||||
const currentUser = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName'));
|
const currentUser = this.crashObject.Players.find(player => player.UserName === GetCookie('SpUserName'));
|
||||||
|
|
||||||
if (currentUser) {
|
if (currentUser && currentUser.UserGameState !== 'Win') {
|
||||||
return currentUser.Bid * this.crashObject.CurrentX
|
return currentUser.Bid * this.crashObject.CurrentX
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user