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
|
[:head
|
||||||
[:title "Grub"]
|
[:title "Grub"]
|
||||||
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
|
[: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
|
[:body
|
||||||
(include-js "http://code.jquery.com/jquery.js")
|
(include-js "http://code.jquery.com/jquery.js")
|
||||||
(include-js "/js/bootstrap.js")
|
(include-js "/js/bootstrap.js")
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
[:input {:type "checkbox"}]
|
[:input {:type "checkbox"}]
|
||||||
(:grub grub)]]]
|
(:grub grub)]]]
|
||||||
[:td
|
[:td
|
||||||
[:button.close {:type "button"} "×"]]])
|
[:button.grub-close.close {:type "button"} "×"]]])
|
||||||
|
|
||||||
(def add-grub-text
|
(def add-grub-text
|
||||||
(node [:input.form-control {:type "text" :placeholder "2 grubs"}]))
|
(node [:input.form-control {:type "text" :placeholder "2 grubs"}]))
|
||||||
|
|
Loading…
Reference in a new issue