From d0881c383b0e5f78c1b61a6e84a0c1ca8c02deaa Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Thu, 15 Jun 2017 19:23:33 +0800 Subject: [PATCH] Apply 'box-sizing: border-box' to all elements --- src/index.styl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.styl b/src/index.styl index 83c1f2d..7ab38a8 100644 --- a/src/index.styl +++ b/src/index.styl @@ -16,15 +16,16 @@ $modal-footer-height = 56px; $modal-footer-button-margin = 8px; .modal-content { + box-sizing: border-box; + *, *:before, *:after { + box-sizing: border-box; + } + border: 1px solid #ccc; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); position: relative; min-width: $modal-xs-min-width; - * { - box-sizing: border-box; - } - &.xs { min-width: $modal-xs-min-width; max-width: $modal-xs-max-width;