
{"id":7331,"date":"2019-06-07T09:14:20","date_gmt":"2019-06-07T00:14:20","guid":{"rendered":"https:\/\/tetraup.com\/news_topics\/archives\/7331"},"modified":"2024-09-02T15:13:42","modified_gmt":"2024-09-02T06:13:42","slug":"sass-benefits-and-differences","status":"publish","type":"post","link":"https:\/\/tetraup.com\/news_topics\/column\/sass-benefits-and-differences\/","title":{"rendered":"\u3010CSS\u3011Sass\u306b\u66ff\u3048\u3066\u611f\u3058\u305f\u30e1\u30ea\u30c3\u30c8\u3084\u9055\u30443\u9078"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"700\" src=\"https:\/\/tetraup.com\/news_topics\/wp-content\/uploads\/2019\/06\/\u5927\u4eba\u958b\u767a\u7cfb\u30c6\u30f3\u30d7\u30ec-980700-28.png\" alt=\"\" class=\"wp-image-9165\"\/><\/figure>\n\n\n\n<p>\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u307f\u306a\u3055\u3093\u3082\u3001\u305d\u3046\u3067\u306a\u3044\u307f\u306a\u3055\u3093\u3082\u3053\u3093\u306b\u3061\u306f\u3002<\/p>\n\n\n\n<p>\u7a81\u7136\u3067\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u6642\u3069\u306e\u3088\u3046\u306aCSS\u306e\u30e1\u30bf\u8a00\u8a9e\u3092\u304a\u4f7f\u3044\u3067\u3059\u304b\uff1f<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u73fe\u4ee3\u306e\u4e3b\u6d41\u306f\u3001<strong>Less<\/strong>\u3068<strong>Sass<\/strong>(Sass\/Scss)\u3068\u3044\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u7b46\u8005\u3082<strong>Sass\u3092\u611b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u305d\u3093\u306aSass\u306b\u5207\u308a\u66ff\u3048\u3066\u304b\u3089\u7b46\u8005\u304c\u611f\u3058\u305f\u70b9\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Sass\u306e\u5c0e\u5165\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u2193<\/p>\n\n\n\n<a href=\"http:\/\/tetraup.com\/feed\/programming\/how-to-sass\/\">\u3010\u307e\u3060\u5c0e\u5165\u3057\u306a\u3044\u306e\uff1f\u3011Sass\u306e\u9b45\u529b\u3092\u9685\u3005\u307e\u3067\u6559\u3048\u307e\u3059<\/a>\n\n\n\n<p>\u3000\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u306a\u3069\u3067\u5909\u6570\u6a5f\u80fd\u304c\u6d3b\u304d\u308b<\/h2>\n\n\n\n<p>Sass\u3067\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-very-light-gray-color has-very-dark-gray-background-color has-text-color has-background\">$\u25cb\u25cb\u25cb:\u25b3\u25b3\u25b3;\u3000(\u3069\u3061\u3089\u3082\u4efb\u610f)<\/pre>\n\n\n\n<p>\u306e\u3088\u3046\u306b\u6700\u521d\u306b\u300c<strong>$<\/strong>\u300d\u3092\u3064\u3051\u308b\u3068\u5909\u6570\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u8a18\u61b6\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3053\u306e\u6a5f\u80fd\u304c\u6d3b\u8e8d\u3059\u308b\u306e\u304c\u3001<strong class=\"marker\">\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p>#fff\u3084#333\u306a\u3069\u3001\u5358\u7d14\u306a\u30b3\u30fc\u30c9\u306e\u8272\u3067\u3042\u308c\u3070\u305d\u308c\u307b\u3069\u624b\u9593\u306f\u304b\u304b\u308a\u307e\u305b\u3093\u304c\u3001<\/p>\n\n\n\n<p>\u81ea\u5206\u3067\u6c7a\u5b9a\u3057\u305f\u8907\u96d1\u306a\u30ab\u30e9\u30fc\u30b3\u30fc\u30c9\u3067\u3042\u308b\u3068\u6bce\u56de\u30b3\u30d4\u30da\u3057\u3066\u2026\u3068\u3044\u3046\u306e\u306f\u9762\u5012\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u6642\u306b\u4f8b\u3048\u3070\u3001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"$orange:#FFB443\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">$orange<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #569CD6\">#FFB443<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u5909\u6570<strong>orange<\/strong>\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"color:$orange\n\n\/* \u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c *\/\ncolor:#FFB443\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #9CDCFE\">$orange<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/* \u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c *\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">color<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #569CD6\">#FFB443<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u5909\u6570\u306e\u3044\u3044\u3068\u3053\u308d\u304c\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u5411\u4e0a\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5909\u6570\u306b\u683c\u7d0d\u3059\u308c\u3070\u3001#FFB443\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u7b87\u6240\u3092\u4e00\u6c17\u306b\u5909\u66f4\u3057\u305f\u3044\u6642\u3082<strong class=\"marker\">\u4fee\u6b63\u304c\u4e00\u7b87\u6240\uff08\u5909\u6570\u306e\u8a18\u8ff0\uff09\u3060\u3051\u3067\u3059\u307f\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">@mixin\u3092\u7528\u3044\u305f\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6(\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea)\u8a2d\u5b9a<\/h2>\n\n\n\n<p>mixin\u3068\u306f\u3001<strong>@mixin \u00d7\u00d7<\/strong>(\u95a2\u6570\u540d\u306e\u3088\u3046\u306a\u3082\u306e)\u3068\u4e00\u5ea6\u8a18\u8ff0\u3059\u308c\u3070\u3001<\/p>\n\n\n\n<p>\u4f55\u56de\u3067\u3082<strong>@include \u00d7\u00d7<\/strong>\u3067<strong class=\"marker\">@mixin\u3067\u8a18\u8ff0\u3057\u305fCSS\u3092\u5f15\u7528\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3057\u304b\u3082\u3001<strong class=\"marker\">\u5f15\u6570\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u4f7f\u3044\u3053\u306a\u305b\u308c\u3070<strong>\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u4ee3\u8868\u7684\u306amixin\u306e\u4f7f\u3044\u65b9\u3068\u3057\u3066\u3054\u7d39\u4ecb\u3057\u305f\u3044\u306e\u304c\u3001<\/p>\n\n\n\n<p><strong>\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3092include\u3067\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u4f8b\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306bmixin\u3092\u5b9a\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"@mixin pc{\n  @media (min-width:(800px)) {\n    @content;\n  }\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C586C0\">@mixin<\/span><span style=\"color: #D4D4D4\"> pc{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #C586C0\">@media<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">min-width<\/span><span style=\"color: #D4D4D4\">:(<\/span><span style=\"color: #B5CEA8\">800px<\/span><span style=\"color: #D4D4D4\">)) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">@content<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u30e2\u30d0\u30a4\u30eb\u30d5\u30a1\u30fc\u30b9\u30c8\u3067Web\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u305f\u969b\u306b\u3001<\/p>\n\n\n\n<p>800px\u4ee5\u4e0a\u306e\u753b\u9762\u5e45\u306e\u30c7\u30d0\u30a4\u30b9\u3067\u95b2\u89a7\u3057\u305f\u6642\u306b\u5207\u308a\u66ff\u3048\u308b\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u3001<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\".title{\n  margin-top:1em;\n  font-size:0.8rem;\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D7BA7D\">.title<\/span><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">margin-top<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">1em<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">font-size<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">0.8rem<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p><br>\u2193<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\".title{\n  margin-top:1em;\n  font-size:0.8rem;\n\n  @include pc{\n    font-size:1.5rem;\n  }\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D7BA7D\">.title<\/span><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">margin-top<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">1em<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">font-size<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">0.8rem<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  @include pc{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #9CDCFE\">font-size<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">1.5rem<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u3001\u8ffd\u52a0\u3059\u308c\u3070\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306f<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\".title{\n  margin-top:1em;\n  font-size:0.8rem;\n}\n\n @media (min-width:800px){\n   .title{\n     font-size:1.5rem;\n   }\n}\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D7BA7D\">.title<\/span><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">margin-top<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">1em<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">  <\/span><span style=\"color: #9CDCFE\">font-size<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">0.8rem<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #C586C0\">@media<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">min-width<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">800px<\/span><span style=\"color: #D4D4D4\">){<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">   <\/span><span style=\"color: #D7BA7D\">.title<\/span><span style=\"color: #D4D4D4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">     <\/span><span style=\"color: #9CDCFE\">font-size<\/span><span style=\"color: #D4D4D4\">:<\/span><span style=\"color: #B5CEA8\">1.5rem<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">   }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u8ff0\u306e\u5229\u70b9\u306f\u4f55\u3088\u308a\u3001<\/p>\n\n\n\n<p>\u540c\u4e00\u306e\u30af\u30e9\u30b9\u306e\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u3067\u3042\u308c\u3070\u30d5\u30a1\u30a4\u30eb\u306e\u4e0b\u90e8\u306a\u3069\u3067\u306f\u306a\u304f\u3001\u307b\u307c\u540c\u3058\u30b9\u30da\u30fc\u30b9\u306b\u8a18\u8ff0\u3067\u304d\u308b\u306e\u3067\u3001<\/p>\n\n\n\n<p><strong class=\"marker\">\u8a18\u8ff0\u306e\u91cd\u8907\u306a\u3069\u306e\u30df\u30b9\u304c\u306a\u304f\u306a\u308a\u3001\u30c7\u30d0\u30a4\u30b9\u3054\u3068\u306b\u30af\u30e9\u30b9\u3092\u63a2\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u7b46\u8005\u304cSass\u306e\u4e2d\u3067\u6700\u3082\u611f\u9298\u3092\u53d7\u3051\u305f\u6a5f\u80fd\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u76ee\u7684\u3001\u30d1\u30fc\u30c4\u3054\u3068\u306e\u30d5\u30a1\u30a4\u30eb\u5206\u3051\u3067\u7ba1\u7406\u3067\u304d\u308b<\/h2>\n\n\n\n<p>\u666e\u901a\u306e\u30b5\u30a4\u30c8\u3067\u3042\u308c\u3070\u3001\u30da\u30fc\u30b8\u3054\u3068\u306b\u5225\u3005\u306e\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u306e\u304c\u4e00\u822c\u7684\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001Sass\u306e<strong>@import\u6a5f\u80fd<\/strong>\u3067\u4e00\u3064\u306e\u30b7\u30fc\u30c8\u306b\u8907\u6570\u306eSass\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u7d71\u5408\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7b46\u8005\u306f\u3044\u3064\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>header.php<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><link rel=\"stylesheet\" type=\"text\/css\" href=\" 'CSS\u306e\u30d1\u30b9' \/style.min.css\"><\/pre>\n\n\n\n<p>style.scss<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"@import 'foundation\/vars';\n@import 'foundation\/reset';\n@import 'foundation\/mixin';\n@import 'foundation\/base';\n\n@import 'layout\/header';\n@import 'layout\/btn';\n@import 'layout\/top';\n\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;foundation\/vars&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;foundation\/reset&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;foundation\/mixin&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;foundation\/base&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;layout\/header&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;layout\/btn&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">@import <\/span><span style=\"color: #CE9178\">&#39;layout\/top&#39;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u307e\u305a\u30d8\u30c3\u30c0\u30fc\u306b\u306fstyle.scss\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb(.css\u3067\u3082.min.css\u3067\u3082\u3069\u3061\u3089\u3067\u3082\u53ef)\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001style.scss\u306b\u306f\u8aad\u307f\u8fbc\u307f\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u3066<strong>@import<\/strong>\u3057\u3066\u3001\u4fdd\u5b58\u3092\u3057\u3066\u6b63\u5e38\u306b\u4fdd\u5b58\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u3001\u4e0a\u304b\u3089\u66f8\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u9806\u756a\u306b\u305d\u308c\u305e\u308c\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u306e\u4ed5\u65b9\u3060\u3068\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30da\u30fc\u30b8\u304c\u7570\u306a\u3063\u3066\u3082\u540c\u3058\u30c7\u30b6\u30a4\u30f3\u306e\u30d1\u30fc\u30c4\u3092\u7ba1\u7406\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u547d\u540d\u898f\u5247\u3092\u3057\u3063\u304b\u308a\u5b9a\u3081\u308c\u3070\u3001\u30c1\u30fc\u30e0\u5185\u3067\u5171\u6709\u3057\u3084\u3059\u3044<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3000\u3000<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u7b46\u8005\u304c\u5b9f\u969b\u306b\u611f\u3058\u305fSass\u306b\u3064\u3044\u3066\u306e\u30e1\u30ea\u30c3\u30c8\u306a\u3069\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u307e\u3067\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u6a5f\u80fd\u304c\u3042\u3063\u305f\u65b9\u306f\u3001\u305c\u3072\u4eca\u56de\u3092\u6a5f\u306b\u30de\u30b9\u30bf\u30fc\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u307f\u306a\u3055\u3093\u3082\u3001\u305d\u3046\u3067\u306a\u3044\u307f\u306a\u3055\u3093\u3082\u3053\u3093\u306b\u3061\u306f\u3002 \u7a81\u7136\u3067\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u6642\u3069\u306e\u3088\u3046\u306aCSS\u306e\u30e1\u30bf\u8a00\u8a9e\u3092\u304a\u4f7f\u3044\u3067\u3059\u304b\uff1f \u3000\u3000\u3000 \u73fe\u4ee3\u306e\u4e3b\u6d41\u306f\u3001Less\u3068Sass(Sass\/Scss)\u3068\u3044\u308f\u308c\u3066\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":8673,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[37],"tags":[116,60,110],"class_list":["post-7331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-column","tag-css","tag-web-site","tag-web"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/comments?post=7331"}],"version-history":[{"count":8,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7331\/revisions"}],"predecessor-version":[{"id":9166,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/posts\/7331\/revisions\/9166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media\/8673"}],"wp:attachment":[{"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/media?parent=7331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/categories?post=7331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tetraup.com\/news_topics\/wp-json\/wp\/v2\/tags?post=7331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}