From f58677336edd2fd9a9a21fd741ca0605a27b913b Mon Sep 17 00:00:00 2001 From: Matt Keenan Date: Thu, 22 Aug 2024 11:57:56 -0400 Subject: [PATCH] Fix exercises caption formatting --- src/haz3lweb/app/editors/cell/CellCommon.re | 2 +- src/haz3lweb/www/style/cell.css | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/haz3lweb/app/editors/cell/CellCommon.re b/src/haz3lweb/app/editors/cell/CellCommon.re index 5dcbccb728..1865974ca7 100644 --- a/src/haz3lweb/app/editors/cell/CellCommon.re +++ b/src/haz3lweb/app/editors/cell/CellCommon.re @@ -14,7 +14,7 @@ let simple_cell_item = (content: list(Node.t)) => let caption = (~rest: option(string)=?, bolded: string) => div( - ~attrs=[Attr.classes(["cell-caption", "cell-item"])], + ~attrs=[Attr.classes(["cell-caption"])], [strong([text(bolded)])] @ (rest |> Option.map(text) |> Option.to_list), ); diff --git a/src/haz3lweb/www/style/cell.css b/src/haz3lweb/www/style/cell.css index 589423077d..c9f2ee2ca4 100644 --- a/src/haz3lweb/www/style/cell.css +++ b/src/haz3lweb/www/style/cell.css @@ -39,13 +39,16 @@ min-width: 100%; } +.cell > * { + padding-left: 1em; + padding: 1em; + padding-left: 1.2em; +} + .cell-item { display: flex; flex-direction: column; gap: 1em; - padding-left: 1em; - padding: 1em; - padding-left: 1.2em; } .code-editor.selected{ @@ -70,10 +73,6 @@ color: var(--BR4); } -.cell-prompt { - padding: 1em; -} - /* DOCUMENTATION SLIDES */ .slide-img {