diff options
author | Jean-Nicolas Veigel <art.jnveigel@gmail.com> | 2024-03-14 18:40:34 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-26 10:31:25 +0000 |
commit | 498b221157cbd3740143766c25e17d7d03fa78d0 (patch) | |
tree | b1768f5dbf06035b49b21c08293149f8575d5f68 /src | |
parent | 2e8685e3539d071b879f998a9d389b8d171b79ab (diff) | |
download | tour-498b221157cbd3740143766c25e17d7d03fa78d0.tar.gz tour-498b221157cbd3740143766c25e17d7d03fa78d0.zip |
feat(style): preserve style with original common colors
Diffstat (limited to 'src')
-rw-r--r-- | src/tour.gleam | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tour.gleam b/src/tour.gleam index d18f927..cf5679f 100644 --- a/src/tour.gleam +++ b/src/tour.gleam @@ -531,7 +531,7 @@ fn everything_chapter_lesson_html(lesson: Lesson, index: Int, end_index: Int) { h("article", [#("class", "lesson"), #("id", slugify_path(lesson.path))], [ h("h2", [#("class", "lesson-title")], [text(lesson.name)]), htmb.dangerous_unescaped_fragment(string_builder.from_string(lesson.text)), - h("pre", [#("class", "lesson-snippet")], [ + h("pre", [#("class", "lesson-snippet dim-bg")], [ h("code", [], [text(lesson.code)]), h( "a", @@ -609,7 +609,11 @@ fn everything_html(chapters: List(Chapter)) -> String { // TODO: use proper values for location and such page_html(at: "everything", titled: "Everything!!!", containing: [ h("main", [#("id", "everything")], [ - h("aside", [#("id", "everything-contents")], table_of_contents), + h( + "aside", + [#("id", "everything-contents"), #("class", "dim-bg")], + table_of_contents, + ), h("section", [#("id", "everything-lessons")], chapter_lessons), ]), ]) |