f*cking css

This commit is contained in:
Adrien MALINGREY 2024-10-23 14:02:05 +02:00
parent 154d731e55
commit df4648e12a
2 changed files with 13 additions and 5 deletions

View File

@ -71,7 +71,7 @@ svg {
padding-right: 0.1em; padding-right: 0.1em;
} }
.compact .ui.icon.buttons .mini.button { .compact .ui.buttons .mini.button {
padding: 0.5em; padding: 0.5em;
position: static; position: static;
} }
@ -79,3 +79,10 @@ svg {
.compact .ui.dropdown.button:not(.pointing):not(.floating).active { .compact .ui.dropdown.button:not(.pointing):not(.floating).active {
border-radius: 0; border-radius: 0;
} }
.compact .ui.dropdown .menu {
left: 0;
right: 0;
margin: -.7em .7em;
min-width: auto;
}

View File

@ -54,9 +54,11 @@
<main class="ui container"> <main class="ui container">
<h1 class="ui header"><xsl:value-of select="$targets"/></h1> <h1 class="ui header"><xsl:value-of select="$targets"/></h1>
<div class="form">
<div class="ui doubling stackable four column compact grid"> <div class="ui doubling stackable four column compact grid">
<xsl:apply-templates select="host | $init/host[not(address/@addr=$current/host/address/@addr)][not(status/@state='down')]"/> <xsl:apply-templates select="host | $init/host[not(address/@addr=$current/host/address/@addr)][not(status/@state='down')]"/>
</div> </div>
</div>
</main> </main>
<footer class="ui footer segment"> <footer class="ui footer segment">
@ -91,7 +93,7 @@ $('.ui.dropdown').dropdown()
<div class="column"> <div class="column">
<div> <div>
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:text>ui fluid mini left icon compact input </xsl:text> <xsl:text>ui fluid mini compact input </xsl:text>
<xsl:if test="$currentHost/ports/port | $initHost/ports/port[not(@portid=$currentHost/ports/port/@portid)][not(state/@state='closed')]"> <xsl:if test="$currentHost/ports/port | $initHost/ports/port[not(@portid=$currentHost/ports/port/@portid)][not(state/@state='closed')]">
<xsl:text>action buttons </xsl:text> <xsl:text>action buttons </xsl:text>
</xsl:if> </xsl:if>
@ -100,7 +102,6 @@ $('.ui.dropdown').dropdown()
<xsl:otherwise>error</xsl:otherwise> <xsl:otherwise>error</xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
<i class="server icon"></i>
<input type="text" readonly="" value="{substring-before(hostnames/hostname/@name, '.')}" placeholder="{address/@addr}" <input type="text" readonly="" value="{substring-before(hostnames/hostname/@name, '.')}" placeholder="{address/@addr}"
title="{$currentHost/hostnames/hostname/@name} ({address/@addr})" title="{$currentHost/hostnames/hostname/@name} ({address/@addr})"
onfocus="this.value='{hostnames/hostname/@name}'; this.select()" onblur="this.value='{substring-before(hostnames/hostname/@name, '.')}'" onfocus="this.value='{hostnames/hostname/@name}'; this.select()" onblur="this.value='{substring-before(hostnames/hostname/@name, '.')}'"