From e8fec61afc4d605e6e80edf8b1e880f61a788a51 Mon Sep 17 00:00:00 2001 From: Juan de la Cruz Date: Mon, 19 Dec 2016 14:09:36 +0100 Subject: [PATCH] add bezier dot styles --- frontend/resources/styles/common/framework.scss | 10 ++++++++++ frontend/src/uxbox/main/ui/workspace/drawarea.cljs | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/resources/styles/common/framework.scss b/frontend/resources/styles/common/framework.scss index ac03c6c4f..a9f57e321 100644 --- a/frontend/resources/styles/common/framework.scss +++ b/frontend/resources/styles/common/framework.scss @@ -1066,3 +1066,13 @@ input[type=range]:focus::-ms-fill-upper { } } + +.close-bezier { + fill: $color-danger; + stroke: $color-danger-dark; + stroke-width: 2px; + cursor: pointer; + &:hover { + fill: $color-white; + } +} diff --git a/frontend/src/uxbox/main/ui/workspace/drawarea.cljs b/frontend/src/uxbox/main/ui/workspace/drawarea.cljs index edbd79924..e96e1c1a3 100644 --- a/frontend/src/uxbox/main/ui/workspace/drawarea.cljs +++ b/frontend/src/uxbox/main/ui/workspace/drawarea.cljs @@ -91,10 +91,12 @@ (-> (assoc shape :drawing? true) (shapes/render-component)) (when-not (:free shape) - [:circle {:cx x + [:circle.close-bezier {:cx x :cy y :r 5 - :fill "red" + :stroke "#d52747" + :stroke-width "2px" + :style {:cursor "pointer"} :on-click on-click}])]))) ;; --- Drawing Initialization