{"id":14051,"date":"2023-11-16T20:22:12","date_gmt":"2023-11-16T17:22:12","guid":{"rendered":"https:\/\/elzero.org\/?p=14051"},"modified":"2023-11-16T21:06:37","modified_gmt":"2023-11-16T18:06:37","slug":"css-nesting-module","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/css-nesting-module\/","title":{"rendered":"CSS Nesting Module"},"content":{"rendered":"<h3>\u0645\u062d\u062a\u0648\u0649 \u0627\u0644\u062f\u0631\u0633<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-html\">\r\n<!-- \r\n  CSS Nesting Module \r\n  Syntax For Nesting Selectors\r\n-->\r\n<div class=\"parent\">\r\n  Parent\r\n  <div class=\"child\">\r\n    Child\r\n    <span>Info<\/span>\r\n  <\/div>\r\n<\/div>\r\n<\/script>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n\/* Normal *\/\r\n.parent {\r\n  color: red;\r\n}\r\n.parent .child {\r\n  color: grey;\r\n}\r\n.parent .child span {\r\n  color: green;\r\n}\r\n\r\n\/* With CSS Nesting Module *\/\r\n.parent {\r\n  color: red;\r\n  .child {\r\n    color: grey;\r\n    & span {\r\n      color: green;\r\n    }\r\n    &:hover span {\r\n      font-weight: bold;\r\n    }\r\n  }\r\n}\r\n<\/script>\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u062d\u062a\u0648\u0649 \u0627\u0644\u062f\u0631\u0633<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1423],"tags":[],"class_list":["post-14051","post","type-post","status-publish","format-standard","hentry","category-css-features"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=14051"}],"version-history":[{"count":1,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14051\/revisions"}],"predecessor-version":[{"id":14054,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/14051\/revisions\/14054"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=14051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=14051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=14051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}