{"id":194242,"date":"2013-09-18T19:49:02","date_gmt":"2013-09-18T15:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=194242"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=194242","title":{"rendered":"<span class=\"post_title\">Compass \u2014 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 CSS<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0421 \u0432\u044b\u0445\u043e\u0434\u043e\u043c CSS3 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432: \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0441\u0442\u0438\u043b\u0438 \u0441\u0442\u0430\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043d\u043e \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430. \u0412 \u0447\u0438\u0441\u0442\u043e\u043c CSS \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0438 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 <code>@import<\/code> \u043f\u0430\u0433\u0443\u0431\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. <br \/>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0432 CSS \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445, \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435, \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432 \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. <a name=\"habracut\"><\/a>\u0418\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u044f \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u0442\u0438\u043b\u0435\u0439 \u043f\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0443 \u2014 \u0440\u0435\u0448\u0435\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0411\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e, \u043f\u043b\u044e\u0441\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0435\u043d\u0438\u0435 \u0440\u0438\u0441\u043a\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432 \u043a\u043e\u0434\u0430 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u043f\u043e \u043a\u043e\u0434\u0443 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435. \u0422\u0430\u043a \u0436\u0435 \u0432 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0446\u0438\u043a\u043b\u043e\u0432, \u0432 SASS \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/  $animals: puma, sea-slug, salamander; @each $animal in $animals {   .#{$animal}-icon {     background-image: url('\/images\/#{$animal}.png');   } } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ .puma-icon {   background-image: url(&quot;\/images\/puma.png&quot;); }  .sea-slug-icon {   background-image: url(&quot;\/images\/sea-slug.png&quot;); }  .salamander-icon {   background-image: url(&quot;\/images\/salamander.png&quot;); } <\/code><\/pre>\n<p>  \u0438\u043b\u0438:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ @for $i from 1 through 3 {   .item-#{$i} { width: 2em * $i; } }<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ .item-1 {   width: 2em; }  .item-2 {   width: 4em; }  .item-3 {   width: 6em; } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e Compass<\/h4>\n<p>  Compass \u043d\u0435\u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0435\u043c CSS \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Compass \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442 \u0435\u0433\u043e \u043a\u0430\u043a \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0441\u043a\u0438\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. Compass \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 SASS \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 (.sass \u0438\u043b\u0438 .scss), \u0442\u0430\u043a \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0439 SASS \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0432 Compass.<br \/>  \u041e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0439 Compass \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0442\u0438\u043b\u0435\u0439, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0438\u043b\u0438\u044f \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0442\u0430\u0440\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 Compass \u0438\u043c\u0435\u0435\u0442 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c CSS framework-\u043e\u0432:<br \/>   \u2014 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 mixins \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438, CSS3, \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438, \u043b\u044d\u0439\u0430\u0443\u0442\u0430\u043c\u0438;<br \/>   \u2014 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0446\u0432\u0435\u0442\u043e\u043c, \u0441\u043f\u0440\u0430\u0439\u0442\u0430\u043c\u0438 \u0438 \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043a\u0438, \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043b\u0438\u043d\u043a\u0438; <br \/>   \u2014 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 CSS reset;<br \/>   \u2014 normalize.css;<br \/>   \u2014 HTML5 Boilerplate, Blueprint, Twitter Bootstrap; <br \/>   \u2014 Grid systems(Fluid 960, Singularity, 960.gs, Susy, Zen grids, \u0438 \u0434\u0440.)<br \/>   \u2014 Widgets (Fancy Buttons, Sassy Buttons);<br \/>   \u2014 CSS3 PIE;<\/p>\n<p>  C\u043f\u0438\u0441\u043e\u043a Compass mixins \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c <a href=\"http:\/\/compass-style.org\/reference\/compass\/\">\u0437\u0434\u0435\u0441\u044c<\/a>, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a Compass \u043c\u043e\u0434\u0443\u043b\u0435\u0439 <a href=\"https:\/\/github.com\/chriseppstein\/compass\/wiki\/Compass-Plugins\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<h4>\u041a\u0430\u043a \u043d\u0430\u0447\u0430\u0442\u044c \u0441 Compass<\/h4>\n<p>  Compass \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Ruby \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u0441\u044f \u0438\u0437 gem \u043f\u0430\u043a\u0435\u0442-\u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0430 (\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 <a href=\"https:\/\/www.ruby-lang.org\/en\/downloads\/\">Ruby<\/a>):<\/p>\n<pre><code class=\"bash\">$ gem update --system $ gem install compass $ compass create &lt;myproject&gt; \/* \u0441\u043e\u0437\u0434\u0430\u0435\u043c compass \u043f\u0440\u043e\u0435\u043a\u0442 *\/ $ compass watch [path\/to\/compass-project] \/* \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Compass \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u043f\u043a\u0443 [path\/to\/compass-project]*\/ <\/code><\/pre>\n<p>  <a href=\"http:\/\/mhs.github.io\/scout-app\/\">Scout<\/a>, <a href=\"http:\/\/compass.handlino.com\/\">Compass.app<\/a> \u2014 \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0441 \u043a\u043e\u043c\u0430\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439. <\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Compass \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p>  1. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"bash\">$ gem install {extension} <\/code><\/pre>\n<p>  2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0444\u0430\u0439\u043b\u0430 config.rb \u0432 Compass \u043f\u0440\u043e\u0435\u043a\u0442\u0435:  <\/p>\n<pre><code class=\"ruby\">require '{extension}' <\/code><\/pre>\n<p>  3. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"css\">@import '{extension}'; <\/code><\/pre>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Compass \u0432 \u0434\u0435\u043b\u0435.<\/p>\n<h5>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u0441\u043f\u0440\u0430\u0439\u0442\u044b<\/h5>\n<p>  \u041d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u044d\u0442\u043e \u0440\u0443\u0442\u0438\u043d\u043d\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e. Compass \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0438\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u043f\u0440\u0430\u0439\u0442\u043e\u0432 \u2014 \u043c\u0430\u043f\u043f\u0438\u043d\u0433 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439-\u0441\u043f\u0440\u0430\u0439\u0442\u0443 (http:\/\/compass-style.org\/reference\/compass\/helpers\/sprites\/): <\/p>\n<pre><code class=\"css\">\/* SCSS *\/ $arrows: sprite-map(&quot;arrows\/*.png&quot;); \/\/ \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 arrows <\/code><\/pre>\n<p>  \u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0439\u0442 \u0441 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ \/* \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0441\u043f\u0440\u0430\u0439\u0442\u0435: vertical(\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), horizontal, diagonal, smart *\/ $&lt;arrows-dirname&gt;-layout: smart; $arrows: sprite-map(&quot;&lt;arrows-dirname&gt;\/*.png&quot;,    $position: 100%,    $spacing: 25px, \/* \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u043c\u0435\u0436\u0434\u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438 *\/    $arrows-arrow-down-spacing: 10px \/* \u043e\u0442\u0441\u0442\u0443\u043f \u0432 \u0441\u043f\u0440\u0430\u0439\u0442\u0435 \u0434\u043b\u044f &lt;arrows-dirname&gt;\/arrow-down.png *\/ ); <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441\u043f\u0440\u0430\u0439\u0442\u0430 $icons \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 background \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0438\u043a\u0441\u0438\u043d sprite:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ background: sprite($arrows, arrow-down) no-repeat; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ background: url('\/&lt;arrows-dirname&gt;\/arrow-down.png?12345678') 0 -24px no-repeat; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 &lt;arrows-dirname&gt; Compass \u043f\u0435\u0440\u0435\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0441\u043f\u0440\u0430\u0439\u0442, \u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u044c\u0441\u044f \u043e background-position \u2014 Compass \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0443\u044e\u0449\u0438\u0445 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<h5>\u0423\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438<\/h5>\n<p>  Compass \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438.<br \/>  \u0412 CSS \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"css\">\/* CSS *\/ @font-face {   font-family: &quot;PacificoRegular&quot;;   src: url('[project-root]\/fonts\/pacifico\/Pacifico-webfont.eot');   src: url('[project-root]\/fonts\/pacifico\/Pacifico-webfont.eot?#iefix') format('eot'),        url('[project-root]\/fonts\/pacifico\/Pacifico-webfont.woff') format('woff'),        url('[project-root]\/fonts\/pacifico\/Pacifico-webfont.ttf') format('truetype'),        url('[project-root]\/fonts\/pacifico\/Pacifico-webfont.svg') format('svg'); } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0432 Compass \u043c\u0438\u043a\u0441\u0438\u043d\u0430 font-face:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ @include font-face(&quot;PacificoRegular&quot;, font-files(     &quot;pacifico\/Pacifico-webfont.woff&quot;,      &quot;pacifico\/Pacifico-webfont.ttf&quot;,      &quot;pacifico\/Pacifico-webfont.svg&quot;   ),    &quot;pacifico\/Pacifico-webfont.eot&quot; \/* \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a .eot \u0444\u0430\u0439\u043b\u0443 \u0434\u043b\u044f IE *\/ ); <\/code><\/pre>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 em-\u0430\u043c\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0432 CSS \u0438\u0437-\u0437\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0430\u0441\u0447\u0435\u0442\u043e\u0432, \u043d\u043e Compass \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0438\u043c\u0438:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ $base-font-size: 14px; \/* \u0437\u0430\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 *\/ div{   @include adjust-font-size-to(28px); \/* @adjust-font-size-to() - \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e *\/   h1 {     @include adjust-font-size-to(32px, $from-size: 28px); \/* \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 $from-size \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 em *\/   } } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ body {   font-size: 0.875em; \/\/ 0.875 * 16px = 14px  } div {   font-size: 2em;   \/\/ 2 * 14px = 28px } div h1 {   font-size: 1.143em;\/\/ 1.143 * 28px = 32px } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 em \u043b\u0443\u0447\u0448\u0435 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0448\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u043c\u0438 \u0432 Compass. <br \/>  Compass \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 Vertical Rhythms(<a href=\"http:\/\/atendesigngroup.com\/blog\/vertical-rhythm-compass\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e Vertical Rhythms<\/a>). <\/p>\n<h5>\u0412\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b<\/h5>\n<p>  \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043c\u0438\u043a\u0441\u0438\u043d\u044b Compass \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432. \u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ .round {     @include border-radius(4px); } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ .round {     -moz-border-radius: 4px;     -webkit-border-radius: 4px;     -o-border-radius: 4px;     -ms-border-radius: 4px;     -khtml-border-radius: 4px;     border-radius: 4px; } <\/code><\/pre>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ $experimental-support-for-mozilla : true; \/\/ !default; $experimental-support-for-webkit : true; \/\/ !default; $support-for-original-webkit-gradients : true; \/\/ !default; $experimental-support-for-microsoft : true; \/\/ !default; $experimental-support-for-opera : false; $experimental-support-for-khtml : false;  .round {     @include border-radius(4px); } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ .round {     -moz-border-radius: 4px;     -webkit-border-radius: 4px;     -ms-border-radius: 4px;     border-radius: 4px; } <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0413\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b<\/h5>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0432 Compass \u0435\u0441\u0442\u044c 2 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043c\u0438\u043a\u0441\u0438\u043d\u0430 linear-gradient \u0438 radial-gradient, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u043c\u0438\u0441\u043a\u0441\u0438\u043d\u0430\u043c\u0438 background-image \u0438\u043b\u0438 background:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ @import &quot;compass\/css3\/images&quot;; @import &quot;compass\/utilities\/general\/hacks&quot;;  \/* \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f @filter-gradient *\/  .item {   \/* \u0434\u043b\u044f IE, \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0431\u043b\u043e\u043a \u043f\u0435\u0440\u0435\u0434 @linear-gradient \u0438\u043b\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f IE \u0441\u0442\u0438\u043b\u0435\u0439 *\/   @include filter-gradient(#aaaaaa, #eeeeee);   \/* Fallback: *\/   background: #cccccc;   \/* CSS3 c \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430\u043c\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u0432 *\/   @include background(linear-gradient(top, #aaaaaa, #eeeeee)); } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ .item {   *zoom: 1;   -ms-filter: &quot;progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFAAAAAA', endColorstr='#FFEEEEEE')&quot;;   filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFAAAAAA', endColorstr='#FFEEEEEE');   background: #cccccc;   \/* \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 *\/   background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #aaaaaa), color-stop(100%, #eeeeee));   background: -moz-linear-gradient(top, #aaaaaa, #eeeeee);   background: -o-linear-gradient(top, #aaaaaa, #eeeeee);   background: linear-gradient(top, #aaaaaa, #eeeeee); } <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d <a href=\"http:\/\/compass-style.org\/examples\/compass\/css3\/gradient\/\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<h5>Media queries<\/h5>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0435\u0434\u0438\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 \u0432 Compass \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c Breakpoint. Breakpoint \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0435\u0434\u0438\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 \u043e\u0434\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u0435 \u0441\u0442\u0438\u043b\u0435\u0439, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ $small: 543px; $medium: 794px; $fence-sm: $small $medium;  #foo {   content: 'No Media Queries';    @include breakpoint($small) {     content: 'Small Media Query';   }    @include breakpoint($fence-sm) {     content: 'Fenced Media Query';   } } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ #foo {   content: 'No Media Queries'; }  @media (min-width: 543px) { \t#foo { \t\tcontent: 'Small Media Query'; \t} }  @media (min-width: 543px) and (max-width: 794px) { \t#foo { \t\tcontent: 'Fenced Media Query'; \t} } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441 \u00ab\u0418\u00bb, \u00ab\u0418\u041b\u0418\u00bb \u043b\u043e\u0433\u0438\u043a\u043e\u0439:<\/p>\n<pre><code class=\"css\">\/* SCSS *\/ $print-land: print monochrome (orientation landscape); $fenced-landscape: screen 321px 543px, handheld (orientation portrait); \/* \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 screen and (min-width: 321px) and (max-width: 543px), handheld and (orientation: portrait) *\/  #foo {   @include breakpoint($print-land) {     content: 'Monochrome Print in Landscape';   }    @include breakpoint($fence-landscape) {     content: 'Screen media type between 300px and 500px or Handheld media type in Portrait';   } } <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"css\">\/* \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 CSS *\/ @media print and (monochrome) and (orientation: landscape) { \t#foo { \t\tcontent: 'Monochrome Print in Landscape'; \t} }  @media screen and (min-width: 321px) and (max-width: 543px), handheld and (orientation: portrait) { \t#foo { \t\tcontent: 'Screen media type between 321px and 543px or Handheld media type in Portrait'; \t} } <\/code><\/pre>\n<h4>\u0418\u0442\u043e\u0433\u0438<\/h4>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/966\/f74\/1ad\/966f741ad6c97f5bf996fe62cd81d594.jpg\" alt=\"image\"\/><\/p>\n<p>  Compass \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0449\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u043a\u0440\u043e\u0441\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0439 CSS \u043a\u043e\u0434. \u0422\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e Compass \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 LiveReload. <br \/>  \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e Compass \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043d\u043e \u0435\u0433\u043e \u0443\u043c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u0435\u0442 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u043e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0440\u0443\u0442\u0438\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \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\/194242\/\"> http:\/\/habrahabr.ru\/post\/194242\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0421 \u0432\u044b\u0445\u043e\u0434\u043e\u043c CSS3 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u043e\u0432\u0448\u0435\u0441\u0442\u0432: \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0441\u0442\u0438\u043b\u0438 \u0441\u0442\u0430\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043d\u043e \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u0438 \u0441\u0442\u0430\u0440\u044b\u0445 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0434\u0443\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430. \u0412 \u0447\u0438\u0441\u0442\u043e\u043c CSS \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0438 \u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 <code>@import<\/code> \u043f\u0430\u0433\u0443\u0431\u043d\u043e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. <br \/>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0432 CSS \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445, \u0441 \u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u043e\u0432 \u0432 \u043a\u043e\u0434\u0435, \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432 \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. <\/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-194242","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/194242","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=194242"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/194242\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}