Files
scrabble-online/client/public/scrabble/game.css
2021-04-01 23:27:29 +01:00

120 lines
2.1 KiB
CSS

/**
* This would be responsive, ie, resizing with the size of the window
* but decided it against the scope of the project as it would be
* technically difficult to resize dynamically and have all the elements
* needed, visible at the times they needed to be visible
*/
piece {
display: flex;
position: absolute;
cursor: move;
background: radial-gradient(circle, rgba(255,214,45,1) 41%, rgba(255,179,0,1) 84%);
text-align: center;
justify-content: center;
align-items: center;
font-size: 50px;
width: 80px;
height: 80px;
}
nopiece {
display: flex;
position: absolute;
background: none;
width: 80px;
height: 80px;
}
score {
display: inline-block;
position: absolute;
text-align: right;
right: 5px;
font-size: 50%;
width: 100%;
height: 100%;
}
.dragging-piece {
width: 40px;
height: 40px;
font-size: 25px
}
#game-container {
border: 1px dotted black;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
margin: auto;
width: 700px;
height: 700px;
}
#game-board {
outline: 2px inset black;
display: table;
table-layout: fixed;
position: static;
width: 600px;
height: 600px;
text-align: center;
}
.game-board-row {
display: table-row;
height: 40px;
}
.game-board-cell {
outline: 1px inset black;
display: table-cell;
width: 40px;
height: 40px;
font-size: 17px;
vertical-align: middle;
background: radial-gradient(circle, rgba(255,255,255,1) 38%, rgba(244,244,244,1) 94%);
}
.double-word {
background: radial-gradient(circle, rgba(255,180,243,1) 32%, rgba(255,159,245,1) 84%);
}
.tripple-word {
background: radial-gradient(circle, rgba(249,129,117,1) 32%, rgba(252,101,101,1) 84%);
}
.tripple-letter {
background: radial-gradient(circle, rgba(185,180,255,1) 32%, rgba(180,159,255,1) 84%);
}
.double-letter {
background: radial-gradient(circle, rgba(170,230,255,1) 32%, rgba(159,204,255,1) 84%);
}
.center-star {
background: radial-gradient(circle, rgba(255,226,132,1) 32%, rgba(249,202,91,1) 84%);
}