Remove style

pull/645/head
Tienson Qin 2020-03-05 15:46:41 +08:00
parent 13aecaecc8
commit d2bdb894d8
2 changed files with 2 additions and 21 deletions

View File

@ -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;
}

View File

@ -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