{"id":311542,"date":"2020-10-15T21:00:47","date_gmt":"2020-10-15T21:00:47","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311542"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311542","title":{"rendered":"\u041f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 CSS-in-TS"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/523646\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tx\/q7\/xo\/txq7xoc7v2q-rqxis6wlji5xz8g.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041a\u0430\u0440\u043b\u043e\u0432\u0441\u043a\u0438\u0439 \u0438 \u044f\u2026 \u0430\u0432\u0442\u043e\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u2014 <a href=\"https:\/\/mol.hyoo.ru\/#app=components\" rel=\"nofollow\">$mol<\/a>. \u041e\u043d \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438. \u0418 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0438 \u0441\u0442\u0438\u043b\u0435\u0439.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043d\u0430 <a href=\"https:\/\/piterjs.org\/#meetup=46\" rel=\"nofollow\">PiterJS#46<\/a>. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0438\u0431\u043e <a href=\"https:\/\/youtu.be\/FMNLN5YIE_M?t=5586\" rel=\"nofollow\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0438\u0441\u044c<\/a>, \u043b\u0438\u0431\u043e <a href=\"https:\/\/nin-jin.github.io\/slides\/css-in-ts\/\" rel=\"nofollow\">\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0439<\/a>, \u043b\u0438\u0431\u043e <a href=\"https:\/\/github.com\/nin-jin\/slides\/blob\/master\/css-in-ts\/readme.md\" rel=\"nofollow\">\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u044c\u044e<\/a>&#8230;<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"podopytnoe-prilozhenie\">\u041f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 $my_profile, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u0430\u043d\u0435\u043b\u0435\u0439: \u043c\u0435\u043d\u044e \u0438 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0410 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u0442\u0435\u0439: \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u0438 \u0442\u0435\u043b\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r8\/fj\/d8\/r8fjd8aylsbmw3iasyox6j_tcn4.png\"><\/p>\n<p>  <\/p>\n<h1 id=\"generaciya-klassov\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043a\u043e\u0434\u043e\u043c..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$my_profile $mol_view sub \/     &lt;= Menu $my_panel     &lt;= Details $my_panel  $my_panel $mol_view sub \/     &lt;= Head $mol_view     &lt;= Body $mol_scroll<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0443 \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0430\u0441 \u044d\u0442\u0438\u043c <a href=\"https:\/\/github.com\/nin-jin\/slides\/tree\/master\/mol#%D0%BA%D0%BE%D0%BC%D0%BF%D0%BE%D0%B7%D0%B8%D1%86%D0%B8%D1%8F-%D0%B2%D0%BE-viewtree\" rel=\"nofollow\">\u043f\u0442\u0438\u0447\u044c\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c<\/a>. \u0421\u043a\u0430\u0436\u0443, \u043b\u0438\u0448\u044c, \u0447\u0442\u043e \u0438\u0437 \u043d\u0435\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f typescript \u043a\u043b\u0430\u0441\u0441 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface $my_profile extends $mol_view {     Menu(): $my_panel     Details(): $my_panel } )  interface $my_panel extends $mol_view {     Head(): $mol_view     Body(): $mol_scroll } )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u2014 \u044d\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430. \u0418 \u0432 \u043d\u0451\u043c, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0430. \u0422\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0443\u043a\u0432\u044b.<\/p>\n<p>  <\/p>\n<h1 id=\"generaciya-dom\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f DOM<\/h1>\n<p>  <\/p>\n<p>\u041c\u043e\u043b\u043e\u0432\u0441\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u0441\u044f, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 DOM-\u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0418\u043c\u044f \u044d\u0442\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u0447\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u043e\u0431\u0437\u043e\u0440\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e DOM-\u0434\u0435\u0440\u0435\u0432\u0430. \u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>dom_name<\/code>. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u043e\u0440 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043d\u043e \u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0432\u0441\u0435\u0445 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u043a\u043e\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0435\u0433\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438 \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u043a\u043e\u0432 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u0434\u043e \u043a\u043e\u0440\u043d\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface $my_profile extends $mol_view {     Menu(): $my_panel     Details(): $my_panel } )  interface $my_panel extends $mol_view {     Head(): $mol_view     Body(): $mol_scroll } )<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;mol_view     mol_view     my_panel_body     my_profile_details_body     &gt;      &lt;mol_button_major         mol_view         mol_button         mol_button_major         my_profile_signup         &gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b:<\/p>\n<p>  <\/p>\n<p><strong>mol_view<\/strong> \u2014 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u043e\u043b\u043e\u0432\u0441\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0434\u0435\u043b\u0430\u0442\u044c reset \u0434\u043b\u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0431\u0435\u0437 \u0440\u0438\u0441\u043a\u0430 \u043f\u043e\u043b\u043e\u043c\u0430\u0442\u044c, \u043d\u0435 \u043c\u043e\u043b\u043e\u0432\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.<br \/>  <strong>my_panel_body<\/strong> \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u044d\u0442\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c Body \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 $my_panel.<br \/>  <strong>my_profile_details_body<\/strong> \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0442\u043e\u0442 $my_panel \u0438\u043c\u0435\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f Details \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 $my_profile.<\/p>\n<p>  <\/p>\n<h1 id=\"nalozhenie-stiley\">\u041d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439<\/h1>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0431\u0435\u0437 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c. \u0418 \u043a\u0430\u043a \u0431\u044b \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u043d\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439, \u0447\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u0442\u0438\u043b\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;mol_view     mol_view     my_panel_body     my_profile_details_body     &gt;      &lt;mol_button_major         mol_view         mol_button         mol_button_major         my_profile_signup         &gt;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[my_profile_details_body] {     overflow: 'overlay'; }  [my_profile_details_body] [mol_button] {     border-radius: .5rem; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f CSS \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u0442\u0438 \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u0443\u0442\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438. \u0421\u0440\u0435\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u043d\u0430\u0431\u043e\u0440\u0435. \u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u043e\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u0440\u043e \u044d\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u0438 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0442\u0430\u0439\u043f\u0447\u0435\u043a\u0430\u0442\u044c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b.<\/p>\n<p>  <\/p>\n<h1 id=\"generaciya-stiley\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439<\/h1>\n<p>  <\/p>\n<p>\u0411\u044b\u043b\u043e \u0431\u044b \u043a\u043b\u0430\u0441\u0441\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437 \u044d\u0442\u043e\u0433\u043e CSS.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">[my_profile_details_body] {     overflow: 'overlay'; }  [my_profile_details_body] [mol_button] {     border-radius: .5rem; }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$mol_style_define( $my_profile , {     Details: {         Body: {             overflow: 'overlay',             $mol_button: {                 border: {                     radius: rem(.5),                 },             },         },     }, } )<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e $mol_style_define, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0442 StyleSheet. \u041f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432 \u043d\u0435\u0451 \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 $my_profile \u0438 JSON, \u0433\u043e\u0432\u043e\u0440\u044f\u0449\u0438\u0439, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 Details \u0438 \u0435\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 Body \u0441\u0442\u0438\u043b\u0438 \u0442\u0430\u043a\u0438\u0435-\u0442\u043e, \u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0432 \u043d\u0435\u0433\u043e \u043a\u043d\u043e\u043f\u043e\u043a \u2014 \u0441\u044f\u043a\u0438\u0435-\u0442\u043e.<\/p>\n<p>  <\/p>\n<h1 id=\"cssom-problema-s-redaktirovaniem-cherez-devtools\">CSSOM: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0447\u0435\u0440\u0435\u0437 DevTools<\/h1>\n<p>  <\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438: \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 CSSOM, \u043b\u0438\u0431\u043e \u0447\u0435\u0440\u0435\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0440\u0442\u044f\u043d\u043a\u0438 CSS \u0438 \u043f\u043e\u0434\u043a\u043b\u0435\u0438\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>style<\/code>. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u0442\u043e \u0432 Chrome Dev Tools \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438, \u0447\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/5e\/jj\/ai\/5ejjaihonegovdnv9mqzfe0gcyq.png\"><\/p>\n<p>  <\/p>\n<p>\u0421\u0432\u0435\u0440\u0445\u0443 \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0441\u0442\u0438\u043b\u0438, \u0441\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 <a href=\"https:\/\/github.com\/Khan\/aphrodite\" rel=\"nofollow\">aphrodite<\/a>, \u0430 \u0441\u043d\u0438\u0437\u0443 \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 CSS. \u041a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043f\u043e\u0440\u043d\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u0441 \u0442\u0435\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438, \u0447\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0442 $mol_view.<\/p>\n<p>  <\/p>\n<p>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f CSS \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f. \u0423 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0437\u0430\u043d\u044f\u043b\u043e 3\u041a\u0411 \u043a\u043e\u0434\u0430. \u0422\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0441\u043e\u0431\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438..<\/p>\n<p>  <\/p>\n<h1 id=\"cssstyledeclaration-slabaya-tipizaciya\">CSSStyleDeclaration: \u0441\u043b\u0430\u0431\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f<\/h1>\n<p>  <\/p>\n<p>\u0412 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0438\u0440\u0435 \u043c\u044b \u0431\u044b \u0432\u0437\u044f\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0442\u0438\u043f <code>CSSStyleDeclaration<\/code>, \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 500 \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u043a <code>string<\/code>.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type CSSStyleDeclaration = {     display: string     \/\/ 500 lines }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0430\u043a\u043e\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043b\u043e\u0432\u0435, \u0430 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u044d\u0442\u043e \u0437\u043b\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0443\u0451\u0442 \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0430\u0432\u0438\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     display: 'black' \/\/  }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"csstype-krivaya-tipizaciya\">csstype: \u043a\u0440\u0438\u0432\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f<\/h1>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/frenic\/csstype\" rel=\"nofollow\">csstype<\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u0437 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0441\u0435\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 <a href=\"https:\/\/developer.mozilla.org\/\" rel=\"nofollow\">MDN<\/a>. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0435\u0451 \u0432\u0435\u0440\u0441\u0438\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type DisplayProperty = | Globals | DisplayOutside | DisplayInside | DisplayInternal | DisplayLegacy | &quot;contents&quot; | &quot;list-item&quot; | &quot;none&quot; | string<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u0435\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type DisplayProperty = string<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u0442\u0438\u043f\u0430\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043b\u0438\u0448\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0438\u0439 \u0442\u0438\u043f.<\/p>\n<p>  <\/p>\n<h1 id=\"csstype3-krivaya-tipizaciya-s-podskazkami\">csstype@3: \u043a\u0440\u0438\u0432\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430\u043c\u0438<\/h1>\n<p>  <\/p>\n<p>\u041d\u043e \u043d\u0438\u0447\u0435\u0433\u043e, \u0432 \u0442\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043d\u0438 \u044d\u0442\u043e &quot;\u043f\u043e\u0447\u0438\u043d\u0438\u043b\u0438&quot; \u2014 <code>string<\/code> \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0438 \u0441 \u043f\u0443\u0441\u0442\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0441\u043b\u0438\u044f\u043d\u0438\u044f \u0441 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430\u043c\u0438 \u0443\u0436\u0435 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type Display = | Globals | DisplayOutside | DisplayInside | DisplayInternal | DisplayLegacy | &quot;contents&quot; | &quot;list-item&quot; | &quot;none&quot; | (string &amp; {})<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0438\u043f\u044b \u043d\u0435 \u0441\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0432\u0441\u0451 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043d\u043e \u0432\u044b \u043f\u043e \u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c\u0441\u044f \u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0440\u0443\u0433\u043d\u0451\u0442\u0441\u044f..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     display: 'black' \/\/  }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"prostye-svoystva\">\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/h1>\n<p>  <\/p>\n<p>\u041c\u044b \u043f\u043e\u0439\u0434\u0451\u043c \u0441\u0432\u043e\u0438\u043c \u043f\u0443\u0442\u0451\u043c \u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043f\u0438\u0448\u0435\u043c \u0442\u0438\u043f\u044b \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u044b\u0445 \u043d\u0430\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0432 \u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0434\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <code>Properties<\/code> \u0438 \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0433\u043e..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface Properties {      \/**      * Whether an element is treated as a block or inline element      * and the layout used for its children, such as flow layout, grid or flex.      *\/     display?: 'block' | 'inline' | 'none' | ... | Common      \/\/ etc }  type Common = 'inherit' | 'initial' | 'unset' <\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"podskazki-po-svoystvam\">\u041f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043a\u0441\u0442\u0440\u0438\u043d\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438, \u0447\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0442\u0435\u043c, \u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0432\u044b\u0437\u0443\u0431\u0440\u0438\u043b \u0432\u0441\u0435 500 CSS-\u0441\u0432\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ey\/ng\/ct\/eyngctffx2xdtmh36wyix6m7wmi.png\"><\/p>\n<p>  <\/p>\n<h1 id=\"gruppy-svoystv\">\u0413\u0440\u0443\u043f\u043f\u044b \u0441\u0432\u043e\u0439\u0441\u0442\u0432<\/h1>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u044e\u0442 \u043e\u0431\u0449\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0438 \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u0434\u043e\u0431\u043d\u043e \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u0430 \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">overflow: {     x: 'auto' ,     y: 'scroll',     anchor: 'none', }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface Properties {     overflow? : {         x?:  Overflow | Common         y?:  Overflow | Common         anchor?: 'auto' | 'none' | Common     } }  type Overflow = 'visible' | 'hidden' | ... | Common<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"svoystva-razmerov\">\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0435\u0439 \u0435\u0441\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u044e\u043d\u0438\u0442\u044b (<code>1px<\/code>, <code>2rem<\/code>) \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 (<code>calc(1rem + 1px)<\/code>).<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface Properties {     width?: Size     height?: Size }  type Size = | 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common  type Length = 0 | Unit&lt; 'rem' | ... | '%' &gt; | Func&lt;'calc'&gt;<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"edinicy-izmereniya\">\u0415\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f<\/h1>\n<p>  <\/p>\n<p>\u042e\u043d\u0438\u0442 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u043c \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0435\u0431\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">class Unit&lt; Lit extends string &gt; {      constructor(         readonly val: number,         readonly lit: Lit,     ) { }      toString() {         return this.val + this.lit     }  }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435, \u0442\u043e \u0442\u0438\u043f\u044b \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b, \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u044b \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f \u0433\u0440\u0430\u0434\u0443\u0441\u044b.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">function rem( val : number ) {     return new Unit( val , 'rem' ) }  {     width: rem(1) \/\/ Unit&lt;'rem'&gt; }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"funkcii\">\u0424\u0443\u043d\u043a\u0446\u0438\u0438<\/h1>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0412 \u043d\u0438\u0445 \u043a\u043b\u0430\u0441\u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u0435\u043d\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u043e \u0438 \u0442\u0438\u043f\u043e\u043c \u0435\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Func&lt;     Name extends string,     Value = unknown, &gt; {      constructor(         readonly name: Name,         readonly val: Value,     ) { }      toString() {         return `${ this.name }(${ this.val })`     }  }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">function calc( val : string ) {     return new Func( 'calc' , val ) }  {     \/\/ Func&lt; 'calc' , string &gt;     width: calc( '1px + 1em' ) }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"sokraschyonnye-svoystva\">\u0421\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/h1>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u044e\u0442 \u043a\u0430\u043a \u043f\u043e\u043b\u043d\u0443\u044e \u0442\u0430\u043a \u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f <code>margin<\/code> \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0442 1 \u0434\u043e 4 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u0418 \u0435\u0441\u043b\u0438 \u0434\u043b\u044f 1 \u0438 2 \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0442\u043e \u0441 \u0431\u043e\u043b\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438 \u0442\u0438\u043f\u0430: \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 4, \u0442\u043e <code>margin-left<\/code> \u2014 \u044d\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u0435\u0441\u043b\u0438 3, \u0442\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435. \u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e, \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043b\u0438\u0448\u044c \u043f\u0430\u0440\u0443 \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043c, \u0430 \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u2014 \u0438\u0437\u0432\u043e\u043b\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043a\u0430\u043a\u043e\u043c\u0443 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u043a\u0430\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u043d\u0438\u043d\u044b, \u043d\u043e \u0438 \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface Properties {     margin?: Directions&lt;Length&gt;     padding?: Directions&lt;Length&gt; }  type Directions&lt; Value &gt; = | Value | [ Value , Value ] | {     top?: Value ,     right?: Value ,     bottom?: Value ,     left?: Value , }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">margin: rem(.5)  padding: [ 0 , rem(.5) ]  margin: {     top: 0,     right: rem(.5),     bottom: rem(.5),     left: rem(.5), }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"cveta\">\u0426\u0432\u0435\u0442\u0430<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0446\u0432\u0435\u0442\u043e\u0432 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u044c $mol_colors \u0438\u0437 \u0432\u0441\u0435\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0451\u043c \u0438\u0437 \u043d\u0435\u0433\u043e \u043a\u043b\u044e\u0447\u0438. \u041f\u043b\u044e\u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0439..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type Color = | keyof typeof $mol_colors | 'transparent' | 'currentcolor' | $mol_style_func&lt; 'hsla' | 'rgba' | 'var' &gt;  color?: Color | Common<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     color: 'snow',     background: {         color: hsla( 0 , 0 , 50 , .1 ),     }, }<\/code><\/pre>\n<p>  <\/p>\n<p><code>hsl<\/code> \u0438 <code>rgb<\/code> \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u0438\u0431\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u044e\u044e \u0435\u0434\u0438\u043d\u0438\u0447\u043a\u0443 \u0434\u043b\u044f <code>hsla<\/code> \u0438 <code>rgba<\/code> \u2014 \u043d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0437\u0430\u0442\u043e \u0410\u041f\u0418 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438.<\/p>\n<p>  <\/p>\n<h1 id=\"spiski\">\u0421\u043f\u0438\u0441\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u041f\u043e\u0440\u043e\u0439 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u0435 \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u0446\u0435\u043b\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">background?: {     image?: [ $mol_style_func&lt;'url'&gt; ][] }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">background: {     image: [         [url('\/foo.svg')],         [url('\/bar.svg')],     ], },<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0430\u043f\u0430\u0440\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0445\u0435\u043b\u043f\u0435\u0440\u043d\u044b\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438, \u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u044d\u0432\u0440\u0438\u0441\u0442\u0438\u043a\u0430: \u0435\u0441\u043b\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u043b\u0435\u0436\u0430\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0442\u043e \u043e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b. \u0410 \u0435\u0441\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 (\u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u043e\u0431\u044a\u0435\u043a\u0442\u044b), \u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u044b\u0435. \u0410 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b. <\/p>\n<p>  <\/p>\n<h1 id=\"spiski-struktur\">\u0421\u043f\u0438\u0441\u043a\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440<\/h1>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u043a\u0430\u043a \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0442\u0435\u043d\u0435\u0439..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">box?: {      shadow?: readonly {         inset: boolean         x: Length         y: Length         blur: Length         spread: Length         color: Color     }[]  }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">box: {     shadow: [         {             inset: true,             x: 0,             y: 0,             blur: rem(.5),             spread: 0,             color: 'black',         },     ], },<\/code><\/pre>\n<p>  <\/p>\n<p>\u0423 \u0442\u0435\u043d\u0438 \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0432\u043d\u043e. \u041f\u0440\u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b. \u041e\u0441\u043e\u0431\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u2014 \u0431\u0443\u043b\u0435\u0432\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043b\u043e\u0436\u043d\u043e, \u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0430 \u0435\u0441\u043b\u0438 \u0438\u0441\u0442\u0438\u043d\u043d\u043e, \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p>  <\/p>\n<h1 id=\"bem-elementy\">\u0411\u042d\u041c-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u044b \u0434\u043e\u0448\u043b\u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0439 \u043c\u044f\u043a\u043e\u0442\u043a\u0438. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 $my_profile, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Details, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c $my_panel, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0435\u0441\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Body, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c $mol_scroll. \u0418 \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0443\u043c\u0435\u0442\u044c \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0438\u043b\u0438, \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 $my_profile.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface $my_profile {     Details(): $my_panel } )  interface $my_panel {     Body(): $mol_scroll } )<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$mol_style_define( $my_profile , {     padding: rem(1),      Details: {         margin: 'auto',          Body: {             overflow: 'scroll',         },     }, } )<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0445\u043e\u0447\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0438\u043b\u044f\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445.<\/p>\n<p>  <\/p>\n<h1 id=\"poisk-vseh-bem-elementov\">\u041f\u043e\u0438\u0441\u043a \u0432\u0441\u0435\u0445 \u0411\u042d\u041c-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0438\u043f\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u044f $mol_type_pick, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0439 \u0442\u0438\u043f \u043f\u043e\u043b\u0435\u0439, \u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043d\u043e \u0431\u0435\u0437 \u043f\u043e\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0432\u0443\u044e\u0442 \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u043c\u0443 \u0442\u0438\u043f\u0443.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$mol_type_pick&lt;     $my_profile,     ()=&gt; $mol_view, &gt;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface $my_profile extends $mol_view {     title(): string     Menu(): $my_panel     Details(): $my_panel } )          \u21e9  {     Menu(): $my_panel     Details(): $my_panel }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>title<\/code>, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0435\u0435 \u0441\u0442\u0440\u043e\u043a\u0443. \u041d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0432\u0435\u0448\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443. \u0421\u0442\u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0448\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043d\u0430 <code>Menu<\/code> \u0438 <code>Details<\/code> \u0438\u0431\u043e \u043e\u043d\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442.<\/p>\n<p>  <\/p>\n<h1 id=\"bem-bloki\">\u0411\u042d\u041c-\u0431\u043b\u043e\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u043e\u0440\u043e\u0439 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0438\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438, \u043d\u043e \u0438 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 \u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0440\u0430\u0441\u043d\u044b\u043c\u0438, \u0430 \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u0441\u0438\u043d\u0438\u043c\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">interface $my_profile {     Menu(): $my_panel     Details(): $my_panel } )  interface $mol_button { } )<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">$mol_style_define( $my_profile , {      $mol_button: {         color: 'red',     },      Details: {         $mol_button: {             color: 'blue',         },     }, } )<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"poisk-vseh-podklassov\">\u041f\u043e\u0438\u0441\u043a \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0438\u043c\u0435\u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0435\u0434\u0438\u043d\u043e\u043c \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u0435 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <code>$<\/code>. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u0435\u043c \u0436\u0435 $mol_type_pick, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type $mol_view_all = $mol_type_pick&lt;     typeof $,     $mol_view, &gt;<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">namespace $ {     export class $mol_view {}     export class $my_panel {}     export class $mol_tree {} }          \u21e9  {     $mol_view: typeof $mol_view     $my_panel: typeof $my_panel }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"deklarativnye-ogranicheniya\">\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u044b \u0434\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0434\u043e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439. \u041d\u0430\u0438\u0432\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432 \u0434\u043b\u044f \u043d\u0435\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u2014 \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0435\u0441\u0438\u0441\u0442\u044b\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0442\u0438\u043f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u043f\u043e\u043b\u0435\u0439. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">function $mol_style_define&lt;     View extends typeof $mol_view,     Config extends Styles&lt; View &gt; &gt;(     view : View,     config : Config )<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type Config&lt; View extends $mol_view &gt; = {     $my_panel: {         $my_panel: {             ...         }         $my_deck: {             $my_panel: {                 ...             }         }         ...     }     ... }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u0443\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0430\u043a \u0443\u0433\u043e\u0434\u043d\u043e, \u0438 \u0447\u0438\u0441\u043b\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0440\u0430\u0441\u0442\u0451\u0442 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442 \u0433\u043b\u0443\u0431\u0438\u043d\u044b. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0436\u0438\u0440\u0430\u0435\u0442 \u0432\u0441\u044e \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043f\u0430\u0434\u0430\u0435\u0442. \u0410 \u0435\u0441\u043b\u0438 \u0438 \u043d\u0435 \u043f\u0430\u0434\u0430\u0435\u0442, \u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0434\u0438\u043a\u043e \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<h1 id=\"ne-ponyatnye-tiposhibki\">\u041d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0442\u0438\u043f\u043e\u0448\u0438\u0431\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0436\u0434\u0451\u0442\u0435\u0441\u044c \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0438\u043f\u0430, \u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0430\u0441 \u043d\u0435 \u043e\u0431\u0440\u0430\u0434\u0443\u044e\u0442, \u0438\u0431\u043e \u0438\u0437 \u043d\u0435\u0433\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0433\u0434\u0435 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9g\/ef\/kj\/9gefkjh4xxyb_ycxb4rcsf-poew.png\"><\/p>\n<p>  <\/p>\n<h1 id=\"imperativnye-ogranicheniya\">\u0418\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f<\/h1>\n<p>  <\/p>\n<p>\u041b\u0443\u0447\u0448\u0435 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u0433\u0434\u0435 \u0432\u044b \u0431\u0435\u0440\u0451\u0442\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0438\u043f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c JSON, \u0432 \u0442\u0438\u043f\u043e\u0433\u0443\u0430\u0440\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0435\u0441\u044c \u043f\u043e \u043d\u0435\u043c\u0443 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043d\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0442\u0438\u043f, \u0433\u0434\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u0438\u0448\u044c \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0410 \u043d\u0430 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0445 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u0441\u043c\u0430\u0442\u0447\u0438\u0442\u0441\u044f \u0438 \u0441\u043e\u043e\u0431\u0449\u0438\u0442 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">function $mol_style_define&lt;     View extends typeof $mol_view,     Config extends StylesGuard&lt;         View,         Config,     &gt; &gt;(     view: View,     config: Config )<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     Details: {         foo: 'bar',     }, }          \u21e9  {     Details: {         foo: never,     }, }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043a\u0443\u0448\u0430\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412\u0430\u0436\u043d\u043e \u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043f\u0438\u0448\u0435\u0442\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0442\u0438\u043f\u044b, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 \u043f\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0444\u0438\u0433\u0443.<\/p>\n<p>  <\/p>\n<h1 id=\"vsyo-eschyo-neponyatnye-oshibki\">\u0412\u0441\u0451 \u0435\u0449\u0451 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c never \u0434\u043b\u044f \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0445\u043e\u0442\u044c \u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b, \u043d\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0430, \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0432\u0430\u043b\u0438\u0434\u0435\u043d.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dx\/7x\/9l\/dx7x9lf79kj7of_kya32crriw4c.png\"><\/p>\n<p>  <\/p>\n<h1 id=\"ponyatnye-oshibki\">\u041f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e <code>never<\/code> \u043b\u0443\u0447\u0448\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438 \u0441 \u0447\u0435\u043c \u043d\u0435 \u0441\u043c\u0430\u0442\u0447\u0438\u0442\u0441\u044f \u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0443\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4h\/ox\/4_\/4hox4_d5xssyyjdz9n0vrhr7ncm.png\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043c\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0432\u0435\u0441\u0438\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043d\u0430 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442, \u043f\u043e\u0442\u043e\u043c \u043d\u0430 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0431\u0430\u043b\u0430\u043b\u0430\u0439\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0442\u044c \u043d\u0438 \u043a\u0430\u043a \u0438\u043c\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043d\u0438 \u043a\u0430\u043a \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043d\u0438 \u043a\u0430\u043a \u0438\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p>  <\/p>\n<h1 id=\"atributy\">\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b<\/h1>\n<p>  <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u0445. \u0412 $mol_view \u043e\u043d\u0438 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043c\u0435\u0442\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">attr *     ^     mol_link_current &lt;= current false          \u21e9  attr() {     return {         ... super.attr(),         mol_link_current: this.current(),     } }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"stili-dlya-atributov\">\u0421\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430: \u0441\u043e\u0431\u0430\u0447\u043a\u0430 -&gt; \u0438\u043c\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 -&gt; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 -&gt; (\u0441\u0442\u0438\u043b\u0438, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0439 \u0444\u0430\u0440\u0448).<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     '@': {         mol_link_current: {             true: {                 zIndex: 1             }         }     } }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"psevdoklassy-i-psevdoelementy\">\u041f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/h1>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0435\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435..<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     ':hover': {         zIndex: 1     } }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"media-zaprosy\">\u041c\u0435\u0434\u0438\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b<\/h1>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0434\u0438\u0430-\u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u042d\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0447\u0435\u043c \u0432 CSS, \u0433\u0434\u0435 \u043c\u0435\u0434\u0438\u0430-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432\u043d\u0435 \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u044f \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     $mol_scroll: {         overflow: 'scroll',         '@media': {             'print': {                 overflow: 'visible',             },         },     }, }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"neposredstvenno-vlozhennye-bloki\">\u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0433\u043b\u043e\u0432\u043e\u0439 \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{     '&gt;': {          $mol_view: {             margin: rem(1),         },          $mol_button: {             margin: rem(0),         },      }, }<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"chto-poluchilos\">\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c<\/h1>\n<p>  <\/p>\n<ul>\n<li>\u041a\u0430\u0441\u043a\u0430\u0434\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439 <\/li>\n<li>\u0422\u0430\u0439\u043f\u0447\u0435\u043a \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 <\/li>\n<li>\u041f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043f\u043e \u0432\u0441\u0435\u043c \u043a\u043b\u044e\u0447\u0430\u043c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c <\/li>\n<li>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 <\/li>\n<li>\u041f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 <\/li>\n<li>\u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439 <\/li>\n<\/ul>\n<p>  <\/p>\n<h1 id=\"chto-mozhno-uluchshit\">\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c<\/h1>\n<p>  <\/p>\n<ul>\n<li>\u0420\u0430\u043d\u0442\u0430\u0439\u043c \u0447\u0442\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 (\u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438)<\/li>\n<li>\u0422\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0441\u0435\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 (\u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 10 \u0438\u0437 500)<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438<\/li>\n<li>\u0422\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 calc (\u0430 \u043d\u0435 \u0441\u0442\u0440\u043e\u043a\u0430)<\/li>\n<\/ul>\n<p>  <\/p>\n<h1 id=\"poprobovat-vne-mol\">\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435 $mol<\/h1>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u0438 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043c\u043e\u0439 \u0440\u0430\u0441\u043a\u0430\u0437 \u0438 \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c, \u043d\u043e \u043d\u0435 \u0433\u043e\u0442\u043e\u0432\u044b \u0435\u0449\u0451 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 $mol, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 <code>mol_style_all<\/code>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0439 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c CSS-\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">import {     $mol_style_unit,     $mol_style_func,     $mol_style_properties, } from 'mol_style_all'  const { em , rem } = $mol_style_unit const { calc } = $mol_style_func  const props : $mol_style_properties = {     margin: [ em(1) , rem(1) ],     height: calc('100% - 1rem'), }<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/codesandbox.io\/s\/molstyleall-ked9t?file=\/src\/index.ts\" rel=\"nofollow\">codesandbox.io\/s\/molstyleall-ked9t<\/a><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 CSS, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0432\u044f\u0437\u0430\u043d \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 $mol_view. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u043b\u044e\u0431\u0438\u043c\u043e\u043c\u0443 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0443, \u0442\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u043d\u0430\u043c \u0432 \u0447\u0430\u0442 <a href=\"https:\/\/t.me\/mam_mol\" rel=\"nofollow\">mam_mol<\/a> \u2014 \u0432\u043c\u0435\u0441\u0442\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c, \u043a\u0430\u043a \u0431\u044b \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h1 id=\"prodolzhenie-sleduet\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442&#8230;<\/h1>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438. \u042d\u0442\u043e \u0431\u044b\u043b\u0430 \u043b\u0430\u0439\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0442\u044c \u043f\u0440\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u0430\u044f, \u0433\u0434\u0435 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u0438\u043f\u0430\u0445 \u0438 \u043a\u0430\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u0442\u043e, \u043e \u0447\u0451\u043c \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b..<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432<\/li>\n<li>\u0422\u0438\u043f\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/li>\n<li>\u0422\u0438\u043f\u043e\u0442\u0435\u0441\u0442\u044b<\/li>\n<li>\u0422\u0438\u043f\u043e\u0448\u0438\u0431\u043a\u0438<\/li>\n<li>\u0422\u0438\u043f\u043e\u0433\u0443\u0430\u0440\u0434\u044b<\/li>\n<li>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/li>\n<li>\u0411\u0440\u0435\u043d\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b<\/li>\n<\/ul>\n<p>  <\/p>\n<h1 id=\"kuda-poyti\">\u041a\u0443\u0434\u0430 \u043f\u043e\u0439\u0442\u0438<\/h1>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/eigenmethod\/mol\/tree\/master\/style\" rel=\"nofollow\">eigenmethod\/mol\/style<\/a> \u2014 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/li>\n<li><a href=\"https:\/\/teleg.run\/mam_mol\" rel=\"nofollow\">mam_mol<\/a> \u2014 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435<\/li>\n<li><a href=\"https:\/\/teleg.run\/nin_jin\" rel=\"nofollow\">nin_jin<\/a> \u2014 \u0441\u0432\u044f\u0437\u044c \u0441\u043e \u043c\u043d\u043e\u0439<\/li>\n<li><a href=\"https:\/\/habhub.hyoo.ru\/\" rel=\"nofollow\">habhub.hyoo.ru<\/a> \u2014 \u0441\u0442\u0430\u0442\u044c\u0438<\/li>\n<li><a href=\"https:\/\/twitter.com\/_jin_nin_\" rel=\"nofollow\">_jin<em>nin<\/em><\/a> \u2014 \u0437\u0430\u043c\u0435\u0442\u043a\u0438<\/li>\n<\/ul>\n<p>  <\/p>\n<h1 id=\"obratnaya-svyaz\">\u041e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c<\/h1>\n<p>  <\/p>\n<ul>\n<li>\u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u0434\u043e\u043a\u043b\u0430\u0434. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0412\u043e\u0442 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d, \u0438 \u0432\u043e\u0442, \u0447\u0442\u043e \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f pixel-perfect.<\/li>\n<li>\u041e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442! \u041d\u0435 \u0443\u0441\u043f\u0435\u0432\u0430\u0435\u0448\u044c \u043f\u043e\u043d\u044f\u0442\u044c \u0438 \u0434\u0443\u043c\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438 \u0433\u0443\u0433\u043b\u0438\u0442\u044c.<\/li>\n<li>\u041d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u0422\u0421, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u043c\u043e\u0433\u0443 \u043e\u0431\u044c\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0442\u0440\u0443\u0434\u043e\u0432 \u0414\u043c\u0438\u0442\u0440\u0438\u044f.<\/li>\n<li>\u0414\u043b\u044f \u043c\u0435\u043d\u044f \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044c\u043d\u043e, \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/li>\n<\/ul>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/523646\/\"> https:\/\/habr.com\/ru\/post\/523646\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/523646\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tx\/q7\/xo\/txq7xoc7v2q-rqxis6wlji5xz8g.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u043c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041a\u0430\u0440\u043b\u043e\u0432\u0441\u043a\u0438\u0439 \u0438 \u044f\u2026 \u0430\u0432\u0442\u043e\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0442\u0430\u0439\u043f\u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u2014 <a href=\"https:\/\/mol.hyoo.ru\/#app=components\" rel=\"nofollow\">$mol<\/a>. \u041e\u043d \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438. \u0418 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u0438 \u0441\u0442\u0438\u043b\u0435\u0439.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0430 \u0432\u044b\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043d\u0430 <a href=\"https:\/\/piterjs.org\/#meetup=46\" rel=\"nofollow\">PiterJS#46<\/a>. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0438\u0431\u043e <a href=\"https:\/\/youtu.be\/FMNLN5YIE_M?t=5586\" rel=\"nofollow\">\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0438\u0441\u044c<\/a>, \u043b\u0438\u0431\u043e <a href=\"https:\/\/nin-jin.github.io\/slides\/css-in-ts\/\" rel=\"nofollow\">\u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0439<\/a>, \u043b\u0438\u0431\u043e <a href=\"https:\/\/github.com\/nin-jin\/slides\/blob\/master\/css-in-ts\/readme.md\" rel=\"nofollow\">\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u044c\u044e<\/a>&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-311542","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311542"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311542\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}