Skip to content

Commit

Permalink
Merge pull request #148 from daithihearn/daithihearn-styling
Browse files Browse the repository at this point in the history
Layout and styling improvements
  • Loading branch information
daithihearn authored Feb 28, 2023
2 parents 3371a33 + 3e397b6 commit eef92cc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 43 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "5.5.2",
"version": "5.5.3",
"description": "React frontend for the Cards 110",
"author": "Daithi Hearn",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "Cards 110",
"name": "Cards 110",
"version": "5.5.2",
"version": "5.5.3",
"icons": [
{
"src": "./assets/favicon.png",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Game/GameWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const GameWrapper = () => {
<Card className="p-6 gameContainer" inverse>
<PlayersAndCards />

{!iamSpectator ? <MyCards /> : null}
{!iamSpectator && isCalling ? <Calling /> : null}
{!iamSpectator && isBuying ? <Buying /> : null}
{!iamSpectator ? <SelectSuit /> : null}
{!iamSpectator ? <MyCards /> : null}
</Card>
</CardGroup>
)
Expand Down
39 changes: 1 addition & 38 deletions src/pages/Home/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.game_wrap {
min-width: 650px;
max-width: 800px;
overflow: overlay;
margin-left: auto;
margin-right: auto;
Expand Down Expand Up @@ -257,7 +258,6 @@
}
@media screen and (min-width: 800px) {
.game_wrap {
min-width: 0;
max-width: 790px;
}
.rwd-table tr:hover:not(:first-child) {
Expand Down Expand Up @@ -311,21 +311,12 @@
}
}

.game_wrap {
min-width: 1000px;
max-width: 1300px;
}

.diplay_image_size {
max-width: 1100px;
max-height: 1024px;
}

@media only screen and (max-width: 1324px) {
.game_wrap {
min-width: 1100px;
max-width: 1300px;
}

.diplay_image_size {
max-width: 1100px;
Expand All @@ -334,10 +325,6 @@
}

@media only screen and (max-width: 1224px) {
.game_wrap {
min-width: 900px;
max-width: 1100px;
}

.diplay_image_size {
max-width: 1020px;
Expand All @@ -346,10 +333,6 @@
}

@media only screen and (max-width: 1124px) {
.game_wrap {
min-width: 800px;
max-width: 1000px;
}

.diplay_image_size {
max-width: 920px;
Expand All @@ -358,10 +341,6 @@
}

@media only screen and (max-width: 1024px) {
.game_wrap {
min-width: 700px;
max-width: 900px;
}

.diplay_image_size {
max-width: 800px;
Expand All @@ -371,10 +350,6 @@

// Resposiveness for Mobile view.
@media only screen and (max-width: 925px) {
.game_wrap {
min-width: 700px;
max-width: 900px;
}

.diplay_image_size {
max-width: 850px;
Expand Down Expand Up @@ -405,10 +380,6 @@
}

@media only screen and (max-width: 900px) {
.game_wrap {
min-width: 750px;
max-width: 823px;
}

.diplay_image_size {
max-width: 790px;
Expand All @@ -417,10 +388,6 @@
}

@media only screen and (max-width: 823px) {
.game_wrap {
min-width: 700px;
max-width: 800px;
}

.diplay_image_size {
max-width: 760px;
Expand All @@ -429,10 +396,6 @@
}

@media only screen and (max-width: 812px) {
.game_wrap {
min-width: 0;
max-width: 800px;
}

.diplay_image_size {
max-width: 720px;
Expand Down
3 changes: 1 addition & 2 deletions src/scss/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ body {
background-color: #2f855a;
position: fixed;
width: 100%;
height: 100vh;
height: 100%;
overflow: overlay;
padding-bottom: 100px;

&_mainBody {
width: 100%;
Expand Down

0 comments on commit eef92cc

Please sign in to comment.