{"id":1428,"date":"2014-12-28T12:56:49","date_gmt":"2014-12-28T03:56:49","guid":{"rendered":"http:\/\/www.dream-net.org\/blog\/?p=1428"},"modified":"2014-12-28T12:56:49","modified_gmt":"2014-12-28T03:56:49","slug":"%e3%80%90css%e3%80%91css%e3%81%a7%e7%b0%a1%e5%8d%98%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%9e%e3%82%a4%e3%82%ba%ef%bc%81%e3%81%8d%e3%82%8c%e3%81%84%e3%80%81%e3%81%8b%e3%82%8f%e3%81%84%e3%81%84%e3%80%81","status":"publish","type":"post","link":"https:\/\/dream-net.org\/blog\/?p=1428","title":{"rendered":"\u3010CSS\u3011CSS\u3067\u7c21\u5358\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\uff01\u304d\u308c\u3044\u3001\u304b\u308f\u3044\u3044\u3001\u8efd\u3044SVG\u30a2\u30a4\u30b3\u30f328\u500b\u304c\u304a\u3059\u3059\u3081\uff01"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#CSSCSSSVG28\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010CSS\u3011CSS\u3067\u7c21\u5358\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\uff01\u304d\u308c\u3044\u3001\u304b\u308f\u3044\u3044\u3001\u8efd\u3044SVG\u30a2\u30a4\u30b3\u30f328\u500b\u304c\u304a\u3059\u3059\u3081\uff01<\/a><\/li><li><a href=\"#Optimized_Inline_SVG_Icons\"><span class=\"toc_number toc_depth_1\">2<\/span> Optimized Inline SVG Icons<\/a><\/li><li><a href=\"#1csssass\"><span class=\"toc_number toc_depth_1\">3<\/span> 1.css\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3001sass\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">4<\/span> \uff12.\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">5<\/span> \uff13.\u3053\u306e\u307e\u307e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u306e\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">6<\/span> \uff14.\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">7<\/span> \uff15.\u30b3\u30f3\u30d1\u30a4\u30eb<\/a><\/li><\/ul><\/div>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"CSSCSSSVG28\">\u3010CSS\u3011CSS\u3067\u7c21\u5358\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\uff01\u304d\u308c\u3044\u3001\u304b\u308f\u3044\u3044\u3001\u8efd\u3044SVG\u30a2\u30a4\u30b3\u30f328\u500b\u304c\u304a\u3059\u3059\u3081\uff01<\/span><\/h2>\n<p>\u7f8e\u3057\u3044\u30b0\u30e9\u30c3\u30d5\u30a3\u30af\u304c\u9b45\u529b\u306eSVG\u30a2\u30a4\u30b3\u30f328\u500b\u304c\u30bb\u30c3\u30c8\u306b\u306a\u3063\u305f\u300cOptimized Inline SVG Icons\u300d\u3002JPEG\u3084GIF\u306a\u3069\u306e\u753b\u50cf\u3068\u306f\u9055\u3044\u3001CSS\u30d9\u30fc\u30b9\u306a\u306e\u3067\u3001\u8272\u3084\u30b5\u30a4\u30ba\u306a\u3069\u3001\u7d30\u304b\u306a\u5909\u66f4\u304c\u624b\u8efd\u306b\u3067\u304d\u3001\u3068\u3066\u3082\u4f7f\u3044\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"Optimized_Inline_SVG_Icons\">Optimized Inline SVG Icons<\/span><\/h2>\n<p><a href=\"http:\/\/codepen.io\/ruandre\/pen\/howFi\" target=\"_blank\">http:\/\/codepen.io\/ruandre\/pen\/howFi<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/12\/015.jpg\" \/><\/p>\n<p>\u30e9\u30a4\u30bb\u30f3\u30b9\u306fMIT\u30e9\u30a4\u30bb\u30f3\u30b9\u3002<br \/>\n\u30bd\u30fc\u30b9\u306f\u4e0a\u8a18\u30b5\u30a4\u30c8\u304b\u3089\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3067\u624b\u8efd\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001html\u306f\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u307e\u307e\u4f7f\u3048\u307e\u3059\u304c\u3001css\u306fsass\u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u65b9\u6cd5\u306e\u307f\u3092\u7c21\u5358\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\nsass\u306e\u57fa\u672c\u7684\u306a\u5c0e\u5165\u65b9\u6cd5\u306a\u3069\u306f\u3001<a href=\"http:\/\/www.dream-net.org\/blog\/?p=1035\" target=\"_blank\">\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\u3000\u5c0e\u5165\u7de8<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"1csssass\">1.css\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3001sass\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/span><\/h2>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i\">\uff12.\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/span><\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001koala\uff08<a href=\"http:\/\/koala-app.com\/\" target=\"_blank\">http:\/\/koala-app.com\/<\/a>\uff09\u3092\u4f7f\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3057\u307e\u3059\u3002<br \/>\n\u203bkoala\u306e\u4f7f\u3044\u65b9\u3082\u3001\u4e0a\u8a18\u306e\u5c0e\u5165\u7de8\u306b\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>koala\u3092\u7acb\u3061\u4e0a\u3052\u3001\u3055\u304d\u307b\u3069\u306esass\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u3063\u305f\u30d5\u30a9\u30eb\u30c0\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/12\/025.jpg\" \/><\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-2\">\uff13.\u3053\u306e\u307e\u307e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u306e\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/span><\/h2>\n<p>\u30d5\u30a9\u30eb\u30c0\u540d\u3092\u53f3\u30af\u30ea\u30c3\u30af\uff1e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u5b9a\uff1e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\uff1eFor Compass<br \/>\n\u3053\u3053\u3067\u306fFor Compass\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u304c\u3001\u74b0\u5883\u306b\u5408\u3063\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/12\/035.jpg\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300cconfig.rb\u300d\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/12\/045.jpg\" \/><\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-3\">\uff14.\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b<\/span><\/h2>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u5143\u306esass\u3001\u51fa\u529b\u3059\u308bcss\u3001\u305d\u306e\u4ed6\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\r\nhttp_path = \"\/\"\r\ncss_dir = \"stylesheets\" \/\/\u51fa\u529b\u3059\u308bcss\u306e\u30d1\u30b9\r\nsass_dir = \"sass\" \/\/sass\u306e\u30d1\u30b9\r\nimages_dir = \"images\"\r\njavascripts_dir = \"javascripts\"\r\n<\/pre>\n<p>sass\u30d5\u30a1\u30a4\u30eb\u3092\u300csass\u300d\u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u3066\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u3001\u81ea\u52d5\u3067stylesheets\u30d5\u30a9\u30eb\u30c0\u304c\u4f5c\u6210\u3055\u308c\u3001css\u30d5\u30a1\u30a4\u30eb\u304c\u540c\u6642\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u300cconfig.rb\u300d\u3092\u7de8\u96c6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 style=\"color: #0083b9; background: #fffd73;\"><span id=\"i-4\">\uff15.\u30b3\u30f3\u30d1\u30a4\u30eb<\/span><\/h2>\n<p>\u3042\u3068\u306f\u300c\u30b3\u30f3\u30d1\u30a4\u30eb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n\u751f\u6210\u3055\u308c\u305fcss\u3092HTML\u30d5\u30a1\u30a4\u30eb\u3067\u8aad\u307f\u8fbc\u3081\u3070\u3001svg\u30a2\u30a4\u30b3\u30f3\u304c\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.dream-net.org\/blog\/wp-content\/uploads\/2014\/12\/055.jpg\" \/><\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\u3053\u3061\u3089<br \/>\n\uff08SVGsample\uff1eindex.html\uff09<\/p>\n<p>\u8272\u3084\u30b5\u30a4\u30ba\u3092\u5909\u3048\u305f\u3044\u5834\u5408\u306f\u3001stylesheets>svg.css \u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u305d\u3053\u3092\u5909\u66f4\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u25c6\u4e00\u3064\u76ee\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u5834\u5408<\/p>\n<pre>\r\n .icon-1 { \r\n  color: #d94d26;   fill: #d94d26; \r\n} \r\n.icon-1:hover { \r\n\u3000  background: #d94d26; \r\n}  \r\n<\/pre>\n<p>\u753b\u50cf\u52a0\u5de5\u7528\u306e\u30bd\u30d5\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u305a\u3001\u30b3\u30fc\u30c9\u3092\u5c11\u3057\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u826f\u3044\u306e\u3067\u3001\u624b\u8efd\u3067\u3059\u306d\u3002\u81ea\u5206\u306e\u30b5\u30a4\u30c8\u306b\u5408\u308f\u305b\u3066\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u4f7f\u3063\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u3010CSS\u3011CSS\u3067\u7c21\u5358\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\uff01\u304d\u308c\u3044\u3001\u304b\u308f\u3044\u3044\u3001\u8efd\u3044SVG\u30a2\u30a4\u30b3\u30f328\u500b\u304c\u304a\u3059\u3059\u3081\uff012 Optimized Inline SVG Icons3 1.css\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3001sass\u3068\u3044\u3046\u30d5\u30a1\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1426,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,45,8],"tags":[],"class_list":["post-1428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","category-web","category-8"],"_links":{"self":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1428","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=1428"}],"version-history":[{"count":1,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1428\/revisions"}],"predecessor-version":[{"id":1429,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1428\/revisions\/1429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/1426"}],"wp:attachment":[{"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dream-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}