From d2bdb894d8b5e376ce033428c3035424baf43239 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 5 Mar 2020 15:46:41 +0800 Subject: [PATCH] Remove style --- frontend/public/css/style.css | 19 ------------------- frontend/src/frontend/ui.cljs | 4 ++-- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/frontend/public/css/style.css b/frontend/public/css/style.css index fc7b3e510..b5be2f5e9 100644 --- a/frontend/public/css/style.css +++ b/frontend/public/css/style.css @@ -191,22 +191,3 @@ textarea { overflow-x: auto; } .org-info-js_search-highlight { background-color: #ffff00; color: #000000; font-weight: bold; } .org-svg { width: 90%; } - -/* transition */ -.dropdown-enter { - opacity: 0.01; -} - -.dropdown-enter-active { - opacity: 1; - transition: opacity 200ms ease-in; -} - -.dropdown-exit { - opacity: 1; -} - -.dropdown-exit-active { - opacity: 0.01; - transition: opacity 200ms ease-in-out; -} diff --git a/frontend/src/frontend/ui.cljs b/frontend/src/frontend/ui.cljs index 8cf9c10d1..d7b028b06 100644 --- a/frontend/src/frontend/ui.cljs +++ b/frontend/src/frontend/ui.cljs @@ -8,7 +8,7 @@ (defonce transition-group (r/adapt-class TransitionGroup)) (defonce css-transition (r/adapt-class CSSTransition)) -(defn transition +(defn transition-group [css-options items] (when (seq items) (transition-group @@ -35,6 +35,7 @@ :on-close (fn [] (reset! show? false))))) +;; public exports (rum/defcs dropdown < (rum/local false ::show-dropdown?) (mixins/event-mixin dropdown-listeners) @@ -44,7 +45,6 @@ [:div [:button.max-w-xs.flex.items-center.text-sm.rounded-full.focus:outline-none.focus:shadow-outline {:on-click (fn [] - (prn "hi") (swap! show-dropdown? not))} [:img.h-8.w-8.rounded-full {:src