From afb24a6ba2a68312a70d736c94b5e3fce8f8487e Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 22 Jul 2015 10:00:20 +0930 Subject: [PATCH] Apply modal width on the correct class --- framework/core/less/lib/Modal.less | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/core/less/lib/Modal.less b/framework/core/less/lib/Modal.less index 3d1489dfd..45da92b69 100755 --- a/framework/core/less/lib/Modal.less +++ b/framework/core/less/lib/Modal.less @@ -54,6 +54,11 @@ position: relative; width: auto; margin: 10px; + max-width: 600px; + + .Modal--small & { + max-width: 400px; + } } // Actual modal @@ -62,12 +67,7 @@ background-color: @body-bg; background-clip: padding-box; margin: 0 auto; - max-width: 600px; overflow: hidden; - - .Modal--small & { - max-width: 400px; - } } // Measure scrollbar width for padding body during modal show/hide @@ -108,7 +108,7 @@ text-align: left; } - :last-child { + > :last-child { margin-bottom: 0; } }