From 39c9556a368d0ba52f3a25aac0dce774166c3423 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Fri, 20 Jul 2018 09:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=205px=20=E6=A1=A3?= =?UTF-8?q?=E7=9A=84=20css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: f7277fb1f938016cddea4b6ce520c5a02b5792c3 [formerly 5bc31c004a31686252af3c20ac2cceb6514ff151] [formerly f7277fb1f938016cddea4b6ce520c5a02b5792c3 [formerly 5bc31c004a31686252af3c20ac2cceb6514ff151] [formerly f7277fb1f938016cddea4b6ce520c5a02b5792c3 [formerly 5bc31c004a31686252af3c20ac2cceb6514ff151] [formerly 5bc31c004a31686252af3c20ac2cceb6514ff151 [formerly b2520d7f49b8f8f84595953e78097eae80ac7158 [formerly a6d20ceecf88b01246ea82e36a2f2a8e27c34fa7]]]]] Former-commit-id: 43a4b756fc83e3ef52275d31fc7c3ee9cc58d388 Former-commit-id: 7efb98c1c00e5db947bea0aeeec7c764b56e1d46 Former-commit-id: e8fbb7c9c3dca88a71a31cb5b92e58d04e83f2c7 [formerly 85bf7526a236740f1f13c74d461e94348b70cf09] Former-commit-id: 381ddb92a6d444e6338fc50f513560d6387ac0fa Former-commit-id: fa51a4fea3b5634e992991062f6b11f1a5e12046 Former-commit-id: a4a7ccfcfe012355da12587202c2f4a79ee15271 Former-commit-id: 8ec665c4ba02ef56edc9bfb2d69514ef9e54e030 Former-commit-id: 77c9fac0e50d196c7de38d3b9d7021a0d130cfc3 --- docs/zh/others/css.md | 10 ++++++++++ src/assets/style/public-class.scss | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/zh/others/css.md b/docs/zh/others/css.md index 8974e668..fa9feac5 100644 --- a/docs/zh/others/css.md +++ b/docs/zh/others/css.md @@ -28,6 +28,16 @@ | `.d2-pr-0` | 右内边距 0px | | `.d2-pb-0` | 下内边距 0px | | `.d2-pl-0` | 左内边距 0px | +| `.d2-m-5` | 外边距 5px | +| `.d2-mt-5` | 上外边距 5px | +| `.d2-mr-5` | 右外边距 5px | +| `.d2-mb-5` | 下外边距 5px | +| `.d2-ml-5` | 左外边距 5px | +| `.d2-p-5` | 内边距 5px | +| `.d2-pt-5` | 上内边距 5px | +| `.d2-pr-5` | 右内边距 5px | +| `.d2-pb-5` | 下内边距 5px | +| `.d2-pl-5` | 左内边距 5px | | `.d2-m-10` | 外边距 10px | | `.d2-mt-10` | 上外边距 10px | | `.d2-mr-10` | 右外边距 10px | diff --git a/src/assets/style/public-class.scss b/src/assets/style/public-class.scss index 3466bf94..08cbc340 100644 --- a/src/assets/style/public-class.scss +++ b/src/assets/style/public-class.scss @@ -40,9 +40,9 @@ } // 边距相关 -$sizes: (0, 10, 15, 20); +$sizes: (0, 5, 10, 15, 20); -@for $index from 1 to 5 { +@for $index from 1 to 6 { .#{$prefix}-m-#{nth($sizes, $index)} { margin: #{nth($sizes, $index)}px !important; } .#{$prefix}-mt-#{nth($sizes, $index)} { margin-top: #{nth($sizes, $index)}px !important; } .#{$prefix}-mr-#{nth($sizes, $index)} { margin-right: #{nth($sizes, $index)}px !important; }