diff --git a/client/src/Board.css b/client/src/Board.css
index a4e66a7..a0ce1fd 100644
--- a/client/src/Board.css
+++ b/client/src/Board.css
@@ -15,7 +15,7 @@
top: 50%;
}
-.Tile {
+.Board .Tile {
z-index: 5; /* Below Road and Corner */
position: absolute;
background-position-y: 0px;
@@ -74,7 +74,7 @@
pointer-events: none;
}
-.Corner {
+.Board .Corner {
filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.75));
z-index: 20; /* Above Tile, below Road */
position: absolute;
@@ -106,7 +106,7 @@
clip-path: polygon(15% 0%,39% 23%,39% 52%,100% 56%,100% 74%,100% 100%,80% 100%,63% 100%,62% 75%,46% 75%,47% 100%,0% 100%,0% 24%);
}
-.Road {
+.Board .Road {
position: absolute;
display: flex;
align-items: center;
@@ -155,21 +155,21 @@ div[disabled] .Option {
pointer-events: none;
}
-.Option {
+.Board .Option {
cursor: pointer;
pointer-events: all;
filter: brightness(115%);
}
-.Option .Tile-Shape,
-.Option .Corner-Shape,
-.Option .Road-Shape {
+.Board .Option .Tile-Shape,
+.Board .Option .Corner-Shape,
+.Board .Option .Road-Shape {
background-color: rgba(255, 255, 255, 0.5) !important;
}
-.Option .Tile-Shape:hover,
-.Option .Corner-Shape:hover,
-.Option .Road-Shape :hover{
+.Board .Option .Tile-Shape:hover,
+.Board .Option .Corner-Shape:hover,
+.Board .Option .Road-Shape :hover{
background-color: rgba(255, 255, 255, 0.75) !important;
}
diff --git a/client/src/PlayerColor.js b/client/src/PlayerColor.js
index 362d99f..04ee338 100644
--- a/client/src/PlayerColor.js
+++ b/client/src/PlayerColor.js
@@ -1,39 +1,14 @@
import React from "react";
import Avatar from '@material-ui/core/Avatar';
-import { makeStyles } from '@material-ui/core/styles';
-import { orange,lightBlue, red, grey } from '@material-ui/core/colors';
+
+import { useStyles } from './Styles.js';
import "./PlayerColor.css";
-const useStyles = makeStyles((theme) => ({
- root: {
- display: 'flex',
- '& > *': {
- margin: theme.spacing(1),
- },
- },
- R: {
- color: theme.palette.getContrastText(red[500]),
- backgroundColor: red[500],
- },
- O: {
- color: theme.palette.getContrastText(orange[500]),
- backgroundColor: orange[500],
- },
- W: {
- color: theme.palette.getContrastText(grey[50]),
- backgroundColor: grey[50],
- },
- B: {
- color: theme.palette.getContrastText(lightBlue[500]),
- backgroundColor: lightBlue[500],
- },
-}));
-
-
const PlayerColor = ({ color }) => {
const classes = useStyles();
+
return (
{line}
>; + description = <>{description}If everyone goes back to the Lobby, you can play again.
>; + description = <>{description}