Skip to content

Commit

Permalink
Styling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jcparkyn committed Oct 30, 2023
1 parent 203c31b commit b478ac3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 8 additions & 8 deletions public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
--col-bg: #1d1d1a;
--col-text: #feffff;
--col-primary: #fec53c;
--col-secondary: #5183e7;
--col-secondary: #eaeaea;
--col-cell: #2d2d2d;
--col-success: #84ff7a;
--grid-size: 14;
--grid-gap: 4px;
--default-board-size: calc((var(--cell-size) + var(--grid-gap)) * (var(--grid-size) + 1));
--tile-border-radius: 16px;
--tile-border-radius: 10px;
color: white;
background-color: var(--col-bg);
}
Expand Down Expand Up @@ -125,16 +125,16 @@ dialog > form {
}

.cell-2w {
background-color: rgb(248, 187, 107);
background-color: rgb(187, 145, 94);
}
.cell-3w {
background-color: rgb(255, 63, 63);
background-color: rgb(206, 76, 76);
}
.cell-2l {
background-color: rgb(107, 172, 224);
background-color: rgb(98, 142, 178);
}
.cell-3l {
background-color: rgb(25, 105, 255);
background-color: rgb(20, 74, 174);
}


Expand All @@ -148,7 +148,7 @@ dialog > form {
text-align: center;
font-size: 35px;
line-height: var(--cell-size);
background-color: var(--col-primary);
background-color: var(--col-secondary);
color: var(--col-bg);
border-radius: var(--tile-border-radius);
font-family: Georgia, 'Times New Roman', Times, serif;
Expand All @@ -159,7 +159,7 @@ dialog > form {

.preview-tile {
color: black;
background-color: var(--col-secondary);
background-color: var(--col-primary);
}

.tile-value {
Expand Down
6 changes: 5 additions & 1 deletion src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -818,12 +818,16 @@ viewCell point state =
div
[ onClick (Select point)
, class "cell"
, classList
, classList <|
if state.contents == Empty then
[ ( "cell-2w", state.multiplier.word == 2 )
, ( "cell-3w", state.multiplier.word == 3 )
, ( "cell-2l", state.multiplier.letter == 2 )
, ( "cell-3l", state.multiplier.letter == 3 )
]

else
[]
]
[ case ( state.contents, state.state ) of
( Empty, Inactive ) ->
Expand Down

0 comments on commit b478ac3

Please sign in to comment.