File tree Expand file tree Collapse file tree 5 files changed +17
-2
lines changed
Expand file tree Collapse file tree 5 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1818(def images
1919 (->> [{:url " /images/logos/hephaistox_logo.png"
2020 :alt " Hephaistox logo"
21- :img-id :hephaistox-log
21+ :img-id :hephaistox-logo
2222 :label " Hephaistox" }
2323 {:url " /images/logos/javascript.png"
2424 :alt " Javascript logo"
111111 [opts img]
112112 (if (nil? img) (cicon-img* {} opts) (cicon-img* opts img)))
113113
114- (defn cicon " A font awesome icon" [opts fa] [:i.fa (assoc opts :class fa)])
114+ (defn cicon " A font awesome icon" [opts fa] [:i.fa (merge-opts opts { :class fa} )])
Original file line number Diff line number Diff line change 4848 :left " 0"
4949 :bottom " 1.5em" }}
5050 " Download" ])])
51+
52+ (defn cspan-link
53+ " An hiccup `:a` tag to the [[auto-web.components.link]].
54+ `content` is what is wrapped by the `:a` tag."
55+ [opts link & content]
56+ [:a (merge-opts (link-opts link) (assoc-in opts [:style :text-decoration ] " underline" )) content])
Original file line number Diff line number Diff line change 5656 :rel " stylesheet"
5757 :href url}])
5858
59+ (defn print-css-meta
60+ " Add a css stylesheet used for printing"
61+ [{:keys [url]
62+ :as _link}]
63+ [:link {:type " text/css"
64+ :rel " stylesheet"
65+ :media " print"
66+ :href url}])
67+
5968(defn css-meta-preloaded
6069 " Add a css stylesheet"
6170 [{:keys [url]
You can’t perform that action at this time.
0 commit comments