Skip to content

Commit

Permalink
Fix mobile styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Sofer authored and Dean Sofer committed May 14, 2024
1 parent 57e6a97 commit 1a619a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions src/Game/Game.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
}

.point {
display: flex;
position: relative;
align-items: center;
flex-basis: calc(100% / 14);

&::before {
Expand Down Expand Up @@ -65,6 +67,9 @@

/* landscape layout (tablet / computer) */
@media (min-aspect-ratio: 1) {
.point {
flex-direction: column;
}
.point:hover::before {
border-top-color: blue !important;
}
Expand All @@ -90,9 +95,10 @@

/* bottom */
:nth-child(n+13 of .point) {
display: flex;
flex-direction: column;
justify-content: flex-end;
display: flex;
flex-direction: column;
justify-content: flex-end;

&::before {
border-top: none;
border-bottom: 40vh solid black;
Expand Down Expand Up @@ -130,6 +136,7 @@ display: flex;
}
}

/* top */
:nth-child(-n+12 of .point) {
&::before {
border-left: 40vw solid #f00;
Expand All @@ -141,8 +148,9 @@ display: flex;
border-left-width: 30vw;
}
}

/* bottom */
:nth-child(n+13 of .point) {
justify-content: flex-end;
&::before {
border-left: none;
border-right: 40vw solid #f00;
Expand Down
4 changes: 2 additions & 2 deletions src/Game/Piece.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.piece {
width: 100%;
width: 8vmin;
aspect-ratio: 1;
cursor: pointer;
border-radius: 50%;
/* border-radius: 50%; */

&.white {
/* background: white; */
Expand Down

0 comments on commit 1a619a7

Please sign in to comment.