{"id":1035,"date":"2014-08-07T00:43:57","date_gmt":"2014-08-06T15:43:57","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=1035"},"modified":"2014-08-07T10:33:37","modified_gmt":"2014-08-07T01:33:37","slug":"%e3%80%90css%e3%80%91scss%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0%e3%82%92%e5%8a%87%e7%9a%84%e3%81%ab%e4%be%bf%e5%88%a9%e3%81%ab%e3%81%99%e3%82%8b%e3%83%84%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=1035","title":{"rendered":"\u3010CSS\u3011SCSS\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5287\u7684\u306b\u4fbf\u5229\u306b\u3059\u308b\u30c4\u30fc\u30eb\u300cCompass\u300d\u3092\u4f7f\u304a\u3046"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#CSSSCSSCompass\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010CSS\u3011SCSS\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5287\u7684\u306b\u4fbf\u5229\u306b\u3059\u308b\u30c4\u30fc\u30eb\u300cCompass\u300d\u3092\u4f7f\u304a\u3046<\/a><\/li><li><a href=\"#Compass\"><span class=\"toc_number toc_depth_1\">2<\/span> \u25a0Compass\u3068\u306f\u30fb\u30fb\u30fb<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">3<\/span> \u25a0\u4f7f\u3044\u65b9<\/a><\/li><li><a href=\"#aCompass\"><span class=\"toc_number toc_depth_1\">4<\/span> a.Compass\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li><a href=\"#b\"><span class=\"toc_number toc_depth_1\">5<\/span> b.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/a><\/li><li><a href=\"#cscss\"><span class=\"toc_number toc_depth_1\">6<\/span> c.scss\u306e\u7de8\u96c6<\/a><\/li><li><a href=\"#d\"><span class=\"toc_number toc_depth_1\">7<\/span> d.\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u65b9\u6cd5<\/a><\/li><li><a href=\"#1\"><span class=\"toc_number toc_depth_1\">8<\/span> 1.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff11\u3000\u30d9\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b<\/a><\/li><li><a href=\"#2CSS\"><span class=\"toc_number toc_depth_1\">9<\/span> 2.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff12\u3000\u81ea\u52d5\u3067CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b<\/a><\/li><li><a href=\"#a\"><span class=\"toc_number toc_depth_1\">10<\/span> a.\u753b\u50cf\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/a><\/li><li><a href=\"#bCSS\"><span class=\"toc_number toc_depth_1\">11<\/span> b.CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210<\/a><\/li><li><a href=\"#bscss\"><span class=\"toc_number toc_depth_1\">12<\/span> b.scss\u306b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0<\/a><\/li><li><a href=\"#c\"><span class=\"toc_number toc_depth_1\">13<\/span> c.\u30b3\u30f3\u30d1\u30a4\u30eb<\/a><\/li><li><a href=\"#3hover\"><span class=\"toc_number toc_depth_1\">14<\/span> 3.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff13\u3000\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u3048\u308b\u3060\u3051\u3067hover\u306b\u5bfe\u5fdc<\/a><\/li><\/ul><\/div>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"CSSSCSSCompass\">\u3010CSS\u3011SCSS\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5287\u7684\u306b\u4fbf\u5229\u306b\u3059\u308b\u30c4\u30fc\u30eb\u300cCompass\u300d\u3092\u4f7f\u304a\u3046<\/span><\/h2>\n<p>\u4ee5\u524d\u3001\u57fa\u790e\u7de8\u3001\u5c0e\u5165\u7de8\u3001\u5b9f\u8df5\u7de8\u306e\uff13\u56de\u306b\u308f\u305f\u3063\u3066\u3054\u7d39\u4ecb\u3057\u305f\u3010CSS\u3011\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u8d85\u7d76\u65e9\u304f\u306a\u308b\uff01Sass\uff08SCSS\uff09\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\uff01\u3067\u306f\u3001Sass\u3092\u6d3b\u7528\u3057\u3066\u52b9\u7387\u7684\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u65b9\u6cd5\u3092\u304a\u4f1d\u3048\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3055\u3089\u306b\u3001Compass\u3092\u4f7f\u7528\u3057\u3066\u3001Sass\u3092\u3055\u3089\u306b\u5f37\u529b\u306b\u3001\u3082\u3063\u3068\u4fbf\u5229\u306b\u4f7f\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"Compass\">\u25a0Compass\u3068\u306f\u30fb\u30fb\u30fb<\/span><\/h2>\n<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u4f5c\u3089\u308c\u3066\u3044\u308bCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002\u3088\u304f\u4f7f\u3046Mixin\u304c\u3059\u3067\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u7c21\u5358\u306bscss\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/012.jpg\" alt=\"Compass\" \/><\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"i\">\u25a0\u4f7f\u3044\u65b9<\/span><\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306fMac\u306e\u5834\u5408\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3001Win\u306a\u3089\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f7f\u3044\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u3067\u306e\u64cd\u4f5c\u306b\u62b5\u6297\u304c\u3042\u308b\u65b9\u3082\u3044\u307e\u3059\u304c\u3001\u9ed2\u753b\u9762\u3092\u4f7f\u3046\u306e\u306f\u6700\u521d\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u306e\u307f\u3067\u3059\u306e\u3067\u3001\u305c\u3072\u6311\u6226\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"aCompass\">a.Compass\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/h2>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3001\u3082\u3057\u304f\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002Compass\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<br \/>\ngem install compass<br \/>\n\u4e0b\u306f\u3001Mac\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u5834\u5408\u306e\u753b\u9762\u3067\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/022.jpg\" alt=\"Compass\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" \/><\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"b\">b.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/span><\/h2>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u307e\u305f\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u3001scss\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3044\u5834\u6240\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>cd \uff08\u534a\u89d2\u30b9\u30da\u30fc\u30b9\uff09\u306e\u5f8c\u306b\u3001\u30d5\u30a9\u30eb\u30c0\u307e\u3067\u306e\u30d1\u30b9\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u9762\u5012\u306a\u5834\u5408\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u3092\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3057\u3087\u3046\u3002\u30d1\u30b9\u304c\u81ea\u52d5\u7684\u306b\u5165\u529b\u3055\u308c\u307e\u3059\u3002<br \/>\nEnter\uff08return\uff09\u3092\u62bc\u3059\u3068\u8a72\u5f53\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3059\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>compass create \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001SCSStest\u3068\u3044\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/032.jpg\" alt=\"SCSStest\" \/><br \/>\n\u3053\u308c\u3067\u3001SCSStest\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u81ea\u52d5\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u5143\u306b \u7de8\u96c6\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>config.rb<br \/>\nsass<br \/>\n\u2514 ie.scss<br \/>\n\u2514 print.scss \u3000<br \/>\n\u2514 screen.scss<br \/>\nstylesheets \u3000<br \/>\n\u2514 ie.css \u3000<br \/>\n\u2514 print.css \u3000<br \/>\n\u2514 screen.css<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"cscss\">c.scss\u306e\u7de8\u96c6<\/span><\/h2>\n<p>\u7de8\u96c6\u3092\u884c\u3044\u305f\u3044css\u3092\u958b\u304d\u307e\u3059\u3002<br \/>\n\u30b3\u30e1\u30f3\u30c8\u304c\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u76f4\u4e0b\u3067Compass\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>@import &#8220;compass&#8221;; <\/p>\n<p>\u3053\u308c\u3067\u3001Compass\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\nscss\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"d\">d.\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u65b9\u6cd5<\/span><\/h2>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u7b49\u306e\u30b3\u30de\u30f3\u30c9\u3067\u884c\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u5c0e\u5165\u7de8\u3067\u305b\u3063\u304b\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fkoala\u3092\u4f7f\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u3001Koala\u3092Compass\u306b\u5bfe\u5fdc\u3055\u305b\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\nKoala\u306e\u5de6\u4e0a\u306b\u3042\u308b\u6b6f\u8eca\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3002\u8a2d\u5b9a\u753b\u9762\u306e\u5de6\u4e0a\u304b\u3089\uff13\u756a\u76ee\u306e\u300cSaas\u300d\u3067\u3001\u300cDefault Options\u300d\u306e\u300cCompass Mode\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001Koala\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/042.jpg\" alt=\"\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u65b9\u6cd5\" \/><br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u300cCompass Mode\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3002Output Style\u3082\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\ncompile\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001stylesheets\u30d5\u30a9\u30eb\u30c0\u306ecss\u304c\u4e0a\u66f8\u304d\u3001\u3082\u3057\u304f\u306f\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001Compass\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u5b9f\u969b\u306b\u4f53\u611f\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"1\">1.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff11\u3000\u30d9\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u66f8\u304f\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b<\/span><\/h2>\n<p>\u307e\u305a\u306f\u30c6\u30b9\u30c8\u3068\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\r\n\/*scss*\/\r\n.box{ \t\r\n@include background(linear-gradient(white, gray));     @include opacity(.2); \t\r\n@include inline-block; \r\n}\r\n<\/pre>\n<p>\/*\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306ecss*\/<\/p>\n<pre>\r\n.box {   \r\nbackground: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #808080));\r\nbackground: -webkit-linear-gradient(#ffffff, #808080);\r\nbackground: -moz-linear-gradient(#ffffff, #808080);\r\nbackground: -o-linear-gradient(#ffffff, #808080);\r\nbackground: linear-gradient(#ffffff, #808080);   \r\nfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=20);\r\nopacity: 0.2;\r\ndisplay: -moz-inline-stack;\r\ndisplay: inline-block;\r\nvertical-align: middle;\r\n*vertical-align: auto;\r\nzoom: 1;\r\n*display: inline; \r\n} \r\n<\/pre>\n<p>\u5148\u307b\u3069\u306e\uff13\u884c\u306escss\u3067\u3001\u305a\u3089\u305a\u3089\u3068\u30d9\u30f3\u30c0\u30fc\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u66f8\u304d\u51fa\u3055\u308c\u307e\u3057\u305f\uff01<br \/>\n\u3055\u3089\u306b\u3001CSS\u30cf\u30c3\u30af\u3067\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u5fdc\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4ed6\u306b\u3082\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306aMixin\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001@include\u3059\u308b\u3060\u3051\u3067\u591a\u304f\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u5fdc\u3057\u305fCSS\u3092\u5410\u304d\u51fa\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u30fbBackground Size<br \/>\n\u30fbBox Shadow<br \/>\n\u30fbFont Face<br \/>\n\u30fbImages<br \/>\n\u30fbTrancform<\/p>\n<p>\u3053\u306e\u4ed6\u306b\u3082\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u8a73\u3057\u304f\u306f\u516c\u5f0f\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u3054\u89a7\u4e0b\u3055\u3044\u3002<br \/>\n\uff08<a href=\"http:\/\/compass-style.org\/reference\/compass\/\" target=\"_blank\">http:\/\/compass-style.org\/reference\/compass\/<\/a>\uff09<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"2CSS\">2.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff12\u3000\u81ea\u52d5\u3067CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b<\/span><\/h2>\n<p>CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306f\u3001\u7d30\u304b\u3044\u753b\u50cf\u3092\uff11\u679a\u306b\u307e\u3068\u3081\u3001CSS\u3067\u80cc\u666f\u753b\u50cf\u306b\u8a2d\u5b9a\u3057\u8868\u793a\u4f4d\u7f6e\u3092\u8abf\u6574\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6e1b\u3089\u3057\u3001\u304b\u304b\u308b\u8ca0\u8377\u3092\u4e0b\u3052\u3088\u3046\u3068\u3044\u3046\u76ee\u7684\u3067\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u4f5c\u696d\u306fPhotoshop\u3084Fireworks\u3092\u5229\u7528\u3057\u3066\u3082\u624b\u9593\u304c\u304b\u304b\u308b\u3082\u306e\u3002<br \/>\n\u3057\u304b\u3057Compass\u306f\u305d\u306e\u624b\u9593\u3092\u89e3\u6d88\u3057\u3001\u81ea\u52d5\u3067\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u4f5c\u6210\u3059\u308b\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"a\">a.\u753b\u50cf\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/span><\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\u969b\u3001\u81ea\u52d5\u3067\u751f\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b<br \/>\nconfig.rb<br \/>\n\u3068\u3044\u3046\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306a\u3069\u3067\u958b\u304d\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001css\u3001images\u3001sass\u3001javascript\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\n# Set this to the root of your project when deployed:\r\nhttp_path = \"\/\"\r\ncss_dir = \"stylesheets\"\r\nsass_dir = \"sass\"\r\nimages_dir = \"images\"\r\njavascripts_dir = \"javascripts\"\r\n<\/pre>\n<p>\u753b\u50cf\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306fimages\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001SCSStest\u76f4\u4e0b\u306bimages\u3068\u3044\u3046\u753b\u50cf\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"bCSS\">b.CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210<\/span><\/h2>\n<p>\u4eca\u56de\u306f\u4eee\u306b\u3001&#8221;right.png&#8221;\u3001&#8221;center.png&#8221;\u3001&#8221;left.png&#8221;\u306e\uff13\u3064\u306e\u753b\u50cf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u753b\u50cf\u3092\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fimages\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u4efb\u610f\u306e\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u308a\u3001\u305d\u306e\u4e2d\u306b\u5165\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u306f&#8221;controll&#8221;\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u307e\u3057\u305f\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/051.jpg\" alt=\"CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210\" \/><br \/>\nright.png<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/06.jpg\" alt=\"CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210\" \/><br \/>\ncenter.png<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/07.jpg\" alt=\"CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210\" \/><br \/>\nleft.png<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/08.jpg\" alt=\"CSS\u30b9\u30d7\u30e9\u30a4\u30c8\u306b\u3057\u305f\u3044\u753b\u50cf\u3092\u4f5c\u6210\" \/><\/p>\n<h2 style=\"color: #0083b9;\"><span id=\"bscss\">b.scss\u306b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0<\/span><\/h2>\n<pre>\r\n\/*scss*\/\r\n@import \"compass\";\u3000\/*compass\u3092\u30a4\u30f3\u30dd\u30fc\u30c8*\/\r\n@import \"controll\/*.png\";   \/* @import \u201c\u30d5\u30a9\u30eb\u30c0\u30d1\u30b9\/*.png\u201d; *\/\r\n@include all-controll-sprites; \/* @include all-\u30d5\u30a9\u30eb\u30c0\u540d-sprites; *\/\r\n<\/pre>\n<h2 style=\"color: #0083b9;\"><span id=\"c\">c.\u30b3\u30f3\u30d1\u30a4\u30eb<\/span><\/h2>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u3001\u5148\u307b\u3069\u7528\u610f\u3057\u305f\uff13\u3064\u306e\u753b\u50cf\u304c\u52dd\u624b\u306b\u304f\u3063\u3064\u3044\u3066\u3001\uff11\u679a\u753b\u50cf\u3068\u3057\u3066\u751f\u6210\u3055\u308c\u307e\u3057\u305f\uff01<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/09.jpg\" alt=\"\u30b3\u30f3\u30d1\u30a4\u30eb\" \/><\/p>\n<pre>\r\n\/*\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306ecss*\/\r\n.controll-sprite, .controll-center, .controll-let, .controll-right {\r\nbackground:url('\/images\/controll-sbcacb84c81.png')no-repeat; \r\n}\r\n.controll-center {\r\nbackground-position: 0 -20px; \r\n} \r\n.controll-let {   \r\nbackground-position: 0 0; \r\n} .controll-right {   \r\nbackground-position: 0 -10px; \r\n}\r\n<\/pre>\n<p>\u3042\u3068\u306fHTML\u5074\u3067\u3053\u306e\u30af\u30e9\u30b9\u540d\u3092\u4f7f\u3048\u3070OK\u3002<br \/>\n\u7c21\u5358\u3067\u3059\u306d\uff01<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"3hover\">3.\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff13\u3000\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u3048\u308b\u3060\u3051\u3067hover\u306b\u5bfe\u5fdc<\/span><\/h2>\n<p>\u5148\u307b\u3069\u306e\u30b9\u30d7\u30e9\u30a4\u30c8\u7528\u753b\u50cf\u306b\u3001hover\u7528\u306e\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u3001\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306b&#8221;right_hover.png&#8221;\u306e\u3088\u3046\u306bhover\u3092\u4ed8\u3051\u3066\u304a\u304f\u3060\u3051\u3067\u3001\u300c:hover\u300d\u306b\u5bfe\u5fdc\u3057\u305fCSS\u3082\u81ea\u52d5\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n<img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/08\/10.jpg\" alt=\"\u30e1\u30ea\u30c3\u30c8\u305d\u306e\uff13\" \/><br \/>\nscss\u306e\u30b3\u30fc\u30c9\u306f\u5148\u307b\u3069\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre>\r\n\/*\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306ecss*\/\r\n.controll-sprite, .controll-center, .controll-left, .controll-right {   \r\nbackground:url('\/images\/controll-sdab9fb68f6.png') no-repeat; \r\n}  \r\n.controll-center {   \r\nbackground-position: 0 -400px; \r\n} \r\n.controll-center:hover, .controll-center.center_hover, .controll-center.center-hover {   \r\nbackground-position: 0 -500px; \r\n} \r\n.controll-left {   \r\nbackground-position: 0 0; \r\n} \r\n.controll-left:hover, .controll-left.left_hover, .controll-left.left-hover {   \r\nbackground-position: 0 -100px; \r\n} \r\n.controll-right {   \r\nbackground-position: 0 -200px; \r\n} \r\n.controll-right:hover, .controll-right.right_hover, .controll-right.right-hover {   \r\nbackground-position: 0 -300px; \r\n} \r\n<\/pre>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u4eca\u56de\u306f\u4e3b\u306a\u30e1\u30ea\u30c3\u30c8\uff13\u3064\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4f7f\u3044\u3053\u306a\u3057\u3066\u3044\u3051\u3070\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u5927\u5e45\u306b\u52b9\u7387\u30a2\u30c3\u30d7\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u3010CSS\u3011SCSS\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u5287\u7684\u306b\u4fbf\u5229\u306b\u3059\u308b\u30c4\u30fc\u30eb\u300cCompass\u300d\u3092\u4f7f\u304a\u30462 \u25a0Compass\u3068\u306f\u30fb\u30fb\u30fb3 \u25a0\u4f7f\u3044\u65b94 a.Compass\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb5 b.\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u62106 c.scs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1034,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,45],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-web"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":1,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1036"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/1034"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}