{"id":11044,"date":"2022-06-11T22:07:53","date_gmt":"2022-06-11T19:07:53","guid":{"rendered":"https:\/\/elzero.org\/?p=11044"},"modified":"2022-06-11T22:09:19","modified_gmt":"2022-06-11T19:09:19","slug":"css-select-parent-when-focus-on-child","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/css-select-parent-when-focus-on-child\/","title":{"rendered":"\u0639\u0645\u0644 Focus \u0639\u0644\u0649 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0623\u0628 \u0639\u0646\u062f \u0627\u0644\u062a\u0631\u0643\u064a\u0632 \u0639\u0644\u0649 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062f\u0627\u062e\u0644\u064a\u0629"},"content":{"rendered":"<div class=\"text\">\r\n\u064a\u0645\u0643\u0646\u0643 \u0625\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0623\u0628 \u0644\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0639\u0645\u0644 Focus \u0639\u0644\u064a\u0647\u0627 \u0628\u0625\u0633\u062a\u062e\u062f\u0627\u0645 \u062e\u0627\u0635\u064a\u0629 Focus-Within \u0634\u0627\u0647\u062f \u0627\u0644\u0645\u062b\u0627\u0644 \u0644\u062a\u0641\u0647\u0645 \u0627\u0644\u0641\u0643\u0631\u0629. \u0639\u0646\u062f \u0639\u0645\u0644 Focus \u0639\u0644\u0649 \u0627\u0644 Input \u064a\u0645\u0643\u0646\u0643 \u0625\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0623\u0628 \u0648\u0639\u0645\u0644 \u0645\u0627 \u062a\u0631\u064a\u062f\u0647 \u0641\u064a\u0647 \u0645\u0646 \u062a\u0646\u0633\u064a\u0642\r\n<\/div>\r\n\r\n<script type=\"text\/plain\" class=\"language-css\">\r\n.selector-name:focus-within {\r\n  background-color: #DDD\r\n}\r\n<\/script>\r\n\r\n<h3>\u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u0637\u0628\u064a\u0639\u064a<\/h3>\r\n\r\n<form class=\"normal\">\r\n  <input type=\"text\" placeholder=\"Focus Here\">\r\n<\/form>\r\n\r\n<h3>\u0627\u0644\u0648\u0636\u0639 \u0628\u0639\u062f \u0625\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062e\u0627\u0635\u064a\u0629<\/h3>\r\n\r\n<form class=\"focused\">\r\n  <input type=\"text\" placeholder=\"Focus Here To Select Parent\">\r\n<\/form>\r\n\r\n<style>\r\nform {\r\n  margin: 20px auto;\r\n  width: 300px;\r\n  background-color: #EEE;\r\n  padding: 20px;\r\n  text-align: center;\r\n  direction: ltr;\r\n}\r\nform input {\r\n  padding: 10px;\r\n}\r\n.focused:focus-within {\r\n  background-color: #AAA\r\n}\r\n<\/style>","protected":false},"excerpt":{"rendered":"<p>\u064a\u0645\u0643\u0646\u0643 \u0625\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0623\u0628 \u0644\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0639\u0645\u0644 Focus \u0639\u0644\u064a\u0647\u0627<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1296],"tags":[107,220,253,756,1311,240,1313,1312,1315,1314,597,1316,241],"class_list":["post-11044","post","type-post","status-publish","format-standard","hentry","category-css-tutorials","tag-code","tag-css","tag-design","tag-element","tag-focus","tag-form","tag-selector","tag-within","tag-1315","tag-1314","tag-597","tag-1316","tag-241"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11044","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=11044"}],"version-history":[{"count":4,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11044\/revisions"}],"predecessor-version":[{"id":11051,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/11044\/revisions\/11051"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=11044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=11044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=11044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}