From 642cf4b4788831114b38d0542625d3024ff023a2 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Tue, 8 Sep 2015 06:34:19 +0200 Subject: [PATCH] cleaner look --- src/apintro/message.cljs | 24 ++++++++++++------------ src/apintro/vgapi.cljs | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/apintro/message.cljs b/src/apintro/message.cljs index 6df282e..4da7d2a 100644 --- a/src/apintro/message.cljs +++ b/src/apintro/message.cljs @@ -123,12 +123,12 @@ _ (when-not image-url (println "image-url nil: " message)) author-page (author-page-url message)] [:img.userpic - {:style {:max-height "100%" - :max-width "30%" - :margin-right "2%" + {:style {:height "100%" + :width "100%" + ; :margin-right "2%" ; :-webkit-filter "saturate(0)" :cursor "pointer" - :float "left" + ; :float "left" } :on-click #(open author-page) :src (if image-url (replace image-url #"normal" "bigger") nil)}])) @@ -153,14 +153,14 @@ [:div {:style {:height (str height "vh") :line-height "1.6em" :width "99%" - ; :-webkit-filter "blur(1px)" - :background "rgba(0,0,0,0.9)" - :margin "1px" - :color "rgba(255,255,255,0.8)" + :background "rgba(255,255,255,0.8)" + :color "rgba(0,0,0,0.8)" :font-size "0.3em" :overflow "hidden" + :border-radius (str (/ height 2) "vh") }} - [user-pic {:message message}] - [user-name message params] - [text message] - [actions-holder message params]])) + ; [user-pic {:message message}] + ; [user-name message params] + ; [text message] + ; [actions-holder message params] + ])) diff --git a/src/apintro/vgapi.cljs b/src/apintro/vgapi.cljs index 9e351a2..d6587d0 100644 --- a/src/apintro/vgapi.cljs +++ b/src/apintro/vgapi.cljs @@ -96,7 +96,7 @@ nb-seconds (count (keys tweets-by-sec)) max-nb (reduce #(max %1 (count %2)) 0 (vals tweets-by-sec)) vh-height (/ 40 max-nb) - tw-width (* 3 vh-height) + tw-width vh-height ] [:div {:style {:text-align "left" :line-height "2em" @@ -116,7 +116,7 @@ (for [tweet (get tweets-by-sec tweet-sec)] [message tweet vh-height ]) - [:div {:style {:font-size ".5em"}} (clojure.string/replace (.toISOString (js/Date. (:pub_date_epoch_ms tweet-sec))) + [:div {:style {:font-size ".3em"}} (clojure.string/replace (.toISOString (js/Date. (:pub_date_epoch_ms tweet-sec))) #".*T" "")] ])])))