{"id":7483,"date":"2020-06-19T12:48:14","date_gmt":"2020-06-19T03:48:14","guid":{"rendered":"https:\/\/its-more.jp\/ja_jp\/?p=7483"},"modified":"2020-06-19T18:02:16","modified_gmt":"2020-06-19T09:02:16","slug":"conditional-css","status":"publish","type":"post","link":"https:\/\/its-more.jp\/ja_jp\/?p=7483","title":{"rendered":"\u4eca\u3069\u304d\u306e Context Reflective CSS"},"content":{"rendered":"\n<p>\u958b\u767a\uff1a\u3069\u3046\u3082\u7d0d\u5f97\u3067\u304d\u306a\u3044\u306e\u306f\u3001\u672c\u5f53\u306bCSS\u3067\u306f\u5b9a\u6570\u540d\u7684\u306a\u3082\u306e\u3068\u304b\u30de\u30af\u30ed\u7684\u306a\u3082\u306e\u304c\u4f7f\u3048\u306a\u3044\u306e\u304b\uff1f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u305d\u3082\u305d\u3082\u7d71\u4e00\u611f\u306e\u3042\u308b\u30c6\u30fc\u30de\u3067\u3042\u308c\u3070\u3001\u4f7f\u7528\u3059\u308b\u8272\u306e\u6570\u306a\u3093\u3066\u305f\u304b\u304c\u77e5\u308c\u3066\u3044\u3066\u3001\u307e\u3042\u6570\u7a2e\u985e\u3068\u3044\u3046\u3053\u3068\u308d\u3067\u3059\u3002\u30d5\u30a9\u30f3\u30c8\u540d\u306b\u3057\u3066\u3082\u3057\u304b\u308a\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u3082\u3046\u3072\u3068\u3064\u306f\u6761\u4ef6\u306b\u3088\u308b\u9078\u629e\u3002\u3069\u3046\u3044\u3046\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u3067\u3042\u3063\u305f\u3089\u3053\u3046\u3044\u3046\u8868\u73fe\u306b\u3059\u308b\u3001\u3063\u3066\u51fa\u6765\u3066\u5f53\u7136\u3060\u3068\u601d\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u305d\u308c\u306f\u3072\u3087\u3063\u3068\u3059\u308b\u3068\u3001\u30de\u30af\u30ed\u51e6\u7406\u3092\u3057\u3066\u8fd4\u3059\u3063\u3066\u3044\u3046\u51e6\u7406\u7cfb\u304c\u3069\u3053\u304b\u306eURL\u3066\u63d0\u4f9b\u3055\u308c\u3066\u308c\u3070\u6e08\u3080\u3088\u3046\u306a\u6c17\u3082\u3057\u307e\u3059\u306d\u3002\u305d\u308c\u306a\u3089CSS\u3060\u3051\u3067\u306a\u304f\u3001\u4f55\u306b\u3067\u3082\u9069\u7528\u3067\u304d\u308b\u3002\u79c1\u9054\u7684\u306b\u306fC\u306e\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u304c\u99b4\u67d3\u307f\u304c\u3042\u308b\u3051\u3069\u3001\u6b74\u53f2\u3092\u305f\u3069\u308c\u3070 m4 \u3068\u3044\u3046\u30de\u30af\u30ed\u306b\u306f\u3059\u3054\u304f\u611f\u52d5\u3057\u305f\u8a18\u61b6\u304c\u3042\u308a\u307e\u3059\u300240\u5e74\u3082\u524d\u3067\u3059\u3051\u3069\u306d\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u5916\u90e8\u306e\u30de\u30af\u30ed\u51e6\u7406\u7cfb\u3092\u901a\u3059\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u3001\u30b5\u30fc\u30d0\u5074\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3088\u306d\u3002\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u306f\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u306e\u304c\u5f15\u3063\u304b\u304b\u308a\u307e\u3059\u3002\u307e\u305a\u306f CSS \u306e\u4e2d\u3060\u3051\u3067\u306a\u3093\u3068\u304b\u51fa\u6765\u306a\u3044\u304b\u3068\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u691c\u7d22\u3057\u307e\u3057\u3087\u3046\u3002conditional css \u30fb\u30fb\u30fb \u4e00\u6483\u30d2\u30c3\u30c8\u3067\u3059\u3002\u30ef\u30f3\u30fb\u30a4\u30b7\u30e5\u30fc\u3054\u3068\u306b\u30c9\u30e1\u30a4\u30f3\u53d6\u308b\u306e\u3063\u3066\u3001\u793e\u9577\u3068\u540c\u3058\u306e\u308a\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p><a href=\"http:\/\/www.conditional-css.com\/index\">Conditional-CSS<\/a> [conditional-css.com]<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u3046\u30fc\u3093\u3001\u3084\u3063\u3071\u308a\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u3063\u3066CSS\u3092\u5909\u3048\u308b\u3063\u3066\u3060\u3051\u306e\u8a71\u3067\u3059\u306d\u3002\u3057\u304b\u3082\u3001CSS\u81ea\u4f53\u306e\u6a5f\u80fd\u3067\u306f\u306a\u3044\u304b\u3089\u3001\u5225\u9014\u51e6\u7406\u7cfb\u304c\u5fc5\u8981\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u3067\u306f\u3001css constant definition \u3068\u304b\u30fb\u30fb\u30fb\u4e00\u6483\u30d2\u30c3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/Using_CSS_custom_properties\">Using CSS custom properties (variables)<\/a>\u3000[mozilla.com]<\/p>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-vivid-cyan-blue-color has-very-light-gray-background-color\"><strong>Custom properties<\/strong>&nbsp;(sometimes referred to as&nbsp;<strong>CSS variables<\/strong>&nbsp;or&nbsp;<strong>cascading variables<\/strong>) are entities defined by CSS authors that contain specific values to be reused throughout a document. They are set using custom property notation (e.g.,&nbsp;<strong><code>--main-color: black;<\/code><\/strong>) and are accessed using the&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/var\"><code>var()<\/code><\/a>&nbsp;function (e.g.,&nbsp;<code>color:&nbsp;<strong>var(--main-color)<\/strong>;<\/code>).<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u306a\u30fc\u3093\u3068\u3001\u3084\u3063\u3071\u308a\u3042\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u3067\u3053\u306e\u30da\u30fc\u30b8\u306e\u6700\u5f8c\u3092\u898b\u308b\u3068\u3001IE\u3060\u3051\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u306a\u3044\u3067\u3059\u304c\uff08\u7b11\uff09\u3002\u3055\u3089\u306b\u305d\u3053\u306b\u3001env() \u3068\u3044\u3046\u306e\u304c\u5f15\u7528\u3055\u308c\u3066\u3044\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/env\">env()<\/a> [developer.mozilla.com]<\/p>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-vivid-cyan-blue-color has-very-light-gray-background-color\">The&nbsp;<strong><code>env()<\/code><\/strong>&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\">CSS<\/a>&nbsp;function can be used to insert the value of a <strong>user agent-defined environment variable into your CSS<\/strong>, in a similar fashion to the&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/var\"><code>var()<\/code><\/a>&nbsp;function and&nbsp;<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/--*\">custom properties<\/a>. The difference is that, as well as being user-agent defined rather than user-defined, environment variables are globally scoped to a document, whereas custom properties are scoped to the element(s) on which they are declared.<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u306a\u30fc\u3093\u3068\u3001\u3084\u3063\u3071\u308a\u3042\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u3055\u3089\u306b\u7d9a\u3051\u3066\u3002<\/p>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-vivid-cyan-blue-color has-very-light-gray-background-color\">To tell the browser to use the whole available space on the screen, and so enabling us to use the&nbsp;<code>env()<\/code>&nbsp;variables, we need to add a new viewport meta value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;meta name=\"viewport\" content=\"viewport-fit=cover\" \/><\/code><\/pre>\n\n\n\n<p>\u958b\u767a\uff1a\u306a\u30fc\u3093\u3068\u3001\u3053\u308c\u3067\u3057\u305f\u304b\u3002viewport \u3063\u3066\u3001\u4ee5\u524d\u306e\u30d6\u30ed\u30b0\u3067<a href=\"https:\/\/its-more.jp\/ja_jp\/?p=1939\">\u30e2\u30d0\u30a4\u30eb\u5bfe\u5fdc<\/a>\u306b\u3064\u3044\u3066\u66f8\u3044\u305f\u6642\u306e\u3042\u308c\u3067\u3059\u306d\u3002\u3042\u306e\u6642\u306e\u306f\u3053\u3046\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><\/code><\/pre>\n\n\n\n<p>\u793e\u9577\uff1a\u30b9\u30de\u30db\u3092\u6a2a\u306b\u3057\u305f\u308a\u7e26\u306b\u3057\u305f\u308a\u3057\u305f\u6642\u306b\u81ea\u52d5\u7684\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u3066\u304f\u308c\u308b\u3084\u3064\u3063\u3066\u3001\u3053\u308c\u306e\u4ef2\u9593\u3067\u3059\u304b\u306d\uff1f<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u3044\u3084\u3057\u304b\u3057\u3001\u3084\u306f\u308a\u304a\u5929\u9053\u69d8\u306f\u6b63\u3057\u3044\u65b9\u3092\u7167\u3089\u3057\u3066\u3044\u308b\u3066\u308f\u3051\u3067\u3059\u304b\u3002\u53e4\u5178\u7684\u306aCSS\u306e\u82e6\u3057\u7d1b\u308c\u6280\u6cd5\u306e\u52c9\u5f37\u3068\u304b\u81ea\u4f5c\u306e\u3054\u306b\u3087\u3054\u306b\u3087\u3068\u304b\u3057\u306a\u3044\u3067\u6e08\u307f\u307e\u3057\u305f\u3002WordPress\u306b\u3082\u4f9d\u5b58\u3057\u306a\u3044\u3002\u3042\u3001\u3067\u3082\u30de\u30af\u30ed\u30d7\u30ed\u30bb\u30c3\u30b5\u3063\u3066\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u306f\u3042\u308b\u3068\u3044\u3044\u304b\u306a\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u539f\u5178\u306f<a href=\"https:\/\/www.w3.org\/Style\/CSS\/#specs\"> WSC \u306e CSS \u30db\u30fc\u30e0<\/a>\u3089\u3057\u3044\u3067\u3059\u304c\u3001MDN\u306e\u306f\u3044\u3044\u611f\u3058\u3067\u30b5\u30de\u30e9\u30a4\u30ba\u3057\u3066\u3044\u308b\u3063\u3066\u611f\u3058\u3067\u3059\u306d\u3002MDN\u3063\u3066\u5ec3\u5c4b\u304b\u3068\u601d\u3063\u3066\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u306f mozilla \u306e\u5b9f\u88c5\u7ba1\u7406\u3068\u304b\u306e\u4e00\u90e8\u5206\u306a\u306e\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u3044\u305a\u308c\u306b\u3057\u3066\u3082\u30cd\u30c3\u30c8\u691c\u7d22\u3063\u3066\u53e4\u3081\u306e\u89e3\u8aac\u3068\u304b\u304c\u30d0\u30ea\u30d0\u30ea\u4e0a\u4f4d\u306b\u51fa\u3066\u304d\u3066\u3057\u307e\u3046\u304b\u3089\u3001\u3084\u306f\u308a\u539f\u5178\u306b\u8fd1\u3044\u3068\u3053\u308d\u306b\u3042\u305f\u308b\u306e\u304c\u8fd1\u9053\u3067\u3059\u306d\u3002\u3068\u3044\u3046\u304b\u3001\u4f5c\u6210\u30fb\u66f4\u65b0\u65e5\u4ed8\u3067\u691c\u7d22\u3092\u7d5e\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u304c\u3001\u3044\u304b\u306b\u4e0d\u4fbf\u304b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u3042\u3068\u3001CSS\u306e\u30e6\u30fc\u30b6\u5bc4\u308a\u306e\u60c5\u5831\u3088\u308a\u3082\u3001\u30d6\u30e9\u30a6\u30b6\uff08CSS\/HTML\u51e6\u7406\u7cfb\uff09\u3092\u4f5c\u3063\u3066\u308b\u5074\u306b\u8fd1\u3044\u3068\u3053\u308d\u306e\u60c5\u5831\u304c\u65ec\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u3068\u3066\u3082\u660e\u308b\u3044\u6c17\u5206\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u304a\u663c\u306b\u884c\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\">\uff0a \uff0a \uff0a<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u3055\u3066\u3001\u3058\u3083\u3042\u3069\u3053\u304b\u3089\u624b\u3092\u4ed8\u3051\u307e\u3059\u304b\u306d\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u304a\u663c\u304b\u3089\u5e30\u3063\u3066\u3057\u3070\u3089\u304f\u8abf\u3079\u305f\u306e\u3067\u3059\u304c\u3002\u3053\u308c\u3001CSS\u306e\u62e1\u5f35\u6a5f\u80fd\u3001\u3084\u308b\u306e\u3084\u3081\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u304a\u3084\u3001\u305d\u3046\u3067\u3059\u304b\u30fb\u30fb\u30fb\u3000\u306a\u305c\uff1f<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u304b\u3063\u305f\u308b\u3044\u304b\u3089\u3067\u3059\u3002\u975e\u5e38\u306b\u7c21\u5358\u306a\u3053\u3068\u3092\u3084\u308b\u306e\u306b\u5927\u5909\u306a\u52b4\u529b\u3068\u30ea\u30bd\u30fc\u30b9\u3092\u98df\u3046\u3002\u9811\u5f35\u3063\u3066\u3082\u679c\u5b9f\u304c\u9069\u7528\u3067\u304d\u308b\u306e\u306fCSS\u3060\u3051\u3002\u305d\u3082\u305d\u3082\u305d\u306eCSS\u306e\u62e1\u5f35\u65b9\u6cd5\u304c\u898b\u305f\u76ee\u306b\u7f8e\u3057\u304f\u306a\u3044\u3002\u305d\u306e\u62e1\u5f35\u6a5f\u80fd\u306f\u307e\u30602020\u5e74\u73fe\u5728\u30c9\u30e9\u30d5\u30c8\u6bb5\u968e\u3067\u4eca\u5f8c\u3069\u3046\u8ee2\u3076\u304b\u306f\u308f\u304b\u3089\u306a\u3044\u3002\u30d6\u30e9\u30a6\u30b6\u306b\u3088\u3063\u3066\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30aa\u30d5\u306b\u3055\u308c\u3066\u308b\u3053\u3068\u3082\u3042\u308b\u3002\u3084\u3081\u307e\u3057\u3087\u3046\u3002\u308f\u308c\u308f\u308c\u306e\u6d3b\u52d5\u6307\u91dd\u306f more with less \u3067\u3059\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u305d\u3046\u3067\u3059\u304b\u30fb\u30fb\u30fb\u3000\u305d\u308c\u3067\u4ee3\u66ff\u6848\u306f\uff1f<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u793e\u9577\u306e\u8a00\u3063\u305f\u30de\u30af\u30ed\u6848\u3092\u63a1\u7528\u3057\u307e\u3059\u3002\u8a00\u8a9e\u7684\u306b\u306f\u4f1d\u7d71\u3068\u5b9f\u7e3e\u306eC\u8a00\u8a9e\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3002\u30b3\u30e1\u30f3\u30c8\u306fCSS\u3068\u540c\u3058\/* *\/\u3002\u51e6\u7406\u7cfb\u306fPython\u3002Python \u306a\u3089 Linux\u3001Mac \u306b\u6a19\u6e96\u88c5\u5099\u3001Win \u3067\u3082\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002\u5e78\u3044C\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3092Python\u3067\u66f8\u3044\u3066\u304f\u308c\u3066\u3044\u308b\u4eba\u3082\u3044\u307e\u3059\u3002http:\/\/server\/cpp?URL \u3068\u3059\u308b\u3068\u305d\u306eURL\u306e\u5185\u5bb9\u3092C\u30d7\u30ed\u30bb\u30c3\u30b5\u3067\u51e6\u7406\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3059\u3002\u3053\u306e\u5834\u5408\u30de\u30af\u30ed\u51e6\u7406\u6e08\u306eCSS\u3067\u3059\u3002\u3053\u308c\u3092&lt;link type=stylesheet http:\/\/server\/cpp?URL> \u3067\u53c2\u7167\u3059\u308b\u3002\u3053\u308c\u3067\u3044\u3051\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u3082\u305d\u3082\u308f\u305f\u3057\u306f\u3082\u3068\u3082\u3068\u3001\u7c21\u5358\u306a HTML\u306e\u751f\u6210\u3082\u3001CGI\u3068\u304bSSI\u3068\u304bJavaScript\u3067\u306a\u304f\u3001\u30de\u30af\u30ed\u3067\u3084\u308c\u3070\u826f\u3044\u306e\u3067\u306f\u7121\u3044\u304b\u3068\u601d\u3063\u3066\u6765\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1aHTTP\u30d8\u30c3\u30c0\u306e\u5024\u3068\u304b\u304c\u3001\u74b0\u5883\u5909\u6570\u3058\u3083\u306a\u304f\u3066 predefined \u3068\u3057\u3066\u898b\u3048\u308b\u3063\u3066\u611f\u3058\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u305d\u3046\u3067\u3059\u304b\u3002\u3046\u30fc\u3093\u3001\u305d\u308c\u3082\u9762\u767d\u305d\u3046\u3067\u3059\u3002\u305f\u3060\u3072\u3068\u3064\u6c17\u306b\u306a\u308b\u70b9\u3002\u6628\u65e5 WordPress\u306e\u30bd\u30fc\u30b9\u3092\u898b\u307e\u3057\u305f\u304c\u3001style.css \u306e\u53d6\u308a\u8fbc\u307f\u306f\u3053\u3046\u306a\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;link rel='stylesheet' id='twentyseventeen-style-css'\n  href='https:\/\/its-more.jp\/ja_jp\/wp-content\/themes\/twentyseventeen\/style.css?ver=20190507' media='all' \/><\/code><\/pre>\n\n\n\n<p>\u793e\u9577\uff1a\u3053\u308c\u3092\u898b\u305f\u6642\u3001ver=20190507 \u306e\u90e8\u5206\u306f sytle.css \u306e\u4e2d\u3067\u30b9\u30a4\u30c3\u30c1\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u308b\u3093\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3002\u3053\u308c\u3092 div[\"ver=20190507\"]\u307f\u305f\u3044\u306b\u4f7f\u3048\u308b\u306e\u304b\u306a\u3068\u304b\u3001\u4eca\u65e5\u306e\u8a71\u3060\u3068$(env)\u3068\u304b\u306b\u4f7f\u3048\u308b\u306e\u304b\u306a\u3063\u3066\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u308f\u305f\u3057\u3082\u305d\u3046\u601d\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u5c11\u306a\u304f\u3068\u3082 styles.css \u306e\u4e2d\u306b\u306f ver \u3068\u304b 20190507 \u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u306a\u3093\u306b\u3057\u308d\u3001\u305f\u3068\u3048\u3070\u30b3\u30e1\u30f3\u30c8\u3068\u3044\u3046\u3082\u306e\u304c lexical level \u3067\u4e8b\u524d\u51e6\u7406\u3057\u306a\u3044\u3068\u5927\u5909\u306a\u3088\u3046\u306b\u3001syntax level \u3067\u5168\u3066\u3084\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u69cb\u6587\u7684\u306b\u975e\u5e38\u306b\u9762\u5012\u306a\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u5225\u306e\u6b21\u5143\u304b\u3089\u65ad\u9762\u3092\u898b\u308b\u3068\u7c21\u5358\u306b\u898b\u3048\u308b\u3002\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u306f\u305d\u3046\u3044\u3046\u3082\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3068\u3044\u3046\u5225\u30d5\u30a7\u30a4\u30ba\u3067\u5c55\u958b\u3055\u308c\u305f\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3068\u6700\u7d42\u7684\u306a\u5b9f\u884c\u3092\u5bfe\u5fdc\u4ed8\u3051\u308b\u306e\u304c\u5927\u5909\u3068\u3044\u3046\u3053\u3068\u306f\u767a\u751f\u3057\u307e\u3059\u3002\u3067\u3059\u304c\u3053\u306e\u5834\u5408\u3001\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u305f\u308bCSS\u51e6\u7406\u7cfb\u3068\u304b\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u306f\u3001\u5927\u5143\u306e\u8a18\u8ff0\u306e\u69cb\u9020\u3068\u304b\u7d10\u4ed8\u3051\u304c\u898b\u3048\u306b\u304f\u304f\u3066\u3001\u307e\u3055\u306b\u30de\u30af\u30ed\u7684\u306b redefine \u3092\u91cd\u306d\u3066\u308b\u3060\u3051\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u3093\u3067\u3059\u3002\u3060\u304b\u3089\u3001\u4e8b\u614b\u306f\u73fe\u72b6\u3088\u308a\u60aa\u5316\u306f\u3057\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u305d\u3046\u3067\u3059\u304b\u3002\u3058\u3083\u307e\u3001\u30de\u30af\u30ed\u306e\u7dda\u3067\u3084\u3063\u3066\u307f\u307e\u3059\u304b\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u3042\u3001\u305d\u308c\u306f\u305d\u3046\u3068\u3001\u308f\u305f\u3057\u306f\u3055\u3063\u304d\u306f\u3058\u3081\u3066\u3001<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/Getting_started_with_the_web\/CSS_basics\">CSS\u306e\u57fa\u672c\u4e2d\u306e\u57fa\u672c<\/a>\u3068\u3044\u3046\u30da\u30fc\u30b8\u3092\u898b\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e selector \u306b\u95a2\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u306f\u307e\u3055\u306b\u3001\u3042\u3042\u3053\u3046\u3044\u3046\u3082\u306e\u3092\u898b\u305f\u304b\u3063\u305f\u3001\u3068\u3044\u3046\u30b5\u30de\u30ea\u30fc\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" width=\"972\" height=\"580\" src=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.42.57.png\" alt=\"\" class=\"wp-image-7514\" srcset=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.42.57.png 972w, https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.42.57-300x179.png 300w, https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.42.57-768x458.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" width=\"972\" height=\"489\" src=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.45.38.png\" alt=\"\" class=\"wp-image-7515\" srcset=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.45.38.png 972w, https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.45.38-300x151.png 300w, https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.45.38-768x386.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure><\/div>\n\n\n\n<p>\u958b\u767a\uff1a<a href=\"https:\/\/www.w3docs.com\/snippets\/css\/how-to-override-css-styles.html\">\u30b9\u30bf\u30a4\u30eb\u306e\u4e0a\u66f8\u304d<\/a>\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.59.19.png\" alt=\"\" class=\"wp-image-7516\" width=\"481\" height=\"401\" srcset=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.59.19.png 641w, https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/Screen-Shot-2020-06-19-at-16.59.19-300x250.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/figure><\/div>\n\n\n\n<p>\u958b\u767a\uff1a\u6700\u5f8c\u306b\u3001\u305a\u3063\u3068\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u3001&lt;body&gt; \u306e\u4e2d\u306b &lt;style&gt; \u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306e\u53ef\u5426\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001Stackoverflow \u3067\u898b\u3064\u3051\u305f\u306e\u306f\u3001\u3084\u306f\u308a\u305d\u308c\u306f<a href=\"https:\/\/stackoverflow.com\/questions\/2830296\/using-style-tags-in-the-body-with-other-html\">\u826f\u304f\u306a\u3044\u3053\u3068\u3060\u304c\u5b9f\u969b\u306b\u306f\u4f7f\u3048\u308b<\/a>\u3068\u3044\u3046\u8a71\u3002\u305d\u3057\u3066\u3001HTML 5 \u3067\u306f\u300cscoped \u5c5e\u6027\u300d\u3092\u4f7f\u3048\u3070\u3001\u6b63\u3005\u5802\u3005\u3068\u4f7f\u3048\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u793e\u9577\uff1ascoped \u3066\u3044\u308f\u3086\u308b\u666e\u901a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u30b9\u30b3\u30fc\u30d7\u306e\u3053\u3068\u3067\u3059\u304b\uff1f<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u305d\u3046\u3067\u3059\u306d\u3002\u305f\u3068\u3048\u3070\u3042\u308b div \u306e\u4e2d\u306b\u3060\u3051\u9069\u7528\u3055\u308c\u308b style \u30bf\u30b0\u3092\u3001\u305d\u306e div \u306e\u4e2d\u306b\u5b9a\u7fa9\u3067\u304d\u308b\u3001\u305d\u3046\u5ba3\u8a00\u3059\u308b\u305f\u3081\u306b\u305d\u306e style \u306b scoped \u3068\u3044\u3046\u5c5e\u6027\u3092\u3064\u3051\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u305f\u3060\u3053\u306e\u5c5e\u6027\u3001\u8cdb\u5426\u304c\u3042\u308b\u3088\u3046\u3067\u3001HTML\u306e\u4ed5\u69d8\u304b\u3089\u5916\u3055\u308c\u305f\u308a\u5fa9\u6d3b\u3057\u305f\u308a\u3092\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u305f\u3076\u3093\u3001\u4eca\u306f\u5916\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div>\n  &lt;style scoped> div { color:blue; } &lt;\/style>\n  \u3053\u308c\u306f\u9752\u306e\u306f\u305a\n  &lt;div>\n    &lt;style scoped> div { color:green; } &lt;\/style>\n\u3000\u3000\u3053\u308c\u306f\u7dd1\u306e\u306f\u305a\n  &lt;\/div>\n&lt;\/dvi><\/code><\/pre>\n\n\n\n<p>\u958b\u767a\uff1a\u305d\u3046\u3044\u3046\u3053\u3068\u306b\u5dfb\u304d\u8fbc\u307e\u308c\u305f\u304f\u306a\u3044\u306e\u3067\u3001\u3082\u3046 class \u3068\u304b type \u3068\u304b\u306e\u30bb\u30ec\u30af\u30bf\u3067\u3044\u3044\u304b\u306a\u3063\u3066\u601d\u3044\u307e\u3059\u3002\u3053\u308c\u3082\u5185\u5074\u306b\u5b9a\u7fa9\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002\u3088\u3046\u3059\u308b\u306b\u3001\u3069\u3053\u306b\u66f8\u3044\u3066\u3082\u30b0\u30ed\u30fc\u30d0\u30eb\u3001\u30b9\u30b3\u30fc\u30d7\u304c\u7121\u3044\u306e\u304c\u597d\u304d\u306a\u3093\u3067\u3059\u306dCSS\u306e\u4eba\u305f\u3061\u306f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=div1>\n  &lt;style> .div1 { color:blue; } &lt;\/style>\n  \u3053\u308c\u306f\u9752\u306e\u306f\u305a\n  &lt;div class=div2>\n    &lt;style> .div2 { color:green; } &lt;\/style>\n\u3000\u3000\u3053\u308c\u306f\u7dd1\u306e\u306f\u305a\n  &lt;\/div>\n&lt;\/div><\/code><\/pre>\n\n\n\n<div class=\"div1\">\n  <style> .div1 { color:blue; } <\/style>\n  \u3053\u308c\u306f\u9752\u306e\u306f\u305a\n  <div class=\"div2\">\n    <style> .div2 { color:green; } <\/style>\n\u3000\u3000\u3053\u308c\u306f\u7dd1\u306e\u306f\u305a\n  <\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u793e\u9577\uff1a\u5b8c\u5168\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7528\u306e\u74b0\u5883\u3092\u4f5c\u3063\u3066\u304b\u3089\u3001HTML\u306b\u9069\u7528\u3057\u305f\u3044\u3001\u3063\u3066\u6c17\u5206\u306a\u3093\u3067\u3059\u304b\u306d\u3002\u307e\u3042\u3001\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u306f\u3001\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u7684\u767a\u60f3\u306a\u306e\u304b\u3082\u3002CSS\u306e\u51e6\u7406\u3068HTML\u306e\u51e6\u7406\u3092\u5206\u96e2\u3057\u305f\u3044\u3068\u3044\u3046\u304b\u3002HTML\u306e\u69cb\u9020\u304b\u3089\u72ec\u7acb\u3057\u305f\u3044\u3068\u304b\u3002<\/p>\n\n\n\n<p>\u57fa\u76e4\uff1a\u3067\u3059\u304c\u3001\u305d\u3057\u305f\u3089\u30bf\u30b0\u306e\u4e2d\u306e\u5c5e\u6027\u306e style \u3063\u3066\u4f55\u306a\u306e\u3088\u3063\u3066\u6c17\u3082\u3057\u307e\u3059\u304c\u3002<\/p>\n\n\n\n<p>\u958b\u767a\uff1a\u306a\u3093\u3057\u3066\u3082\u3042\u308c\u3067\u3059\u3088\u306d\u3001\u3053\u308c\u3060\u3051\u4e16\u306e\u4e2d\u3092\u632f\u308a\u56de\u3059\u898f\u683c\u306a\u306e\u306b\u3001\u3069\u3046\u3044\u3046\u7406\u7531\u3067\u305d\u3046\u6c7a\u3081\u305f\u306e\u304b\u3001rationale \u3068\u3044\u3046\u304b\u3001\u307b\u3068\u3093\u3069\u8aac\u660e\u3055\u308c\u3066\u306a\u3044\u3067\u3059\u3088\u306d\u3002\u306a\u3093\u304b\u3001var\u3068env\u306a\u3093\u304bW3C\u306e\u30a8\u30c7\u30a3\u30bf\u306e\u30da\u30fc\u30b8\u306b\u3044\u3063\u3066\u3082\u3059\u3054\u304f\u30b5\u30d6\u30a4\u611f\u3058\u3060\u3057\u3002<\/p>\n\n\n\n<p>-- 2020-0619 SatoxITS<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/\u4eca\u3068\u3099\u304d\u306e-Context-Reflective-CSS-\u2013-\u682a\u5f0f\u4f1a\u793e-ITS-more-1.pdf\">\u4eca\u3068\u3099\u304d\u306e-Context-Reflective-CSS-\u2013-\u682a\u5f0f\u4f1a\u793e-ITS-more-1<\/a><a href=\"https:\/\/its-more.jp\/ja_jp\/wp-content\/uploads\/2020\/06\/\u4eca\u3068\u3099\u304d\u306e-Context-Reflective-CSS-\u2013-\u682a\u5f0f\u4f1a\u793e-ITS-more-1.pdf\" class=\"wp-block-file__button\" download>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u767a\uff1a\u3069\u3046\u3082\u7d0d\u5f97\u3067\u304d\u306a\u3044\u306e\u306f\u3001\u672c\u5f53\u306bCSS\u3067\u306f\u5b9a\u6570\u540d\u7684\u306a\u3082\u306e\u3068\u304b\u30de\u30af\u30ed\u7684\u306a\u3082\u306e\u304c\u4f7f\u3048\u306a\u3044\u306e\u304b\uff1f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002 \u958b\u767a\uff1a\u305d\u3082\u305d\u3082\u7d71\u4e00\u611f\u306e\u3042\u308b\u30c6\u30fc\u30de\u3067\u3042\u308c\u3070\u3001\u4f7f\u7528\u3059\u308b\u8272\u306e\u6570\u306a\u3093\u3066\u305f\u304b\u304c\u77e5\u308c\u3066\u3044\u3066\u3001\u307e\u3042\u6570\u7a2e\u985e\u3068\u3044\u3046\u3053\u3068\u308d\u3067\u3059\u3002 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/its-more.jp\/ja_jp\/?p=7483\" class=\"more-link\"><span class=\"screen-reader-text\">\"\u4eca\u3069\u304d\u306e Context Reflective CSS\" \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/posts\/7483"}],"collection":[{"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7483"}],"version-history":[{"count":39,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/posts\/7483\/revisions"}],"predecessor-version":[{"id":7531,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=\/wp\/v2\/posts\/7483\/revisions\/7531"}],"wp:attachment":[{"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/its-more.jp\/ja_jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}