WordGrid/ui/src/style.less

139 lines
2.1 KiB
Text
Raw Normal View History

@tile-width: 55px;
@tile-font-size: 35px;
2023-08-10 03:00:14 +00:00
@board-length: 15;
@tile-star-size: 45px;
.tray {
display: grid;
grid-template-columns: repeat(7, @tile-width);
grid-gap: 5px;
height: @tile-width;
width: fit-content;
background-color: #bbb59d;
margin: 10px;
}
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;
flex: initial;
2023-08-10 03:00: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;
}
.ephemeral {
opacity: 75%;
}
}
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;
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 {
height: @tile-width;
width: @tile-width;
2023-08-08 05:56:12 +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
.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;
}
}
.board-log {
display: flex;
justify-content: start;
flex-flow: row wrap;
align-items: stretch;
}
.message-log {
border-color: black;
border-style: solid;
border-width: 2px;
width: max-content;
margin: 5px
}
.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;
}
}