{"id":2215,"date":"2017-10-24T14:08:44","date_gmt":"2017-10-24T06:08:44","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2215"},"modified":"2017-10-24T14:08:44","modified_gmt":"2017-10-24T06:08:44","slug":"bulma-%e5%ae%9a%e5%88%b6%e5%bc%80%e5%8f%91","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2215","title":{"rendered":"Bulma \u5b9a\u5236\u5f00\u53d1"},"content":{"rendered":"<p>\n\t\u8fd9\u4e2a\u90e8\u5206\u662f\u9ad8\u7ea7\u5185\u5bb9\uff0c\u8bb2\u89e3\u5982\u4f55\u5b9a\u5236 <a href=\"https:\/\/www.xttblog.com\/?tag=Bulma\" name=\"Bulma\" target=\"_blank\" title=\"Bulma\">Bulma<\/a>\uff0c\u4e5f\u5c31\u662f\u4fee\u6539\u9ed8\u8ba4\u6837\u5f0f\u3002<a href=\"https:\/\/www.xttblog.com\/?tag=Bulma\" name=\"Bulma\" target=\"_blank\" title=\"Bulma\">Bulma<\/a> \u91c7\u7528 Sass \u8bed\u6cd5\uff08\u6ce8\u610f\uff0c\u4e0d\u662f Scss \u8bed\u6cd5\uff09\uff0c\u6240\u4ee5\u5b9a\u5236\u7684\u6837\u5f0f\u4e5f\u5fc5\u987b\u4f7f\u7528 SASS\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Bulma \u5b9a\u5236\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201710\/24\/1508812518_647190.png\" style=\"width: 536px;height: 357px\" \/>\n<\/p>\n<p>\n\t\u9996\u5148\uff0c\u514b\u9686\u6216<a href=\"https:\/\/github.com\/jgthms\/bulma\/archive\/master.zip\" target=\"_blank\">\u4e0b\u8f7d<\/a>\u6e90\u7801\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\n$ git clone https:\/\/github.com\/jgthms\/bulma.git<\/pre>\n<p>\n\t\u7136\u540e\uff0c\u5b89\u88c5\u4f9d\u8d56\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\n$ cd bulma\r\n$ npm install<\/pre>\n<p>\n\t\u63a5\u7740\uff0c\u5728\u6e90\u7801\u7684\u6839\u76ee\u5f55\u91cc\u9762\uff0c\u65b0\u5efa\u4e00\u4e2a<code>app.sass<\/code>\u6587\u4ef6\uff0c\u5b9a\u5236\u7684\u4ee3\u7801\u90fd\u5199\u5728\u8fd9\u4e2a\u6587\u4ef6\u3002\u5728\u5b83\u91cc\u9762\uff0c\u5148\u5f15\u5165 <a href=\"https:\/\/www.xttblog.com\/?tag=Bulma\" name=\"Bulma\" target=\"_blank\" title=\"Bulma\">Bulma<\/a>&nbsp;<a href=\"https:\/\/github.com\/jgthms\/bulma\/blob\/master\/sass\/utilities\/initial-variables.sass\" target=\"_blank\">\u57fa\u7840\u53d8\u91cf<\/a>\u3002\u5982\u679c\u9700\u8981\u7684\u8bdd\uff0c\u53ef\u4ee5\u6539\u6389\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\n@import &quot;.\/sass\/utilities\/initial-variables&quot;\r\n\r\n$blue: #72d0eb\r\n$pink: #ffb3b3\r\n$family-serif: &quot;Merriweather&quot;, &quot;Georgia&quot;, serif<\/pre>\n<p>\n\t\u4e0a\u9762\u4ee3\u7801\u4e2d\uff0c\u9884\u8bbe\u7684blue\u3001pink\u548cfamily-serif\u53d8\u91cf\u88ab\u6539\u6389\u3002<br \/>\n\t\u6709\u4e00\u4e9b Bulma \u53d8\u91cf\u662f\u4ece\u57fa\u7840\u53d8\u91cf\u884d\u751f\u7684\uff0c\u9700\u8981\u7684\u8bdd\u4e5f\u53ef\u4ee5\u6539\u6389\u3002\n<\/p>\n<pre class=\"brush:bash;\">\r\n$primary: $pink<\/pre>\n<p>\n\t\u4e0a\u9762\u4ee3\u7801\u4e2d\uff0c\u4e3b\u8272\u8c03\u6539\u6210\u4e86<code>pink<\/code>\u53d8\u91cf\u3002\n<\/p>\n<p>\n\t\u63a5\u7740\uff0c\u5728\u8fd9\u4e2a\u6587\u4ef6\u91cc\u9762\u52a0\u8f7d Bulma \u7684<a href=\"https:\/\/github.com\/jgthms\/bulma\/blob\/master\/bulma.sass\" target=\"_blank\">\u5165\u53e3\u811a\u672c<\/a>\u3002\n<\/p>\n<pre class=\"brush:css;\">\r\n@import &quot;.\/bulma&quot;<\/pre>\n<p>\n\t\u8fd9\u4e00\u884c\u7684\u4e0b\u9762\uff0c\u4f60\u5c31\u53ef\u4ee5\u5199\u81ea\u5df1\u7684\u6837\u5f0f\u4e86\uff0c\u6bd4\u5982\u4e3a\u6240\u6709\u6807\u9898\u52a0\u4e00\u4e2a\u4e0b\u5212\u7ebf\u3002\n<\/p>\n<pre class=\"brush:css;\">\r\n.title {\r\n  text-decoration: underline;\r\n}<\/pre>\n<p>\n\t\u6700\u540e\uff0c\u6253\u5f00package.json\uff0c\u627e\u5230\u4e0b\u9762\u8fd9\u4e00\u884c\u3002\n<\/p>\n<pre class=\"brush:plain;\">\r\n&quot;build-sass&quot;: &quot;node-sass --output-style expanded --source-map true bulma.sass css\/bulma.css&quot;,<\/pre>\n<p>\n\t\u628a\u91cc\u9762\u7684bulma.sass\u6539\u6210app.sass\u3002\n<\/p>\n<pre class=\"brush:plain;\">\r\n&quot;build-sass&quot;: &quot;node-sass --output-style expanded --source-map true app.sass css\/bulma.css&quot;,<\/pre>\n<p>\n\t\u4ee5\u540e\u6bcf\u6b21\u4fee\u6539\u5b8c\u6837\u5f0f\uff0c\u8fd0\u884c\u4e00\u4e0bnpm run build\uff0c\u5c31\u4f1a\u751f\u6210\u81ea\u5df1\u7684\u6837\u5f0f\u8868css\/bulma.css\u4e86\u3002\n<\/p>\n<p>\n\t\u597d\u4e86\u5c31\u8bb2\u5230\u8fd9\u91cc\uff0c\u66f4\u591a\u5185\u5bb9\u8bf7\u79fb\u6b65\u5230\u5b98\u65b9\u8fdb\u884c\u5b66\u4e60\u3002<a href=\"https:\/\/bulma.io\" name=\"bulma\" target=\"_blank\" title=\"bulma\">https:\/\/bulma.io<\/a>\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2215\">Bulma \u5b9a\u5236\u5f00\u53d1<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u90e8\u5206\u662f\u9ad8\u7ea7\u5185\u5bb9\uff0c\u8bb2\u89e3\u5982\u4f55\u5b9a\u5236 Bulma\uff0c\u4e5f\u5c31\u662f\u4fee\u6539\u9ed8\u8ba4\u6837\u5f0f\u3002Bulma \u91c7\u7528 Sass \u8bed\u6cd5\uff08\u6ce8\u610f\uff0c\u4e0d\u662f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1549,814,1551,48],"class_list":["post-2215","post","type-post","status-publish","format-standard","hentry","category-html5","tag-bulma","tag-css3","tag-sass","tag-web"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2215"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2215\/revisions"}],"predecessor-version":[{"id":2216,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2215\/revisions\/2216"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}