add new confirm dialog styles

This commit is contained in:
elhombretecla 2016-04-25 19:27:51 +02:00
parent c7801a793c
commit 483043202a
3 changed files with 22 additions and 14 deletions

View File

@ -69,10 +69,9 @@
.btn-gray { .btn-gray {
@extend %btn; @extend %btn;
background: $color-gray; background: $color-gray;
color: $color-gray-dark; color: $color-white;
&:hover { &:hover {
background: $color-gray-dark; background: $color-gray-dark;
color: $color-gray-darker;
} }
} }

View File

@ -195,7 +195,11 @@
} }
// Project Settings // Confirm dialog
.settings { .confirm-dialog {
.btn-gray,
.btn-success,
.btn-delete {
margin: 2rem 1rem 0 1rem;
}
} }

View File

@ -26,15 +26,20 @@
(on-cancel (dissoc ctx :on-accept :on-cancel))))] (on-cancel (dissoc ctx :on-accept :on-cancel))))]
(html (html
[:div.lightbox-body.confirm-dialog [:div.lightbox-body.confirm-dialog
[:span "HERE"] [:h3 "Are you sure?"]
[:input [:span "You're going to delete __PAGENAME__"]
{:type "button" [:div.row-flex
:value "Ok" [:input.btn-success.btn-small
:on-click accept}] {:type "button"
[:input :value "Ok"
{:type "button" :on-click accept}]
:value "Cancel" [:input.btn-delete.btn-small
:on-click cancel}]]))) {:type "button"
:value "Cancel"
:on-click cancel}]]
[:a.close {:href "#"
:on-click #(do (dom/prevent-default %)
(udl/close!))} i/close]])))
(def confirm-dialog (def confirm-dialog
(mx/component (mx/component