From 7dbab1c97366d34d1ca37f797b1cd241087506d9 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 25 May 2016 07:02:50 +1000 Subject: [PATCH] Add case for modal with no header/footer Fixes #2043 --- modules/system/assets/ui/less/popup.less | 8 ++++++++ modules/system/assets/ui/storm.css | 2 ++ modules/system/controllers/updates/_execute.htm | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/system/assets/ui/less/popup.less b/modules/system/assets/ui/less/popup.less index a300250f6..bd18c7411 100644 --- a/modules/system/assets/ui/less/popup.less +++ b/modules/system/assets/ui/less/popup.less @@ -57,6 +57,14 @@ > p:last-child { margin-bottom: 20px; } + + &.modal-no-header { + padding-top: @padding-standard; + } + + &.modal-no-footer { + padding-bottom: @padding-standard; + } } .modal-dialog { diff --git a/modules/system/assets/ui/storm.css b/modules/system/assets/ui/storm.css index daae917ca..f52bec004 100644 --- a/modules/system/assets/ui/storm.css +++ b/modules/system/assets/ui/storm.css @@ -2794,6 +2794,8 @@ ul.autocomplete.dropdown-menu.inspector-autocomplete li a{padding:5px 12px;white .modal-footer{background:transparent;border:none;margin-top:0;padding:0 20px 20px 20px} .modal-body{padding-top:0;padding-bottom:0} .modal-body > p:last-child{margin-bottom:20px} +.modal-body.modal-no-header{padding-top:20px} +.modal-body.modal-no-footer{padding-bottom:20px} .modal-dialog.size-adaptive{width:100%;padding-right:50px;padding-left:50px} .modal-dialog.adaptive-height{height:100%;min-height:600px;margin-top:0;margin-bottom:0;padding-top:50px;padding-bottom:50px} .modal-dialog.adaptive-height .modal-content{height:100%} diff --git a/modules/system/controllers/updates/_execute.htm b/modules/system/controllers/updates/_execute.htm index 9785a0554..5f7ed6369 100644 --- a/modules/system/controllers/updates/_execute.htm +++ b/modules/system/controllers/updates/_execute.htm @@ -3,7 +3,7 @@
-