mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05:00
add new confirm dialog styles
This commit is contained in:
parent
c7801a793c
commit
483043202a
3 changed files with 22 additions and 14 deletions
|
@ -69,10 +69,9 @@
|
|||
.btn-gray {
|
||||
@extend %btn;
|
||||
background: $color-gray;
|
||||
color: $color-gray-dark;
|
||||
color: $color-white;
|
||||
&:hover {
|
||||
background: $color-gray-dark;
|
||||
color: $color-gray-darker;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,11 @@
|
|||
|
||||
}
|
||||
|
||||
// Project Settings
|
||||
.settings {
|
||||
|
||||
// Confirm dialog
|
||||
.confirm-dialog {
|
||||
.btn-gray,
|
||||
.btn-success,
|
||||
.btn-delete {
|
||||
margin: 2rem 1rem 0 1rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,15 +26,20 @@
|
|||
(on-cancel (dissoc ctx :on-accept :on-cancel))))]
|
||||
(html
|
||||
[:div.lightbox-body.confirm-dialog
|
||||
[:span "HERE"]
|
||||
[:input
|
||||
{:type "button"
|
||||
:value "Ok"
|
||||
:on-click accept}]
|
||||
[:input
|
||||
{:type "button"
|
||||
:value "Cancel"
|
||||
:on-click cancel}]])))
|
||||
[:h3 "Are you sure?"]
|
||||
[:span "You're going to delete __PAGENAME__"]
|
||||
[:div.row-flex
|
||||
[:input.btn-success.btn-small
|
||||
{:type "button"
|
||||
:value "Ok"
|
||||
:on-click accept}]
|
||||
[:input.btn-delete.btn-small
|
||||
{:type "button"
|
||||
:value "Cancel"
|
||||
:on-click cancel}]]
|
||||
[:a.close {:href "#"
|
||||
:on-click #(do (dom/prevent-default %)
|
||||
(udl/close!))} i/close]])))
|
||||
|
||||
(def confirm-dialog
|
||||
(mx/component
|
||||
|
|
Loading…
Add table
Reference in a new issue