{"id":214917,"date":"2014-03-06T20:27:02","date_gmt":"2014-03-06T16:27:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=214917"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=214917","title":{"rendered":"<span class=\"post_title\">\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0440\u0443\u0433: CSS \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0445\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435. \u041d\u0435\u0434\u0430\u0432\u043d\u043e <a href=\"https:\/\/twitter.com\/HugoGiraudel\">Hugo Giraudel<\/a>, \u043e\u043d \u0436\u0435 CSS \u0433\u043e\u0431\u043b\u0438\u043d, SASS \u0445\u0430\u043a\u0435\u0440 \u0438 Margin \u043f\u0441\u0438\u0445 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e <a href=\"http:\/\/hugogiraudel.com\/2014\/02\/19\/the-magic-circle-a-css-brain-teaser\/\">CSS \u0437\u0430\u0434\u0430\u0447\u043a\u0443<\/a> \u043d\u0430 \u0441\u043c\u044b\u0448\u043b\u0435\u043d\u043e\u0441\u0442\u044c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/4cd\/3e8\/31e\/4cd3e831eeae4c1fb8cf2aef4f7b70f0.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430? <\/p>\n<ul>\n<li>\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b \u0432\u0438\u0434\u0435\u043d background<\/li>\n<li>\u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043b\u0435\u0432\u044b\u043c\u0438 \u0438 \u043f\u0440\u0430\u0432\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438, \u043a\u0430\u043a \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0445\u043d\u0438\u043c\u0438 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435<\/li>\n<li>\u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 \u0432 \u0431\u043b\u043e\u043a\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f<\/li>\n<li>DOM \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <b>ul &gt; li &gt; section &gt; header + footer<\/b><\/li>\n<li>\u041d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c JavaScript \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/li>\n<li><i>\u0414\u043e\u043f\u043e\u043b\u043d\u044e \u0435\u0449\u0435 \u043e\u0442 \u0441\u0435\u0431\u044f:<\/i> \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CSS Shape \u0438 Clip Path<\/li>\n<\/ul>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u043d\u044c \u2014 <a href=\"http:\/\/codepen.io\/HugoGiraudel\/pen\/cffeb2facdf797f46617e9615105f38d\">\u043a\u0430\u0440\u043a\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c<\/a>.<\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u043b\u0438?<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0411\u0430\u0437\u043e\u0432\u044b\u0439 HTML:  <\/p>\n<pre><code class=\"html\">&lt;ul class=&quot;boxes&quot;&gt;      &lt;li class=&quot;box  box-alpha&quot;&gt;     &lt;section class=&quot;box-content&quot;&gt;       &lt;header class=&quot;box-header&quot;&gt;&lt;\/header&gt;       &lt;footer class=&quot;box-footer&quot;&gt;&lt;\/footer&gt;     &lt;\/section&gt;   &lt;\/li&gt;      &lt;li class=&quot;box  box-beta&quot;&gt;     &lt;section class=&quot;box-content&quot;&gt;       &lt;header class=&quot;box-header&quot;&gt;&lt;\/header&gt;       &lt;footer class=&quot;box-footer&quot;&gt;&lt;\/footer&gt;     &lt;\/section&gt;   &lt;\/li&gt;      &lt;li class=&quot;box  box-gamma&quot;&gt;     &lt;section class=&quot;box-content&quot;&gt;       &lt;header class=&quot;box-header&quot;&gt;&lt;\/header&gt;       &lt;footer class=&quot;box-footer&quot;&gt;&lt;\/footer&gt;     &lt;\/section&gt;   &lt;\/li&gt;      &lt;li class=&quot;box  box-delta&quot;&gt;     &lt;section class=&quot;box-content&quot;&gt;       &lt;header class=&quot;box-header&quot;&gt;&lt;\/header&gt;       &lt;footer class=&quot;box-footer&quot;&gt;&lt;\/footer&gt;     &lt;\/section&gt;   &lt;\/li&gt; &lt;\/ul&gt; <\/code><\/pre>\n<p>  \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0442\u0438\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442 \u0431\u043b\u043e\u043a\u0438. \u041e\u0431\u043e\u0437\u043d\u0430\u0447\u0443 \u043b\u0438\u0448\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u0446\u0435\u043d\u0442\u0440\u0435:   <\/p>\n<pre><code class=\"css\">.boxes:after {     background: none repeat scroll 0 0 #34495E;     border: 0.5em solid #2C3D50;     border-radius: 50%;     content: &quot; &quot;;     height: 5.5em;     left: 50%;     margin-left: -2.75em;     position: absolute;     top: 10.75em;     width: 5.5em; } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431: <a href=\"http:\/\/codepen.io\/rkrupinski\/pen\/psrBm\">\u0440\u0430\u0434\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442<\/a><\/h4>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0434\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b \u0441 \u0446\u0432\u0435\u0442\u043e\u043c \u0438 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u0441\u0435\u043c footer \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u043b\u044f \u0432\u0435\u0440\u0445\u043d\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0438 \u0432\u0441\u0435\u0445 header \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0434\u043b\u044f \u043d\u0438\u0436\u043d\u0438\u0445 \u0431\u043b\u043e\u043a\u043e\u0432. \u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u044d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u043e \u0432 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u0438\u0437\u044e\u043c\u0435\u043d\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 CSS calc() \u0434\u043b\u044f \u043f\u0440\u0438\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u043e\u0441\u0442\u0438:   <\/p>\n<pre><code class=\"css\">.box-alpha .box-footer {     background: radial-gradient(circle at calc(100% + 2em) 7em , rgba(0, 0, 0, 0) 6em, #148F77 6em) repeat scroll 0 0 rgba(0, 0, 0, 0); } .box-beta .box-footer {     background: radial-gradient(circle at -2em 7em , rgba(0, 0, 0, 0) 6em, #25A25A 6em) repeat scroll 0 0 rgba(0, 0, 0, 0); } .box-gamma .box-header {     background: radial-gradient(circle at calc(100% + 2em) -2em , rgba(0, 0, 0, 0) 6em, #217DBB 6em) repeat scroll 0 0 rgba(0, 0, 0, 0); } .box-delta .box-header {     background: radial-gradient(circle at -2em -2em , rgba(0, 0, 0, 0) 6em, #804399 6em) repeat scroll 0 0 rgba(0, 0, 0, 0); } <\/code><\/pre>\n<h4>\u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431: <a href=\"http:\/\/codepen.io\/mh-nichts\/pen\/Giokl\">\u0440\u0430\u043c\u043a\u0430 \u0434\u043b\u044f \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<\/a><\/h4>\n<p>  \u042f \u0434\u0443\u043c\u0430\u044e, \u044d\u0442\u043e \u2014 \u0441\u0430\u043c\u044b\u0439 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 header \u0438 footer \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0431\u043b\u043e\u043a\u043e\u0432 \u0437\u0430\u0434\u0430\u0435\u043c margin \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u043a\u0446\u0438\u0438 \u0438 header \u0441 footer \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b:  <\/p>\n<pre><code class=\"css\">.box-alpha .box-content:before {     border-color: #148F77 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #148F77;     bottom: -7.5em;     right: -7.5em; } .box-content:before {     border: 10em solid #FF0000;     content: &quot;&quot;;     display: block;     height: 0;     position: absolute;     width: 0; } .box-alpha .box-content:after {     border-color: #148F77;     bottom: -10em;     right: -10em; } .box-content:after {     border: 2em solid #FF0000;     border-radius: 30em;     content: &quot;&quot;;     display: block;     height: 12em;     position: absolute;     width: 12em;     z-index: 0; }  ...  <\/code><\/pre>\n<p>  \u041e\u0431\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 :before \u0434\u043b\u044f .box-alpha, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u0438\u043b\u0438 \u0432\u044b\u0441\u043e\u0442\u044b. <a href=\"http:\/\/codepen.io\/chriscoyier\/pen\/lotjh\">\u0412\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c<\/a> \u043a\u0430\u043a \u043c\u044b \u0432\u0441\u0435 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u00ab\u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438\u00bb \u0438\u043b\u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u043d\u0430 CSS \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e border. \u0422\u043e\u0442 \u0436\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0438 \u0437\u0434\u0435\u0441\u044c. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/089\/16d\/e79\/08916de795a6a355b580cc1763288082.jpg\" alt=\"image\"\/><\/p>\n<h4>\u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431: <a href=\"http:\/\/codepen.io\/thebabydino\/pen\/LmxnI\">\u0442\u0435\u043d\u0438 \u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b<\/a><\/h4>\n<p>  \u041c\u043e\u0435 \u043b\u044e\u0431\u0438\u043c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u0430\u043c\u044b\u0445 \u0442\u043e\u043d\u043a\u0438\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0432 CSS. \u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0434\u043b\u044f \u043d\u0443\u0436\u043d\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 padding. \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0431\u043b\u043e\u043a\u043e\u0432, \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u0430 \u043d\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044c \u043a\u0440\u0443\u0433\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u0435\u043d. \u0424\u043e\u043d \u0435\u043c\u0443 \u0437\u0430\u0434\u0430\u0435\u043c \u043e\u0433\u0440\u043e\u043c\u043d\u0430\u044f \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0442\u0435\u043d\u044c \u043f\u0441\u0435\u0432\u0434\u043e-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.   <\/p>\n<pre><code class=\"css\">.block__element--cut:before {     border-radius: 50%;     content: &quot;&quot;;     height: 8em;     margin: -5em;     position: absolute;     width: 8em;     z-index: -1; } .block:nth-child(1) .block__element--cut:before {     bottom: 0;     box-shadow: 0 0 0 40em #0F414C;     right: 0; } .block:nth-child(2) .block__element--cut:before {     bottom: 0;     box-shadow: 0 0 0 40em #673A01;     left: 0; } .block:nth-child(3) .block__element--cut:before {     box-shadow: 0 0 0 40em rgba(187, 169, 255, 0.65);     right: 0;     top: 0; } .block:nth-child(4) .block__element--cut:before {     box-shadow: 0 0 0 40em rgba(176, 214, 95, 0.65);     left: 0;     top: 0; } <\/code><\/pre>\n<p>  \u041d\u043e \u0441\u0430\u043c\u043e\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0442\u0443\u0442 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0442\u0435\u043d\u044c. \u0410 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <b>margin: -5em<\/b>. \u041f\u0440\u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 right, bottom \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f margin-right: -5em \u0438 margin-bottom: -5em \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. <\/p>\n<p>  \u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 Hugo \u043d\u0430 SASS \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"http:\/\/hugogiraudel.com\/2014\/02\/26\/the-magic-circle-trick-revealed\/\">\u0442\u0443\u0442<\/a>. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 box-shadow \u043a\u0430\u043a \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u0412\u0441\u043f\u043e\u043c\u043d\u0438\u0432 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u043c\u043e\u0439 \u0432\u0447\u0435\u0440\u0430\u0448\u043d\u0438\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434 <a href=\"http:\/\/habrahabr.ru\/post\/214761\/\">\u00ab\u0422\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 90-\u0445 \u043f\u043e\u043c\u043d\u044f\u0442 \u044d\u0442\u043e\u0440\u00bb<\/a>, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043b\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 15 \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u043b\u044b\u0431\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u0438 \u0434\u0438\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0443. <\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.       \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\/214917\/\"> http:\/\/habrahabr.ru\/post\/214917\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0445\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435. \u041d\u0435\u0434\u0430\u0432\u043d\u043e <a href=\"https:\/\/twitter.com\/HugoGiraudel\">Hugo Giraudel<\/a>, \u043e\u043d \u0436\u0435 CSS \u0433\u043e\u0431\u043b\u0438\u043d, SASS \u0445\u0430\u043a\u0435\u0440 \u0438 Margin \u043f\u0441\u0438\u0445 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b \u0432 \u0441\u0432\u043e\u0435\u043c \u0431\u043b\u043e\u0433\u0435 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0443\u044e <a href=\"http:\/\/hugogiraudel.com\/2014\/02\/19\/the-magic-circle-a-css-brain-teaser\/\">CSS \u0437\u0430\u0434\u0430\u0447\u043a\u0443<\/a> \u043d\u0430 \u0441\u043c\u044b\u0448\u043b\u0435\u043d\u043e\u0441\u0442\u044c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/4cd\/3e8\/31e\/4cd3e831eeae4c1fb8cf2aef4f7b70f0.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430? <\/p>\n<ul>\n<li>\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b \u0432\u0438\u0434\u0435\u043d background<\/li>\n<li>\u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043b\u0435\u0432\u044b\u043c\u0438 \u0438 \u043f\u0440\u0430\u0432\u044b\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438, \u043a\u0430\u043a \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0445\u043d\u0438\u043c\u0438 \u0438 \u043d\u0438\u0436\u043d\u0438\u043c\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435<\/li>\n<li>\u041f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 \u0432 \u0431\u043b\u043e\u043a\u0435, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f<\/li>\n<li>DOM \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <b>ul &gt; li &gt; section &gt; header + footer<\/b><\/li>\n<li>\u041d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c JavaScript \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/li>\n<li><i>\u0414\u043e\u043f\u043e\u043b\u043d\u044e \u0435\u0449\u0435 \u043e\u0442 \u0441\u0435\u0431\u044f:<\/i> \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CSS Shape \u0438 Clip Path<\/li>\n<\/ul>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u043d\u044c \u2014 <a href=\"http:\/\/codepen.io\/HugoGiraudel\/pen\/cffeb2facdf797f46617e9615105f38d\">\u043a\u0430\u0440\u043a\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c<\/a>.<\/p>\n<p>  \u0421\u0434\u0435\u043b\u0430\u043b\u0438?<\/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-214917","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214917","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=214917"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214917\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}