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

View File

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

View File

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