2023-08-06 02:24:15 +00:00
|
|
|
@tile-width: 55px;
|
|
|
|
@tile-font-size: 35px;
|
2023-08-10 03:00:14 +00:00
|
|
|
@board-length: 15;
|
|
|
|
@tile-star-size: 45px;
|
2023-08-06 02:24:15 +00:00
|
|
|
|
2023-09-21 01:59:32 +00:00
|
|
|
.tray { // Don't put under tray-row as this also gets used in tile exchange
|
2023-09-17 04:08:10 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(7, @tile-width);
|
|
|
|
grid-gap: 5px;
|
|
|
|
height: @tile-width;
|
|
|
|
width: fit-content;
|
|
|
|
background-color: #bbb59d;
|
|
|
|
margin: 10px;
|
2023-09-21 01:59:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.tray-row {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
width: @board-length*@tile-width;
|
2023-09-17 04:08:10 +00:00
|
|
|
|
|
|
|
.player-controls {
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas: "check return"
|
|
|
|
"check pass";
|
|
|
|
grid-template-rows: 1fr 1fr;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
|
|
|
.check {
|
|
|
|
grid-area: check;
|
|
|
|
}
|
|
|
|
|
|
|
|
.return {
|
|
|
|
grid-area: return;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pass {
|
|
|
|
grid-area: pass;
|
|
|
|
}
|
|
|
|
}
|
2023-08-06 02:24:15 +00:00
|
|
|
}
|
|
|
|
|
2023-09-17 04:08:10 +00:00
|
|
|
|
|
|
|
|
2023-08-10 03:00:14 +00:00
|
|
|
.board-grid {
|
|
|
|
//grid-area: grid;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(@board-length, @tile-width);
|
|
|
|
grid-template-rows: repeat(@board-length, @tile-width);
|
|
|
|
justify-content: center;
|
|
|
|
grid-gap: 1px;
|
|
|
|
user-select: none;
|
2023-08-16 02:35:23 +00:00
|
|
|
flex: initial;
|
2023-08-10 03:00:14 +00:00
|
|
|
}
|
|
|
|
|
2023-08-11 04:43:14 +00:00
|
|
|
.grid-spot {
|
|
|
|
font-size: 12px;
|
|
|
|
text-align: center;
|
|
|
|
background-color: #bbb59d;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
span {
|
|
|
|
vertical-align: middle;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tileSpot {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2023-08-13 20:08:37 +00:00
|
|
|
|
|
|
|
.ephemeral {
|
|
|
|
opacity: 75%;
|
|
|
|
}
|
2023-08-11 04:43:14 +00:00
|
|
|
}
|
|
|
|
|
2023-08-10 03:00:14 +00:00
|
|
|
.grid-spot-normal{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-spot-double-word {
|
|
|
|
background-color: #f9b4a5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-spot-double-letter {
|
|
|
|
background-color: #c0d1d0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-spot-triple-letter {
|
|
|
|
background-color: #349eb9;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-spot-triple-word {
|
|
|
|
background-color: #f65f4c;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-spot-start {
|
|
|
|
background-color: #f9b4a5;
|
|
|
|
font-size: @tile-star-size;
|
2023-08-11 04:43:14 +00:00
|
|
|
|
|
|
|
span { // undo the vertical align other cells have
|
|
|
|
vertical-align: unset;
|
|
|
|
}
|
2023-08-10 03:00:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-08-08 05:56:12 +00:00
|
|
|
.tileSpot {
|
2023-08-11 04:43:14 +00:00
|
|
|
height: @tile-width;
|
|
|
|
width: @tile-width;
|
2023-08-08 05:56:12 +00:00
|
|
|
}
|
|
|
|
|
2023-08-06 02:24:15 +00:00
|
|
|
.letter {
|
|
|
|
background-color: #e5cca9;
|
2023-08-08 04:41:46 +00:00
|
|
|
user-select: none;
|
2023-08-08 05:56:12 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
position: relative; // Used for the positioning of the sub-components
|
2023-08-06 02:24:15 +00:00
|
|
|
|
|
|
|
.text {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
top: 5px;
|
|
|
|
font-size: @tile-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
.letter-points {
|
|
|
|
font-size: 15px;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
|
|
|
right: -1px;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
2023-08-18 01:30:55 +00:00
|
|
|
input {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
top: 5px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: @tile-font-size;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
font-style: italic;
|
|
|
|
left: 0; /* Fixes a weird display bug where the input is shifted to the right when the tile is on the grid */
|
|
|
|
}
|
|
|
|
|
|
|
|
.prev-blank {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2023-09-15 02:38:34 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight {
|
|
|
|
color: red;
|
2023-08-16 02:35:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.board-log {
|
2023-08-20 17:00:10 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: @tile-width*@board-length+15px 1fr;
|
2023-08-20 23:34:00 +00:00
|
|
|
max-height: @tile-width*@board-length + 15px;
|
|
|
|
|
|
|
|
margin: 1em;
|
2023-08-16 02:35:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-log {
|
|
|
|
border-color: black;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 2px;
|
2023-08-20 17:00:10 +00:00
|
|
|
margin: 5px;
|
2023-08-20 23:34:00 +00:00
|
|
|
max-height: inherit;
|
2023-08-20 17:00:10 +00:00
|
|
|
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: 6em 1fr;
|
|
|
|
|
|
|
|
.log {
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
2023-08-16 02:35:23 +00:00
|
|
|
}
|
|
|
|
|
2023-08-20 17:00:10 +00:00
|
|
|
|
|
|
|
|
2023-08-16 02:35:23 +00:00
|
|
|
.scoring {
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
grid-template-rows: none;
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div {
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2023-08-21 00:26:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dialog {
|
|
|
|
border-radius: 10px;
|
|
|
|
z-index: 1;
|
|
|
|
|
2023-09-09 06:32:44 +00:00
|
|
|
.new-game {
|
|
|
|
width: 50em;
|
|
|
|
|
|
|
|
.grid {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 3fr 2fr;
|
|
|
|
grid-column-gap: 1em;
|
|
|
|
grid-row-gap: 0.5em;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.selection-buttons {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
justify-items: center;
|
|
|
|
padding-top: 1em;
|
|
|
|
|
|
|
|
button {
|
|
|
|
width: 40%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-21 00:26:52 +00:00
|
|
|
|
|
|
|
.close-button-div {
|
|
|
|
display: flex;
|
|
|
|
justify-content: end;
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: 0;
|
|
|
|
background-color: inherit;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
color: #aaaaaa;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: black;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-22 02:42:22 +00:00
|
|
|
.tile-exchange-dialog {
|
|
|
|
|
|
|
|
.selection-buttons {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
button {
|
|
|
|
width: 40%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.finish-buttons {
|
|
|
|
.selection-buttons();
|
|
|
|
}
|
|
|
|
|
|
|
|
.tray-container {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selected-tile {
|
|
|
|
bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-08-06 02:24:15 +00:00
|
|
|
}
|