{"id":167085,"date":"2013-01-28T12:21:07","date_gmt":"2013-01-28T08:21:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=167085"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=167085","title":{"rendered":"<span class=\"post_title\">C\u0438\u043b\u0430 CSS \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0435\u0431\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0444\u043e\u0440\u043c\u0443, SVG!<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/77d\/443\/cd6\/77d443cd6a054bef94c656c2eec4030f.png\"\/><br \/>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e:   <\/p>\n<ol>\n<li> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SVG.<\/li>\n<li> \u041e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS (\u0444\u043e\u0440\u043c\u0430, \u0440\u0430\u0437\u043c\u0435\u0440, \u0437\u0430\u043b\u0438\u0432\u043a\u0430, \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435).<\/li>\n<li> \u041e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0432\u0435\u0441 \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 http \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/li>\n<li> \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445.<\/li>\n<\/ol>\n<p>  <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/Kljoq\">\u0434\u0435\u043c\u043e<\/a><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0417\u0430\u0447\u0435\u043c \u044f \u044d\u0442\u043e \u043f\u0438\u0448\u0443?<\/h4>\n<p>  \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 <a href=\"http:\/\/coding.smashingmagazine.com\/2012\/08\/20\/towards-retina-web\/\">\u0440\u0430\u0441\u0442\u0443\u0449\u0443\u044e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c<\/a> \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, <a href=\"http:\/\/caniuse.com\/svg\">\u0435\u0433\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438<\/a>, \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043a\u0430\u043a \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043c\u043d\u0435, \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e. \u041f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c\u0441\u044f. <a href=\"http:\/\/habrahabr.ru\/post\/157087\/\">\u041a\u043e\u043d\u0435\u0447\u043d\u043e<\/a> <a href=\"http:\/\/coding.smashingmagazine.com\/2012\/01\/16\/resolution-independence-with-svg\/\">\u043e SVG<\/a> <a href=\"http:\/\/softwaremaniacs.org\/blog\/2005\/12\/26\/svg-css-insane-mix\/\">\u043c\u043d\u043e\u0433\u043e \u043f\u0438\u0441\u0430\u043b\u0438<\/a> \u0438 <a href=\"http:\/\/vhardy.github.com\/presentations\/html5-community-meet-up-2012\/#\/\">\u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438<\/a>. \u0414\u0430\u0436\u0435 \u043e <a href=\"http:\/\/tutorials.jenkov.com\/svg\/svg-and-css.html\">SVG \u0438 CSS<\/a> \u0432\u043c\u0435\u0441\u0442\u0435. \u041d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u0434\u0435\u043b\u0430\u0442\u044c SVG \u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430, \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0433\u0438\u0431\u043a\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. SVG \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u0441\u0435\u043c\u0438 \u0437\u0430\u0431\u044b\u0442\u044b\u043c \u043f\u043e\u0436\u0438\u043b\u044b\u043c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c, \u043f\u043e\u0440\u0430 \u0435\u0433\u043e \u043f\u0440\u0438\u0447\u0435\u0441\u0430\u0442\u044c, \u0432\u0441\u0442\u0440\u044f\u0445\u043d\u0443\u0442\u044c \u043e\u0442 \u043f\u044b\u043b\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043f\u043e\u0440\u0442 \u0437\u0430\u043b. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443 \u0434\u0430, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u043a\u043e\u043d\u043e\u0447\u043d\u044b\u0435 \u0448\u0440\u0438\u0444\u0442\u044b, \u0432\u043e\u0442 \u0432 \u0447\u0435\u043c \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<br \/>  1. \u0422\u0430\u043a\u0438\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u044f\u0442\u0441\u044f \u043a\u0430\u043a \u0448\u0440\u0438\u0444\u0442 \u0438 \u0432 Windows, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0430\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043c\u044b\u043b\u044c\u043d\u044b\u0435 \u043a\u0440\u0430\u044f. \u0415\u0441\u0442\u044c <a href=\"http:\/\/daneden.me\/2010\/12\/css-font-smoothing\/\">CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0435\u0448\u0430\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043d\u043e \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 WebKit \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 MAC \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b. \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0440\u0443\u0433\u0430\u043b\u0441\u044f.<br \/>  2. \u0422\u043e\u043b\u044c\u043a\u043e \u0432 23 Chrome \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 Windows \u0442\u0430\u043a\u043e\u0439 \u0448\u0440\u0438\u0444\u0442 \u043d\u0430\u0447\u0430\u043b \u0438\u0441\u0447\u0435\u0437\u0430\u0442\u044c, \u0430 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0441\u0438\u043b\u044c\u043d\u043e \u00ab\u0440\u0432\u0430\u0442\u044c\u00bb \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0442\u043a\u0443 \u0441\u0430\u0439\u0442\u0430. \u042f \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0442\u0430\u043a\u0438\u043c\u0438 \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438, \u043d\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0438\u043a\u043e\u043d\u043a\u0430\u043c\u0438. \u0418 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0442\u0430\u043a\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<br \/>  3. \u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0442\u0435\u043d\u044c. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0440\u0443\u0433\u0430\u043b\u0441\u044f.<br \/>  4. \u0412\u0435\u0441 \u0442\u0430\u043a\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430. C SVG \u043d\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0441\u044f.<br \/>  5. \u0412\u0441\u0435-\u0442\u0430\u043a\u0438 SVG \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u043c. <\/p>\n<h4>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u0438\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/h4>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0447\u0438c\u0442\u044b\u0439 HTML \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u043a \u043d\u0435\u043c\u0443 main.css \u0438\u043b\u0438 \u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043d\u0430\u0448\u0438\u0445 \u0438\u043a\u043e\u043d\u043e\u043a.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432 \u0442\u0435\u0433 body. \u0412 \u043d\u0435\u043c, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 defs, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u044b \u043d\u0430\u0448\u0438\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0432 \u0432\u0438\u0434\u0435 clip-path \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u043d\u0438\u0445 (\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u0442\u0435\u043d\u044c).<br \/>  \u041a\u0430\u043a \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c SVG \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443 <a href=\"http:\/\/msdn.microsoft.com\/en-us\/ie\/hh410107.aspx\">\u0432\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0440\u0438\u0447\u043a\u0430<\/a>, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u0435\u0432\u0435\u0440\u0435\u0434\u043b\u0438\u0432\u044b\u0439.<\/p>\n<pre><code class=\"html\">&lt;!doctype html&gt; &lt;html&gt;   &lt;head&gt;     &lt;meta charset=utf-8 \/&gt;     &lt;title&gt;&lt;\/title&gt;     &lt;link rel=&quot;stylesheet&quot; href=&quot;main.css&quot;&gt;   &lt;\/head&gt;    &lt;body&gt;      &lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt;     &lt;!DOCTYPE svg PUBLIC &quot;-\/\/W3C\/\/DTD SVG 1.1\/\/EN&quot;     &quot;http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd&quot;&gt;       &lt;svg version=&quot;1.1&quot; xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot;&gt;          &lt;defs&gt;             &lt;!-- \u0437\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443\u0442 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0444\u043e\u0440\u043c\u044b \u043d\u0430\u0448\u0438\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0442\u0435\u043d\u0438 \u043a \u043d\u0438\u043c --&gt;           &lt;\/defs&gt;      &lt;\/svg&gt;    &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u043e\u0440\u043c\u0443 \u0438\u043a\u043e\u043d\u043a\u0438<\/h4>\n<p>  \u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c SVG \u043a\u043e\u0434, \u044f \u0434\u0443\u043c\u0430\u044e, \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e? \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c SVG \u0444\u0430\u0439\u043b \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0438\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u044b\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Illustrator. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0437\u0434\u0435\u0441\u044c \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0442\u043e\u043b\u044c\u043a\u043e SVG \u043a\u043e\u0434 \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e HTML \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 (\u043f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0442\u0435\u0433\u0435 body). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0435\u0433 clipPath \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e SVG \u0444\u043e\u0440\u043c\u0443 \u0438\u043a\u043e\u043d\u043a\u0438.<\/p>\n<pre><code class=\"html\">&lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt;  &lt;!DOCTYPE svg PUBLIC &quot;-\/\/W3C\/\/DTD SVG 1.1\/\/EN&quot;     &quot;http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd&quot;&gt;  &lt;svg version=&quot;1.1&quot; xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot;&gt;     &lt;defs&gt;        &lt;clipPath id=&quot;heart-path&quot;&gt;            &lt;path fill-rule=&quot;evenodd&quot; clip-rule=&quot;evenodd&quot; d=&quot;M256,512c0,0-256-144.938-256-311.694C0,29.22,240.62,10.145,256,192 c18.467-181.721,256-162.784,256,8.306C512,367.062,256,512,256,512z&quot;\/&gt;       &lt;\/clipPath&gt;        &lt;\/defs&gt;   &lt;\/svg&gt; <\/code><\/pre>\n<p>  \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0440\u0434\u0446\u0430. \u041f\u0440\u043e\u0448\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442 id=&quot;heart-path&quot; \u0443 \u0442\u0435\u0433\u0430 clipPath.<br \/>  \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0444\u043e\u0440\u043c\u0443 \u043d\u0430\u0448\u0435\u0439 \u0438\u043a\u043e\u043d\u043a\u0438.<\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043a\u043e\u043d\u043a\u0438<\/h4>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 HTML \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u043d\u0430\u0448\u0443 \u0438\u043a\u043e\u043d\u043a\u0443. \u041e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430, \u0432\u043d\u0443\u0442\u0440\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u0432\u0430\u0434\u0440\u0430\u0442:<\/p>\n<pre><code class=\"html\"> &lt;svg class=&quot;heart-icon icon&quot; viewBox=&quot;0 0 512 512&quot;&gt;       &lt;rect width=&quot;512&quot; height=&quot;512&quot; \/&gt;  &lt;\/svg&gt; <\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0438\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u2014 \u0438\u043a\u043e\u043d\u043a\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0442\u0435\u0440\u043f\u0438\u043c\u0430\u044f \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443 \u0432\u0441\u0435\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u0430\u044f. \u0415\u0441\u043b\u0438 \u0447\u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438\/\u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c\/\u0443\u0431\u0440\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0446\u0438\u0444\u0440\u0443 512. \u042d\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b\u0430 \u0432\u043f\u0438\u0441\u0430\u043d\u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0430, \u043a\u043e\u0433\u0434\u0430 \u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435. \u0421 \u0412\u0430\u0448\u0435\u0439 \u0438\u043a\u043e\u043d\u043a\u043e\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u043d\u0430\u0447\u0435. \u041a\u043b\u0430\u0441\u0441 heart-icon \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0444\u043e\u0440\u043c\u044b \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 CSS, \u043a\u043b\u0430\u0441\u0441 icon \u2014 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0438\u043a\u043e\u043d\u043e\u043a (\u0438\u0445 \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0441\u0441\u0430?).<\/p>\n<h4>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c CSS<\/h4>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0415\u0441\u043b\u0438 \u0412\u044b \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/pDxdq\">\u0443\u0432\u0438\u0434\u0438\u0442\u0435<\/a> \u0447\u0435\u0440\u043d\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 512 \u043d\u0430 512 \u043f\u0438\u043a\u0441\u0435\u043b\u044f. \u041c\u0430\u043b\u0435\u0432\u0438\u0447 \u0443\u0436\u0435 \u043e\u0434\u043e\u0431\u0440\u044f\u0435\u0442. \u041d\u043e, \u0431\u043e\u044e\u0441\u044c, \u043d\u0430\u0448 \u0441 \u0432\u0430\u043c\u0438 <a href=\"http:\/\/shkolazhizni.ru\/archive\/0\/n-54167\/\">\u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442 \u0441\u0443\u043f\u0440\u0435\u043c\u0430\u0442\u0438\u0437\u043c\u0430<\/a> \u043d\u0438\u043a\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043e\u0446\u0435\u043d\u0438\u0442. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c.<\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0438\u043a\u043e\u043d\u043e\u043a \u043d\u0435\u0442? \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443 \u2014 CSS.<\/p>\n<p>  \u0412 main.css \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443 \u043f\u0438\u0448\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 heart-icon \u0438 icon.<\/p>\n<pre><code class=\"css\">.icon{   width:32px;   height:32px;   cursor:pointer;   fill: #ccc; } <\/code><\/pre>\n<p>\u041d\u0430\u0448 \u0447\u0435\u0440\u043d\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u0435\u0440\u044b\u043c \u0438 32\u044532 \u043f\u0438\u043a\u0441\u0435\u043b\u044f. \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e fill \u0437\u0430\u0434\u0430\u0435\u0442 \u0437\u0430\u043b\u0438\u0432\u043a\u0443 \u043d\u0430\u0448\u0435\u0439 \u0438\u043a\u043e\u043d\u043a\u0438.<\/p>\n<pre><code class=\"css\">.heart-icon rect{   clip-path:url('#heart-path'); } <\/code><\/pre>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/lzgmC\">\u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f<\/a> \u0444\u043e\u0440\u043c\u0430 \u0438\u043a\u043e\u043d\u043a\u0438! clip-path \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e c\u0432\u043e\u0439c\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443 \u043f\u043e #heart-path \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0435 \u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0443.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u043a\u043e\u043d\u043a\u0438. \u042d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 :hover, :active \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 checked \u043a\u043b\u0430\u0441\u0441.<\/p>\n<pre><code class=\"css\">.heart-icon rect{   clip-path:url('#heart-path'); }  .icon:hover{   fill: #999; }  .icon:active, .icon.checked{   fill:red; }  <\/code><\/pre>\n<p>  \u0414\u043b\u044f <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/jivFK\">\u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438<\/a> \u044f \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u043a\u043e\u043d\u043a\u0443 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0435\u0439 \u043a\u043b\u0430\u0441\u0441 checked.<br \/>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u043d\u0430\u0448\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0433\u043e\u0442\u043e\u0432\u0430. \u0414\u0430, \u043e\u043d\u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u0412 \u043c\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u044f \u0431\u044b \u0437\u0430\u0434\u0430\u0432\u0430\u043b \u0446\u0432\u0435\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441. \u0412\u0435\u0434\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0443 \u043d\u0430\u0441 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432 \u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u043c (\u043d\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0441\u0435\u0440\u044b\u0435). \u041d\u043e \u043d\u0435 \u0437\u0430\u0431\u0438\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u0438\u043c \u0433\u043e\u043b\u043e\u0432\u0443, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0435\u0449\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0438\u043a\u043e\u043d\u043a\u0443 \u0432 \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c:<\/p>\n<ol>\n<li> \u0417\u0430\u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 clip-path c \u0444\u043e\u0440\u043c\u043e\u0439 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0441\u0432\u043e\u0438\u043c id \u0432 \u043e\u0431\u0449\u0435\u043c SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 (\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 &lt;defs&gt;).<\/li>\n<li> \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u044b \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 CSS.<\/li>\n<\/ol>\n<p>  <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/upkzj\">\u0422\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e.<\/a><\/p>\n<p>  \u042f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u043b\u0435\u0439 \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u0434 \u0435\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 clip-path \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u0438, \u043d\u043e \u0438 \u043b\u044e\u0431\u044b\u0435 \u0444\u0438\u0433\u0443\u0440\u044b (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 SVG \u043a\u043e\u043d\u0435\u0447\u043d\u043e).<\/p>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u044e\u044e \u0442\u0435\u043d\u044c<\/h4>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SVG filter.<br \/>  \u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e. \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0441 \u0438\u043a\u043e\u043d\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043f\u043e\u0432\u0435\u0440\u0445 \u043d\u0438\u0445. \u0427\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u043b\u0430. \u0418\u043d\u043e\u0433\u0434\u0430. \u041c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043c\u0435\u043d\u044f. \u0411\u0443\u0434\u044c\u0442\u0435 \u043d\u0430 \u0447\u0435\u043a\u0443. \u0418 \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0447\u0442\u043e\u0431\u044b \u0444\u0438\u043b\u044c\u0442\u0440 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043b\u0441\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u0438\u043a\u043e\u043d\u043a\u0443. \u0414\u0430, \u043e\u0447\u0435\u043d\u044c \u0436\u0430\u043b\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u043a\u043e\u043d\u043a\u0430 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c = 3 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0422\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c <a href=\"http:\/\/www.kickstarter.com\/\">\u0442\u0440\u0435\u043d\u0434\u043e\u0432\u044b\u0439<\/a> <a href=\"https:\/\/new.myspace.com\/\">\u0444\u043b\u0435\u0442<\/a> <a href=\"https:\/\/layervault.com\/\">\u0434\u0438\u0437\u0430\u0439\u043d<\/a>, \u0441\u043c\u0435\u043b\u043e <a href=\"#true_is_love\">\u043f\u0435\u0440\u0435\u043c\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442:   <\/p>\n<pre><code class=\"html\"> &lt;svg class=&quot;heart-icon icon&quot; viewBox=&quot;0 0 512 512&quot;&gt;     &lt;g&gt;       &lt;rect width=&quot;512&quot; height=&quot;512&quot; \/&gt;     &lt;\/g&gt;  &lt;\/svg&gt; <\/code><\/pre>\n<p>\u0422\u044d\u0433 &lt;g&gt; \u0438 \u0435\u0441\u0442\u044c \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b  SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0444\u0438\u043b\u044c\u0442\u0440:  <\/p>\n<pre><code class=\"html\">&lt;filter id='inset-shadow'&gt;          &lt;!-- \u0421\u0434\u0432\u0438\u0433 \u0442\u0435\u043d\u0438 --&gt;     &lt;feOffset       dx='0'       dy='0'     \/&gt;          &lt;!-- \u0420\u0430\u0437\u043c\u044b\u0442\u0438\u0435 \u0442\u0435\u043d\u0438 --&gt;     &lt;feGaussianBlur       stdDeviation='20'       result='offset-blur'      \/&gt;          &lt;!-- \u0418\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c drop shadow          \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0442\u0435\u043d\u044c --&gt;     &lt;feComposite       operator='out'       in='SourceGraphic'       in2='offset-blur'       result='inverse'     \/&gt;          &lt;!-- \u0426\u0432\u0435\u0442 \u0438 \u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c --&gt;     &lt;feFlood       flood-color='black'       flood-opacity='.65'       result='color'     \/&gt;          &lt;!-- \u041e\u0431\u0440\u0435\u0437\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u044c \u0442\u0435\u043d\u0438 --&gt;     &lt;feComposite       operator='in'       in='color'       in2='inverse'       result='shadow'     \/&gt;          &lt;!-- \u0420\u0430\u0437\u043f\u043e\u043b\u043e\u0433\u0430\u0435\u043c \u0442\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 --&gt;     &lt;feComposite       operator='over'       in='shadow'       in2='SourceGraphic'     \/&gt;   &lt;\/filter&gt;  <\/code><\/pre>\n<p>  \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440, \u044f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443. \u0412\u044b \u0437\u0430\u043f\u0440\u043e\u0441\u0442\u043e <a href=\"http:\/\/www.w3.org\/TR\/SVG\/filters.html\">\u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435<\/a> \u044d\u0442\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u042d\u0442\u043e \u0432\u0435\u0434\u044c \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430. \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0440\u043e\u044e \u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438.<br \/>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0442\u043e \u0443 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c id=&#8217;inset-shadow&#8217;<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0438\u043a\u043e\u043d\u043a\u0430\u043c \u0442\u0435\u043d\u044c  <\/p>\n<pre><code class=\"css\">.icon g{   filter:url('#inset-shadow') } <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/Kljoq\">\u0432\u0441\u0435<\/a>. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u043c\u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0434\u043e\u0439.<br \/>  <a name=\"true_is_love\"><\/a>  <\/p>\n<h4>\u041f\u0440\u0430\u0432\u0434\u0430 \u0438\u043b\u0438 \u043b\u044e\u0431\u0438\u043c \u0432\u0441\u0435\u0445<\/h4>\n<p>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0435 <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/Kljoq\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0432 Opera, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 3 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432. \u0422\u0435 \u0438\u043a\u043e\u043d\u043a\u0438, \u0447\u0442\u043e \u0441 \u0442\u0435\u043d\u044c\u044e \u0438 \u0432\u043e\u0432\u0441\u0435 \u0438\u0441\u0447\u0435\u0437\u0430\u044e\u0442 \u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 SVG \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440, \u043e\u043d \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p>  \u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0436\u0435 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442?! \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f 2 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0445 \u043c\u0438\u0440\u0430. \u041d\u0430\u0448 \u043f\u0443\u0442\u044c url(&#8216;#heart-path&#8217;) Opera \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a \u043f\u0443\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b\u0430 CSS \u0438\u043b\u0438 url(&#8216;main.css#heart-path&#8217;) \u0432\u043c\u0435\u0441\u0442\u043e url(&#8216;index.html#heart-path&#8217;), \u043a\u0430\u043a \u0434\u0435\u043b\u0430\u044e\u0442 \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0443\u0442\u044c \u044d\u043a\u0441\u043a\u043b\u044e\u0437\u0438\u0432\u043d\u043e \u043a\u0430\u043a url(&#8216;index.html#heart-path&#8217;), \u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u043d\u0435 \u043f\u0430\u0440\u0441\u044f\u0442 SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 index.html, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0435\u0433\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u043c. \u0422\u0430\u043a\u0438\u0435 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0438 \u0443 Mozilla, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0412\u044b \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u0435 main.css \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441 \u0444\u0430\u0439\u043b\u043e\u043c index.html. IE \u0436\u0435 \u0432 \u044d\u0442\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0435 \u0441\u043e\u043b\u0438\u0434\u0430\u0440\u0435\u043d \u0441 WebKit. \u0410 WebKit \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u0440\u0443\u0436\u0438\u0442 \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c\u0438. \u0418\u043c \u043d\u0443\u0436\u0435\u043d \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439.<\/p>\n<h4>\u0420\u0430\u0437\u0432\u043e\u0434\u0438\u043c \u043c\u0438\u0440\u044b \u043f\u043e \u0443\u0433\u043b\u0430\u043c.<\/h4>\n<p>  \u0412 \u0441\u043c\u044b\u0441\u043b\u0435, \u043c\u0438\u0440\u0438\u043c. \u0422\u043e \u0435\u0441\u0442\u044c, \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043e\u0434\u0438\u0442\u044c \u0445\u043e\u0440\u043e\u0432\u043e\u0434.<br \/>  \u0414\u0430, \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u043a\u0440\u043e\u0441\u0441\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0418\u0442\u0430\u043a \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e:  <\/p>\n<ol>\n<li> \u0414\u0432\u0430 CSS \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0438\u0440\u043e\u0432.<\/li>\n<li> \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u0438\u043a\u043e\u043d\u043e\u043a \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435(\u0444\u0430\u0439\u043b\u0435).<\/li>\n<li> \u0418\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u0438 \u0444\u043e\u0440\u043c \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u2014 \u043e\u0434\u0438\u043d SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442.<\/li>\n<li> \u041d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435.<\/li>\n<\/ol>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c. \u0412 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430\u043c \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 CSS \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/learnboost.github.com\/stylus\/\">Stylus<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435\u0437\u0430\u0441\u043b\u0443\u0436\u0435\u043d\u043d\u043e \u043e\u0431\u0434\u0435\u043b\u0435\u043d \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043d\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u043f\u0440\u043e\u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440.<br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 HTML \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c PHP, \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0439 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u041b\u044e\u0431\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0439\u0441\u044f \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u0443\u0435\u043c \u0444\u0430\u0439\u043b index.html \u0432 index.php. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 \/css \u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u043d\u0435\u0439 \u0444\u0430\u0439\u043b icons.svg, \u043a\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043c \u043d\u0430\u0448 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0441 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f\u043c\u0438 \u0444\u043e\u0440\u043c \u0438\u043a\u043e\u043d\u043e\u043a.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/59b\/461\/f4d\/59b461f4d7c612de32f33f9e5313ffa3.png\"\/><\/p>\n<p>  \u041d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e SVG \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0432 index.php \u043d\u0430\u043f\u0438\u0448\u0435\u043c PHP \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435<br \/>  &lt;?php include &quot;css\/icons.svg&quot;; ?&gt;<br \/>  \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u0444\u0430\u0439\u043b\u0430 icons.svg \u043d\u0430 \u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435. <br \/>  \u041f\u0443\u043d\u043a\u0442 3 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d, \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0443\u043d\u043a\u0442 1 \u0438 2.<\/p>\n<p>  \u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/css \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b icons.styl. \u042d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e \u043e\u0434\u043d\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438 \u043d\u0430\u0448\u0438\u0445 \u0438\u043a\u043e\u043d\u043e\u043a. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 main.css \u0438 \u043e\u0444\u043e\u0440\u043c\u0438\u043c \u0432 \u0432\u0438\u0434\u0435 \u043c\u0438\u043a\u0441\u0438\u043d\u0430 icons_mixin:  <\/p>\n<pre><code class=\"css\">icons_mixin( path = '' )        .heart-icon rect{           clip-path:url( path + '#heart-path');      }       .play-icon rect{           clip-path:url( path + '#play-path');      }        .icon{           width:32px;           height:32px;           cursor:pointer;           fill: #ccc;            g{                filter:url( path + '#inset-shadow')           }            &:hover{                fill: #999;           }            &:active, &.checked{                fill:red;           }                   } <\/code><\/pre>\n<p>  \u041c\u0438\u043a\u0441\u0438\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043f\u0443\u0442\u044c \u043a SVG \u0444\u043e\u0440\u043c\u0430\u043c. \u0415\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0443\u0442\u0435\u0439 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432.<br \/>  CSS \u0441\u0442\u0438\u043b\u0438 \u0438\u043a\u043e\u043d\u043e\u043a \u043d\u0438\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043b <a href=\"http:\/\/learnboost.github.com\/stylus\/try.html\">\u043d\u0435\u0441\u0442\u0438\u043d\u0433<\/a> \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0449\u0435 2 .styl \u0444\u0430\u0439\u043b\u0430. webkit_ie.styl \u0438 ff_op.styl.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0432\u0435\u0431\u0441\u0430\u0439\u0442\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432\u0442\u043e\u0440\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Mozilla \u0438 Opera.<\/p>\n<p>  \u0412 \u0444\u0430\u0439\u043b webkit_ie.styl \u0434\u043e\u0431\u0430\u0432\u0438\u043c:  <\/p>\n<pre><code class=\"css\">@import 'icons.styl'  icons_mixin() <\/code><\/pre>\n<p>  \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u043c \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<br \/>  \u0412 \u0444\u0430\u0439\u043b ff_op.styl \u0434\u043e\u0431\u0430\u0432\u0438\u043c:  <\/p>\n<pre><code class=\"css\">@import 'icons.styl'  icons_mixin('icons.svg') <\/code><\/pre>\n<p>  \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u043c \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0435\u043c\u0443 \u043f\u0443\u0442\u044c \u043a icons.svg.<\/p>\n<p>  \u041f\u0443\u043d\u043a\u0442 1 \u0438 2 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b. \u0412\u044b\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u0435\u043c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c, \u0432\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0435\u043a\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/b39\/af4\/340\/b39af43408b818e8291f212ca5523662.png\"\/><\/p>\n<p>  \u0412 index.php \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u043f\u0443\u0442\u044c \u043a \u0441\u0442\u0438\u043b\u044f\u043c \u0438\u043a\u043e\u043d\u043e\u043a, \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e <br \/>  &lt;link rel=&quot;stylesheet&quot; href=&quot;css\/webkit_ie.css&quot;&gt;<\/p>\n<p>  \u0418 \u0432 \u0441\u0430\u043c\u043e\u043c \u043a\u043e\u043d\u0446\u0435, \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u0442\u0435\u0433\u043e\u043c &lt;\/body&gt; \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0438\u043b\u0435\u0439 \u0438\u043a\u043e\u043d\u043e\u043a \u0434\u043b\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0441 \u0434\u0432\u0438\u0436\u043a\u043e\u043c \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043e\u0442 WebKit \u0438\u043b\u0438 Trident(IE):<\/p>\n<pre><code class=\"javascript\">&lt;script type=&quot;text\/javascript&quot;&gt;  var firefox = navigator.userAgent.indexOf(&quot;Firefox&quot;) != -1 ; var opera = navigator.userAgent.indexOf(&quot;Opera&quot;) != -1 ;  if ( firefox || opera ) {   document.write('&lt;link rel=&quot;stylesheet&quot; href=&quot;css\/ff_op.css&quot;&gt;'); }  &lt;\/script&gt; <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. <a href=\"http:\/\/legomushroom.dropmark.com\/101369\/1444963\">\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a><\/p>\n<h4>\u0427\u0442\u043e \u0436\u0435 \u043c\u044b \u043d\u0430\u0434\u0435\u043b\u0430\u043b\u0438!?<\/h4>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0433\u043b\u044f\u043d\u0435\u043c\u0441\u044f \u043d\u0430\u0437\u0430\u0434 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0442\u0432\u043e\u0440\u0438\u043b\u0438. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0439, \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u0430\u044f \u0438 \u043f\u0440\u043e\u0441\u0442\u0430\u044f (\u0441 \u043c\u043e\u0435\u0433\u043e \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430) \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u043f\u0440\u0430\u0432\u043e \u043d\u0430 \u0436\u0438\u0437\u043d\u044c.  <\/p>\n<ul>\n<li>\u041e\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS.<\/li>\n<li>\u041e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432<\/li>\n<li>\n<ul>\n<li>IE 9-10<\/li>\n<li>Mozilla 4+<\/li>\n<li>Opera 11.6+<\/li>\n<li>Safari 5.1+<\/li>\n<li>Chrome 14+ (\u044f \u0434\u0443\u043c\u0430\u044f\u044e \u0438 4+, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438)<\/li>\n<\/ul>\n<\/li>\n<li>\u041e\u043d\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u0430 \u043f\u043e \u0432\u0435\u0441\u0443. (\u0412\u0441\u043f\u043e\u043c\u043d\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u043b\u0435\u0439 &lt;polygon fill-rule=\u00abevenodd\u00bb clip-rule=\u00abevenodd\u00bb points=\u00ab0,0 512,256 0,512\u00bb \/&gt; \u0432\u0435\u0441 \u0435\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435\u0433\u043e 85 \u0431\u0430\u0439\u0442)<\/li>\n<li>\u0412\u0441\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438.<\/li>\n<\/ul>\n<p>  \u0412\u0441\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b. \u0417\u0434\u0435\u0441\u044c \u0441 \u0412\u0430\u0448\u0435\u0433\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u044f \u044f \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c. \u0412\u0441\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438 \u0432\u0440\u0435\u043c\u044f, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0412\u044b \u043f\u0440\u043e\u0432\u0435\u043b\u0438 \u0435\u0433\u043e \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0439.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/167085\/\"> http:\/\/habrahabr.ru\/post\/167085\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/77d\/443\/cd6\/77d443cd6a054bef94c656c2eec4030f.png\"\/><br \/>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e:   <\/p>\n<ol>\n<li> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e SVG.<\/li>\n<li> \u041e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS (\u0444\u043e\u0440\u043c\u0430, \u0440\u0430\u0437\u043c\u0435\u0440, \u0437\u0430\u043b\u0438\u0432\u043a\u0430, \u044d\u0444\u0444\u0435\u043a\u0442\u044b \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435).<\/li>\n<li> \u041e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0432\u0435\u0441 \u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 http \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/li>\n<li> \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445.<\/li>\n<\/ol>\n<p>  <a href=\"http:\/\/codepen.io\/sol0mka\/pen\/Kljoq\">\u0434\u0435\u043c\u043e<\/a>  <\/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-167085","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167085","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=167085"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167085\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}