summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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