diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-07-27 19:52:44 +0200 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-07-27 19:52:44 +0200 |
| commit | e4d4c12c25be9b4835d3aa5eaed1d25793fdd55c (patch) | |
| tree | a2b05baac0eb74b898541d6903797fad8163aeab /lib | |
| parent | 777a65837cf545cbc8c3c03e3ac998eb53d4afa8 (diff) | |
custom theme
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/html.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/html.nix b/lib/html.nix index a922e0e..d5e2d69 100644 --- a/lib/html.nix +++ b/lib/html.nix @@ -246,15 +246,16 @@ title, content, }: - lines [ - (tagsEmptyFuns.inputWith ({ - inherit id name; - type = "radio"; - } - // lib.optionalAttrs checked {checked = "checked";})) - (tagsContainerFuns.label {for = id;} [(tagsContainerFuns.h4 title)]) - (tagsContainerFuns.div {class = "tab";} content) - ]; + with tagsContainerFuns; + lines [ + (tagsEmptyFuns.inputWith ({ + inherit id name; + type = "radio"; + } + // lib.optionalAttrs checked {checked = "checked";})) + (label {for = id;} [(small (b title))]) + (div {class = "tab";} content) + ]; tabbox = name: tabs: tagsContainerFuns.div {class = "tabs";} (builtins.map (tab name) tabs); in tagsContainerFuns |
