fix: centre the ufw switch under the create button
This commit is contained in:
1 parent
e0dc15740d
commit
81a2c96e0b
1 file changed
+9
-7
@@ -16,12 +16,14 @@
|
|||||||
height:40px; box-sizing:border-box; font-size:14px; line-height:1; margin:0;
|
height:40px; box-sizing:border-box; font-size:14px; line-height:1; margin:0;
|
||||||
}
|
}
|
||||||
.frow select { min-width:0; width:100%; padding:0 30px 0 12px; background-position:right 10px center; }
|
.frow select { min-width:0; width:100%; padding:0 30px 0 12px; background-position:right 10px center; }
|
||||||
/* Under the line: the note of the chosen type, and the ufw switch below the button. */
|
/* The ufw switch hangs under the button, centred on it, level with the note. */
|
||||||
.under { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; font-size:13px; }
|
.frow .act { position:relative; }
|
||||||
.under label.check {
|
.frow .act label.check {
|
||||||
display:inline-flex; align-items:center; gap:8px; margin:0 0 0 auto; white-space:nowrap;
|
position:absolute; top:100%; left:50%; transform:translateX(-50%);
|
||||||
|
display:inline-flex; align-items:center; gap:8px; height:20px; margin:12px 0 0;
|
||||||
color:var(--text); font-size:14px; cursor:pointer;
|
color:var(--text); font-size:14px; cursor:pointer;
|
||||||
}
|
}
|
||||||
|
.under { min-height:20px; margin:12px 110px 0 0; font-size:13px; line-height:20px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -99,16 +101,16 @@
|
|||||||
<label>Метка</label>
|
<label>Метка</label>
|
||||||
<input type="text" name="label" maxlength="80" placeholder="необязательно">
|
<input type="text" name="label" maxlength="80" placeholder="необязательно">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="act">
|
||||||
<button type="submit">Создать</button>
|
<button type="submit">Создать</button>
|
||||||
</div>
|
|
||||||
<div class="under">
|
|
||||||
<span class="muted" id="note"></span>
|
|
||||||
{{if .UfwEnabled}}
|
{{if .UfwEnabled}}
|
||||||
<label class="check" title="Порт не будет открыт в ufw, и при удалении правила в ufw ничего не изменится">
|
<label class="check" title="Порт не будет открыт в ufw, и при удалении правила в ufw ничего не изменится">
|
||||||
<input type="checkbox" name="no_ufw" value="1"> Без ufw
|
<input type="checkbox" name="no_ufw" value="1"> Без ufw
|
||||||
</label>
|
</label>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="under"><span class="muted" id="note"></span></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user