From 20b7e23e59562feef383b60764c5b8f7f7395705 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 13 Jan 2021 15:28:09 +0100 Subject: [PATCH] Add togglers on device page --- public/assets/style.css | 15 +++++++++++++++ public/device.html | 20 ++++++++++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/public/assets/style.css b/public/assets/style.css index e02bec2..eaebcf0 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -99,6 +99,21 @@ ul.pre ul li:last-child:before { border-left: thin solid #444; } +ul.pre input[type="checkbox"] { + display: none; +} +ul.pre input[type="checkbox"] ~ label::before { + content: "[+]"; + color: gray; + cursor: pointer; +} +ul.pre input[type="checkbox"]:checked ~ label::before { + content: "[-]"; +} +ul.pre input[type="checkbox"]:not(:checked) ~ ul { + display: none; +} + .alt-formats { float: right; } diff --git a/public/device.html b/public/device.html index 96967c7..16a003f 100644 --- a/public/device.html +++ b/public/device.html @@ -158,7 +158,10 @@ {{end}} {{with .Connectors}} -
  • Connectors +
  • + + + Connectors