Only show delete bottons on hover
This commit is contained in:
parent
e1efdd3ef1
commit
9dbe68cc8c
3 changed files with 10 additions and 2 deletions
7
public/css/styles.css
Normal file
7
public/css/styles.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
.grub-close {
|
||||
display: none;
|
||||
}
|
||||
|
||||
tr:hover .grub-close {
|
||||
display: block;
|
||||
}
|
|
@ -36,7 +36,8 @@
|
|||
[:head
|
||||
[:title "Grub"]
|
||||
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
||||
(include-css "/css/bootstrap.css")]
|
||||
(include-css "/css/bootstrap.css")
|
||||
(include-css "/css/styles.css")]
|
||||
[:body
|
||||
(include-js "http://code.jquery.com/jquery.js")
|
||||
(include-js "/js/bootstrap.js")
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
[:input {:type "checkbox"}]
|
||||
(:grub grub)]]]
|
||||
[:td
|
||||
[:button.close {:type "button"} "×"]]])
|
||||
[:button.grub-close.close {:type "button"} "×"]]])
|
||||
|
||||
(def add-grub-text
|
||||
(node [:input.form-control {:type "text" :placeholder "2 grubs"}]))
|
||||
|
|
Loading…
Reference in a new issue