Skip to content

Commit

Permalink
add basic unmolded styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Sep 30, 2024
1 parent 63d3ee1 commit 802ddd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/web/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
--selection-shadow-color: rosybrown;

--hole-stroke-color: #dc322f;
--unmolded-color: #dc322f;

--exp-bg-color: #ebdfc5; /*#dbf6de;*/
--exp-shadow-color: #c4b599;/*#329f43;*/
Expand Down Expand Up @@ -99,6 +100,11 @@
opacity: 40%;
}

.unmolded {
opacity: 40%;
color: var(--unmolded-color);
}

.tile.match {
font-weight: bold;
}
Expand Down
3 changes: 2 additions & 1 deletion src/web/view/Text.re
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ let view_tok = (tok: Token.t) => {
let mtrl_clss =
switch (tok.mtrl) {
// todo: distinguish whitespace from unmolded styling
| Space(_) => ["space"]
| Space(White(_)) => ["space"]
| Space(Unmolded) => ["unmolded"]
| Grout(_) => ["grout"]
| Tile((_, mold)) =>
Mold.(t_nullable(~side=L, mold) && t_nullable(~side=R, mold))
Expand Down

0 comments on commit 802ddd5

Please sign in to comment.