diff --git a/src/bundle/Resources/public/scss/_buttons.scss b/src/bundle/Resources/public/scss/_buttons.scss index 24a0ca9392..18edd3334b 100644 --- a/src/bundle/Resources/public/scss/_buttons.scss +++ b/src/bundle/Resources/public/scss/_buttons.scss @@ -69,3 +69,41 @@ align-items: center; justify-content: center; } + +.ez-modal--send-to-trash { + .modal-header { + .close { + position: absolute; + right: 1rem; + } + } + + .modal-footer { + .btn { + line-height: 1.25; + padding: .5rem .75rem; + } + + .btn-secondary { + background-color: $ez-color-base-medium; + border-color: $ez-color-base-medium; + + &:hover { + background-color: $ez-color-base-medium-hover; + border-color: $ez-color-base-medium-hover; + } + } + } +} + +.ez-content-view, +.ez-trash-list-view { + .ez-modal--send-to-trash { + .modal-footer { + .btn { + font-size: 1rem; + padding-bottom: .5rem; + } + } + } +} diff --git a/src/bundle/Resources/public/scss/_custom.scss b/src/bundle/Resources/public/scss/_custom.scss index d9cacb586c..2681c88ac8 100644 --- a/src/bundle/Resources/public/scss/_custom.scss +++ b/src/bundle/Resources/public/scss/_custom.scss @@ -22,6 +22,7 @@ $ez-ground-base-dark: #e5e3e3; $ez-color-base-pale: #dbdbdb; $ez-color-base-light: #878787; $ez-color-base-medium: #646464; +$ez-color-base-medium-hover: darken($ez-color-base-medium, 15%); $ez-color-base-dark: #555; $ez-black: #333; diff --git a/src/bundle/Resources/public/scss/_modals.scss b/src/bundle/Resources/public/scss/_modals.scss new file mode 100644 index 0000000000..935dab22b1 --- /dev/null +++ b/src/bundle/Resources/public/scss/_modals.scss @@ -0,0 +1,40 @@ +.ez-modal--send-to-trash { + .modal-dialog { + background-color: $ez-ground-base-medium; + border-radius: .25rem; + } + + .modal-header { + border-bottom: none; + padding: 15px 15px 0 15px; + position: relative; + min-height: 2.5rem; + } + + .modal-body { + padding: 15px 30px; + + .ez-modal-body__main, + .ez-modal-body__explanation { + margin-bottom: 0; + } + } + + .modal-footer { + border-top: none; + } +} + +.ez-trash-list-view { + .ez-modal--send-to-trash { + .modal-body { + .ez-modal-body__main { + font-weight: 700; + } + + .ez-modal-body__explanation { + font-size: .9375rem; + } + } + } +} diff --git a/src/bundle/Resources/public/scss/ezplatform.scss b/src/bundle/Resources/public/scss/ezplatform.scss index 0a7df5fdda..a496d6ef6a 100644 --- a/src/bundle/Resources/public/scss/ezplatform.scss +++ b/src/bundle/Resources/public/scss/ezplatform.scss @@ -10,6 +10,7 @@ @import 'buttons'; @import 'field-group'; @import 'main-nav'; +@import 'modals'; @import 'notifications'; @import 'instant-filter'; @import 'login'; diff --git a/src/bundle/Resources/views/admin/bulk_delete_confirmation_modal.html.twig b/src/bundle/Resources/views/admin/bulk_delete_confirmation_modal.html.twig index f70d136bef..8e40ee52b1 100644 --- a/src/bundle/Resources/views/admin/bulk_delete_confirmation_modal.html.twig +++ b/src/bundle/Resources/views/admin/bulk_delete_confirmation_modal.html.twig @@ -1,22 +1,21 @@ -