Skip to content
Browse files

Move styles to separate css file

  • Loading branch information...
1 parent a16f6b4 commit 73d529c56536cf6fa70ee3a95a722940be3afef2 @seancaffery seancaffery committed Jul 14, 2014
Showing with 25 additions and 7 deletions.
  1. +21 −0 css/jshint.css
  2. +2 −1 jshint.behaviors
  3. +2 −6 src/lt/plugins/jshint.cljs
View
21 css/jshint.css
@@ -0,0 +1,21 @@
+.jshint-gutter-marker .hint-gutter-dot {
+ width: 8px;
+ height: 10px;
+ background: red;
+}
+
+.jshint-gutter-marker .hints {
+ display: none;
+ width: 310px;
+ background:var(bg);
+ padding: 5px;
+ left: 10px;
+ top: -1px;
+ position: absolute;
+}
+
+.jshint-gutter-marker .hints li {
+ padding-bottom: 3px;
+ display: block;
+}
+
View
3 jshint.behaviors
@@ -1,2 +1,3 @@
-{:+ {:app [(:lt.objs.plugins/load-js "jshint_compiled.js")]
+{:+ {:app [(:lt.objs.plugins/load-js "jshint_compiled.js")
+ (:lt.objs.plugins/load-css "css/jshint.css")]
:editor.javascript [:lt.plugins.jshint/inline-hints]}}
View
8 src/lt/plugins/jshint.cljs
@@ -22,15 +22,11 @@
(defui gutter-marker [hints]
[:div.jshint-gutter-marker
- [:div.hint-gutter-dot
- {:style "width: 8px; height: 10px; background: red;"}]
- [:div.hints
- {:style "display:none;width: 310px; background:var(bg); padding: 5px; left: 10px; top: -1px; position: absolute;"
- :class "cm-variable"}
+ [:div.hint-gutter-dot]
+ [:div.hints.cm-variable
[:ul
(map (fn [h]
[:li
- {:style "padding-bottom: 3px; display:block"}
(str "- " h)]) hints)]]]
:mouseover (fn [e]
(if-let [target (dom/next (.-target e))]

0 comments on commit 73d529c

Please sign in to comment.
Something went wrong with that request. Please try again.