From 2747d0d629666fdbe35e6fb4b1dfaf9ad7917c9b Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Sun, 24 Jun 2018 23:11:22 +0800 Subject: [PATCH] no message Former-commit-id: 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 7cf67090ff0fd9449e24dc122ffeb6c900c45403 [formerly 1019ccb07daf3bf27a77c0d87a3908bb5d2a72ec [formerly 206e3f837d4f674b6caf7001f29a630b1bc53726]]]]] Former-commit-id: 1088def8b1b43c3027be7969076a4c7cd8685fbf Former-commit-id: 3bb2cb26bc39a167a2451c96a4b5026d3a1f93bf Former-commit-id: 071f661e87e77dd171c2765ca4e0749710450258 [formerly 9597dd71a51cf4fbe318f87927147643752e2c2c] Former-commit-id: c7f3fb4d0e6f177fdb9655408dff44dabb58032b Former-commit-id: f11fd7ae236e6cc7cc8e4c79238fd2962c0c9380 Former-commit-id: 6592bd7b89143c32e6302454319c8412a46ab7b4 Former-commit-id: 04ad104d09e731652ce64630871652575eb97802 Former-commit-id: b806baefc5d0065ed91c8d030a5f4a602c3c5b61 --- docs/.vuepress/config.js | 17 ++++++++- docs/zh/others/README.md | 1 + docs/zh/others/css.md | 77 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 docs/zh/others/README.md create mode 100644 docs/zh/others/css.md diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 32cfc88d..eeb91e99 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -38,12 +38,14 @@ module.exports = { { text: '指南', link: '/zh/guide/' }, { text: '插件', link: '/zh/plugins/' }, { text: '组件', link: '/zh/components/' }, + { text: '其它', link: '/zh/others/' }, { text: '下载', link: 'https://github.com/FairyEver/d2-admin/releases' } ], sidebar: { '/zh/guide/': sideBarGuide('指南'), '/zh/plugins/': sideBarPlugins('插件'), - '/zh/components/': sideBarComponents('组件') + '/zh/components/': sideBarComponents('组件'), + '/zh/others/': sideBarOthers('其它') } } } @@ -92,3 +94,16 @@ function sideBarComponents (title) { } ] } + +function sideBarOthers (title) { + return [ + { + title, + collapsable: false, + children: [ + '', + 'css' + ] + } + ] +} diff --git a/docs/zh/others/README.md b/docs/zh/others/README.md new file mode 100644 index 00000000..e21336ef --- /dev/null +++ b/docs/zh/others/README.md @@ -0,0 +1 @@ +# 其它 \ No newline at end of file diff --git a/docs/zh/others/css.md b/docs/zh/others/css.md new file mode 100644 index 00000000..8974e668 --- /dev/null +++ b/docs/zh/others/css.md @@ -0,0 +1,77 @@ +# CSS 工具类 + +## 文字 + +| 类名 | 效果 | +| --- | --- | +| `.d2-text-center` | 文字水平居中 | + +## 浮动 + +| 类名 | 效果 | +| --- | --- | +| `.d2-fl` | 左浮动 | +| `.d2-fr` | 右浮动 | +| `.d2-clearfix` | 清除浮动 | + +## 边距 + +| 类名 | 效果 | +| --- | --- | +| `.d2-m-0` | 外边距 0px | +| `.d2-mt-0` | 上外边距 0px | +| `.d2-mr-0` | 右外边距 0px | +| `.d2-mb-0` | 下外边距 0px | +| `.d2-ml-0` | 左外边距 0px | +| `.d2-p-0` | 内边距 0px | +| `.d2-pt-0` | 上内边距 0px | +| `.d2-pr-0` | 右内边距 0px | +| `.d2-pb-0` | 下内边距 0px | +| `.d2-pl-0` | 左内边距 0px | +| `.d2-m-10` | 外边距 10px | +| `.d2-mt-10` | 上外边距 10px | +| `.d2-mr-10` | 右外边距 10px | +| `.d2-mb-10` | 下外边距 10px | +| `.d2-ml-10` | 左外边距 10px | +| `.d2-p-10` | 内边距 10px | +| `.d2-pt-10` | 上内边距 10px | +| `.d2-pr-10` | 右内边距 10px | +| `.d2-pb-10` | 下内边距 10px | +| `.d2-pl-10` | 左内边距 10px | +| `.d2-m-15` | 外边距 15px | +| `.d2-mt-15` | 上外边距 15px | +| `.d2-mr-15` | 右外边距 15px | +| `.d2-mb-15` | 下外边距 15px | +| `.d2-ml-15` | 左外边距 15px | +| `.d2-p-15` | 内边距 15px | +| `.d2-pt-15` | 上内边距 15px | +| `.d2-pr-15` | 右内边距 15px | +| `.d2-pb-15` | 下内边距 15px | +| `.d2-pl-15` | 左内边距 15px | +| `.d2-m-20` | 外边距 20px | +| `.d2-mt-20` | 上外边距 20px | +| `.d2-mr-20` | 右外边距 20px | +| `.d2-mb-20` | 下外边距 20px | +| `.d2-ml-20` | 左外边距 20px | +| `.d2-p-20` | 内边距 20px | +| `.d2-pt-20` | 上内边距 20px | +| `.d2-pr-20` | 右内边距 20px | +| `.d2-pb-20` | 下内边距 20px | +| `.d2-pl-20` | 左内边距 20px | + +## 边距简写 + +20px 设定为通用边距 可以如下简写 + +| 类名 | 效果 | +| --- | --- | +| `.d2-m` | 外边距 20px | +| `.d2-mt` | 上外边距 20px | +| `.d2-mr` | 右外边距 20px | +| `.d2-mb` | 下外边距 20px | +| `.d2-ml` | 左外边距 20px | +| `.d2-p` | 内边距 20px | +| `.d2-pt` | 上内边距 20px | +| `.d2-pr` | 右内边距 20px | +| `.d2-pb` | 下内边距 20px | +| `.d2-pl` | 左内边距 20px | \ No newline at end of file