front: better CSS selectors

This commit is contained in:
djmil 2023-10-25 12:12:11 +02:00
parent 9f4bb9454e
commit b261b45014
3 changed files with 15 additions and 21 deletions

View File

@ -1,3 +1,11 @@
.board {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* scale: 15%; */
}
.tile { .tile {
border: 1px solid #e4e4e4; border: 1px solid #e4e4e4;
float: left; float: left;
@ -10,22 +18,12 @@
margin-top: -1px; margin-top: -1px;
padding: 0; padding: 0;
text-align: center; text-align: center;
} }
.black { .tile.black {
background: lightgray; background: lightgray;
} }
.board { .tile.white:hover {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* scale: 15%; */
}
.white:hover {
background-color:azure; background-color:azure;
} }

View File

@ -1,7 +1,3 @@
.white-stone { .stone {
cursor: default; cursor: default; /* disable 'I beam' cursor change */
}
.black-stone {
cursor: default;
} }

View File

@ -15,11 +15,11 @@ export function Stone( color ) {
} }
export function WhiteStone() { export function WhiteStone() {
return <span className="white-stone"></span> return <span className="stone white"></span>
} }
export function BlackStone() { export function BlackStone() {
return <span className="black-stone"></span> return <span className="stone black"></span>
} }
export function oppositeColor(color) { export function oppositeColor(color) {