{"id":5639,"date":"2018-07-08T20:12:53","date_gmt":"2018-07-08T11:12:53","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=5639"},"modified":"2023-05-27T18:29:20","modified_gmt":"2023-05-27T09:29:20","slug":"%e3%80%90css%e3%80%91scss%e3%81%a8%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=5639","title":{"rendered":"\u3010CSS\u3011\u4eca\u8a71\u984c\u306e\u300cSass(\u30b5\u30b9)\u300d\u3084\u300cLESS(\u30ec\u30b9)\u300d\u3068\u306f\uff1f"},"content":{"rendered":"<h2>Sass\u3084LESS\u3068\u306f\uff1f<\/h2>\n<p>CSS\u306f\u3001CSS3\u306b\u306a\u3063\u3066\u683c\u6bb5\u306b\u899a\u3048\u308b\u3053\u3068\u304c\u5897\u3048\u307e\u3057\u305f\u304c\u3001Sass\u306f\u3001CSS\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u624b\u9593\u3092\u6e1b\u3089\u3057\u3066\u697d\u3092\u3057\u3088\u3046\u3068\u3044\u3046\u601d\u60f3\u3067\u4f5c\u3089\u308c\u305fCSS\u306e\u62e1\u5f35\u8a00\u8a9e\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u7279\u5fb4\u3068\u3057\u3066\u306f\u3042\u304f\u307e\u3067CSS\u3092\u4fbf\u5229\u306b\u4f5c\u6210\u3059\u308b\u8a00\u8a9e\u3068\u3044\u3046\u4f4d\u7f6e\u3065\u3051\u3067\u3042\u308a\u3001\u5b9f\u969b\u306b\u30da\u30fc\u30b8\u3067Sass\u304c\u305d\u306e\u307e\u307e\u4f7f\u308f\u308c\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001<span style=\"color: #ff0000;\"><strong>\u6700\u7d42\u7684\u306a\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3068\u3057\u3066\u306f\u901a\u5e38\u306eCSS\u306b\u306a\u308b<\/strong><\/span>\u3068\u3044\u3046\u3053\u3068\u306f\u7406\u89e3\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<h2>Sass\u304c\u751f\u307e\u308c\u305f\u80cc\u666f<\/h2>\n<h3>Web\u30b5\u30a4\u30c8\u306e\u30ea\u30c3\u30c1\u5316\u306b\u3088\u308bCSS\u518d\u5229\u7528\u306e\u9700\u8981\u304c\u9ad8\u307e\u3063\u305f\u305f\u3081\u3002<\/h3>\n<p>\u5143\u3005CSS\u81ea\u4f53\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u77e5\u8b58\u304c\u306a\u304f\u3066\u3082\u6271\u3048\u308b\u3088\u3046\u306b\u304b\u306a\u308a\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u6587\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u6700\u8fd1\u306f\u30ea\u30c3\u30c1\u5316\u3001\u5927\u898f\u6a21\u5316\u3001\u8907\u96d1\u5316\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u3002\uff08\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u5b9f\u884c\u306a\u3069\u3001CSS3\u306b\u3088\u308b\u9ad8\u6a5f\u80fd\u5316\uff09\u3001CSS\u306b\u3082\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u3084\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u306a\u3069\u306e\u9700\u8981\u304c\u751f\u307e\u308c\u3066\u304d\u305f\u305f\u3081\u3067\u3059\u3002<\/p>\n<h2>\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8<\/h2>\n<table>\n<tbody>\n<tr>\n<th>\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<th>\u30ea\u30ea\u30fc\u30b9\u6642\u671f<\/th>\n<th>\u5099\u8003<\/th>\n<\/tr>\n<tr>\n<td>1.0<\/td>\n<td>\u304a\u305d\u3089\u304f2006\u5e74\u3054\u308d<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2.0<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>3.0<\/td>\n<td>\u304a\u305d\u3089\u304f2013\u5e74\u3054\u308d<\/td>\n<td>\u30fbCSS\u3068\u4f3c\u305f\u8a18\u6cd5\u3067\u8a18\u8ff0\u3067\u304d\u308bSCSS\u8a18\u6cd5\u304c\u5c0e\u5165\u3055\u308c\u305f\u3002\uff08\u305d\u308c\u4ee5\u524d\u306fSass\u8a18\u6cd5\u306e\u307f\u3060\u3063\u305f\uff09\u3001\u3053\u308c\u306b\u3088\u308a\u5229\u7528\u8005\u304c\u5897\u3048\u3066\u4e00\u6c17\u306b\u666e\u53ca\u3057\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<td>3.3<\/td>\n<td>2013\u5e7410\u6708<\/td>\n<td>\u300c@at-root\u300d\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3002<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u306a\u304a\u3001\u7d14\u6b63\u306esass\u306fruby\u88fd\u3057\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u30012015\u5e74\u3054\u308d\u304b\u3089C++\u3067\u958b\u767a\u3055\u308c\u305flibSass\u304c\u3067\u304d\u3066node\u74b0\u5883\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\uff08\u306a\u304a\u30012020\u5e74\u4ee5\u964d\u306f\u300clibSass\u300d\u306f\u975e\u63a8\u5968\u3068\u306a\u3063\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u300cDartSass\u300d\u3092\u4f7f\u3046\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\uff09<\/p>\n<h2>Sass\u306e\u69cb\u6587\u306e\u7a2e\u985e<\/h2>\n<p>Sass\u306b\u306f\u3001\u69cb\u6587\u306b\u3088\u3063\u3066\u4e0b\u8a18\u306e2\u7a2e\u985e\u306b\u5206\u304b\u308c\u307e\u3059\u3002\u3069\u3061\u3089\u306e\u69cb\u6587\u3067\u66f8\u304b\u308c\u305f\u3068\u3057\u3066\u3082\u76f8\u4e92\u306b\u5909\u63db\u3084\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>\u69cb\u6587<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>SCSS(Sassy CSS)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Saas(\u30a4\u30f3\u30c7\u30f3\u30c8\u69cb\u6587)<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Sass\u3067\u3067\u304d\u308b\u3053\u3068<\/h2>\n<h3>\u30d5\u30a1\u30a4\u30eb\u3092\u307e\u3068\u3081\u308b<\/h3>\n<p>\u958b\u767a\u6642\u306f\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u65b9\u304c\u697d\u3060\u304c\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u6291\u3048\u308b\u305f\u3081\u306b\u3067\u304d\u308b\u3060\u3051\u516c\u958b\u6642\u306f1\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u3044\u3046\u8981\u671b\u306b\u5fdc\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5225\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u304c\u3067\u304d\u308b\u3002<\/h3>\n<p>\u300c@import\u300d\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3068\u3044\u3046\u69cb\u6587\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u5225\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5909\u6570\u3092\u4f7f\u3046\u3002<\/h3>\n<p>\u300c$\u300d\u3092\u5148\u982d\u306b\u3064\u3051\u308b\u3053\u3068\u3067\u3001\u5909\u6570\u5ba3\u8a00\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u5909\u66f4\u306b\u5f37\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5ba3\u8a00\u30d6\u30ed\u30c3\u30af\u306e\u30cd\u30b9\u30c8\u304c\u3067\u304d\u308b\u3002<\/h3>\n<h3>Mixins<\/h3>\n<p>\u95a2\u6570\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u5916\u51fa\u3057\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u7d99\u627f\u304c\u3067\u304d\u308b\u3002<\/h3>\n<p>\u300c@extend\u300d\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u7d99\u627f\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>LESS\u306e\u7279\u5fb4<\/h2>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3001Sass\u3068\u307b\u307c\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u300cSaas\u300d\u306b\u6bd4\u3079\u308b\u3068\u5c11\u3057\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u8ff0\u65b9\u6cd5\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b66\u7fd2\u30b3\u30b9\u30c8\u306b\u305d\u308c\u307b\u3069\u5dee\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Sass\u3084LESS\u3068\u306f\uff1f CSS\u306f\u3001CSS3\u306b\u306a\u3063\u3066\u683c\u6bb5\u306b\u899a\u3048\u308b\u3053\u3068\u304c\u5897\u3048\u307e\u3057\u305f\u304c\u3001Sass\u306f\u3001CSS\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u624b\u9593\u3092\u6e1b\u3089\u3057\u3066\u697d\u3092\u3057\u3088\u3046\u3068\u3044\u3046\u601d\u60f3\u3067\u4f5c\u3089\u308c\u305fCSS\u306e\u62e1\u5f35\u8a00\u8a9e\u306e\u3053\u3068\u3067\u3059\u3002 \u307e\u305f\u3001\u7279\u5fb4\u3068\u3057\u3066\u306f\u3042\u304f\u307e\u3067CS [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[64],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5639"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5639"}],"version-history":[{"count":12,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5639\/revisions"}],"predecessor-version":[{"id":20145,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/5639\/revisions\/20145"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5639"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}