From 154d731e55d74df83816c6eb412039c988f8da65 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 22 Oct 2024 23:24:08 +0200 Subject: [PATCH] use service template --- style.css | 16 +++-- templates/cards.xsl | 5 +- templates/compact.xsl | 4 +- templates/hostScan.xsl | 72 ++----------------- templates/lanScan.xsl | 5 +- .../lib/{serviceLabel.xsl => service.xsl} | 6 +- 6 files changed, 31 insertions(+), 77 deletions(-) rename templates/lib/{serviceLabel.xsl => service.xsl} (96%) diff --git a/style.css b/style.css index e05dc9b..737c361 100644 --- a/style.css +++ b/style.css @@ -61,15 +61,21 @@ svg { text-align: center !important; } -.compact .ui.icon.buttons .mini.button { - padding: 0.5em; -} - .compact { - overflow-x: scroll; + position: static !important; + overflow-x: auto; } .compact > input { min-width: 10em; padding-right: 0.1em; } + +.compact .ui.icon.buttons .mini.button { + padding: 0.5em; + position: static; +} + +.compact .ui.dropdown.button:not(.pointing):not(.floating).active { + border-radius: 0; +} \ No newline at end of file diff --git a/templates/cards.xsl b/templates/cards.xsl index 0df5e6b..7cc90d6 100755 --- a/templates/cards.xsl +++ b/templates/cards.xsl @@ -6,7 +6,7 @@ - + @@ -152,10 +152,11 @@ function hostScanning(link) {
- + +
diff --git a/templates/compact.xsl b/templates/compact.xsl index 1b67f3a..4950607 100755 --- a/templates/compact.xsl +++ b/templates/compact.xsl @@ -6,6 +6,7 @@ + @@ -104,10 +105,11 @@ $('.ui.dropdown').dropdown() title="{$currentHost/hostnames/hostname/@name} ({address/@addr})" onfocus="this.value='{hostnames/hostname/@name}'; this.select()" onblur="this.value='{substring-before(hostnames/hostname/@name, '.')}'" /> - + + diff --git a/templates/hostScan.xsl b/templates/hostScan.xsl index 039bfbc..aa2f094 100755 --- a/templates/hostScan.xsl +++ b/templates/hostScan.xsl @@ -6,6 +6,7 @@ + @@ -172,71 +173,12 @@ $('.ui.dropdown').dropdown() - - - ui mini fluid button - - red - orange - green - green - orange - red - - dropdown share-size - - - - - - - --free: - - ; --total: - - - - - - - - - - https - - - - - - :// - - : - - - - - - rdp.php?v= - - &p= - - - - - - - - - - - - - - + + + + + + diff --git a/templates/lanScan.xsl b/templates/lanScan.xsl index b76935a..9daa554 100755 --- a/templates/lanScan.xsl +++ b/templates/lanScan.xsl @@ -6,7 +6,7 @@ - + @@ -163,10 +163,11 @@ function hostScanning(link) { - + + diff --git a/templates/lib/serviceLabel.xsl b/templates/lib/service.xsl similarity index 96% rename from templates/lib/serviceLabel.xsl rename to templates/lib/service.xsl index 91ed7fd..3e25cf3 100644 --- a/templates/lib/serviceLabel.xsl +++ b/templates/lib/service.xsl @@ -4,17 +4,19 @@ xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.1"> - + + - ui label + + red orange