{"id":264304,"date":"2015-08-26T12:18:02","date_gmt":"2015-08-26T08:18:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=264304"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=264304","title":{"rendered":"\u041a\u0430\u043a \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e PostCSS"},"content":{"rendered":"<p>             <img loading=\"lazy\" decoding=\"async\" align=\"right\" width=\"110\" height=\"150\" src=\"https:\/\/github.com\/azat-io\/generator-alchemist\/blob\/master\/images\/logo.jpg?raw=true\"\/>CSS-\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e CSS \u043a\u043e\u0434\u0430. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b \u0438 \u0438\u043c\u0435\u043b\u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u044a\u044f\u043d\u044b \u0432 \u0440\u0430\u0431\u043e\u0442\u0435. \u0410 \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u043c \u043f\u0440\u0438\u0448\u0451\u043b \u043f\u043e\u0441\u0442\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 PostCSS.<\/p>\n<p>  \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0449\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 CSS. \u041f\u043e\u0441\u0442\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u0438\u0445 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0445 \u043a\u0430\u043a Twitter \u0438 Google. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Bootstap, \u043f\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f CSS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 PostCSS.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041c\u043d\u043e\u0433\u0438\u0435 \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0432\u0435\u0440\u043d\u043e \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043f\u0440\u043e\u0441\u0442\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433\u043e\u043c. \u041a\u0442\u043e-\u0442\u043e \u0443\u0436\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PostCSS \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043a\u0442\u043e-\u0442\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0414\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0444\u0440\u043e\u043d\u0442\u044d\u043d\u0434 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 Yeoman \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f generator-alchemist. \u041e \u043d\u0451\u043c \u0438 \u043e \u043c\u043e\u0451\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u0441\u0430\u0439\u0442\u043e\u0432 \u043f\u043e\u0439\u0434\u0451\u0442 \u0440\u0435\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<h2>\u0421\u043e\u0441\u0442\u0430\u0432<\/h2>\n<p>  <\/p>\n<h3><b>Jade<\/b><\/h3>\n<p>  <img decoding=\"async\" src=\"https:\/\/github.com\/azat-io\/generator-alchemist\/raw\/master\/images\/jade.jpg\" alt=\"jade\"\/><\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430 Jade \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e. Yeoman \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c, \u0445\u043e\u0442\u0438\u043c \u043b\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Jade \u0432 \u043d\u0430\u0448\u0435\u043c \u043d\u043e\u0432\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043e\u0439 Jade \u043a\u043e\u0434 \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/jade\/ \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 HTML.<\/p>\n<h3><b>HTML<\/b><\/h3>\n<p>  <a href=\"https:\/\/github.com\/bezoerb\/gulp-htmlhint\"><b>HTML Hint<\/b><\/a><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 Jade, HTML \u0444\u0430\u0439\u043b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u0430\u043f\u043a\u0443 \/src\/html\/, \u0433\u0434\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 W3C \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u043a\u043e\u0434\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \/dist\/. \u0412 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 Jade, \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435 HTML \u043a\u043e\u0434 \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/html\/.<\/p>\n<h3><b>CSS<\/b><\/h3>\n<p>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 CSS \u0444\u0430\u0439\u043b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0432\u0435\u0449\u0435\u0439:<\/p>\n<p>  <a href=\"https:\/\/github.com\/necolas\/normalize.css\"><b>Normalize CSS<\/b><\/a><\/p>\n<p>  <b>Grid System<\/b><\/p>\n<pre><code class=\"css\">&lt;div class=&quot;container&quot;&gt;   &lt;div class=&quot;row&quot;&gt;     &lt;div class=&quot;col-8&quot;&gt;       Content block     &lt;\/div&gt;     &lt;div class=&quot;col-4&quot;&gt;       Right sidebar     &lt;\/div&gt;   &lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<h3><b>PostCSS<\/b><\/h3>\n<p>  \u0410 \u0432\u043e\u0442 \u0442\u0443\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0421\u0431\u043e\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0435\u0431\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e PostCSS \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0438\u0441\u0430\u0442\u044c CSS \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041d\u0438\u0436\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e:<\/p>\n<p>  <a href=\"https:\/\/github.com\/postcss\/autoprefixer\"><b>Autoprefixer<\/b><\/a><\/p>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d \u043f\u0430\u0440\u0441\u0438\u0442 \u0432\u0430\u0448 CSS \u043a\u043e\u0434 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a \u043d\u0435\u043c\u0443 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0432\u0435\u043d\u0434\u043e\u0440\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">:fullscreen a {   display: flex } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">:-webkit-full-screen a {   display: -webkit-box;   display: -webkit-flex;   display: flex }  :-moz-full-screen a {     display: flex }  :-ms-fullscreen a {   display: -ms-flexbox;   display: flex }  :fullscreen a {   display: -webkit-box;   display: -webkit-flex;   display: -ms-flexbox;   display: flex } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/jedmao\/postcss-center\"><b>Center<\/b><\/a><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u0441 \u043b\u0451\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.foo {   top: center;   left: center; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.foo {   position: absolute;   top: 50%;   left: 50%;   margin-right: -50%;   transform: translate(-50%, -50%) } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/seaneking\/postcss-clearfix\"><b>Clearfix<\/b><\/a><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 Clearfix \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.foo {   clear: fix; }  .bar {   clear: fix-legacy; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.foo:after{   content: '';   display: table;   clear: both; }  .bar {   clear: fix-legacy; }  .bar:before, .bar:after {   content: '';   display: table; }  .bar:after {   clear: both; }  .bar {   zoom: 1; } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/andrepolischuk\/postcss-color-short\"><b>Color Short<\/b><\/a><\/p>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043e\u0432.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.hello {   border-bottom: 1px solid rgb(200);   background: #20;   color: #f;   box-shadow: 0 1px 5px rgba(0, 0.5); } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.hello {   border-bottom: 1px solid rgb(200, 200, 200);   background: #202020;   color: #fff;   box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/ben-eb\/cssnano\"><b>CSS Nano<\/b><\/a><\/p>\n<p>  \u041a\u0440\u0430\u0439\u043d\u0435 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 CSS \u043a\u043e\u0434\u0430, \u0438\u0434\u0443\u0449\u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d.<\/p>\n<p>  <a href=\"https:\/\/github.com\/ben-eb\/postcss-discard-comments\"><b>Discard Comments<\/b><\/a><\/p>\n<p>  \u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u0437 CSS \u043a\u043e\u0434\u0430. \u0420\u0430\u043d\u044c\u0448\u0435 \u0441 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d CSS Nano, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f PostCSS \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 5.0.x \u044d\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u044f\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438.<\/p>\n<p>  <a href=\"https:\/\/github.com\/postcss\/postcss-focus\"><b>Focus<\/b><\/a><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0441\u0435\u0432\u043e\u0434\u044d\u043b\u0435\u043c\u0435\u043d\u0442 :focus \u043a\u043e \u0432\u0441\u0435\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430\u043c, \u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f :hover.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.button:hover {   background: red; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.button:hover, .button:focus {   background: red; } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/postcss\/postcss-media-minmax\"><b>Media Minmax<\/b><\/a><\/p>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d, \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0449\u0438\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 min-width \u0438 max-width CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">@media screen and (width &gt;= 500px) and (width &lt;= 1200px) {   .bar {     display: block;   } } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">@media screen and (min-width: 500px) and (max-width: 1200px) {   .bar {     display: block;   } } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/jonathantneal\/precss\"><b>PreCSS<\/b><\/a><\/p>\n<p>  \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 Sass \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 CSS: \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431\u043e \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 PreCSS \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u0430.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">$blue: #056ef0; $column: 200px;  header {   background: $blue;   width: $column;     h1 {       font-size: 18px;     } } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">header {   background: #056ef0;   width: 200px; }  header h1 {   font-size: 18px; } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/cuth\/postcss-pxtorem\"><b>PxtoRem<\/b><\/a><\/p>\n<p>  \u041f\u043b\u0430\u0433\u0438\u043d, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 rem \u0438 em \u0438\u0437 px.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">p {     font-size: 16px; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">p {     font-size: 1rem; } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/jonathantneal\/postcss-short\"><b>Short<\/b><\/a><\/p>\n<p>  \u0415\u0449\u0451 \u043e\u0434\u0438\u043d \u043c\u043e\u0449\u043d\u044b\u0439 PostCSS \u043f\u043b\u0430\u0433\u0438\u043d, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 CSS \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.section {   margin: 40px;   text: bold center uppercase dimgrey 1.25em 1.5 .05em; }  .section.inset {   margin: * auto; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.section {   margin: 40px;   color: dimgrey;   font-weight: bold;   text-align: center;   text-transform: uppercase;   font-size: 1.25em;   line-height: 1.5;   letter-spacing: .05em; }  .section.inset {   margin-right: auto;   margin-left: auto; } <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/postcss\/postcss-size\"><b>Size<\/b><\/a><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 CSS \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e size \u0434\u043b\u044f \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0448\u0438\u0440\u0438\u043d\u044b \u0438 \u0432\u044b\u0441\u043e\u0442\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n<p>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"css\">.two {     size: 20px 10px; }  .one {     size: 10px; } <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"css\">.two {     width: 20px;     height: 10px; }  .one {     width: 10px;     height: 10px; } <\/code><\/pre>\n<h3><b>JavaScript<\/b><\/h3>\n<p>  <a href=\"https:\/\/github.com\/terinjokes\/gulp-uglify\"><b>Uglify<\/b><\/a><\/p>\n<p>  \u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 JavaScript \u043a\u043e\u0434, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/js\/ \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043f\u0430\u043f\u043a\u0443 \/dist\/js\/.<\/p>\n<h3><b>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/b><\/h3>\n<p>  <a href=\"https:\/\/github.com\/sindresorhus\/gulp-imagemin\"><b>Imagemin<\/b><\/a><\/p>\n<p>  \u041c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/images\/ \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u0432 \u043f\u0430\u043f\u043a\u0443 \/dist\/images\/.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435:  <\/p>\n<ul>\n<li><a href=\"https:\/\/nodejs.org\/\">Node.js<\/a><\/li>\n<li><a href=\"http:\/\/yeoman.io\">Yeoman<\/a><\/li>\n<li><a href=\"http:\/\/gulpjs.com\">Gulp<\/a><\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0432\u0441\u0451 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430:<\/p>\n<pre><code class=\"bash\">$ sudo npm install -g generator-alchemist <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430:<\/p>\n<pre><code class=\"bash\">$ yo alchemist <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451. \u0412\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Gulp:<\/p>\n<pre><code class=\"bash\">$ gulp <\/code><\/pre>\n<p>  \u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448 Jade \/ HTML \u043a\u043e\u0434 \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/jade\/ \u0438\u043b\u0438 \/src\/html\/<br \/>  \u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448 CSS \u043a\u043e\u0434 \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/css\/<br \/>  \u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448 JavaScript \u043a\u043e\u0434 \u0432 \u043f\u0430\u043f\u043a\u0435 \/src\/js\/<br \/>  \u041f\u043e\u043c\u0435\u0449\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \/src\/images\/<\/p>\n<p>  \u0418 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \/dist\/, \u0438\u0434\u0443\u0449\u0443\u044e \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d.<\/p>\n<p>  <b>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/b><\/p>\n<p>  <a href=\"https:\/\/github.com\/azat-io\/generator-alchemist\">github.com\/azat-io\/generator-alchemist<\/a>             <\/p>\n<div class=\"clear\"><\/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\/265449\/\"> http:\/\/habrahabr.ru\/post\/265449\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             <img loading=\"lazy\" decoding=\"async\" align=\"right\" width=\"110\" height=\"150\" src=\"https:\/\/github.com\/azat-io\/generator-alchemist\/blob\/master\/images\/logo.jpg?raw=true\"\/>CSS-\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e CSS \u043a\u043e\u0434\u0430. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u043d\u0435\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b \u0438 \u0438\u043c\u0435\u043b\u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u044a\u044f\u043d\u044b \u0432 \u0440\u0430\u0431\u043e\u0442\u0435. \u0410 \u043f\u043e\u0442\u043e\u043c\u0443 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u043c \u043f\u0440\u0438\u0448\u0451\u043b \u043f\u043e\u0441\u0442\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 PostCSS.<\/p>\n<p>  \u042d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0449\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 CSS. \u041f\u043e\u0441\u0442\u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0443\u0436\u0435 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u0438\u0445 \u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0445 \u043a\u0430\u043a Twitter \u0438 Google. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Bootstap, \u043f\u044f\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f CSS-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 PostCSS.  <\/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-264304","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264304","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=264304"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/264304\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=264304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=264304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=264304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}