Only show delete bottons on hover

This commit is contained in:
Nicholas Kariniemi 2013-08-04 21:15:56 +03:00
parent e1efdd3ef1
commit 9dbe68cc8c
3 changed files with 10 additions and 2 deletions

7
public/css/styles.css Normal file
View file

@ -0,0 +1,7 @@
.grub-close {
display: none;
}
tr:hover .grub-close {
display: block;
}

View file

@ -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")

View file

@ -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"}]))