summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-27 19:52:44 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-27 19:52:44 +0200
commite4d4c12c25be9b4835d3aa5eaed1d25793fdd55c (patch)
treea2b05baac0eb74b898541d6903797fad8163aeab /lib
parent777a65837cf545cbc8c3c03e3ac998eb53d4afa8 (diff)
custom theme
Diffstat (limited to 'lib')
-rw-r--r--lib/html.nix19
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