Update to Twitter Bootstrap 3

This commit is contained in:
Nicholas Kariniemi 2013-07-27 18:54:15 +03:00
parent 8c78bf2f5d
commit e54c30633a
8 changed files with 4277 additions and 7201 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

7452
public/css/bootstrap.css vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

2860
public/js/bootstrap.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -9,8 +9,6 @@
[page :refer [html5]]
[page :refer [include-js include-css]]]))
(defn async-handler [request]
(if-not (:websocket? request)
{:status 200 :body "WebSocket server"}
@ -25,8 +23,7 @@
[:head
[:title "Grub"]
[:meta {:name "viewport" :content "width=device-width, initial-scale=1.0"}]
(include-css "/css/bootstrap.css")
(include-css "/css/bootstrap-responsive.css")]
(include-css "/css/bootstrap.css")]
[:body
(include-js "http://code.jquery.com/jquery.js")
(include-js "/js/bootstrap.js")

View file

@ -19,25 +19,28 @@
(deftemplate grub-template [grub]
[:tr
[:td
[:label.checkbox [:input {:type "checkbox"}] grub]]])
[:div.checkbox [:label [:input {:type "checkbox"}] grub]]]])
(def add-grub-text
(node [:input.input-medium {:type "text" :placeholder "2 grubs"}]))
(node [:input.form-control {:type "text" :placeholder "2 grubs"}]))
(def add-grub-btn
(node [:button.btn {:type "button"} "Add"]))
(node [:button.btn.btn-default {:type "button"} "Add"]))
(deftemplate main-template [grubs]
[:div.container
[:div.row-fluid
[:div.span8.offset2
[:h2 "Grub List"]
[:table.table
[:tbody#grubList
(for [grub grubs] (grub-template grub))]]
[:div.input-append
[:div.row.show-grid
[:div.col-lg-4]
[:div.col-lg-4
[:h3 "Grub List"]
[:div.input-group
add-grub-text
add-grub-btn]]]])
[:span.input-group-btn
add-grub-btn]]
[:table.table.table-condensed
[:tbody#grubList
(for [grub grubs] (grub-template grub))]]]
[:div.col-lg-4]]])
(def add-grub-chan (chan))