forked from p96170835/amis
83 lines
49 KiB
JavaScript
83 lines
49 KiB
JavaScript
|
define('docs/style.md', function(require, exports, module) {
|
||
|
|
||
|
module.exports = {
|
||
|
"title": "样式表说明",
|
||
|
"shortname": "style",
|
||
|
"html": "<p>amis 中有大量的功能类 class 可以使用,即可以用在 schema 中,也可以用在自定义组件开发中,掌握这些 class, 几乎可以不用写样式。</p>\n<p>amis 中的样式基于 <a href=\"http://getbootstrap.com/css/\">BootStrap V3</a>, 这里主要讲 Bootstrap 中没有涉及到的。</p>\n<h2><a class=\"anchor\" name=\"%E5%9B%BE%E6%A0%87\" href=\"#%E5%9B%BE%E6%A0%87\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>图标</h2><p>amis 集成了 <a href=\"http://fontawesome.io/icons/\">fontawesome</a>,所以关于图标部分,请前往 <a href=\"http://fontawesome.io/icons/\">fontawesome</a> 查看。</p>\n<h2><a class=\"anchor\" name=\"%E5%B8%83%E5%B1%80\" href=\"#%E5%B8%83%E5%B1%80\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>布局</h2><p>水平布局可以考虑用 Bootstrap 的 <a href=\"http://getbootstrap.com/css/#grid\">Grids</a> 或者用 <code>hobx</code> 加 <code>col</code></p>\n<div class=\"amis-doc\"><div class=\"preview\"><div class=\"hbox b-a\">\n <div class=\"col wrapper-sm bg-success\">Col A</div>\n <div class=\"col wrapper-sm bg-info\">Col B</div>\n <div class=\"col wrapper-sm bg-danger\">Col C</div>\n</div>\n</div><pre><code class=\"lang-html\"><<span class=\"hljs-keyword\">div</span> <span class=\"hljs-built_in\">class</span>=<span class=\"hljs-string\">\"hbox b-a\"</span>>\n <<span class=\"hljs-keyword\">div</span> <span class=\"hljs-built_in\">class</span>=<span class=\"hljs-string\">\"col wrapper-sm bg-success\"</span>>Col A</<span class=\"hljs-keyword\">div</span>>\n <<span class=\"hljs-keyword\">div</span> <span class=\"hljs-built_in\">class</span>=<span class=\"hljs-string\">\"col wrapper-sm bg-info\"</span>>Col B</<span class=\"hljs-keyword\">div</span>>\n <<span class=\"hljs-keyword\">div</span> <span class=\"hljs-built_in\">class</span>=<span class=\"hljs-string\">\"col wrapper-sm bg-danger\"</span>>Col C</<span class=\"hljs-keyword\">div</span>>\n</<span class=\"hljs-keyword\">div</span>>\n</code></pre></div>\n<h2><a class=\"anchor\" name=\"%E5%AE%BD%E9%AB%98\" href=\"#%E5%AE%BD%E9%AB%98\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>宽高</h2><pre><code class=\"lang-css\"><span class=\"hljs-selector-class\">.w-1x</span> {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">1em</span>;\n}\n<span class=\"hljs-selector-class\">.w-2x</span> {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">2em</span>;\n}\n<span class=\"hljs-selector-class\">.w-3x</span> {\n <span class=\"hljs-attribute\">width</span>: <span class=\"hljs-number\">3em</span>;\n}\n<span class=\"hljs-selector-class\">.w-x
|
||
|
"toc": {
|
||
|
"label": "目录",
|
||
|
"type": "toc",
|
||
|
"children": [
|
||
|
{
|
||
|
"label": "图标",
|
||
|
"fragment": "%E5%9B%BE%E6%A0%87",
|
||
|
"fullPath": "#%E5%9B%BE%E6%A0%87",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "布局",
|
||
|
"fragment": "%E5%B8%83%E5%B1%80",
|
||
|
"fullPath": "#%E5%B8%83%E5%B1%80",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "宽高",
|
||
|
"fragment": "%E5%AE%BD%E9%AB%98",
|
||
|
"fullPath": "#%E5%AE%BD%E9%AB%98",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "外边距",
|
||
|
"fragment": "%E5%A4%96%E8%BE%B9%E8%B7%9D",
|
||
|
"fullPath": "#%E5%A4%96%E8%BE%B9%E8%B7%9D",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "内边距",
|
||
|
"fragment": "%E5%86%85%E8%BE%B9%E8%B7%9D",
|
||
|
"fullPath": "#%E5%86%85%E8%BE%B9%E8%B7%9D",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "边框",
|
||
|
"fragment": "%E8%BE%B9%E6%A1%86",
|
||
|
"fullPath": "#%E8%BE%B9%E6%A1%86",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "圆角",
|
||
|
"fragment": "%E5%9C%86%E8%A7%92",
|
||
|
"fullPath": "#%E5%9C%86%E8%A7%92",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "字体相关",
|
||
|
"fragment": "%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3",
|
||
|
"fullPath": "#%E5%AD%97%E4%BD%93%E7%9B%B8%E5%85%B3",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "定位",
|
||
|
"fragment": "%E5%AE%9A%E4%BD%8D",
|
||
|
"fullPath": "#%E5%AE%9A%E4%BD%8D",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "背景",
|
||
|
"fragment": "%E8%83%8C%E6%99%AF",
|
||
|
"fullPath": "#%E8%83%8C%E6%99%AF",
|
||
|
"level": 2
|
||
|
},
|
||
|
{
|
||
|
"label": "其他",
|
||
|
"fragment": "%E5%85%B6%E4%BB%96",
|
||
|
"fullPath": "#%E5%85%B6%E4%BB%96",
|
||
|
"level": 2
|
||
|
}
|
||
|
],
|
||
|
"level": 0
|
||
|
}
|
||
|
};
|
||
|
|
||
|
});
|