{"id":170211,"date":"2013-02-21T11:11:03","date_gmt":"2013-02-21T07:11:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=170211"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=170211","title":{"rendered":"<span class=\"post_title\">\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043f\u0440\u0438\u0451\u043c\u043e\u0432 \u043d\u0430 CSS3<\/span>"},"content":{"rendered":"<div class=\"content html_format\">       \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 CSS3 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0444\u0440\u043e\u043d\u0442\u044d\u043d\u0434-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u0439\u0442\u044b \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u043e\u043b\u0435\u0435 10 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u0451\u043c\u043e\u0432 CSS3, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0440\u0430\u0441\u0438\u0442\u044c \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0438 \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434.<\/p>\n<h5>CSS \u0444\u0443\u043d\u043a\u0446\u0438\u044f Calc()<\/h5>\n<p>  <code>Calc()<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0438 \u0444\u043e\u0440\u043c\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435!  <\/p>\n<pre><code class=\"css\">\/* basic calc *\/ .simpleBlock {   width: calc(100% - 100px); }  \/* calc in calc *\/ .complexBlock {   width: calc(100% - 50% \/ 3);   padding: 5px calc(3% - 2px);   margin-left: calc(10% + 10px); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/davidwalsh.name\/css-calc\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><a name=\"habracut\"><\/a><\/p>\n<h5>\u0427\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 CSS3<\/h5>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0441 CSS \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442 \u043b\u044e\u0431\u043e\u0435 \u0446\u0432\u0435\u0442\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0447\u0435\u0440\u043d\u043e-\u0431\u0435\u043b\u043e\u0435. \u041f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u044f\u0442 \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.  <\/p>\n<pre><code class=\"css\">img.desaturate { filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/demosthenes.info\/blog\/532\/Convert-Images-To-Black--White-With-CSS\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u0422\u0435\u043d\u044c \u043d\u0430\u0432\u0435\u0440\u0445\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0430 CSS3<\/h5>\n<p>  \u0412\u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u0430\u0442\u044c \u0441\u0430\u0439\u0442\u0443 \u0445\u043e\u0440\u043e\u0448\u0443\u044e \u0442\u0435\u043d\u044c \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041b\u0435\u0433\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442!  <\/p>\n<pre><code class=\"css\">body:before {           content: &quot;&quot;;           position: fixed;           top: -10px;           left: 0;           width: 100%;           height: 10px;            -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);           -moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);           box-shadow: 0px 0px 10px rgba(0,0,0,.8);            z-index: 100; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/playground.genelocklin.com\/depth\/\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u0432\u043e\u0439\u043d\u043e\u0433\u043e \u0449\u0435\u043b\u0447\u043a\u0430 \u0432 CSS3<\/h5>\n<p>  \u0412\u044b \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0449\u0435\u043b\u0447\u043e\u043a \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e CSS, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043a\u043e\u0434\u0435:  <\/p>\n<pre><code class=\"html\">&lt;div class=&quot;test3&quot;&gt;   &lt;span&gt;&lt;input type=&quot;text&quot; value=&quot;&nbsp;&quot; readonly=&quot;true&quot; \/&gt;   &lt;a href=&quot;http:\/\/google.com&quot;&gt;Double click me&lt;\/a&gt;&lt;\/span&gt; &lt;\/div&gt;  &lt;style type=&quot;text\/css&quot;&gt; .test3 span { \tposition: relative; } .test3 span a {  \tposition: relative; \tz-index: 2;  } .test3 span a:hover, .test3 span a:active {  \tz-index: 4;  } .test3 span input {  \tbackground: transparent;  \tborder: 0;  \tcursor: pointer;  \tposition: absolute;  \ttop: -1px;  \tleft: 0;  \twidth: 101%;  \/* Hacky *\/ \theight: 301%; \/* Hacky *\/ \tz-index: 3;  } .test3 span input:focus {  \tbackground: transparent;  \tborder: 0;  \tz-index: 1;  } &lt;\/style&gt; <\/code><\/pre>\n<p>  <a href=\"http:\/\/css-tricks.com\/examples\/CSSDoubleClick\/\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u0422\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u0432 CSS3<\/h5>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e CSS. \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043d\u043e \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u044d\u0442\u0430 \u0442\u0435\u0445\u043d\u0438\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f.  <\/p>\n<pre><code class=\"html\">\/* create an arrow that points up *\/ div.arrow-up {   width:0px;    height:0px;    border-left:5px solid transparent;  \/* left arrow slant *\/   border-right:5px solid transparent; \/* right arrow slant *\/   border-bottom:5px solid #2f2f2f; \/* bottom, add background color here *\/   font-size:0px;   line-height:0px; }  \/* create an arrow that points down *\/ div.arrow-down {   width:0px;    height:0px;    border-left:5px solid transparent;   border-right:5px solid transparent;   border-top:5px solid #2f2f2f;   font-size:0px;   line-height:0px; }  \/* create an arrow that points left *\/ div.arrow-left {   width:0px;    height:0px;    border-bottom:5px solid transparent;  \/* left arrow slant *\/   border-top:5px solid transparent; \/* right arrow slant *\/   border-right:5px solid #2f2f2f; \/* bottom, add background color here *\/   font-size:0px;   line-height:0px; }  \/* create an arrow that points right *\/ div.arrow-right {   width:0px;    height:0px;    border-bottom:5px solid transparent;  \/* left arrow slant *\/   border-top:5px solid transparent; \/* right arrow slant *\/   border-left:5px solid #2f2f2f; \/* bottom, add background color here *\/   font-size:0px;   line-height:0px; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/davidwalsh.name\/css-triangles\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u0427\u0438\u0441\u0442\u044b\u0439 CSS-\u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u0442\u0435\u043a\u0441\u0442\u0430.<\/h5>\n<p>  \u0422\u0435\u043a\u0441\u0442\u044b, \u0440\u0430\u0441\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u0435 \u0432 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442, \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u044b\u043b\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u0441 CSS3, \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u044b \u0432 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0442\u044b.  <\/p>\n<pre><code class=\"css\">h2[data-text] { \tposition: relative; } h2[data-text]::after { \tcontent: attr(data-text); \tz-index: 10; \tcolor: #e3e3e3; \tposition: absolute; \ttop: 0; \tleft: 0; \t-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0)), color-stop(50%, rgba(0,0,0,1)), to(rgba(0,0,0,0))); <\/code><\/pre>\n<p>  <a href=\"http:\/\/snipplr.com\/view\/49911\/pure-css-text-gradients\/\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 CSS<\/h5>\n<p>  \u0412\u043d\u043e\u0432\u044c \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>pointer-events<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0441\u044b\u043b\u043a\u0430 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439.  <\/p>\n<pre><code class=\"css\">.disabled { pointer-events: none; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/davidwalsh.name\/pointer-events\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u00ab\u041e\u0431\u0448\u0438\u0442\u044b\u0439\u00bb \u043d\u0438\u0442\u043a\u0430\u043c\u0438 \u0431\u043b\u043e\u043a \u043d\u0430 CSS<\/h5>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u043a\u043e\u0434\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0443\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u043b\u044e\u0431\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043e\u043d \u043f\u0440\u0438\u0448\u0438\u0442 \u043d\u0438\u0442\u043a\u0430\u043c\u0438. \u041a\u0440\u0430\u0441\u0438\u0432\u043e!  <\/p>\n<pre><code class=\"css\">p { \tpadding: 5px 10px; \tmargin: 10px; \tbackground: #ff0030; \tcolor: #fff; \tfont-size: 21px; \tline-height: 1.3em; \tborder: 2px dashed #fff; \tborder-radius: 3px; \t-moz-border-radius: 3px; \t-webkit-border-radius: 3px; \t-moz-box-shadow: 0 0 0 4px #ff0030, 2px 1px 4px 4px rgba(10,10,0,.5); \t-webkit-box-shadow: 0 0 0 4px #ff0030, 2px 1px 4px 4px rgba(10,10,0,.5); \tbox-shadow: 0 0 0 4px #ff0030, 2px 1px 6px 4px rgba(10,10,0,.5); \ttext-shadow: -1px -1px #aa3030; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/www.catswhocode.com\/blog\/snippets\/stitched-elements-in-css3\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0441\u044b \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS3 \u0432 WebKit<\/h5>\n<p>  \u041f\u043e\u043c\u043d\u0438\u0442\u0435, 10 \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434, \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 IE, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043f\u043e\u043b\u043e\u0441\u044b \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438? \u041d\u0443, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 Webkit.  <\/p>\n<pre><code class=\"css\">::-webkit-scrollbar {   width: 12px; }  ::-webkit-scrollbar-track {   background: none; }  ::-webkit-scrollbar-thumb {   background: -webkit-linear-gradient(left, #547c90, #002640);   border: 1px solid #333;   box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/davidwalsh.name\/custom-scrollbars\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u0420\u0430\u0437\u043c\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 CSS3<\/h5>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0439, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u0440\u0430\u0437\u043c\u044b\u0442\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430. \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439!  <\/p>\n<pre><code class=\"css\">.blur {    color: transparent;    text-shadow: 0 0 5px rgba(0,0,0,0.5); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/css-tricks.com\/snippets\/css\/blurry-text\/\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<h5>\u041b\u0435\u043d\u0442\u0430 \u0432 \u0443\u0433\u043b\u0443 \u0431\u043b\u043e\u043a\u0430 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c CSS<\/h5>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043b\u0438\u043d\u043d\u044b\u0439, \u043d\u043e \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0443\u044e \u043b\u0435\u043d\u0442\u0443 \u0432 \u043f\u0440\u0430\u0432\u043e\u043c \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u0443\u0433\u043b\u0443 \u0431\u043b\u043e\u043a\u0430 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c CSS.  <\/p>\n<pre><code class=\"html\">&lt;div class=&quot;wrapper&quot;&gt;        &lt;div class=&quot;ribbon-wrapper-green&quot;&gt;&lt;div class=&quot;ribbon-green&quot;&gt;NEWS&lt;\/div&gt;&lt;\/div&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  \u0418 CSS:  <\/p>\n<pre><code class=\"css\">.wrapper {   margin: 50px auto;   width: 280px;   height: 370px;   background: white;   border-radius: 10px;   -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);   -moz-box-shadow:    0px 0px 8px rgba(0,0,0,0.3);   box-shadow:         0px 0px 8px rgba(0,0,0,0.3);   position: relative;   z-index: 90; }  .ribbon-wrapper-green {   width: 85px;   height: 88px;   overflow: hidden;   position: absolute;   top: -3px;   right: -3px; }  .ribbon-green {   font: bold 15px Sans-Serif;   color: #333;   text-align: center;   text-shadow: rgba(255,255,255,0.5) 0px 1px 0px;   -webkit-transform: rotate(45deg);   -moz-transform:    rotate(45deg);   -ms-transform:     rotate(45deg);   -o-transform:      rotate(45deg);   position: relative;   padding: 7px 0;   left: -5px;   top: 15px;   width: 120px;   background-color: #BFDC7A;   background-image: -webkit-gradient(linear, left top, left bottom, from(#BFDC7A), to(#8EBF45));    background-image: -webkit-linear-gradient(top, #BFDC7A, #8EBF45);    background-image:    -moz-linear-gradient(top, #BFDC7A, #8EBF45);    background-image:     -ms-linear-gradient(top, #BFDC7A, #8EBF45);    background-image:      -o-linear-gradient(top, #BFDC7A, #8EBF45);    color: #6a6340;   -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);   -moz-box-shadow:    0px 0px 3px rgba(0,0,0,0.3);   box-shadow:         0px 0px 3px rgba(0,0,0,0.3); }  .ribbon-green:before, .ribbon-green:after {   content: &quot;&quot;;   border-top:   3px solid #6e8900;      border-left:  3px solid transparent;   border-right: 3px solid transparent;   position:absolute;   bottom: -3px; }  .ribbon-green:before {   left: 0; } .ribbon-green:after {   right: 0; } <\/code><\/pre>\n<p>  <a href=\"http:\/\/jsfiddle.net\/chriscoyier\/H6rQ6\/1\/\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \u0434\u0435\u043c\u043e.<\/a><\/p>\n<p>  <sub><i>P.S. \u041e\u043f\u0435\u0447\u0430\u0442\u043a\u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"http:\/\/habrahabr.ru\/post\/169323\/\">\u0425\u0430\u0431\u0440\u0430 \u041a\u0430\u0434\u0430\u0431\u0440\u044b<\/a><\/i><\/sub>        \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\/170211\/\"> http:\/\/habrahabr.ru\/post\/170211\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">       \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 CSS3 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0444\u0440\u043e\u043d\u0442\u044d\u043d\u0434-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u044b, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u0439\u0442\u044b \u043a\u0440\u0430\u0441\u0438\u0432\u0435\u0435. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u0431\u043e\u043b\u0435\u0435 10 \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u0438\u0451\u043c\u043e\u0432 CSS3, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u043a\u0440\u0430\u0441\u0438\u0442\u044c \u0432\u0430\u0448 \u0441\u0430\u0439\u0442 \u0438 \u043f\u0440\u0438\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434.<\/p>\n<h5>CSS \u0444\u0443\u043d\u043a\u0446\u0438\u044f Calc()<\/h5>\n<p>  <code>Calc()<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0440\u0430\u0441\u0447\u0435\u0442\u044b \u043f\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u0438 \u0444\u043e\u0440\u043c\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435!  <\/p>\n<pre><code class=\"css\">\/* basic calc *\/ .simpleBlock {   width: calc(100% - 100px); }  \/* calc in calc *\/ .complexBlock {   width: calc(100% - 50% \/ 3);   padding: 5px calc(3% - 2px);   margin-left: calc(10% + 10px); } <\/code><\/pre>\n<p>  <a href=\"http:\/\/davidwalsh.name\/css-calc\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438 \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-170211","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/170211","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=170211"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/170211\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}